/* ============================================
   MODEL ENGLISH SCHOOL - Premium Stylesheet
   Version: 2.0 | Production Build
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   1. CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --primary: #1565c0;
    --primary-dark: #0d47a1;
    --primary-light: #42a5f5;
    --primary-lightest: #e3f2fd;
    --secondary: #ff6f00;
    --accent: #00bcd4;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-light: #8888aa;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9ff;
    --bg-tertiary: #eef1f8;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

/* ============================================
   2. DARK MODE OVERRIDES
   ============================================ */
body.dark-mode {
    --text-primary: #e8e8f0;
    --text-secondary: #a8a8c0;
    --text-light: #6868a0;
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-tertiary: #1a1a3e;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
}

body.dark-mode .glassmorphism,
body.dark-mode .stat-card,
body.dark-mode .value-card,
body.dark-mode .academic-card,
body.dark-mode .facility-card,
body.dark-mode .achievement-card,
body.dark-mode .testimonial-card,
body.dark-mode .timeline-card,
body.dark-mode .faq-item,
body.dark-mode .faculty-card,
body.dark-mode .contact-info-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .navbar {
    background: rgba(10, 10, 26, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .section-badge {
    background: rgba(21, 101, 192, 0.2);
    color: var(--primary-light);
}

body.dark-mode .footer {
    background: linear-gradient(170deg, #060e1a 0%, #081828 30%, #0a2030 50%, #081520 80%, #050d15 100%);
}

body.dark-mode .gallery-item {
    border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.15);
}

body.dark-mode .eligibility-table th {
    background: rgba(21, 101, 192, 0.2);
}

body.dark-mode .eligibility-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .process-step .step-number {
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 20px rgba(21, 101, 192, 0.3);
}

body.dark-mode #back-to-top {
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.4);
}

/* ============================================
   3. CSS RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

input, select, textarea {
    font-family: inherit;
    outline: none;
}

/* Selection */
::selection {
    background: var(--primary);
    color: #ffffff;
}

::-moz-selection {
    background: var(--primary);
    color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
}

/* ============================================
   4. GLASSMORPHISM UTILITY
   ============================================ */
.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
}

/* ============================================
   5. LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 40%, #1565c0 100%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loader-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: -12px;
}

/* ============================================
   6. NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Navbar Container */
.navbar-container {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Nav Logo styles */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1001;
}

.nav-logo img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.nav-logo-text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    -webkit-text-fill-color: var(--text-light);
    opacity: 0.8;
}

/* Nav Actions (CTA + hamburger) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.nav-actions .nav-cta-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
    transition: var(--transition);
}

.nav-actions .nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(21, 101, 192, 0.35);
}

/* Hamburger menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ----------------- DESKTOP LAYOUT (FLOATING PILL NAVBAR) ----------------- */
@media (min-width: 993px) {
    .navbar {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        max-width: 1200px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 100px;
        box-shadow: var(--shadow-sm);
    }

    body.dark-mode .navbar {
        background: rgba(10, 10, 26, 0.65);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .navbar.scrolled {
        top: 10px;
        width: 90%;
        background: rgba(255, 255, 255, 0.85);
        box-shadow: var(--shadow-md);
        border-color: rgba(0, 0, 0, 0.08);
    }

    body.dark-mode .navbar.scrolled {
        background: rgba(10, 10, 26, 0.8);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    }

    .navbar-container {
        height: 76px;
        padding: 0 32px;
        position: relative;
    }

    .navbar.scrolled .navbar-container {
        height: 68px;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 6px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-link {
        padding: 10px 18px;
        font-size: 0.92rem;
        font-weight: 500;
        color: var(--text-secondary);
        border-radius: 50px;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-link::after {
        display: none !important; /* disable line indicator */
    }

    .nav-link:hover {
        color: var(--primary);
        background: rgba(21, 101, 192, 0.05);
    }

    body.dark-mode .nav-link:hover {
        color: var(--primary-light);
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-link.active {
        color: var(--primary) !important;
        background: rgba(21, 101, 192, 0.1);
        font-weight: 600;
    }

    body.dark-mode .nav-link.active {
        color: var(--primary-light) !important;
        background: rgba(255, 255, 255, 0.1);
    }
}

/* ----------------- MOBILE LAYOUT (STANDARD HEADER) ----------------- */
@media (max-width: 992px) {
    .navbar {
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    body.dark-mode .navbar {
        background: rgba(10, 10, 26, 0.85);
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: var(--shadow-sm);
    }

    body.dark-mode .navbar.scrolled {
        background: rgba(10, 10, 26, 0.95);
    }

    .navbar-container {
        height: 64px;
        padding: 0 16px;
    }

    .nav-links {
        display: none !important; /* hide desktop links list */
    }

    .nav-actions .nav-cta-btn {
        display: none !important; /* hide admissions open button from top header on mobile */
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* ============================================
   6B. MOBILE NAVIGATION DRAWER
   ============================================ */
.nav-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 26, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    min-width: 280px;
    height: 100vh;
    z-index: 1003;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-top-left-radius: 32px;
    border-bottom-left-radius: 32px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    overflow-y: auto;
}

body.dark-mode .nav-drawer {
    background: rgba(10, 10, 26, 0.75);
    border-left-color: rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
}

.nav-drawer.active {
    transform: translateX(0);
}

.drawer-close-btn {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .drawer-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.drawer-close-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: rotate(90deg);
}

body.dark-mode .drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.drawer-content {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px);
    justify-content: space-between;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-link {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger transition delays when active */
.nav-drawer.active .drawer-link {
    opacity: 1;
    transform: translateX(0);
}

.nav-drawer.active .drawer-link:nth-child(1) { transition-delay: 0.08s; }
.nav-drawer.active .drawer-link:nth-child(2) { transition-delay: 0.14s; }
.nav-drawer.active .drawer-link:nth-child(3) { transition-delay: 0.2s; }
.nav-drawer.active .drawer-link:nth-child(4) { transition-delay: 0.26s; }
.nav-drawer.active .drawer-link:nth-child(5) { transition-delay: 0.32s; }
.nav-drawer.active .drawer-link:nth-child(6) { transition-delay: 0.38s; }
.nav-drawer.active .drawer-link:nth-child(7) { transition-delay: 0.44s; }
.nav-drawer.active .drawer-link:nth-child(8) { transition-delay: 0.5s; }

.drawer-link a {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-block;
    padding: 6px 0;
    transition: all 0.3s ease;
    position: relative;
}

.drawer-link a:hover {
    color: var(--primary);
    transform: translateX(6px);
}

body.dark-mode .drawer-link a:hover {
    color: var(--primary-light);
}

/* Active menu item glow effect */
.drawer-link.active a {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(21, 101, 192, 0.2);
}

body.dark-mode .drawer-link.active a {
    color: var(--primary-light);
    text-shadow: 0 0 20px rgba(66, 165, 245, 0.6);
}

/* Appearance settings section inside drawer */
.drawer-settings {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .drawer-settings {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.drawer-settings h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.theme-switch-buttons {
    display: flex;
    gap: 12px;
}

.theme-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

body.dark-mode .theme-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.theme-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

body.dark-mode .theme-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Active states for light/dark buttons */
body:not(.dark-mode) .theme-btn.light-btn.active {
    background: var(--primary-lightest);
    border-color: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.15);
}

body.dark-mode .theme-btn.dark-btn.active {
    background: rgba(21, 101, 192, 0.25);
    border-color: var(--primary-light);
    color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(66, 165, 245, 0.25);
}

/* Body Scroll Lock */
body.drawer-open {
    overflow: hidden !important;
    height: 100vh;
}

/* ============================================
   7. HERO SECTION
   ============================================ */
#home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1a237e;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 40, 0.85) 0%,
        rgba(13, 71, 161, 0.7) 50%,
        rgba(21, 101, 192, 0.5) 100%
    );
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-info-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    margin-bottom: 20px;
}

.hero-info {
    text-align: left;
    flex: 1;
    max-width: 720px;
}

.hero-info .hero-buttons {
    justify-content: flex-start;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-container h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-container h1 span {
    background: linear-gradient(135deg, #42a5f5, #80d8ff, #b3e5fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.4);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: transparent;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.hero-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    min-width: 140px;
}

.stat-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #80d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Hero Floating Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.hero-shape:nth-child(1) {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero-shape:nth-child(2) {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: 10%;
    left: -60px;
    animation: float 10s ease-in-out infinite 2s;
}

.hero-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    background: var(--secondary);
    top: 30%;
    right: 10%;
    animation: float 7s ease-in-out infinite 1s;
}

.hero-shape:nth-child(4) {
    width: 80px;
    height: 80px;
    background: #ffffff;
    bottom: 25%;
    right: 25%;
    animation: float 6s ease-in-out infinite 3s;
}

.hero-shape:nth-child(5) {
    width: 120px;
    height: 120px;
    background: var(--primary);
    top: 20%;
    left: 10%;
    animation: float 9s ease-in-out infinite 1.5s;
}

/* ============================================
   8. SECTION STYLES (Common)
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 20px;
    background: var(--primary-lightest);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    margin: 0 auto 20px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   9. ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
    transition: var(--transition);
}

.about-image:hover img {
    transform: rotate(0deg);
    box-shadow: var(--shadow-xl);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-light);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
    transition: var(--transition);
}

.about-image:hover::after {
    top: 10px;
    left: 10px;
    opacity: 0.5;
}

.about-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.02rem;
    line-height: 1.8;
}

.about-text .highlight {
    color: var(--primary);
    font-weight: 600;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.value-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.value-card .icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--primary-lightest);
    border-radius: var(--radius-md);
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.value-card:hover .icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

.value-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Principal Section */
.principal-section {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 48px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 80px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.principal-image {
    flex-shrink: 0;
}

.principal-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-lightest);
    box-shadow: var(--shadow-md);
}

.principal-message h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.principal-message .designation {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.principal-message p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
}

.principal-message .quote-icon {
    font-size: 2rem;
    color: var(--primary-lightest);
    margin-bottom: 8px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-light), var(--primary), var(--primary-dark));
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 32px);
    padding-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 32px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    z-index: 1;
}

.timeline-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.timeline-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-right: none;
    border-bottom: none;
    transform: rotate(-45deg);
}

.timeline-item:nth-child(odd) .timeline-card::before {
    right: -7px;
    transform: rotate(135deg);
}

.timeline-item:nth-child(even) .timeline-card::before {
    left: -7px;
    transform: rotate(-45deg);
}

.timeline-card .year {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-lightest);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 10px;
}

.timeline-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.timeline-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   10. ACADEMICS SECTION
   ============================================ */
/* Carousel Wrapper and Fade Gradients */
.academics-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
    padding: 20px 0; /* clearance for hover scaling */
}

.academics-carousel-fade-left,
.academics-carousel-fade-right {
    display: none;
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.academics-carousel-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary) 0%, transparent 100%);
}

.academics-carousel-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary) 0%, transparent 100%);
}

.academics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.academic-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 36px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .academic-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.academic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 4px 4px 0 0;
}

/* Theme border top gradients (stable for marquee cloning) */
.academic-card.prog-0::before, .academic-card.prog-1::before {
    background: linear-gradient(90deg, #2e7d32, #4caf50); /* Green for Pre-Primary & Primary */
}
.academic-card.prog-2::before {
    background: linear-gradient(90deg, #1565c0, #42a5f5); /* Blue for Middle */
}
.academic-card.prog-3::before {
    background: linear-gradient(90deg, #e65100, #ff9800); /* Orange for Secondary */
}
.academic-card.prog-4::before {
    background: linear-gradient(90deg, #6a1b9a, #9c27b0); /* Purple for Higher Secondary */
}

.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Desktop Only Styles (min-width: 769px) */
@media (min-width: 769px) {
    .academics-carousel-fade-left,
    .academics-carousel-fade-right {
        display: block;
    }

    .academics-grid {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        width: max-content;
        gap: 0; /* Handled via margins to make translate3d scroll math exact */
        margin-bottom: 0;
        animation: academics-marquee 28s linear infinite;
        will-change: transform;
        transform: translate3d(0, 0, 0);
    }

    .academics-carousel-wrapper:hover .academics-grid {
        animation-play-state: paused;
    }

    .academic-card {
        flex: 0 0 350px;
        width: 350px;
        margin: 10px 15px; /* Creates exact 30px gap between adjacent card margins */
        height: 480px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .academic-card:hover {
        transform: scale(1.03) !important;
        box-shadow: 0 15px 35px rgba(21, 101, 192, 0.15), 0 0 15px rgba(21, 101, 192, 0.1) !important;
        border-color: rgba(21, 101, 192, 0.3) !important;
    }
}

@keyframes academics-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.academic-card .card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lightest);
    border-radius: var(--radius-md);
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.academic-card:hover .card-icon {
    transform: scale(1.1);
}

.academic-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.academic-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.academic-card ul {
    list-style: none;
}

.academic-card ul li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.academic-card ul li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
}

/* Streams Container */
.streams-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stream-card {
    padding: 36px 28px;
    border-radius: var(--radius-md);
    color: #ffffff;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.stream-card:nth-child(1) { background: linear-gradient(135deg, #1565c0, #0d47a1); }
.stream-card:nth-child(2) { background: linear-gradient(135deg, #ff6f00, #e65100); }
.stream-card:nth-child(3) { background: linear-gradient(135deg, #00897b, #004d40); }

.stream-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    transition: var(--transition);
}

.stream-card:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
}

.stream-card .stream-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.stream-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.stream-card p {
    font-size: 0.92rem;
    opacity: 0.9;
    line-height: 1.6;
}

.stream-card ul {
    text-align: left;
    margin-top: 12px;
}

.stream-card ul li {
    padding: 4px 0;
    font-size: 0.88rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   11. FACILITIES SECTION
   ============================================ */
/* Facilities Carousel Styles */
:root {
    --facility-card-width: 320px;
}

@media (max-width: 768px) {
    :root {
        --facility-card-width: 88vw !important;
    }
    .facilities-carousel-container {
        margin-left: -16px !important;
        margin-right: -16px !important;
        width: calc(100% + 32px) !important;
        overflow: hidden;
    }
    .facilities-carousel-container::before,
    .facilities-carousel-container::after {
        width: 30px !important;
    }
    .facilities-carousel-group {
        gap: 16px !important;
        padding-right: 16px !important;
    }
}

.facilities-carousel-container {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 24px 0;
}

/* Gradient fade effects on left and right edges */
.facilities-carousel-container::before,
.facilities-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    transition: var(--transition);
}
.facilities-carousel-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}
.facilities-carousel-container::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-primary) 0%, transparent 100%);
}

.facilities-carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 24px 0;
    margin: -24px 0;
}

.facilities-carousel-swipe-wrapper {
    width: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.facilities-carousel-swipe-wrapper.dragging {
    transition: none;
    cursor: grabbing;
}

.facilities-carousel-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 32s linear infinite;
    will-change: transform;
}

/* Pause marquee on hover */
.facilities-carousel-track:hover {
    animation-play-state: paused;
}

/* Expose marquee pause for dragging too */
.facilities-carousel-track.paused {
    animation-play-state: paused;
}

.facilities-carousel-group {
    display: flex;
    gap: 24px;
    padding-right: 24px;
}

.facility-card {
    width: var(--facility-card-width);
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(21, 101, 192, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    position: relative;
}

.facility-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
}

.facility-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    -webkit-user-drag: none;
    user-select: none;
}

.facility-card:hover .facility-image-wrapper img {
    transform: scale(1.08);
}

.facility-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    flex-grow: 1;
}

.facility-card .facility-icon {
    position: absolute;
    top: -28px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
    border: 4px solid var(--bg-secondary);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                background 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
}

.facility-card:hover .facility-icon {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 8px 25px rgba(21, 101, 192, 0.5);
}

.facility-card h3,
.facility-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0 0 0;
    transition: var(--transition);
}

.facility-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Hover glow & scale */
.facility-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 30px rgba(21, 101, 192, 0.15), 0 0 20px rgba(66, 165, 245, 0.2);
    border-color: var(--primary-light);
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(var(--scroll-dist, -50%), 0, 0);
    }
}

/* ============================================
   12. ACHIEVEMENTS SECTION
   ============================================ */
.achievement-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.achievement-stat-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 32px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.achievement-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.achievement-stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.achievement-stat-card .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.achievement-stat-card .label {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    margin-top: 4px;
}

.achievement-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.achievement-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 32px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.achievement-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievement-card ul {
    list-style: none;
}

.achievement-card ul li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.achievement-card ul li:last-child {
    border-bottom: none;
}

.achievement-card ul li::before {
    content: '✓';
    color: #4caf50;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   13. GALLERY SECTION (REDESIGNED)
   ============================================ */
#gallery {
    background: radial-gradient(circle at 30% 20%, rgba(21, 101, 192, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(0, 188, 212, 0.08) 0%, transparent 40%),
                linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

body.dark-mode #gallery {
    background: radial-gradient(circle at 30% 20%, rgba(21, 101, 192, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(0, 188, 212, 0.12) 0%, transparent 40%),
                linear-gradient(135deg, #090e1a 0%, #060812 100%);
}

.gallery-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gallery-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
}

body.dark-mode .gallery-glow {
    background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
}

.gallery-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 188, 212, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 188, 212, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

body.dark-mode .gallery-grid-pattern {
    background-image: linear-gradient(rgba(0, 188, 212, 0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 188, 212, 0.04) 1px, transparent 1px);
}

/* Floating Shapes Animations */
.floating-shape {
    position: absolute;
    color: rgba(21, 101, 192, 0.08);
    font-size: 1.8rem;
    animation: floatAnimation 8s ease-in-out infinite alternate;
}

body.dark-mode .floating-shape {
    color: rgba(0, 188, 212, 0.12);
}

.float-book {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.float-pencil {
    top: 45%;
    right: 6%;
    font-size: 1.5rem;
    animation-delay: 1.5s;
    transform: rotate(45deg);
}

.float-cap {
    bottom: 20%;
    left: 10%;
    font-size: 2rem;
    animation-delay: 3s;
}

.float-ruler {
    top: 75%;
    right: 12%;
    animation-delay: 4.5s;
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Gallery Track Layout */
.gallery-track-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.gallery-column-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(21, 101, 192, 0.1);
}

body.dark-mode .gallery-column-title {
    border-bottom-color: rgba(0, 188, 212, 0.15);
}

.gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-slider::before,
.gallery-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.gallery-slider::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}

.gallery-slider::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-primary) 0%, transparent 100%);
}

body.dark-mode .gallery-slider::before {
    background: linear-gradient(90deg, #090e1a 0%, transparent 100%);
}

body.dark-mode .gallery-slider::after {
    background: linear-gradient(-90deg, #090e1a 0%, transparent 100%);
}

.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    cursor: grab;
}

.gallery-track:active {
    cursor: grabbing;
}

/* Gallery Item Styling */
.gallery-track .gallery-item {
    flex-shrink: 0;
    width: 260px;
    height: 195px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm), inset 0 0 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
}

body.dark-mode .gallery-track .gallery-item {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-track .gallery-item:hover {
    transform: scale(1.04);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.25);
    z-index: 10;
}

.gallery-track .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    border-radius: 14px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-track .gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-track .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(10, 10, 40, 0.8) 0%, rgba(10, 10, 40, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-track .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-track .gallery-overlay h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.gallery-track .gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.gallery-track .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-track .gallery-item:hover .zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive Gallery Styles */
@media (max-width: 768px) {
    .gallery-track-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-track .gallery-item {
        width: 220px;
        height: 165px;
        border-radius: 16px;
    }

    .gallery-slider {
        padding: 5px 0;
    }

    .gallery-slider::before,
    .gallery-slider::after {
        width: 30px;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-align: center;
    max-width: 600px;
}

/* ============================================
   14. ADMISSIONS SECTION
   ============================================ */
.admission-process {
    max-width: 700px;
    margin: 0 auto 60px;
    position: relative;
}

.admission-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-light), var(--primary), var(--primary-dark));
    border-radius: 3px;
}

.process-step {
    display: flex;
    gap: 24px;
    padding-bottom: 36px;
    position: relative;
}

.process-step:last-child {
    padding-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 20px rgba(21, 101, 192, 0.2);
    position: relative;
    z-index: 1;
}

.step-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    padding-top: 4px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 60px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.document-item:hover {
    border-color: var(--primary-light);
    background: var(--primary-lightest);
    color: var(--primary);
}

.document-item .doc-icon {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Eligibility Table */
.eligibility-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
}

.eligibility-table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.92rem;
    text-align: left;
    letter-spacing: 0.5px;
}

.eligibility-table td {
    padding: 14px 20px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.eligibility-table tr:nth-child(even) {
    background: var(--bg-secondary);
}

.eligibility-table tr:hover td {
    background: var(--primary-lightest);
}

/* Admission Form */
.admission-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.admission-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.form-group label .required {
    color: #ef5350;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a4a6a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.submit-btn {
    width: 100%;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.5);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* ============================================
   15. FACULTY SECTION
   ============================================ */
.faculty-carousel-container {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 24px 0;
}

/* Side Gradients */
.faculty-carousel-container::before,
.faculty-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    transition: var(--transition);
}
.faculty-carousel-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}
.faculty-carousel-container::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-primary) 0%, transparent 100%);
}

.faculty-carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 24px 0;
    margin: -24px 0;
}

.faculty-carousel-swipe-wrapper {
    width: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.faculty-carousel-swipe-wrapper.dragging {
    transition: none;
    cursor: grabbing;
}

.faculty-carousel-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll-faculty 28s linear infinite;
    will-change: transform;
    align-items: stretch;
}

/* Pause marquee on hover */
.faculty-carousel-track:hover {
    animation-play-state: paused;
}

.faculty-carousel-track.paused {
    animation-play-state: paused;
}

.faculty-carousel-group {
    display: flex;
    gap: 24px;
    padding-right: 24px;
    align-items: stretch;
}

/* Faculty Card Styles */
.faculty-card {
    width: 290px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(21, 101, 192, 0.08);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.faculty-card:hover::before {
    opacity: 1;
}

.faculty-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 30px rgba(21, 101, 192, 0.15), 0 0 20px rgba(66, 165, 245, 0.2);
    border-color: var(--primary-light);
}

.faculty-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin-bottom: 20px;
    overflow: hidden;
    border: 4px solid var(--primary-lightest);
    transition: transform 0.5s ease, border-color 0.5s ease;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.faculty-card:hover .faculty-avatar {
    border-color: var(--primary-light);
    transform: scale(1.06);
}

.faculty-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
}

.faculty-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-lightest), #dceefb);
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.faculty-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.faculty-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.faculty-info .designation {
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0;
}

.faculty-info .qualification {
    color: var(--text-light);
    font-size: 0.82rem;
    font-style: italic;
    margin: 0;
}

.faculty-info .faculty-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 8px 0 0 0;
}

.faculty-card .faculty-subjects {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.faculty-card .subject-tag {
    padding: 4px 12px;
    background: var(--primary-lightest);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Nav Buttons */
.faculty-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid rgba(21, 101, 192, 0.1);
    color: var(--primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 15;
    transition: var(--transition);
    opacity: 0;
}

.faculty-carousel-container:hover .faculty-nav-btn {
    opacity: 1;
}

.faculty-nav-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.faculty-nav-btn.prev-btn {
    left: -24px;
}

.faculty-nav-btn.next-btn {
    right: -24px;
}

/* Mobile Dots styling */
.faculty-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.faculty-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    opacity: 0.4;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.faculty-dots .dot.active {
    width: 24px;
    border-radius: 5px;
    background: var(--primary);
    opacity: 1;
}

/* Keyframes */
@keyframes marquee-scroll-faculty {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .faculty-nav-btn.prev-btn { left: -12px; }
    .faculty-nav-btn.next-btn { right: -12px; }
}

@media (max-width: 768px) {
    .faculty-nav-btn {
        display: none !important;
    }

    .faculty-carousel-container {
        position: relative;
        margin-left: -16px !important;
        margin-right: -16px !important;
        width: calc(100% + 32px) !important;
        overflow: hidden;
    }

    .faculty-carousel-container::before,
    .faculty-carousel-container::after {
        width: 30px !important; /* Thinner side gradients on mobile to allow previews to show */
    }

    .faculty-dots {
        display: flex;
    }

    .faculty-carousel-track {
        animation: none !important; /* Disable marquee */
    }

    .faculty-carousel-group {
        gap: 16px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .faculty-card {
        width: 88vw !important;
        flex: 0 0 88vw !important;
        max-width: 420px !important;
        min-width: 280px !important;
        box-sizing: border-box !important;
    }
}



/* ============================================
   17. TESTIMONIALS SECTION
   ============================================ */
.testimonials-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    flex: 0 0 380px;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 32px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: var(--primary-lightest);
    margin-bottom: 12px;
    line-height: 1;
}

body.dark-mode .testimonial-card .quote-icon {
    color: rgba(66, 165, 245, 0.15);
}

.testimonial-card .testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-card .stars {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-lightest);
}

.testimonial-author .author-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-lightest), #dceefb);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.testimonial-author p {
    color: var(--text-light);
    font-size: 0.82rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.testimonial-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-nav button:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 10px;
}

/* ============================================
   18. FAQ SECTION
   ============================================ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--bg-primary);
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(21, 101, 192, 0.15);
}

.faq-item.active {
    border-color: rgba(21, 101, 192, 0.2);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    gap: 16px;
    user-select: none;
}

.faq-question h4 {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-item.active .faq-question h4 {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    background: var(--primary);
    color: #ffffff;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   19. CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-info-card .info-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lightest);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
}

.contact-info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-info-card a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

.contact-map {
    margin-top: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-map iframe {
    width: 100%;
    height: 250px;
    border: none;
    display: block;
}

.contact-form {
    padding: 36px;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* ============================================
   20. FOOTER
   ============================================ */
.footer {
    background: linear-gradient(170deg, #0a1628 0%, #0b2234 30%, #0c2a3c 50%, #0a1f2e 80%, #081520 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-about .footer-logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.footer-about .footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item .icon {
    color: var(--primary-light);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Newsletter */
.newsletter-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.88rem;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.12);
}

.newsletter-form button {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-social a.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff;
}

.footer-social a.instagram:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    color: #ffffff;
}

.footer-social a.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: #ffffff;
}

.footer-social a.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: #ffffff;
}

.footer-social a.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #ffffff;
}

.footer-social a.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff;
}

/* ============================================
   21. UTILITY ELEMENTS
   ============================================ */

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.3);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.5);
}

/* WhatsApp Button */
#whatsapp-btn {
    position: fixed;
    bottom: 92px;
    right: 32px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    text-decoration: none;
    animation: pulse 2s ease-in-out infinite;
}

#whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    animation: none;
}

#whatsapp-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0;
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   22. KEYFRAME ANIMATIONS
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200%; }
    100% { background-position: 200%; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ============================================
   23. 3D EFFECTS
   ============================================ */
.card-3d {
    perspective: 1000px;
}

.card-3d-inner {
    transition: transform 0.4s ease;
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateX(2deg) rotateY(2deg);
}

.btn-3d {
    position: relative;
    transition: var(--transition);
}

.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-3d:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   24. GRADIENT TEXT UTILITY
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   25. CTA SECTION (bonus)
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #1565c0 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(66, 165, 245, 0.1);
    animation: float 12s ease-in-out infinite;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   26. NOTIFICATION / TOAST (bonus utility)
   ============================================ */
.toast {
    position: fixed;
    top: 90px;
    right: 24px;
    padding: 16px 24px;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left: 4px solid #4caf50; }
.toast.error { border-left: 4px solid #ef5350; }
.toast.info { border-left: 4px solid var(--primary); }

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

/* ============================================
   27. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large Desktop / Laptops */
@media (max-width: 1200px) {
    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .achievement-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievement-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faculty-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .about-grid {
        gap: 40px;
    }

    .principal-section {
        flex-direction: column;
        text-align: center;
        padding: 36px;
    }

    .contact-grid {
        gap: 32px;
    }

    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .academics-grid {
        grid-template-columns: 1fr;
    }

    .streams-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        width: 100%;
        max-width: 500px;
        margin: 32px auto 0;
        padding: 0 16px;
    }

    .stat-item {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: 18px 16px;
        border-radius: 18px; /* rounded corners 16px-20px */
        text-align: center;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease;
        min-width: 0; /* reset min-width */
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 10px rgba(255, 255, 255, 0.03); /* subtle glow */
    }

    body.dark-mode .stat-item {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 15px rgba(66, 165, 245, 0.04);
    }

    .stat-item:hover,
    .stat-item:active {
        transform: translateY(-4px) scale(1.02);
        background: rgba(255, 255, 255, 0.12);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 20px rgba(66, 165, 245, 0.12);
    }

    body.dark-mode .stat-item:hover,
    body.dark-mode .stat-item:active {
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(66, 165, 245, 0.2);
    }

    .stat-num-box {
        justify-content: center;
        gap: 1px;
    }

    .stat-number {
        font-size: 1.8rem;
        font-weight: 800;
        margin-bottom: 2px;
    }

    .stat-item .stat-suffix {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.9);
    }

    .testimonial-card {
        flex: 0 0 320px;
    }
}

/* Mobile Landscape / Small Tablets */
@media (max-width: 768px) {
    /* Mobile Navigation */
    /* Mobile Navigation is handled by max-width: 992px drawer rules */

    /* Hero */
    .hero-container h1 {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .hero-tagline {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* hero-stats layout is inherited from the 992px 2x2 grid query */

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image img {
        transform: rotate(0);
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 56px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }

    .timeline-item:nth-child(odd) .timeline-card::before,
    .timeline-item:nth-child(even) .timeline-card::before {
        left: -7px;
        transform: rotate(-45deg);
    }

    /* Grids */
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievement-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievement-categories {
        grid-template-columns: 1fr;
    }

    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .streams-container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .testimonial-card {
        flex: 0 0 280px;
    }

    /* Lightbox */
    .lightbox img {
        max-width: 95%;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    /* Fixed buttons */
    #back-to-top {
        bottom: 24px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    #whatsapp-btn {
        bottom: 80px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    /* ── Mobile: hide Quick Links and Academics footer columns ── */
    #footer-quick-links,
    #footer-academics {
        display: none !important;
    }

    /* ── Mobile: hide entire Get In Touch / Contact section ── */
    #contact {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .navbar-container {
        padding: 0 16px;
        height: 64px;
    }

    .nav-logo-text {
        font-size: 1.1rem;
    }

    .hero-container {
        padding: 0 16px;
    }

    .hero-container h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 6px 18px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 28px;
        font-size: 0.92rem;
        max-width: 100%;
    }

    .section {
        padding: 48px 0;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .achievement-stats {
        grid-template-columns: 1fr;
    }

    .faculty-grid {
        grid-template-columns: 1fr;
    }


    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .gallery-filters {
        gap: 6px;
    }

    .gallery-filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .admission-form {
        padding: 24px;
    }

    .contact-form {
        padding: 24px;
    }

    .principal-section {
        padding: 24px;
    }

    .principal-image img {
        width: 140px;
        height: 140px;
    }

    .footer {
        padding: 60px 0 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .eligibility-table {
        font-size: 0.82rem;
    }

    .eligibility-table th,
    .eligibility-table td {
        padding: 10px 12px;
    }

    .testimonial-card {
        flex: 0 0 260px;
        padding: 24px 20px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* ============================================
   28. PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .loading-screen,
    #back-to-top,
    #whatsapp-btn,
    .hero-shapes,
    .footer-social,
    .dark-mode-toggle,
    .mobile-menu-btn,
    .gallery-filters,
    .testimonial-nav,
    .lightbox {
        display: none !important;
    }

    body {
        color: #000000;
        background: #ffffff;
    }

    .section {
        padding: 30px 0;
        break-inside: avoid;
    }

    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* ============================================
   29. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   30. MISCELLANEOUS
   ============================================ */

/* Shimmer loading placeholder */
.shimmer {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary { background: var(--primary-lightest); color: var(--primary); }
.badge-success { background: rgba(76, 175, 80, 0.1); color: #4caf50; }
.badge-warning { background: rgba(255, 111, 0, 0.1); color: #ff6f00; }
.badge-danger { background: rgba(239, 83, 80, 0.1); color: #ef5350; }

/* Divider */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
    margin: 40px 0;
}

body.dark-mode .divider {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary-color { color: var(--primary); }
.text-secondary-color { color: var(--text-secondary); }
.text-light-color { color: var(--text-light); }

.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-primary); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* Spacing utilities */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.08);
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.bg-gradient-hero {
    background: linear-gradient(135deg, #1a237e, #0d47a1, #1565c0);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Skip to content link (accessibility) */
.skip-link {
    position: fixed;
    top: -100%;
    left: 16px;
    padding: 12px 24px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    z-index: 10001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 16px;
}

/* ============================================
   ADDITIONAL STYLES — HTML/JS Integration
   ============================================ */

/* Nav CTA Button */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(21, 101, 192, 0.3);
    white-space: nowrap;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
}

/* Nav Logo with icon */
.nav-logo i {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    animation: fadeInUp 0.8s ease 1.2s both;
}

.hero-scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
}

.hero-scroll-indicator a:hover {
    color: #ffffff;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* Download Brochure / Outline button in hero */
.btn-outline, .btn.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: transparent;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
}

/* About Image Badge */
.about-image-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.4);
    z-index: 2;
}

.about-image-badge .badge-number {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1;
}

.about-image-badge .badge-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Image Wrapper (parent for badge positioning) */
.about-image-wrapper {
    position: relative;
}

/* Button Size Variants */
.btn-sm {
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Floating Shapes (hero) */
.hero-floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.floating-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.floating-shape.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: 10%;
    left: -60px;
    animation: float 10s ease-in-out infinite 2s;
}

.floating-shape.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--secondary);
    top: 30%;
    right: 10%;
    animation: float 7s ease-in-out infinite 1s;
}

.floating-shape.shape-4 {
    width: 80px;
    height: 80px;
    background: #ffffff;
    bottom: 25%;
    right: 25%;
    animation: float 6s ease-in-out infinite 3s;
}

.floating-shape.shape-5 {
    width: 120px;
    height: 120px;
    background: var(--primary);
    top: 20%;
    left: 10%;
    animation: float 9s ease-in-out infinite 1.5s;
}

/* Stat Item (hero dynamically rendered) */
.stat-num-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    min-width: 140px;
}

.stat-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.stat-item .stat-suffix {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #80d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Academic Classes Badge */
.academic-classes {
    display: inline-block;
    padding: 4px 16px;
    background: var(--primary-lightest);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin: 8px 0;
}

body.dark-mode .academic-classes {
    background: rgba(21, 101, 192, 0.2);
    color: var(--primary-light);
}

/* Stream Subjects */
.stream-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.subject-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Event Card Enhancements */
.event-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-tertiary);
}

body.dark-mode .event-icon {
    background: rgba(255, 255, 255, 0.06);
}

.event-type-badge {
    display: inline-block;
    padding: 3px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    background: var(--primary-lightest);
    color: var(--primary);
}

.event-type-badge.announcement {
    background: rgba(255, 111, 0, 0.1);
    color: var(--secondary);
}

.event-type-badge.past {
    background: var(--bg-tertiary);
    color: var(--text-light);
}

.event-date-text {
    font-size: 0.82rem;
    color: var(--text-light);
}

.event-date-text i {
    margin-right: 4px;
}

/* Loading Screen Content Wrapper */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-school-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 6px;
}

.loader-tagline {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    margin-top: -12px;
}

/* Lightbox Overlay (created dynamically by JS) */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay .lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-overlay .lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-overlay .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-overlay .lightbox-prev,
.lightbox-overlay .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-overlay .lightbox-prev { left: 20px; }
.lightbox-overlay .lightbox-next { right: 20px; }

.lightbox-overlay .lightbox-prev:hover,
.lightbox-overlay .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-overlay .lightbox-caption {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 16px;
    font-size: 0.95rem;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast-success { border-left: 4px solid #4caf50; }
.toast-error { border-left: 4px solid #ef5350; }
.toast-info { border-left: 4px solid var(--primary); }

/* WhatsApp Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#whatsapp-btn:hover .whatsapp-tooltip,
.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
}

/* WhatsApp Button (anchor tag version in HTML) */
.whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* Footer Wave SVG */
.footer-wave {
    color: #0a1628;
    margin-bottom: -4px;
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 60px;
}

body.dark-mode .footer-wave {
    color: #060e1a;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
}

/* Newsletter Form */
.footer-newsletter h5 {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px 0 0 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.85rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    padding: 10px 16px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-light);
}

/* Testimonial dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dots .dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Principal Name Card */
.principal-name-card {
    text-align: center;
    margin-top: 16px;
}

.principal-name-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.principal-name-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Principal Signature */
.principal-signature {
    margin-top: 20px;
    font-style: italic;
    color: var(--primary);
    font-weight: 600;
}

/* Quote Icon */
.quote-icon {
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.3;
    margin-bottom: 12px;
}

/* About Features */
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
}

.about-feature i {
    color: var(--primary);
    font-size: 1rem;
}

/* About Heading */
.about-heading {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.about-heading span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subsection Title */
.subsection-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin: 60px 0 40px;
}

.subsection-title span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Card */
.form-card {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

body.dark-mode .form-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.form-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-card h3 i {
    margin-right: 10px;
    color: var(--primary);
}

/* Info Card */
.info-card {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

body.dark-mode .info-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.info-card h3 i {
    margin-right: 10px;
    color: var(--primary);
}

/* Revealed State (JS scroll reveal) */
.reveal.revealed,
.reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* VM (Vision/Mission) Grid */
.vm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.vm-card {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

body.dark-mode .vm-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.vm-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.vm-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-lightest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 20px;
}

body.dark-mode .vm-icon {
    background: rgba(21, 101, 192, 0.15);
}

.vm-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Current Year */
#current-year {
    font-weight: 600;
}

/* Table Wrapper */
.table-wrapper {
    overflow-x: auto;
}

/* Responsive additions */
@media (max-width: 768px) {
    .nav-cta-btn {
        display: none;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .btn-outline {
        display: none;
    }

    .lightbox-overlay .lightbox-prev,
    .lightbox-overlay .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ============================================
   ACADEMICS ACCORDION (MOBILE-ONLY)
   ============================================ */
.academics-accordion {
    display: none;
}

@media (max-width: 768px) {
    .academics-carousel-wrapper {
        display: none !important;
    }

    .academics-grid {
        display: none !important;
    }

    .academics-accordion {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        margin-top: 20px;
    }

    .academic-accordion-item {
        background: var(--bg-secondary);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        overflow: hidden;
        transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        box-shadow: var(--shadow-sm);
        will-change: transform, border-color, box-shadow;
    }

    /* Active accordion glowing border and shadow */
    .academic-accordion-item.active {
        box-shadow: 0 8px 30px rgba(var(--accordion-glow-rgb), 0.15), 0 0 15px rgba(var(--accordion-glow-rgb), 0.1);
        transform: translateY(-2px);
        border-color: var(--accordion-color) !important;
    }

    .academic-accordion-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        cursor: pointer;
        user-select: none;
        transition: background 0.3s ease;
        background: rgba(255, 255, 255, 0.01);
    }

    .academic-accordion-header:hover {
        background: rgba(255, 255, 255, 0.03);
    }

    .academic-accordion-title-area {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .academic-accordion-icon {
        width: 44px;
        height: 44px;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        background: rgba(255, 255, 255, 0.03);
        color: var(--accordion-color);
        transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    }

    .academic-accordion-item.active .academic-accordion-icon {
        transform: scale(1.1) rotate(5deg);
        background: var(--accordion-color);
        color: #ffffff;
    }

    .academic-accordion-title-area h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0;
        transition: color 0.3s ease;
    }

    .academic-accordion-item.active .academic-accordion-title-area h3 {
        color: var(--accordion-color);
    }

    .academic-accordion-toggle {
        font-size: 1rem;
        color: var(--text-secondary);
        transition: transform 0.3s ease, color 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
    }

    .academic-accordion-item.active .academic-accordion-toggle {
        color: var(--accordion-color);
    }

    .academic-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 300ms cubic-bezier(0.25, 1, 0.5, 1);
        will-change: max-height;
    }

    .academic-accordion-body {
        padding: 0 24px 24px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.03);
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .academic-accordion-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
    }

    .academic-accordion-classes {
        font-family: var(--font-heading);
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        padding: 4px 12px;
        background: var(--accordion-light-bg);
        color: var(--accordion-color);
        border-radius: 50px;
        letter-spacing: 0.5px;
    }

    .academic-accordion-desc {
        font-size: 0.92rem;
        line-height: 1.6;
        color: var(--text-secondary);
        margin: 0;
    }

    .academic-accordion-section-title {
        font-size: 0.88rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-primary);
        margin: 8px 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .academic-accordion-section-title i {
        color: var(--accordion-color);
        font-size: 0.85rem;
    }

    .academic-accordion-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .academic-accordion-list li {
        font-size: 0.88rem;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .academic-accordion-list li::before {
        content: '✓';
        color: var(--accordion-color);
        font-weight: 700;
        font-size: 0.85rem;
    }

    .academic-accordion-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .academic-accordion-tag {
        font-size: 0.82rem;
        padding: 4px 12px;
        background: var(--bg-tertiary);
        border: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--text-secondary);
        border-radius: var(--radius-sm);
        transition: var(--transition);
    }

    .academic-accordion-tag:hover {
        border-color: var(--accordion-color);
        color: var(--text-primary);
    }
}

/* ============================================================
   ACADEMICS STREAMS MOBILE CAROUSEL
   ============================================================ */

/* Hide dots on desktop and tablet */
.streams-dots {
    display: none;
}

@media (min-width: 769px) {
    /* Hide duplicate stream cards on desktop and tablet */
    .stream-card[data-index="3"],
    .stream-card[data-index="4"],
    .stream-card[data-index="5"] {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .streams-carousel-container {
        position: relative;
        margin-left: -16px !important;
        margin-right: -16px !important;
        width: calc(100% + 32px) !important;
        overflow: hidden;
    }

    /* Left and right edges fade gradient */
    .streams-carousel-container::before,
    .streams-carousel-container::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 30px;
        z-index: 10;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    .streams-carousel-container::before {
        left: 0;
        background: linear-gradient(to right, var(--bg-primary), transparent);
    }
    .streams-carousel-container::after {
        right: 0;
        background: linear-gradient(to left, var(--bg-primary), transparent);
    }

    .streams-carousel-track-wrapper {
        overflow: hidden;
        width: 100%;
        padding: 20px 0;
    }

    .streams-carousel-swipe-wrapper {
        display: flex;
        will-change: transform;
        cursor: grab;
        touch-action: pan-y;
    }

    .streams-carousel-swipe-wrapper.dragging {
        cursor: grabbing;
    }

    .streams-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 16px !important;
        width: max-content !important;
        padding: 0 !important;
        margin: 0 !important;
        align-items: stretch !important;
    }

    .stream-card {
        flex: 0 0 88vw !important;
        width: 88vw !important;
        max-width: 420px !important;
        min-width: 280px !important;
        box-sizing: border-box !important;
        height: auto !important;
        margin: 0 !important;
        padding: 30px 20px !important;
        border-radius: var(--radius-md) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
        opacity: 1 !important;
        transform: none !important;
        
        /* Glassmorphism styling */
        background: linear-gradient(135deg, rgba(var(--stream-color-rgb), 0.12), rgba(var(--stream-color-rgb), 0.04)) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(var(--stream-color-rgb), 0.25) !important;
        box-shadow: 0 8px 32px 0 rgba(var(--stream-color-rgb), 0.1),
                    0 0 0 1px rgba(var(--stream-color-rgb), 0.05) inset !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    }

    .stream-card:hover {
        transform: translateY(-5px) scale(1.02) !important;
        box-shadow: 0 12px 40px 0 rgba(var(--stream-color-rgb), 0.25),
                    0 0 15px rgba(var(--stream-color-rgb), 0.4) !important;
        border-color: rgba(var(--stream-color-rgb), 0.5) !important;
    }

    .stream-card .stream-icon {
        color: rgba(var(--stream-color-rgb), 1) !important;
        font-size: 2.2rem !important;
        margin-bottom: 12px !important;
    }

    .stream-card h4 {
        margin-bottom: 8px !important;
        font-size: 1.2rem !important;
    }

    .stream-card .stream-subjects {
        margin-top: 10px !important;
        justify-content: center !important;
    }

    .stream-card .subject-tag {
        background: rgba(var(--stream-color-rgb), 0.15) !important;
        border: 1px solid rgba(var(--stream-color-rgb), 0.3) !important;
        color: #ffffff !important;
    }

    /* Mobile Pagination Dots */
    .streams-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }

    .streams-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .streams-dots .dot.active {
        background: var(--primary-light);
        width: 24px;
        border-radius: 5px;
        box-shadow: 0 0 8px var(--primary-light);
    }
}

/* ============================================
   31. BOARD TOPPERS HALL OF FAME
   ============================================ */

/* Tab Switcher */
.topper-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.topper-tabs {
    display: flex;
    position: relative;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 6px;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

body.dark-mode .topper-tabs {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.topper-tab-btn {
    padding: 12px 36px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 40px;
    transition: color 0.3s ease;
    z-index: 3;
    position: relative;
}

.topper-tab-btn:hover {
    color: var(--text-primary);
}

.topper-tab-btn.active {
    color: #ffffff;
}

body.dark-mode .topper-tab-btn.active {
    color: #0a0a1a;
}

/* Tab Glow Pill Background */
.tab-glow-pill {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    width: 0; /* Updated dynamically via JS */
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 40px;
    z-index: 2;
    transition: all 0.38s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.35);
}

body.dark-mode .tab-glow-pill {
    background: linear-gradient(135deg, var(--primary-light), #b3e5fc);
    box-shadow: 0 4px 20px rgba(66, 165, 245, 0.45);
}

/* Year Selector Bar */
.topper-year-selector-wrapper {
    position: sticky;
    top: 96px;
    z-index: 99;
    background: var(--bg-primary);
    padding: 16px 0;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: top 0.3s ease;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.topper-year-selector-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

body.dark-mode .topper-year-selector-wrapper {
    background: var(--bg-primary);
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.topper-year-pills {
    display: flex;
    gap: 8px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (max-width: 992px) {
    .topper-year-selector-wrapper {
        top: 64px;
        justify-content: flex-start;
        padding: 12px 0;
    }
    .topper-year-pills {
        margin: 0;
    }
}

.topper-year-pill {
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

body.dark-mode .topper-year-pill {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.topper-year-pill:hover {
    background: rgba(21, 101, 192, 0.05);
    color: var(--primary);
    transform: translateY(-1px);
}

body.dark-mode .topper-year-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-light);
}

.topper-year-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
}

body.dark-mode .topper-year-pill.active {
    background: var(--primary-light);
    color: #0a0a1a;
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(66, 165, 245, 0.3);
}

/* Topper Cards Wrapper (Viewport constraint on mobile carousel) */
.topper-cards-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Card Container */
.topper-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.topper-cards-container.topper-fade {
    opacity: 0;
    transform: translateY(15px);
}

/* Topper Card Spacer */
.topper-card-spacer {
    display: block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
    width: var(--spacer-width, 0px) !important;
    flex: 0 0 var(--spacer-width, 0px) !important;
}

/* Topper Card */
.topper-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

body.dark-mode .topper-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
}

.topper-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(21, 101, 192, 0.1);
    border-color: rgba(21, 101, 192, 0.2);
}

body.dark-mode .topper-card:hover {
    box-shadow: var(--shadow-xl), 0 0 30px rgba(66, 165, 245, 0.15);
    border-color: rgba(66, 165, 245, 0.15);
}

/* Glow Border for Active Card */
.topper-card.active-glow {
    border-color: var(--primary) !important;
    box-shadow: 0 0 25px rgba(21, 101, 192, 0.35) !important;
}

body.dark-mode .topper-card.active-glow {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 30px rgba(66, 165, 245, 0.45) !important;
}

/* Image Wrapper */
.topper-img-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid rgba(21, 101, 192, 0.15);
    box-shadow: 0 0 15px rgba(21, 101, 192, 0.08);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

body.dark-mode .topper-img-wrapper {
    border-color: rgba(66, 165, 245, 0.2);
    box-shadow: 0 0 15px rgba(66, 165, 245, 0.1);
}

.topper-card:hover .topper-img-wrapper {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(21, 101, 192, 0.25);
}

body.dark-mode .topper-card:hover .topper-img-wrapper {
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(66, 165, 245, 0.35);
}

.topper-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges */
.topper-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.topper-rank-badge {
    background: rgba(255, 111, 0, 0.08);
    color: #ff6f00;
}

.topper-rank-1 {
    background: rgba(212, 175, 55, 0.15);
    color: #b89214;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

body.dark-mode .topper-rank-1 {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.topper-stream-badge {
    background: rgba(21, 101, 192, 0.08);
    color: var(--primary);
    border: 1px solid rgba(21, 101, 192, 0.12);
}

body.dark-mode .topper-stream-badge {
    background: rgba(66, 165, 245, 0.12);
    color: var(--primary-light);
    border-color: rgba(66, 165, 245, 0.15);
}

/* Text elements */
.topper-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.topper-percentage {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1.1;
}

body.dark-mode .topper-percentage {
    background: linear-gradient(135deg, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.topper-note {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: auto;
}

/* Mobile responsive carousel overrides */
@media (max-width: 992px) {
    .topper-cards-wrapper {
        overflow-x: auto;
        scrollbar-width: none; /* Hide scrollbar Firefox */
        cursor: grab;
        padding: 15px 0 25px;
        touch-action: pan-y;
        user-select: none;
    }

    .topper-cards-wrapper::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome */
    }

    .topper-cards-wrapper.dragging {
        cursor: grabbing;
    }

    .topper-cards-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: max-content;
        gap: 20px;
        margin: 0;
        padding: 0 40px; /* Default outer padding */
        will-change: transform;
        transform: translate3d(0, 0, 0);
    }

    /* Reduce card size by 20–25% on mobile */
    .topper-card {
        flex: 0 0 250px;
        width: 250px;
        padding: 24px 16px;
        box-sizing: border-box;
    }
    
    .topper-img-wrapper {
        width: 90px;
        height: 90px;
        margin-bottom: 15px;
    }
    
    .topper-percentage {
        font-size: 1.8rem;
    }
    
    .topper-name {
        font-size: 1.1rem;
    }
}

/* ============================================
   32. SCHOOL NOTICE BOARD
   ============================================ */

.hero-notice-board {
    width: 350px;
    flex-shrink: 0;
    margin-top: 10px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.notice-board-frame {
    background: #5c3a21; /* Rich wood color */
    padding: 12px;
    border-radius: 16px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5), 
        inset 0 0 10px rgba(0, 0, 0, 0.8),
        0 4px 0 #3d2513; /* Bottom edge shadow */
    border: 1px solid #754c2e;
    position: relative;
}

/* Wood frame bevel/inner shadow effect */
.notice-board-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.notice-board-chalkboard {
    background: radial-gradient(circle at center, #1b4d3e 0%, #0d2f24 100%);
    border: 3px solid #3d2513; /* Inner frame gap */
    border-radius: 8px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    height: 360px;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

/* Chalk texture overlay */
.notice-board-chalkboard::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.65;
}

/* Glass reflection glare */
.notice-board-glass {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 5;
    border-radius: 5px;
}

/* Notice Board Header */
.notice-board-header {
    border-bottom: 2px dashed rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.notice-board-header h3 {
    font-family: 'Outfit', sans-serif;
    color: #f1f8e9;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Scroll Area */
.notice-board-scroll-area {
    flex: 1;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.notice-board-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

/* Notice Item */
.notice-item {
    padding: 12px 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.notice-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
}

.notice-item:active {
    transform: scale(0.98);
}

.notice-item-date {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    font-weight: 500;
}

.notice-item-title {
    font-size: 0.88rem;
    color: #e0f2f1;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Important (Yellow) Highlight */
.notice-item.important .notice-item-title {
    color: #fff59d; /* Chalky yellow */
    font-weight: 600;
}

.notice-item.important .notice-item-date {
    color: rgba(255, 245, 157, 0.6);
}

/* Footer & Button */
.notice-board-footer {
    padding-top: 12px;
    border-top: 2px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.btn-view-all-notices {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #e0f2f1;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-all-notices:hover {
    background: #e0f2f1;
    color: #0d2f24;
    border-color: #e0f2f1;
    box-shadow: 0 0 10px rgba(224, 242, 241, 0.3);
}

/* ============================================
   33. NOTICE DETAILS MODAL
   ============================================ */
.notice-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.notice-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.notice-modal-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    padding: 36px 30px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .notice-modal-card {
    background: rgba(26, 26, 46, 0.88);
    border-color: rgba(255, 255, 255, 0.08);
}

.notice-modal-overlay.active .notice-modal-card {
    transform: scale(1);
}

.notice-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    padding: 5px;
}

.notice-modal-close:hover {
    color: var(--primary);
}

body.dark-mode .notice-modal-close:hover {
    color: var(--primary-light);
}

.notice-modal-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 15px;
}

body.dark-mode .notice-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.notice-modal-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(21, 101, 192, 0.08);
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

body.dark-mode .notice-modal-date {
    color: var(--primary-light);
    background: rgba(66, 165, 245, 0.12);
}

.notice-modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.notice-modal-body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 350px;
    overflow-y: auto;
}

/* Modal All Notices List Styling */
.modal-notices-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-notice-item {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 4px;
}

body.dark-mode .modal-notice-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.modal-notice-item:hover {
    background: rgba(21, 101, 192, 0.05);
    transform: translateX(4px);
}

body.dark-mode .modal-notice-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.modal-notice-item.important-highlight {
    background: rgba(255, 111, 0, 0.05);
    border-left: 3px solid #ff6f00;
}

body.dark-mode .modal-notice-item.important-highlight {
    background: rgba(255, 215, 0, 0.03);
    border-left-color: #ffd700;
}

.modal-notice-item-date {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block;
}

.modal-notice-item-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-notice-item.important-highlight .modal-notice-item-title {
    color: #e65100;
}

body.dark-mode .modal-notice-item.important-highlight .modal-notice-item-title {
    color: #ffe082;
}

.btn-modal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 15px;
    padding: 5px 0;
}

body.dark-mode .btn-modal-back {
    color: var(--primary-light);
}

.btn-modal-back:hover {
    text-decoration: underline;
}

/* Responsive adjustments for Notice Board */
@media (max-width: 992px) {
    .hero-info-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .hero-info {
        text-align: center;
        max-width: 100%;
        width: 100%;
    }
    
    .hero-info .hero-buttons {
        justify-content: center;
    }
    
    .hero-notice-board {
        width: 100%;
        max-width: 480px; /* Limit width on mobile so it doesn't stretch too wide */
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-notice-board {
        max-width: 100%;
    }
    .notice-board-frame {
        padding: 8px;
        border-width: 8px;
    }
    .notice-board-chalkboard {
        height: 320px;
        padding: 12px;
    }
}

/* ==========================================================================
   REDESIGN OVERLAYS & COMPONENT STYLING (PREMIUM EDUCATIONAL THEME)
   ========================================================================== */

/* 1. Global site backdrop & educational gradient */
.site-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(165deg,
        #0a1628 0%,
        #0d2137 15%,
        #0e2a3e 30%,
        #0b3344 45%,
        #0e3b47 55%,
        #103e44 65%,
        #0f3a3d 75%,
        #0d2f36 85%,
        #0a1f2e 100%);
    transition: background 0.6s ease;
}
body:not(.dark-mode) .site-backdrop {
    background: linear-gradient(165deg,
        #eef3f9 0%,
        #e8f0f8 15%,
        #e2eef6 30%,
        #ddf0f4 45%,
        #d8f0ee 55%,
        #d5efe8 65%,
        #daf0ec 75%,
        #e0f2f1 85%,
        #e8f5f0 100%);
}

.mesh-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 10% 15%, rgba(13, 71, 161, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 10%, rgba(0, 151, 167, 0.16) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 105, 92, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(38, 166, 154, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 85%, rgba(56, 142, 60, 0.10) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 20%, rgba(3, 169, 244, 0.08) 0%, transparent 45%);
    animation: mesh-drift 45s linear infinite;
    will-change: transform;
}
body:not(.dark-mode) .mesh-gradient {
    background:
        radial-gradient(ellipse at 10% 15%, rgba(13, 71, 161, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 10%, rgba(0, 151, 167, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 105, 92, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(38, 166, 154, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 85%, rgba(56, 142, 60, 0.05) 0%, transparent 45%);
}
body.dark-mode .mesh-gradient {
    background:
        radial-gradient(ellipse at 10% 15%, rgba(21, 101, 192, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 10%, rgba(0, 188, 212, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 150, 136, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(38, 166, 154, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 85%, rgba(76, 175, 80, 0.12) 0%, transparent 45%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(13, 71, 161, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 105, 92, 0.05) 1px, transparent 1px);
}
body.dark-mode .grid-overlay {
    background-image:
        linear-gradient(to right, rgba(100, 181, 246, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(128, 203, 196, 0.06) 1px, transparent 1px);
}

@keyframes mesh-drift {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ── Section-specific educational backgrounds ── */

/* About: chalkboard texture */
#about {
    background: linear-gradient(to bottom,
        rgba(21, 71, 52, 0.04),
        rgba(13, 71, 161, 0.03));
}
#about::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        linear-gradient(135deg, rgba(27, 94, 60, 0.06) 0%, transparent 60%),
        repeating-linear-gradient(0deg,
            transparent, transparent 28px,
            rgba(255, 255, 255, 0.03) 28px, rgba(255, 255, 255, 0.03) 29px);
    pointer-events: none;
    z-index: 0;
}
body.dark-mode #about {
    background: linear-gradient(to bottom,
        rgba(27, 94, 60, 0.08),
        rgba(13, 71, 161, 0.06));
}
body.dark-mode #about::before {
    background:
        linear-gradient(135deg, rgba(27, 94, 60, 0.12) 0%, transparent 60%),
        repeating-linear-gradient(0deg,
            transparent, transparent 28px,
            rgba(255, 255, 255, 0.02) 28px, rgba(255, 255, 255, 0.02) 29px);
}

/* Board Toppers: gold shimmer */
#board-toppers {
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 215, 0, 0.06), transparent 60%),
                radial-gradient(ellipse at 80% 70%, rgba(255, 152, 0, 0.04), transparent 50%),
                var(--bg-primary);
}
body.dark-mode #board-toppers {
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 215, 0, 0.08), transparent 60%),
                radial-gradient(ellipse at 80% 70%, rgba(255, 152, 0, 0.06), transparent 50%),
                var(--bg-secondary);
}

/* Academics: blueprint grid pattern */
#academics {
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(13, 71, 161, 0.06), transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(0, 151, 167, 0.05), transparent 50%),
                var(--bg-secondary);
}
#academics::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(13, 71, 161, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 71, 161, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(13, 71, 161, 0.025) 2px, transparent 2px),
        linear-gradient(90deg, rgba(13, 71, 161, 0.025) 2px, transparent 2px);
    background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
    pointer-events: none;
    z-index: 0;
}
body.dark-mode #academics::after {
    background-image:
        linear-gradient(rgba(100, 181, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 181, 246, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(100, 181, 246, 0.03) 2px, transparent 2px),
        linear-gradient(90deg, rgba(100, 181, 246, 0.03) 2px, transparent 2px);
}

/* Facilities: lab doodle pattern */
#facilities {
    background: linear-gradient(135deg,
        rgba(0, 151, 167, 0.04),
        rgba(56, 142, 60, 0.03)),
        var(--bg-primary);
}
#facilities::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cpath d='M30,170 L30,100 C30,90 40,85 50,90 L60,95 L60,70 C60,60 70,55 80,60 L80,170' fill='none' stroke='%230d47a1' stroke-width='1' opacity='0.06'/%3E%3Ccircle cx='150' cy='50' r='15' fill='none' stroke='%2300695c' stroke-width='1' opacity='0.05'/%3E%3Ccircle cx='155' cy='45' r='8' fill='none' stroke='%2300695c' stroke-width='0.8' opacity='0.04'/%3E%3Cpath d='M140,90 L160,90 L155,110 L145,110 Z' fill='none' stroke='%230d47a1' stroke-width='1' opacity='0.05'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
}
body.dark-mode #facilities::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cpath d='M30,170 L30,100 C30,90 40,85 50,90 L60,95 L60,70 C60,60 70,55 80,60 L80,170' fill='none' stroke='%2364b5f6' stroke-width='1' opacity='0.08'/%3E%3Ccircle cx='150' cy='50' r='15' fill='none' stroke='%2380cbc4' stroke-width='1' opacity='0.07'/%3E%3Ccircle cx='155' cy='45' r='8' fill='none' stroke='%2380cbc4' stroke-width='0.8' opacity='0.06'/%3E%3Cpath d='M140,90 L160,90 L155,110 L145,110 Z' fill='none' stroke='%2364b5f6' stroke-width='1' opacity='0.07'/%3E%3C/svg%3E");
}

/* Achievements: existing gradient kept */
#achievements {
    background: linear-gradient(135deg, var(--primary-dark), #1565c0);
    color: #ffffff;
}
body.dark-mode #achievements {
    background: linear-gradient(135deg, #050515, #0a0a20);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}



/* Admissions: notebook paper pattern */
#admissions {
    position: relative;
}
#admissions::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 95%, rgba(13, 71, 161, 0.04) 95%, rgba(13, 71, 161, 0.04) 100%),
        repeating-linear-gradient(0deg,
            transparent, transparent 30px,
            rgba(173, 216, 230, 0.12) 30px, rgba(173, 216, 230, 0.12) 31px);
    pointer-events: none;
    z-index: 0;
}
#admissions::after {
    content: '';
    position: absolute;
    top: 0;
    left: 60px;
    width: 2px;
    height: 100%;
    background: rgba(229, 115, 115, 0.10);
    pointer-events: none;
    z-index: 0;
}
body.dark-mode #admissions::before {
    background:
        repeating-linear-gradient(0deg,
            transparent, transparent 30px,
            rgba(100, 181, 246, 0.06) 30px, rgba(100, 181, 246, 0.06) 31px);
}
body.dark-mode #admissions::after {
    background: rgba(239, 154, 154, 0.06);
}

/* Faculty: chalkboard feel */
#faculty {
    background: linear-gradient(to bottom,
        rgba(27, 94, 60, 0.03),
        rgba(13, 71, 52, 0.05));
}
#faculty::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Crect width='1' height='1' fill='rgba(255,255,255,0.015)'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
    z-index: 0;
}
body.dark-mode #faculty {
    background: linear-gradient(to bottom,
        rgba(27, 94, 60, 0.08),
        rgba(13, 71, 52, 0.10));
}
body.dark-mode #faculty::before {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Crect width='1' height='1' fill='rgba(255,255,255,0.025)'/%3E%3C/svg%3E") repeat;
}



/* FAQ: subtle waves */
#faq {
    background: var(--bg-secondary);
}
#faq::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='20' viewBox='0 0 120 20'%3E%3Cpath d='M0,10 Q30,0 60,10 T120,10' fill='none' stroke='%230d47a1' stroke-width='1' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 240px 40px;
    pointer-events: none;
    z-index: 0;
}
body.dark-mode #faq::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='20' viewBox='0 0 120 20'%3E%3Cpath d='M0,10 Q30,0 60,10 T120,10' fill='none' stroke='%2364b5f6' stroke-width='1' opacity='0.06'/%3E%3C/svg%3E");
}

/* Contact: gradient to footer */
#contact {
    background: linear-gradient(to bottom,
        var(--bg-primary),
        rgba(13, 71, 161, 0.04));
}
body.dark-mode #contact {
    background: linear-gradient(to bottom,
        var(--bg-primary),
        rgba(13, 71, 161, 0.08));
}

/* Why Choose Us: teal highlight */
#why-choose-us {
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 105, 92, 0.04), transparent 60%),
                var(--bg-secondary);
}
body.dark-mode #why-choose-us {
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 150, 136, 0.08), transparent 60%),
                var(--bg-secondary);
}

/* ── Glassmorphism glow circles (injected by JS) ── */
.edu-glow-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}
.edu-glow-circle.glow-navy {
    background: rgba(13, 71, 161, 0.10);
}
.edu-glow-circle.glow-teal {
    background: rgba(0, 151, 167, 0.08);
}
.edu-glow-circle.glow-green {
    background: rgba(56, 142, 60, 0.07);
}
body.dark-mode .edu-glow-circle.glow-navy {
    background: rgba(21, 101, 192, 0.15);
}
body.dark-mode .edu-glow-circle.glow-teal {
    background: rgba(0, 188, 212, 0.12);
}
body.dark-mode .edu-glow-circle.glow-green {
    background: rgba(76, 175, 80, 0.10);
}

/* ── Chalk formula overlay text (injected by JS) ── */
.chalk-formula {
    position: absolute;
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    user-select: none;
}
body:not(.dark-mode) .chalk-formula {
    color: rgba(13, 71, 161, 0.05);
}
body.dark-mode .chalk-formula {
    color: rgba(200, 220, 255, 0.06);
}

/* ── Floating particles (injected by JS) ── */
.edu-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: particle-float linear infinite;
}
@keyframes particle-float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120vh) translateX(40px); opacity: 0; }
}
body:not(.dark-mode) .edu-particle {
    background: rgba(13, 71, 161, 0.15);
    box-shadow: 0 0 6px rgba(13, 71, 161, 0.10);
}
body.dark-mode .edu-particle {
    background: rgba(100, 181, 246, 0.25);
    box-shadow: 0 0 8px rgba(100, 181, 246, 0.15);
}

/* ── Campus landscape silhouette near footer ── */
.campus-landscape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
    color: var(--primary);
}
body.dark-mode .campus-landscape {
    opacity: 0.08;
    color: var(--primary-light);
}
.campus-landscape svg {
    width: 100%;
    height: auto;
    display: block;
}

/* 7. Decorative low-opacity watermarks */
.bg-deco {
    position: absolute;
    font-size: 20rem;
    color: var(--primary);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transition: var(--transition);
}
body.dark-mode .bg-deco {
    color: var(--primary-light);
    opacity: 0.06;
}
.bg-deco-toppers {
    bottom: -30px;
    right: -30px;
    transform: rotate(-15deg);
}
.bg-deco-about {
    top: 40px;
    left: -40px;
    transform: rotate(15deg);
}
.bg-deco-academics {
    bottom: -40px;
    left: -20px;
    transform: rotate(-10deg);
}
.bg-deco-facilities {
    top: -40px;
    right: -40px;
    transform: rotate(20deg);
}
.bg-deco-achievements {
    bottom: -20px;
    right: -30px;
    transform: rotate(-5deg);
}
.bg-deco-gallery {
    top: 40px;
    left: -30px;
    transform: rotate(-25deg);
}
.bg-deco-admissions {
    bottom: -30px;
    left: -30px;
    transform: rotate(10deg);
}
.bg-deco-faq {
    top: -30px;
    right: -30px;
    transform: rotate(-15deg);
}
.bg-deco-contact {
    bottom: -20px;
    right: -20px;
    transform: rotate(15deg);
}

/* 2. Parallax Wave divider at the bottom of the Hero section */
.hero-wave-overlay {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
    pointer-events: none;
}
.waves {
    position: relative;
    width: 100%;
    height: 8vh;
    min-height: 50px;
    max-height: 100px;
}
.parallax > use {
    animation: move-forever 20s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 18s;
}
@keyframes move-forever {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* 3. Scrolling Quote strip marquee */
.quote-strip {
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 8;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}
body.dark-mode .quote-strip {
    background: var(--bg-secondary);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
.quote-marquee-track {
    display: flex;
    width: max-content;
    animation: quoteMarquee 35s linear infinite;
}
.quote-marquee-track:hover {
    animation-play-state: paused;
}
.quote-marquee-content {
    display: flex;
    flex-shrink: 0;
}
.quote-item {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-right: 80px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.quote-item i {
    color: var(--secondary);
    font-size: 0.8rem;
    opacity: 0.9;
}
@keyframes quoteMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* 4. Why Choose Us styling */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}
.why-us-card {
    background: var(--bg-primary);
    border: 1px solid rgba(21, 101, 192, 0.08);
    border-radius: var(--radius-md);
    padding: 35px 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
body.dark-mode .why-us-card {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.05);
}
.why-us-icon-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--primary-lightest);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: var(--transition);
}
body.dark-mode .why-us-icon-wrapper {
    background: rgba(21, 101, 192, 0.2);
    color: var(--primary-light);
}
.why-us-card:hover .why-us-icon-wrapper {
    transform: rotate(360deg);
    background: var(--primary);
    color: #ffffff;
}
body.dark-mode .why-us-card:hover .why-us-icon-wrapper {
    background: var(--primary-light);
    color: #0a0a1a;
}
.why-us-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.why-us-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 5. Campus Highlights styling */
#campus-highlights {
    background: linear-gradient(135deg, var(--primary-dark), #1565c0);
    color: #ffffff;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}
body.dark-mode #campus-highlights {
    background: linear-gradient(135deg, #050515, #0d47a1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.highlight-item {
    position: relative;
    z-index: 2;
}
.highlight-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 12px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.highlight-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(to right, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.highlight-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 6. Achievements content overrides (backgrounds now handled above) */
#achievements .section-title, 
#achievements .section-subtitle, 
#achievements .subsection-title {
    color: #ffffff !important;
}
#achievements .section-title span, 
#achievements .subsection-title span {
    color: var(--secondary) !important;
}
#achievements .stat-card .stat-number {
    color: var(--secondary) !important;
}
#achievements .category-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--secondary) !important;
}
#achievements .achievement-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
#achievements .achievement-card p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 8. Floating Quick board Bulletin Dashboard Widget */
.floating-dashboard-card {
    position: fixed;
    bottom: 90px;
    left: 25px;
    width: 280px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(21, 101, 192, 0.15);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.4s ease, 
                height 0.4s ease, 
                width 0.4s ease, 
                border-radius 0.4s ease;
    overflow: hidden;
}
body.dark-mode .floating-dashboard-card {
    background: rgba(18, 18, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.floating-dashboard-card.collapsed {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transform: scale(0.95);
    cursor: pointer;
    box-shadow: var(--shadow-md);
}
.dashboard-toggle-btn {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}
.floating-dashboard-card.collapsed .dashboard-toggle-btn {
    justify-content: center;
    padding: 0;
    background: var(--primary);
}
.dashboard-toggle-btn .toggle-icon {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dashboard-toggle-btn .toggle-text {
    margin-left: 10px;
    transition: opacity 0.3s ease;
}
.floating-dashboard-card.collapsed .toggle-text {
    display: none;
}
.dashboard-content {
    padding: 18px;
    opacity: 1;
    transition: opacity 0.3s ease;
    max-height: 320px;
    overflow-y: auto;
}
.floating-dashboard-card.collapsed .dashboard-content {
    display: none;
    opacity: 0;
}
.dashboard-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
body.dark-mode .dashboard-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.dashboard-header h4 {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
body.dark-mode .dashboard-header h4 {
    color: var(--primary-light);
}
.dashboard-section {
    margin-bottom: 12px;
}
.dashboard-section:last-child {
    margin-bottom: 0;
}
.dashboard-section h5 {
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.dashboard-section p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 500;
}
.dash-action-btn {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 0;
    text-decoration: underline;
    margin-top: 4px;
    display: block;
}
.dash-action-btn:hover {
    color: #e65100;
}

/* 9. Custom Desktop Cursor Glow Spotlight */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.04) 0%, rgba(0, 188, 212, 0.01) 50%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    will-change: transform;
}
body.dark-mode .cursor-glow {
    background: radial-gradient(circle, rgba(66, 165, 245, 0.05) 0%, rgba(0, 188, 212, 0.02) 50%, transparent 70%);
}

/* 10. Premium Card hover effects, lift, 1.5deg tilt, and glowing borders */
.why-us-card, 
.vm-card, 
.facility-card, 
.achievement-card, 
.academic-card, 
.topper-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.4s ease;
}
.why-us-card:hover, 
.vm-card:hover, 
.facility-card:hover, 
.achievement-card:hover, 
.academic-card:hover, 
.topper-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-light, #42a5f5);
    box-shadow: 0 15px 30px rgba(21, 101, 192, 0.1), 0 0 15px rgba(21, 101, 192, 0.12);
}
body.dark-mode .why-us-card:hover, 
body.dark-mode .vm-card:hover, 
body.dark-mode .facility-card:hover, 
body.dark-mode .achievement-card:hover, 
body.dark-mode .academic-card:hover, 
body.dark-mode .topper-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(66, 165, 245, 0.18);
}

/* 11. Responsive Overrides & Optimizations */
@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .highlights-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Hide resource-heavy effects on mobile for premium performance */
    .bg-deco, 
    .cursor-glow, 
    .floating-dashboard-card,
    .chalk-formula,
    .edu-glow-circle,
    .campus-landscape,
    .edu-particle,
    .corner-art,
    .school-silhouette {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    .highlight-number {
        font-size: 2.4rem;
    }
}

/* Section header radial glow */
.section-header {
    position: relative;
}
.section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.12) 0%, rgba(0, 188, 212, 0.08) 35%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
}
body.dark-mode .section-header::before {
    background: radial-gradient(circle, rgba(66, 165, 245, 0.15) 0%, rgba(0, 188, 212, 0.10) 35%, transparent 70%);
}

/* Corner decorations */
.corner-art {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    transition: var(--transition);
}
body.dark-mode .corner-art {
    opacity: 0.08;
}
.corner-art-tl { top: 20px; left: 20px; }
.corner-art-tr { top: 20px; right: 20px; }
.corner-art-bl { bottom: 20px; left: 20px; }
.corner-art-br { bottom: 20px; right: 20px; }
.corner-art svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
body.dark-mode .corner-art svg {
    stroke: var(--primary-light);
}

/* School silhouette backdrop */
.school-silhouette {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    height: auto;
    max-height: 200px;
    opacity: 0.10;
    color: var(--primary);
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: flex-end;
}
body.dark-mode .school-silhouette {
    color: var(--primary-light);
    opacity: 0.08;
}
.school-silhouette svg {
    width: 100%;
    height: auto;
}

/* Background decorations container & animations */
.backdrop-decorations-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -3;
}
.wave-patterns-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='20' viewBox='0 0 100 20'%3E%3Cpath d='M0,10 Q25,20 50,10 T100,10' fill='none' stroke='%231565c0' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 200px 40px;
    pointer-events: none;
    z-index: -4;
}
body.dark-mode .wave-patterns-overlay {
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='20' viewBox='0 0 100 20'%3E%3Cpath d='M0,10 Q25,20 50,10 T100,10' fill='none' stroke='%2342a5f5' stroke-width='1.5'/%3E%3C/svg%3E");
}
.organic-blobs-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: -5;
    pointer-events: none;
}
.organic-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 43% 57% 41% 59% / 57% 45% 55% 43%;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.06), rgba(0, 188, 212, 0.06));
    filter: blur(60px);
    animation: morph 20s ease-in-out infinite alternate, spin-slow 40s linear infinite;
}
body.dark-mode .organic-blob {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.08), rgba(0, 188, 212, 0.08));
}
.organic-blob.blob-1 {
    top: 15%;
    left: -100px;
    animation-delay: 0s;
}
.organic-blob.blob-2 {
    top: 65%;
    right: -100px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(0, 188, 212, 0.05));
    animation-delay: -5s;
}
.organic-blob.blob-3 {
    top: 40%;
    left: 60%;
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.04), rgba(255, 215, 0, 0.04));
    animation-delay: -10s;
}
.floating-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.08) 0%, transparent 70%);
    filter: blur(4px);
    box-shadow: 0 0 20px rgba(21, 101, 192, 0.03);
    animation: float-drift infinite ease-in-out;
    pointer-events: none;
}
body.dark-mode .floating-bg-circle {
    background: radial-gradient(circle, rgba(66, 165, 245, 0.12) 0%, transparent 70%);
    box-shadow: 0 0 20px rgba(66, 165, 245, 0.05);
}
.floating-bg-icon {
    position: absolute;
    color: var(--primary);
    opacity: 0.12;
    animation: float-rotate-drift infinite ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.dark-mode .floating-bg-icon {
    color: var(--primary-light);
    opacity: 0.10;
}

@keyframes float-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}
@keyframes float-rotate-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(-40px, 40px) rotate(120deg) scale(1.05); }
    66% { transform: translate(40px, -30px) rotate(240deg) scale(0.95); }
}
@keyframes morph {
    0% { border-radius: 43% 57% 41% 59% / 57% 45% 55% 43%; }
    50% { border-radius: 60% 40% 65% 35% / 40% 60% 35% 65%; }
    100% { border-radius: 43% 57% 41% 59% / 57% 45% 55% 43%; }
}
@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   INFINITE EDGE-TO-EDGE HORIZONTAL MARQUEE SHOWCASE OVERRIDES
   ========================================================================== */

/* Hide manual controls (nav buttons and dots) for marquees */
.faculty-nav-btn,
.faculty-dots,
.streams-dots {
    display: none !important;
}

/* Universal Full Width Viewport Breakout Containers */
.topper-cards-wrapper,
.academics-carousel-wrapper,
.streams-carousel-container,
.facilities-carousel-container,
.faculty-carousel-container {
    width: 100vw !important;
    max-width: none !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 30px 0 !important;
    background: transparent !important;
}

/* Smooth Gradient Side Fades (Unifies premium edge fading on desktop) */
.topper-cards-wrapper::before,
.topper-cards-wrapper::after,
.academics-carousel-wrapper::before,
.academics-carousel-wrapper::after,
.streams-carousel-container::before,
.streams-carousel-container::after,
.facilities-carousel-container::before,
.facilities-carousel-container::after,
.faculty-carousel-container::before,
.faculty-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    transition: var(--transition);
}
.topper-cards-wrapper::before,
.academics-carousel-wrapper::before,
.streams-carousel-container::before,
.facilities-carousel-container::before,
.faculty-carousel-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}
.topper-cards-wrapper::after,
.academics-carousel-wrapper::after,
.streams-carousel-container::after,
.facilities-carousel-container::after,
.faculty-carousel-container::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-primary) 0%, transparent 100%);
}

/* For section alt backgrounds, adjust the fade to match bg-secondary */
.section-alt .academics-carousel-wrapper::before,
.section-alt .streams-carousel-container::before {
    background: linear-gradient(90deg, var(--bg-secondary) 0%, transparent 100%);
}
.section-alt .academics-carousel-wrapper::after,
.section-alt .streams-carousel-container::after {
    background: linear-gradient(-90deg, var(--bg-secondary) 0%, transparent 100%);
}

/* Track layout rules */
.topper-cards-container,
.academics-grid,
.streams-container,
.facilities-carousel-track,
.faculty-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Reset and ensure track wrappers/swipe-wrappers do not constrain width */
.streams-carousel-track-wrapper,
.facilities-carousel-track-wrapper,
.faculty-carousel-track-wrapper {
    overflow: visible !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.streams-carousel-swipe-wrapper,
.facilities-carousel-swipe-wrapper,
.faculty-carousel-swipe-wrapper {
    display: block !important;
    width: 100% !important;
    transform: none !important;
    transition: none !important;
}

/* Marquee Scroll Animations with custom travel distance variables based on duplication count */
.topper-cards-container {
    --scroll-dist: -25%; /* N = 4 */
    animation: marquee-scroll 30s linear infinite !important;
}
.academics-grid {
    --scroll-dist: -33.333%; /* N = 3 */
    animation: marquee-scroll 30s linear infinite !important;
}
.streams-container {
    --scroll-dist: -25%; /* N = 4 */
    animation: marquee-scroll 25s linear infinite !important;
}
.facilities-carousel-track {
    --scroll-dist: -33.333%; /* N = 3 */
    animation: marquee-scroll 35s linear infinite !important;
}
.faculty-carousel-track {
    --scroll-dist: -33.333%; /* N = 3 */
    animation: marquee-scroll 32s linear infinite !important;
}

/* Pause scroll on hover */
.topper-cards-container:hover,
.academics-grid:hover,
.streams-container:hover,
.facilities-carousel-track:hover,
.faculty-carousel-track:hover {
    animation-play-state: paused !important;
}

/* Card sizing overrides (Desktop) */
.topper-card {
    width: 320px !important;
    flex: 0 0 320px !important;
    margin: 0 !important;
}
.academic-card {
    width: 350px !important;
    flex: 0 0 350px !important;
    margin: 0 !important;
    height: 480px !important;
}
.stream-card {
    width: 300px !important;
    flex: 0 0 300px !important;
    margin: 0 !important;
}
.facility-card {
    width: 340px !important;
    flex: 0 0 340px !important;
    margin: 0 !important;
    height: 420px !important;
}
.faculty-card {
    width: 290px !important;
    flex: 0 0 290px !important;
    margin: 0 !important;
    height: 400px !important;
}

/* Premium Card Scaling and Glow (for highlighted centered card) */
.topper-card,
.academic-card,
.stream-card,
.facility-card,
.faculty-card {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.6s ease !important;
}

.topper-card.active-glow,
.academic-card.active-glow,
.stream-card.active-glow,
.facility-card.active-glow,
.faculty-card.active-glow {
    transform: scale(1.06) !important;
    box-shadow: 0 20px 40px rgba(21, 101, 192, 0.2), 0 0 25px rgba(21, 101, 192, 0.18) !important;
    border-color: var(--primary) !important;
    z-index: 20 !important;
}

body.dark-mode .topper-card.active-glow,
body.dark-mode .academic-card.active-glow,
body.dark-mode .stream-card.active-glow,
body.dark-mode .facility-card.active-glow,
body.dark-mode .faculty-card.active-glow {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(66, 165, 245, 0.3) !important;
    border-color: var(--primary-light) !important;
}

/* Card layout groupings resets */
.facilities-carousel-group,
.faculty-carousel-group {
    display: flex !important;
    gap: 30px !important;
    padding-right: 30px !important;
}

/* Mobile responsive full width overrides */
@media (max-width: 768px) {
    /* Hide side gradients on mobile for max screen area */
    .topper-cards-wrapper::before,
    .topper-cards-wrapper::after,
    .academics-carousel-wrapper::before,
    .academics-carousel-wrapper::after,
    .streams-carousel-container::before,
    .streams-carousel-container::after,
    .facilities-carousel-container::before,
    .facilities-carousel-container::after,
    .faculty-carousel-container::before,
    .faculty-carousel-container::after {
        display: none !important;
    }

    .topper-card,
    .academic-card,
    .stream-card,
    .facility-card,
    .faculty-card {
        width: 82vw !important;
        flex: 0 0 82vw !important;
        margin: 0 !important;
    }
    
    .topper-cards-container,
    .academics-grid,
    .streams-container,
    .facilities-carousel-track,
    .faculty-carousel-track {
        gap: 16px !important;
    }
    
    .facilities-carousel-group,
    .faculty-carousel-group {
        gap: 16px !important;
        padding-right: 16px !important;
    }
}

/* ============================================
   ADMISSION FORM COLLAPSIBLE (MOBILE)
   ============================================ */
.mobile-admission-toggle {
    display: none;
}
.admission-form-container {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .mobile-admission-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 22px 28px;
        background: rgba(255, 255, 255, 0.45);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: var(--radius-md);
        color: var(--text-primary);
        box-shadow: var(--shadow-sm);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        text-align: left;
        margin-top: 15px;
    }
    
    body.dark-mode .mobile-admission-toggle {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: var(--shadow-md);
    }
    
    .mobile-admission-toggle:hover,
    .mobile-admission-toggle:focus {
        border-color: var(--primary-light);
        box-shadow: 0 4px 15px rgba(21, 101, 192, 0.15);
    }
    
    .mobile-admission-toggle.active {
        border-color: var(--primary) !important;
        box-shadow: 0 0 20px rgba(21, 101, 192, 0.2) !important;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-bottom: 0;
    }
    
    body.dark-mode .mobile-admission-toggle.active {
        border-color: var(--primary-light) !important;
        box-shadow: 0 0 25px rgba(66, 165, 245, 0.3) !important;
    }
    
    .toggle-title-area {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    
    .toggle-title-area i {
        font-size: 1.25rem;
        color: var(--primary);
    }
    
    body.dark-mode .toggle-title-area i {
        color: var(--primary-light);
    }
    
    .toggle-text-wrapper h3 {
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0;
        color: var(--text-primary);
    }
    
    .toggle-subtitle {
        font-size: 0.85rem;
        color: var(--text-secondary);
    }
    
    .toggle-icon {
        font-size: 1.1rem;
        color: var(--text-secondary);
        transition: transform 0.3s ease, color 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
    }
    
    .mobile-admission-toggle.active .toggle-icon {
        color: var(--primary);
    }
    
    body.dark-mode .mobile-admission-toggle.active .toggle-icon {
        color: var(--primary-light);
    }
    
    .admission-form-container {
        max-height: 0;
        overflow: hidden;
        transition: max-height 350ms cubic-bezier(0.25, 1, 0.5, 1);
        will-change: max-height;
    }
    
    .admission-form-container .form-card {
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-top: none !important;
        box-shadow: var(--shadow-md) !important;
        margin-top: 0 !important;
    }
    
    /* Hide the inner header inside form-card on mobile */
    .admission-form-container .form-card > h3 {
        display: none !important;
    }

    .admission-process,
    #admission-steps {
        display: none !important;
    }
}

/* ============================================================
   IMAGE LAZY LOADING & SKELETON PLACEHOLDERS
   ============================================================ */
img.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-color: #f0f0f2;
}

body.dark-mode img.lazy-image {
    background-color: #151528;
}

img.lazy-image.loaded {
    opacity: 1;
    background-color: transparent !important;
}

/* Skeleton animation loader */
.skeleton-bg {
    position: relative !important;
    overflow: hidden !important;
    background-color: #f0f0f2 !important;
}

body.dark-mode .skeleton-bg {
    background-color: #151528 !important;
}

.skeleton-bg::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: skeleton-shimmer 1.6s infinite;
}

body.dark-mode .skeleton-bg::after {
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0) 100%
    );
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}




