@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color: #0e2246;
    --accent-color: #4A90E2;
    --light-bg: #f8faff;
    --white-color: #ffffff;
    --text-dark: #333;
    --text-light: #5f6c7b;
    --border-color: #e2e8f0;
    --header-height-mobile: 80px;
    --header-height-desktop: 100px;
    --shadow-light: 0 4px 10px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white-color);
}

a {
    -webkit-text-decoration: none;
    text-decoration: none;
}

/* --- Preloader --- */
body.preloader-active {
    overflow: hidden;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white-color);
    z-index: 9999;
    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1);
}

    #preloader.preloader-hidden {
        transform: translateY(-100%);
    }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* --- Board Switcher --- */
.board-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.08);
    padding: 5px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.switcher-btn {
    padding: 10px 22px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(15, 23, 42, 0.7);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 1.2px;
    border: 1px solid transparent;
}

    .switcher-btn:hover {
        color: #0f172a;
        background: rgba(255, 255, 255, 0.6);
        transform: translateY(-1px);
    }

    .switcher-btn:active {
        transform: translateY(0) scale(0.95);
    }

    .switcher-btn.active {
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
        color: #0f172a;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0,0,0,0.03);
    }

.transparent-header:not(.scrolled) .board-switcher {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.transparent-header:not(.scrolled) .switcher-btn {
    color: rgba(255, 255, 255, 0.95);
}

    .transparent-header:not(.scrolled) .switcher-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        color: #ffffff;
    }

    .transparent-header:not(.scrolled) .switcher-btn.active {
        background: #ffffff;
        color: #0f172a;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    }

@media (max-width: 768px) {
    .board-switcher {
        padding: 3px;
    }

    .switcher-btn {
        padding: 6px 14px;
        font-size: 0.65rem;
        letter-spacing: 0.8px;
    }
}

header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Default state for links and logo */
.menu-item a {
    color: #0e2246;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

    .brand-logo a {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .brand-logo img {
        filter: none;
    }

.ib-badges {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    height: 40px;
}

@media (max-width: 768px) {
    .ib-badges {
        padding-left: 1rem;
        gap: 0.8rem;
        height: 30px;
    }
}

.ib-badges img {
    height: auto;
    transition: filter 0.4s ease;
}

.menu-toggle {
    color: #0e2246;
}

/* --- Home Page Specific: Transparent Intro --- */
header.transparent-header:not(.scrolled) {
    background-color: transparent;
    box-shadow: none;
}

@media (min-width: 1024px) {
    header.transparent-header:not(.scrolled) .menu-item > a {
        color: #ffffff;
    }
}

.transparent-header:not(.scrolled) .kvgs-logo img {
    filter: brightness(0) invert(1);
}

header.transparent-header:not(.scrolled) .ib-badges {
    border-left-color: rgba(255, 255, 255, 0.2);
}

.ib-badges img {
    filter: none !important;
}

header.transparent-header:not(.scrolled) .menu-toggle {
    color: #ffffff;
}

nav {
    height: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.brand-logo img {
    height: auto;
    width: 100px;
    transition: filter 0.4s ease;
}

@media (max-width: 768px) {
    .brand-logo {
        gap: 1rem;
    }
}

/* --- Mobile Menu Container (Default) --- */
.menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6rem 0 2rem 0;
    gap: 0;
    transform: translateX(100%);
    opacity: 0.9;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease, visibility 0.4s ease;
    z-index: 101;
    overflow-y: auto;
}

    .menu.show-menu {
        transform: translateX(0%);
        opacity: 1;
        visibility: visible;
    }

.menu-item {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #eee;
}

    .menu-item:last-child {
        border-bottom: none;
    }

    .menu-item a {
        font-size: 1.2rem;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        font-family: 'Raleway', sans-serif;
        display: block;
        padding: 1rem 1.5rem;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

        .menu-item a:hover,
        .menu-item a:active {
            background-color: #f8f9fa;
            color: #0e2246;
        }

.menu-toggle {
    font-size: 2rem;
    cursor: pointer;
    color: #0e2246;
    display: block;
    transition: color 0.4s ease;
}

.menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 102;
    font-size: 2rem;
    cursor: pointer;
    color: #0e2246;
}

/* --- Area Enquiry Buttons --- */
.area-enq-btn {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .area-enq-btn.cbse {
        background: #FFD700;
        color: #07173D !important;
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }

    .area-enq-btn.ib {
        background: #FFD700;
        color: #07173D !important;
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }

.area-enq-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.enq-link {
    display: block;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #0e2246;
    border-top: 1px solid rgba(0,0,0,0.05);
}

@media (max-width: 1023px) {
    .nav-actions-desktop {
        display: none !important;
    }
    .enquiry-links-mobile {
        display: block !important;
        margin-top: 1rem;
        width: 100%;
    }
}

/* --- Dropdown Toggle Links --- */
.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.dropdown-indicator {
    font-size: 1.1em;
    vertical-align: middle;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

/* --- Desktop Dropdown (Megamenu) --- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: auto;
    min-width: 600px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    padding: 1.5rem 2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.3s ease;
}

.dropdown-content.megamenu {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
}

.dropdown-column {
    flex: 1;
}

    .dropdown-column h4 {
        font-family: 'Oswald', sans-serif;
        font-size: 1.1rem;
        color: var(--primary-color);
        margin: 0 0 1rem 0;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--accent-color);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .dropdown-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .dropdown-column li {
        margin-bottom: 0.6rem;
    }

        .dropdown-column li a {
            display: block;
            color: var(--text-light);
            text-decoration: none;
            font-size: 0.95rem;
            padding: 0.3rem 0.5rem;
            border-radius: 6px;
            transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
        }

            .dropdown-column li a:hover {
                background-color: #e0f0ff;
                color: var(--primary-color);
                transform: translateX(4px);
            }

.featured-column img {
    max-width: 100%;
    height: auto;
}

/* --- Mobile Submenu (Accordion) --- */
.mobile-submenu {
    list-style: none;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background-color: #f8f9fa;
    transition: max-height 0.4s ease-out;
    border-bottom: none;
}

.menu-item-has-dropdown.submenu-active > .mobile-submenu {
    border-top: 1px solid #eee;
}

.mobile-submenu li a {
    padding: 0.75rem 1.5rem 0.75rem 2.5rem; /* Indented */
    font-size: 1rem;
    color: #495057;
}

    .mobile-submenu li a:hover {
        background-color: #e9ecef;
        color: #000;
    }


/* =========================================
   MEDIA QUERIES FOR NAVIGATION
   ========================================= */

/* --- Mobile / Tablet (< 1024px) --- */
@media (max-width: 1023px) {
    nav {
        height: 5rem;
    }

    /* Hide Desktop Elements */
    .desktop-indicator,
    .dropdown-menu {
        display: none !important;
    }

    /* Show Mobile Elements */
    .mobile-indicator {
        display: inline-block;
        margin-left: auto;
        padding-left: 10px;
    }

    .mobile-submenu {
        display: block; /* Required for height animation */
    }

    /* Icon Toggling logic */
    .menu-item-has-dropdown.submenu-active .plus-icon {
        display: none;
    }

    .menu-item-has-dropdown:not(.submenu-active) .minus-icon {
        display: none;
    }

    .menu-item-has-dropdown.submenu-active .minus-icon {
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .brand-logo img {
        width: 70px;
    }
    .brand-logo {
        gap: 0.8rem;
    }
    .ib-badges {
        display: flex; /* Restore visibility */
        padding-left: 0.8rem;
        gap: 0.5rem;
    }

    nav {
        padding: 0 1rem;
    }
}

/* --- Desktop (>= 1024px) --- */
@media (min-width: 1024px) {
    nav {
        height: 7rem;
        padding: 0 2rem;
    }

    /* Hide Mobile Controls */
    .menu-toggle,
    .menu-close,
    .mobile-indicator,
    .mobile-submenu {
        display: none !important;
    }

    /* Desktop Menu Layout */
    .menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        padding: 0;
        gap: 2.5rem;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        overflow-y: visible;
        max-width: none;
    }

    .menu-item {
        width: auto;
        border-bottom: none;
        position: relative; /* For dropdown positioning */
    }

        .menu-item a {
            font-size: 14px;
            color: #0e2246;
            padding: 0;
            display: inline-block;
            transition: color 0.3s ease;
        }

            .menu-item a:hover,
            .menu-item a:active {
                background-color: transparent;
                color: #007bff;
            }

    /* Show Desktop Elements */
    .desktop-indicator {
        display: inline-block;
    }

    /* Desktop Hover Logic */
    .menu-item-has-dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(5px);
        pointer-events: auto;
    }

    .menu-item-has-dropdown:hover .dropdown-indicator {
        transform: rotate(180deg);
    }
}



/* =========================================
   THE HORIZON FOOTER (IB PREMIUM FINALE)
   ========================================= */
.site-footer {
    background: #020617; /* Deep Navy */
    color: #ffffff;
    padding: clamp(80px, 12vh, 120px) 0 40px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-horizon-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40%;
    background: radial-gradient(ellipse at center, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

/* IB Footer Expansion */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: clamp(2rem, 5vw, 4rem);
    position: relative;
    z-index: 2;
    margin-bottom: 80px;
}

/* Footer Branding Module */
.footer-brand-module {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-board-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-mission {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
}

.footer-social-wrap {
    display: flex;
    gap: 1rem;
}

.f-social-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

    .f-social-icon:hover {
        background: var(--accent-color);
        border-color: var(--accent-color);
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(74, 144, 226, 0.2);
    }

/* Link Columns */
.footer-column h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 12px;
}

    .footer-column h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 30px;
        height: 2px;
        background: var(--accent-color);
    }

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 1rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.55);
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        display: inline-block;
    }

        .footer-links a:hover {
            color: var(--accent-color);
            transform: translateX(5px);
        }

/* Glass Contact Module */
.footer-contact-module {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 24px;
}

    .footer-contact-module h4 {
        margin-bottom: 1.5rem;
    }

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

    .contact-item:last-child {
        margin-bottom: 0;
    }

    .contact-item i {
        font-size: 1.2rem;
        color: var(--accent-color);
    }

.contact-info label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.2rem;
}

.contact-info span {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.board-jump {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .board-jump:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .board-jump i {
        font-size: 1rem;
        color: var(--accent-color);
    }

@media (max-width: 768px) {
    .site-footer {
        padding: 4rem 1.5rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .footer-logo-wrap {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-logo, .footer-board-logo {
        height: 60px; /* Scaled down for mobile footer */
    }

    .footer-column h4::after {
        left: 0;
        transform: none;
    }

    .footer-social-wrap {
        justify-content: flex-start;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* =========================================
   ANIMATIONS
   ========================================= */
.reveal-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .reveal-fade.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* =========================================
   FACULTY SECTION STYLES
   ========================================= */
.faculty-section {
    padding: 5rem 1rem;
    background-color: var(--light-bg);
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faculty-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    height: 380px;
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease-out;
}

.faculty-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 1.5rem 1.5rem 1.5rem;
    color: #ffffff;
    background: linear-gradient(to top, rgba(14, 34, 70, 0.95) 20%, rgba(14, 34, 70, 0.8) 50%, transparent 100%);
    transform: translateY(calc(100% - 80px));
    transition: transform 0.4s ease-out;
}

.faculty-card:hover .faculty-content {
    transform: translateY(0);
}

.faculty-card:hover .faculty-image img {
    transform: scale(1.1);
}

.faculty-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    margin: 0;
}

.faculty-title {
    font-size: 0.9rem;
    color: #c9dcff;
}

.faculty-bio {
    opacity: 0;
    margin-top: 1rem;
    transition: opacity 0.3s ease-out 0.1s;
}

.faculty-card:hover .faculty-bio {
    opacity: 1;
}
