@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ==========================================================================
   CSS Variables & Theming
   ========================================================================== */
:root {
    /* Typography */
    --font-main: "Poppins", system-ui, -apple-system, sans-serif;
    /* Color Palette - Premium Emerald Theme */
    --primary-color: #047857;
    /* Deep Emerald */
    --primary-light: #10b981;
    --primary-dark: #064e3b;
    --accent-color: #f59e0b;
    /* Amber */

    /* Backgrounds */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-footer: #020617;
    /* Slate 950 */

    /* Text Colors */
    --text-main: #334155;
    /* Slate 700 */
    --text-heading: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #f8fafc;

    /* Removed Glassmorphism variables, using solid colors instead */
    --glass-bg: #ffffff;
    --glass-border: #e2e8f0;
    --glass-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-main: "Poppins", sans-serif;

    /* Borders */
    --border-muted: rgba(0, 0, 0, 0.05);

    /* Transitions & Shadows */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --whatsapp: #25D366;
}

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    background-image: url('../images/mahmoodiyya new building.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 250, 252, 0.92);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layout Helpers
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.sub-page-wrapper {
    padding-top: 130px;
}

/* Sub-Page Hero Section */
.sub-page-hero {
    padding-top: 180px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.95) 0%, rgba(15, 23, 42, 0.92) 60%, rgba(4, 120, 87, 0.8) 100%),
        url('../images/mahmoodiyya new building.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.sub-page-hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}



.sub-page-hero h1 {
    color: white;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}



.section-padding {
    padding: 100px 0;
    overflow: hidden;
    scroll-margin-top: 130px; /* Offset to prevent fixed header from covering section titles */
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 992px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Animations & Transitions
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   Typography & Section Headers
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.align-left {
    text-align: left;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--text-heading), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin: 0 auto 24px;
    border-radius: 2px;
}

.divider.align-left {
    margin-left: 0;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(4, 120, 87, 0.3);
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(4, 120, 87, 0.5);
    color: white;
}

.btn-secondary {
    background: #f8f9fa;
    color: var(--primary-color);
    border: 2px solid #e2e8f0;
    gap: 8px;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    gap: 8px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 120, 87, 0.3);
}



/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-head {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform var(--transition-normal), background var(--transition-normal);
}

.glass-header {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Top Bar */
.welcome-icons-head {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    color: white;
    font-size: 0.85rem;
    padding: 8px 0;
}

.welcome-icons-div-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icons-social-media a {
    margin-left: 15px;
    opacity: 0.8;
}

.icons-social-media a:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Nav Bar */
.navi {
    padding: 10px 20px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-img img {
    height: 60px;
    width: auto;
    transition: transform var(--transition-normal);
}

.nav-img img:hover {
    transform: scale(1.05);
}

.nav-link ul {
    display: flex;
    align-items: center;
}

.nav-link>ul>li {
    position: relative;
    margin: 0 15px;
}

.nav-link>ul>li>a {
    font-weight: 500;
    font-size: 1.05rem;
    padding: 10px 0;
    position: relative;
}

.nav-link>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-link>ul>li>a:hover::after,
.nav-link>ul>li>a.active::after {
    width: 100%;
}

.nav-link>ul>li>a:hover {
    color: var(--primary-color);
}



.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-heading);
    transition: color 0.3s;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        position: relative;
        z-index: 2001;
        font-size: 1.25rem;
        cursor: pointer;
        color: var(--text-heading);
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active-close {
        position: fixed;
        top: 25px;
        right: 25px;
        background: #f1f5f9;
        border: 1px solid #cbd5e1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        color: #0f172a;
    }

    .nav-link {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-surface);
        z-index: 2000;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 35px 25px 40px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
    }

    .nav-link::before {
        content: 'JAMIA MAHMOODIYYA';
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        color: var(--primary-color);
        margin-bottom: 25px;
        padding-bottom: 12px;
        border-bottom: 2px solid rgba(4, 120, 87, 0.12);
        padding-right: 50px;
    }

    .nav-link.active {
        right: 0;
    }

    .nav-link ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-link ul li {
        margin: 12px 0;
    }

    .nav-link ul li a {
        font-size: 1.15rem;
        font-weight: 500;
        display: inline-block;
        padding: 6px 0;
    }



    .navi {
        padding: 8px 15px;
    }

    .nav-img img {
        height: 50px;
    }

    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
/* Sub-Page Hero Section */
.sub-page-hero {
    position: relative;
    padding: 120px 0 60px;
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    background-image: url('../images/mahmoodiyya new building.jpg');
    background-size: cover;
    background-position: center;
}

/* Sub-Page Back Navigation */
.sub-page-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    background: var(--bg-surface);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(4, 120, 87, 0.2);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.btn-back:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateX(-3px);
    box-shadow: var(--shadow-md);
}

.btn-back.secondary {
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.1);
}

.btn-back.secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
    overflow: hidden;
    color: white;
    background-image: url('../images/mahmoodiyya new building.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    padding-top: 100px;
    /* Offset for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* ==========================================================================
   Institutions Section
   ========================================================================== */
.institution {
    background-color: transparent;
}

.institution-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.glass-card {
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.5s, opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.inst-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.inst-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.glass-card:hover .inst-img-wrapper img {
    transform: scale(1.1);
}

.inst-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
}

.inst-info {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.inst-name {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.view-details {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition-fast);
}

.glass-card:hover .view-details {
    gap: 12px;
}

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about {
    background-color: transparent;
}

.abt-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-heading);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.abt {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.about-text-content .btn {
    margin-top: 20px;
}

.image-stack {
    position: relative;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.image-stack::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 30px;
    left: 30px;
    border: 3px solid var(--primary-light);
    border-radius: 20px;
    z-index: 1;
    transition: transform var(--transition-normal);
}

.about-img {
    border-radius: 20px;
    position: relative;
    z-index: 2;
    transition: transform var(--transition-normal);
    width: 100%;
    box-shadow: var(--shadow-xl);
}

.image-stack:hover::before {
    transform: translate(8px, -8px);
}

.image-stack:hover .about-img {
    transform: translate(-8px, 8px);
}

@media (max-width: 768px) {
    .image-stack {
        padding: 15px;
    }

    .image-stack::before {
        bottom: 20px;
        left: 20px;
        border-width: 2px;
    }
}

/* ==========================================================================
   Donate Section
   ========================================================================== */
.donate {
    background: transparent;
    color: var(--text-main);
    text-align: center;
}

.donate .section-header h2,
.donate .section-desc {
    color: var(--text-heading);
}

.donate .divider {
    background: var(--primary-color);
}

.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.donate-card {
    padding: 0;
    text-align: left;
    height: 100%;
}

.donate-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.donate-info h3 {
    color: var(--text-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.donate-info>p {
    margin-bottom: 20px;
    font-size: 1rem;
    opacity: 0.9;
    text-align: center;
}

.bank-details {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    flex-grow: 1;
}

.bank-details p {
    margin-bottom: 10px;
    font-size: 1rem;
    display: grid;
    grid-template-columns: 145px 1fr;
    align-items: flex-start;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    gap: 10px;
}

.bank-details p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bank-details strong {
    color: var(--accent-color);
    font-weight: 600;
}

.upi-icon {
    text-align: center;
    margin-bottom: 15px;
}

.gpay-number {
    font-size: 1.1rem !important;
}

.donate-info-centered {
    align-items: center;
    text-align: center;
}

.upi-details-clean {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    flex-grow: 1;
    width: 100%;
}

.upi-details-clean p {
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.upi-details-clean p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.qr-code-wrapper {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-code-wrapper img {
    width: 150px;
    height: 150px;
    display: block;
}

.upi-text-info {
    text-align: left;
}



.donate-info .btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 15px rgba(4, 120, 87, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */


.bg-surface {
    background-color: transparent;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-surface);
    border-radius: 20px;
    overflow: hidden;
}

.contact-details {
    padding: 50px;
}

.contact-details h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(4, 120, 87, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.contact-list li:hover .icon-box {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.icon-box.whatsapp {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.contact-list li:hover .icon-box.whatsapp {
    background: #25D366;
    color: white;
}

.info-text strong {
    display: block;
    color: var(--text-heading);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-text span,
.info-text a {
    color: var(--text-muted);
}

.info-text a:hover {
    color: var(--primary-color);
}

.map-container {
    height: 100%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-footer);
    color: var(--text-light);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    /* Makes the logo white if it's dark */
}

.footer-about p {
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 300px;
}

.socialIcons {
    display: flex;
    gap: 15px;
}

.socialIcons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: all var(--transition-fast);
}

.socialIcons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footerNav h3,
.footer-contact h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footerNav h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-light);
}

.footerNav ul li {
    margin-bottom: 15px;
}

.footerNav ul li a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
    display: inline-block;
}

.footerNav ul li a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-light);
}

.footerBottom {
    background: #000;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footerBottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}




/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .welcome-icons-head {
        display: block;
        padding: 5px 0;
    }

    .welcome-icons-div-head {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .welcome-text {
        font-size: 0.75rem;
    }

    .icons-social-media a {
        margin: 0 8px;
    }



    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   Notice Board
   ========================================================================== */


@keyframes flash {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0.5;
    }
}





@media (max-width: 768px) {}







/* ==========================================================================
   Notice Board Marquee
   ========================================================================== */
.notice-board-section {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    overflow: hidden;
}

.notice-board-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notice-header {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.notice-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}


.notice-item {
    display: inline-flex;
    align-items: center;
    padding-right: 50px;
}

.badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 8px;
}

.new-badge {
    background: #ef4444;
    color: white;
}


/* ==========================================================================
   Splash Screen & Page Transitions
   ========================================================================== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-logo {
    width: 150px;
    margin-bottom: 30px;
    animation: pulse 1.5s infinite alternate;
}

.splash-loader {
    width: 50px;
    height: 4px;
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.splash-loader::after {
    content: '';
    position: absolute;
    left: -50%;
    height: 100%;
    width: 50%;
    background: var(--primary-color);
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(4, 120, 87, 0.2));
    }

    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(4, 120, 87, 0.6));
    }
}

@keyframes loading {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.page-transition {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.loaded {
    opacity: 1;
    transform: none !important;
}

.page-exit {
    opacity: 0;
    transform: translateY(-15px);
}


/*Premium Aesthetic Updates*/
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 99999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 6px;
    border: 3px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Card Glow Effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.5s, opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.notice-content {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-track {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    animation: marquee_infinite 180s linear infinite;
}

.notice-item {
    display: inline-flex;
    align-items: center;
    padding-right: 50px;
}

@keyframes marquee_infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}



.inst-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 320px;
    max-width: 100%;
}

.inst-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}



.inst-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}



.inst-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.inst-item:hover .inst-img-wrapper img {
    transform: scale(1.08);
}

.inst-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.inst-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-heading);
}

.view-details {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.inst-item:hover .view-details {
    gap: 15px;
}






/* ==========================================================================
   Stats Strip Section
   ========================================================================== */
.stats-strip {
    background: transparent;
    padding: 60px 0;
    position: relative;
    border-top: none;
    border-bottom: none;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.stat-item {
    flex: 1 1 200px;
    max-width: 260px;
    text-align: center;
    background: var(--bg-surface);
    border-radius: 24px;
    padding: 40px 20px;
    border: 1px solid rgba(16, 185, 129, 0.12);
    box-shadow: 0 10px 30px -15px rgba(4, 120, 87, 0.08);
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px -15px rgba(4, 120, 87, 0.22);
    border-color: var(--primary-light);
}

.stat-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
    width: 100%;
}

.stat-number {
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    width: 64px;
    height: 64px;
    background: rgba(4, 120, 87, 0.07);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: all var(--transition-normal);
}

.stat-item:hover .stat-icon {
    background: var(--primary-color);
    color: white;
    transform: rotateY(360deg);
}

@media (max-width: 992px) {
    .stats-grid {
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        justify-content: center;
    }

    .stat-item {
        flex: 1 1 160px;
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        justify-content: center;
    }

    .stat-item {
        flex: 1 1 100%;
        max-width: 320px;
    }
}

/* ==========================================================================
   Enhanced Hero Section
   ========================================================================== */


.hero-badge {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 20px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem) !important;
    font-weight: 900 !important;
    margin-bottom: 20px !important;
    color: white !important;
    line-height: 1.1 !important;
    letter-spacing: -2px !important;
}

.hero-title-accent {
    color: white;
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
    font-weight: 400 !important;
    margin-bottom: 48px !important;
    opacity: 0.88 !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.7 !important;
}





/* ==========================================================================
   Institution Detail — Action Buttons
   ========================================================================== */
.inst-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
    align-items: center;
}

.action-btn {
    min-width: 180px;
    justify-content: center;
    font-size: 0.95rem;
    padding: 13px 28px;
}

@media (max-width: 480px) {
    .action-btn {
        width: 100%;
    }
}


/* ==========================================================================
   Leadership Section
   ========================================================================== */
.leadership {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.leadership::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.leader-card {
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-slow);
    position: relative;
    height: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

.leader-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-12px);
    background: var(--bg-main);
    box-shadow: var(--shadow-xl);
}

.leader-img-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 30px;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.leader-img-wrapper::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    opacity: 0.2;
    animation: pulse-ring 4s infinite ease-in-out;
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.05;
    }
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid white;
}

.leader-label {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(4, 120, 87, 0.08);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leader-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.leader-bio {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 100%;
    text-align: center;
}



/* Responsive Fixes */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 40px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
        width: 100%;
    }

    .leader-card {
        padding: 40px 20px;
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .leader-img-wrapper {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
    }

    .leader-name {
        font-size: 1.5rem;
    }

    .leader-bio {
        font-size: 0.95rem;
    }
}





.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}



@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .leader-card {
        padding: 30px 15px;
        border-radius: 20px;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }
}







.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10001;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.chat-close-btn {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) rotate(90deg);
}

.chat-header img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-header h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.chat-header span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.chat-msg.bot {
    background: white;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.chat-msg.user {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input:focus {
    border-color: var(--primary-color);
}

.chat-send {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-send:hover {
    background: var(--primary-dark);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 15px 20px;
    background: #f8fafc;
}

.quick-btn {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-btn:hover {
    background: var(--primary-color);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        height: 80vh;
        right: 20px;
        bottom: 95px;
    }
}

/* ==========================================================================
   Advanced Chatbot Styling & Animations
   ========================================================================== */

/* Sub-page Chatbot Floating Container */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.chatbot-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(4, 120, 87, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulseBubble 2s infinite ease-in-out;
}

.chatbot-bubble:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(4, 120, 87, 0.6);
}

.chatbot-bubble.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.8) translateY(10px);
}

@keyframes pulseBubble {
    0% {
        box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.5), 0 4px 20px rgba(4, 120, 87, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(4, 120, 87, 0), 0 4px 20px rgba(4, 120, 87, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(4, 120, 87, 0), 0 4px 20px rgba(4, 120, 87, 0.4);
    }
}

/* Animated Bouncing Dot Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {
    0%, 80%, 100% { 
        transform: scale(0.6);
        opacity: 0.4;
    } 
    40% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

/* User Message Polish */
.chat-msg.user {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.15);
}

/* Link Styling in chatbot responses */
.chat-msg a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.chat-msg a:hover {
    color: var(--primary-light);
}

.chat-msg.user a {
    color: #fef08a;
}

/* ==========================================================================
   Lenis Smooth Scrolling
   ========================================================================== */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

@media (max-width: 400px) {
    .bank-details p {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}