@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: transparent;
    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: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(14, 34, 70, 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: #0e2246;
    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: #0e2246;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0,0,0,0.03);
}

header.scrolled .board-switcher {
    background: rgba(0, 0, 0, 0.08);
}

header:not(.scrolled) .switcher-btn {
    color: rgba(14, 34, 70, 0.8);
}

header:not(.scrolled) .switcher-btn.active {
    background: #ffffff;
    color: #0e2246;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

    header.scrolled {
        background-color: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

nav {
    height: clamp(5rem, 10vh, 7rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(1rem, 3vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0;
}

    .brand-logo a {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        padding-right: clamp(1rem, 2vw, 2rem);
        text-decoration: none;
    }

.brand-logo img {
    height: auto;
    width: 100px;
    max-height: clamp(60px, 8vw, 80px);
}

.cbse-branding {
    display: flex;
    align-items: center;
    padding-left: clamp(1rem, 2vw, 2rem);
    border-left: 1px solid rgba(0,0,0,0.1);
    height: clamp(30px, 5vh, 40px);
}

.cbse-header-logo {
    object-fit: contain;
    max-height: clamp(40px, 6vw, 60px) !important;
}

header.scrolled .cbse-header-logo {
    border-left-color: rgba(0,0,0,0.1);
}

.transparent-header:not(.scrolled) .cbse-header-logo {
    border-left-color: rgba(255, 255, 255, 0.2);
}

/* --- 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;
}

.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;
    }
}

/* --- 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);
    }
}



/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: #0c182d; /* Deep Midnight for CBSE */
    color: #ffffff;
    padding: clamp(3rem, 10vw, 6rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 5vw, 3rem);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: clamp(3rem, 8vw, 5rem);
}

/* Brand Identity */
.brand-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: clamp(40px, 6vw, 60px);
    width: auto;
    object-fit: contain;
}

.footer-board-logo {
    height: clamp(30px, 4.5vw, 45px);
    width: auto;
    object-fit: contain;
    padding-left: clamp(1rem, 2vw, 1.5rem);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Navigation Columns */
.footer-column h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    color: #fff;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 1rem;
}

.footer-nav li a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-nav li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Contact Column */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.footer-contact li i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #fff;
}

.board-jump {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-jump:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.board-jump i {
    font-size: 1.1rem;
    color: var(--accent-color);
}

@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 4rem 1.5rem 2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-container {
        text-align: center;
    }

    .brand-column, .footer-logo-wrap, .footer-social {
        justify-content: center;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .brand-logo img { width: 70px; }
    .cbse-branding { padding-left: 1rem; }
    .footer-logo-wrap { flex-direction: column; gap: 1rem; }
    .footer-board-logo { padding-left: 0; border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1rem; }
    .switcher-btn { padding: 8px 16px; font-size: 0.7rem; }
    .board-switcher { padding: 3px; }
}

/* =========================================
   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;
}
