/* 
 * GLOBAL STYLES - World Class School Website 
 * Premium Design System: Navy Blue & Gold
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Colors */
    --primary: #0B3D2E;
    /* Premium Dark Green */
    --primary-light: #155d47;
    /* Lighter Green */
    --gold: #C9A24D;
    /* Premium Gold */
    --gold-light: #dcb35c;
    --cream: #FFF8EE;
    /* Premium Cream Background */
    --white: #ffffff;
    --gray-light: #FFF8EE;
    /* Mapping Light Gray to Cream */
    --gray-medium: #E6E1D8;
    /* Soft Border Grey */
    --text-dark: #1E1E1E;
    --text-gray: #4a4a4a;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Accessibility: Skip to Main Content */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--gold);
    padding: 12px 24px;
    z-index: 10000;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--cream);
    overflow-x: hidden !important;
    /* Critical Fix: Prevent horizontal scroll */
    width: 100%;
    max-width: 100vw !important;
    padding-top: 85px;
    /* Updated to match modern header height */
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
    /* Softens all images */
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.text-gold {
    color: var(--gold);
}

.text-white {
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}


.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    /* More rounded */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--gold);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
}

.btn-secondary,
.btn-outline-light {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover,
.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-outline-dark {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-dark:hover {
    background-color: var(--primary);
    color: var(--gold);
}

/* Button Group - Proper spacing for multiple buttons */
.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ========================================
   PREMIUM CARD DESIGN SYSTEM
   ======================================== */

/* Base Premium Card */
.premium-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(11, 61, 46, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(201, 162, 77, 0.1);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover::before {
    transform: scaleX(1);
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(11, 61, 46, 0.12);
    border-color: rgba(201, 162, 77, 0.3);
}

/* Facility Card with Image */
.facility-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 1px solid rgba(201, 162, 77, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.facility-card .card-img {
    height: 220px;
    overflow: hidden;
}

.facility-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 0;
    /* Override global img border-radius for cards */
}

.facility-card:hover .card-img img {
    transform: scale(1.1);
}

.facility-card .card-content {
    padding: 25px;
    flex-grow: 1;
}

.facility-card .card-content h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Card with Gold Glow */
.premium-card-glow:hover {
    box-shadow: 0 12px 40px rgba(201, 162, 77, 0.2);
}

/* Compact Card Variant */
.premium-card-compact {
    padding: 20px;
}

/* Card with Icon */
.premium-card-icon {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.premium-card-icon .icon-wrapper {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
}

/* ========================================
   PAGE IDENTITY SYSTEM
   ======================================== */

/* Page-specific accent borders */
body[data-page="home"] .page-accent {
    border-left: 4px solid var(--primary);
}

body[data-page="contact"] .page-accent {
    border-left: 4px solid #D4A574;
}

body[data-page="admissions"] .page-accent {
    border-left: 4px solid var(--gold);
}

body[data-page="academics"] .page-accent {
    border-left: 4px solid #4A7C6F;
}

/* Page-specific hero overlays */
body[data-page="contact"] .page-hero-overlay {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.85), rgba(11, 61, 46, 0.85));
}

body[data-page="admissions"] .page-hero-overlay {
    background: linear-gradient(135deg, rgba(201, 162, 77, 0.9), rgba(11, 61, 46, 0.9));
}

body[data-page="academics"] .page-hero-overlay {
    background: linear-gradient(135deg, rgba(74, 124, 111, 0.85), rgba(11, 61, 46, 0.85));
}

/* ========================================
   ANIMATION SYSTEM
   ======================================== */

/* Scroll Reveal Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-in.revealed {
    opacity: 1;
}

/* Staggered Animation Delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

/* ========================================
   ENHANCED BUTTON INTERACTIONS
   ======================================== */

/* Ripple Effect on Click */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Magnetic Button (Desktop Only) */
.btn-magnetic {
    transition: transform 0.2s ease-out;
}

@media (hover: hover) {
    .btn-magnetic:hover {
        transform: scale(1.05);
    }
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: white;
    font-size: 28px;
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    }
}

/* Mobile WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float i {
        font-size: 24px;
    }
}

/* ========================================
   PARALLAX SECTIONS
   ======================================== */

.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .fade-up,
    .fade-in,
    .btn::before,
    .premium-card,
    .whatsapp-float {
        transition: none !important;
        animation: none !important;
    }

    .parallax-bg {
        transform: none !important;
    }
}

/* --- MODERN HEADER DESIGN --- */
/* Full-width, stable, premium green theme */

/* Main Navbar - Fixed & Ultra-Stable */
.navbar,
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px !important;
    background: linear-gradient(135deg, rgba(11, 61, 46, 0.98), rgba(8, 45, 34, 0.98));
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid var(--gold);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: none !important;
    /* CRITICAL: Stability on scroll */
    padding: 0 !important;
}

/* REMOVED: No scroll effects - header stays stable with no changes */


/* Modern Container - Full Width Layout */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    /* FULL WIDTH as requested */
    padding: 0 20px;
    /* Minimal side padding for full-width look */
    height: 100%;
    margin: 0;
    overflow: visible !important;
}

/* School Branding - Premium Serif */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.school-name {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.school-address {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    margin-top: 2px;
    font-family: var(--font-body);
}

/* Hide mobile menu header on desktop */
.mobile-menu-header {
    display: none;
}

/* Premium Navigation Links */
.nav-links {
    display: flex;
    gap: 20px;
    /* Balanced spacing with clear separation from logo */
    align-items: center;
    height: 100%;
    flex-wrap: nowrap;
    margin-left: 80px;
    /* INCREASED: Clear visual separation from school name */
    overflow: visible !important;
}

/* Response: Navigation Tighter on smaller desktops (1024px - 1440px) */
@media (max-width: 1440px) and (min-width: 993px) {
    .nav-links {
        gap: 4px !important;
        margin-left: 4px !important;
    }

    .nav-links a,
    .nav-links .nav-item>a {
        font-size: 0.72rem !important;
        letter-spacing: 0.2px !important;
        padding: 0 2px !important;
    }

    .navbar .container {
        padding: 0 12px !important;
        max-width: 100% !important;
    }

    .logo-img {
        height: 38px !important;
    }

    .school-name {
        font-size: 0.82rem !important;
    }

    .school-address {
        font-size: 0.58rem !important;
    }

    .cta-button {
        padding: 8px 12px !important;
        font-size: 0.7rem !important;
        margin-left: 4px !important;
        letter-spacing: 0.3px !important;
    }
}

/* Extra tight: 993px–1150px — prevent button clip */
@media (max-width: 1150px) and (min-width: 993px) {
    .nav-links {
        gap: 2px !important;
        margin-left: 2px !important;
    }

    .nav-links a,
    .nav-links .nav-item>a {
        font-size: 0.68rem !important;
        padding: 0 1px !important;
        letter-spacing: 0 !important;
    }

    .cta-button {
        padding: 7px 10px !important;
        font-size: 0.65rem !important;
        margin-left: 2px !important;
        margin-right: 4px !important;
        white-space: nowrap !important;
    }

    .logo-img {
        height: 34px !important;
    }

    .school-name {
        font-size: 0.75rem !important;
    }

    .school-address {
        display: none !important;
    }
}

/* Premium Navigation Links & Indicators */
.nav-links a,
.nav-links .nav-item>a {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

.nav-links a:hover,
.nav-links .nav-item>a:hover {
    color: var(--gold);
}

/* Base style for the thin gold underline indicator */
.nav-links a::after,
.nav-links .nav-item>a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    /* Directly under text */
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    transition: width 0.3s ease;
    border-radius: 2px;
    opacity: 0;
}

/* Hover & Active States: Show Underline */
.nav-links a:hover::after,
.nav-links .nav-item>a:hover::after,
.nav-links a.active::after,
.nav-links .nav-item>a.active::after,
.nav-links .nav-item>a.has-active-child::after {
    width: 100%;
    /* Spans exactly the width of the text */
    opacity: 1;
}

/* Modern Dropdown Menu Styles */
.nav-item {
    position: relative;
    /* Removed height 100% to keep underline under text */
    display: flex;
    align-items: center;
}

.nav-item>a {
    display: flex;
    align-items: center;
    gap: 6px;
    /* Removed height 100% - Underline will now attach to text height */
}

.nav-item>a .dropdown-icon {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.nav-item:hover>a .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    /* Modern shadow */
    border-radius: 0 0 8px 8px;
    /* Modern rounded bottom */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 0;
    padding: 8px 0;
    border-top: 3px solid var(--gold);
    /* Modern gold accent */
}

/* Desktop: Show dropdown on hover */
@media (min-width: 993px) {
    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Mobile: Hide dropdown on hover (handled by accordion) */
@media (max-width: 992px) {
    .nav-item:hover .dropdown-menu {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
    }
}

/* Mobile Toggle - Hidden on Desktop */
.mobile-toggle {
    display: none !important;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* Show mobile toggle only on mobile */
@media (max-width: 992px) {
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(201, 162, 77, 0.3);
        transition: all 0.3s ease;
    }

    .mobile-toggle i {
        font-size: 1.2rem;
        color: var(--gold);
        transition: transform 0.3s ease;
    }
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: var(--primary) !important;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--gray-light);
    padding-left: 30px;
    color: var(--gold) !important;
}

.dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* ========================================
   ACTIVE NAVIGATION HIGHLIGHTING - CONSISTENT FOR ALL MENU ITEMS
   ======================================== */

/* Active state for ALL navigation links (dropdown and non-dropdown) - PREMIUM BOTTOM UNDERLINE */
.nav-links>a.active,
.nav-links .nav-item>a.active {
    color: var(--gold) !important;
    font-weight: 600;
    position: relative;
}

/* Premium Gold Underline for Active Links */
.nav-links>a.active::after,
.nav-links .nav-item>a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    /* Directly under the text */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    /* Modern, slightly wider than text center */
    height: 2px;
    background: var(--gold);
    /* Pure Gold as requested */
    border-radius: 2px;
    animation: fadeInUnderline 0.3s ease;
}

@keyframes fadeInUnderline {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 90%;
        opacity: 1;
    }
}

@keyframes slideInUnderline {
    from {
        width: 0;
        left: 50%;
        opacity: 0;
    }

    to {
        width: 100%;
        left: 0;
        opacity: 1;
    }
}

/* Active state for dropdown items */
.dropdown-menu a.active {
    background: rgba(197, 160, 89, 0.15) !important;
    color: var(--gold) !important;
    font-weight: 600;
    border-left: 3px solid var(--gold);
}

/* Parent menu highlighting when dropdown child is active - PREMIUM UNDERLINE */
.nav-links .nav-item>a.has-active-child {
    color: var(--gold) !important;
    font-weight: 600;
    position: relative;
}

/* Premium underline for parent with active child - APPLIES TO ANCHOR TAG ONLY */
.nav-links .nav-item>a.has-active-child::after {
    content: '';
    position: absolute;
    bottom: -4px;
    /* Near text bottom */
    left: 50%;
    transform: translateX(-50%);
    /* Center the underline */
    width: 80%;
    /* Slightly narrower than text for elegance */
    height: 2px;
    /* Thin, elegant line */
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(201, 162, 77, 0.4);
}


/* ========================================
   ACHIEVEMENTS PAGE UTILITY CLASSES
   ======================================== */
.ach-grid-top { margin-top: 50px; }
.ach-list { margin-top: 20px; line-height: 2; }
.ach-icon { margin-right: 10px; }
.ach-card-delay { transition-delay: 0.1s; }
.ach-intro-text { margin-top: 20px; font-size: 1.1rem; }
.ach-unis-text { font-size: 1.2rem; color: var(--gold); margin-top: 30px; font-weight: 600; }
.ach-section-title { margin-bottom: 30px; }
.ach-feature-mb { margin-bottom: 20px; }
.ach-cta-text { margin: 20px auto 40px; max-width: 600px; font-size: 1.1rem; }

/* Honeypot anti-spam field */
.enq-honeypot { display: none; }

/* ========================================
   PREMIUM CTA BUTTON (ADMISSIONS OPEN)
   ======================================== */

.cta-button {
    background: var(--gold) !important;
    color: #0a3d2e !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 12px rgba(197, 160, 89, 0.4);
    transition: all 0.3s ease !important;
    white-space: nowrap;
    position: relative;
    overflow: visible !important;
    /* CRITICAL: Allow button to be visible */
    flex-shrink: 0;
    margin-left: 20px !important;
    margin-right: 10px !important;
    width: auto !important;
    /* CRITICAL FIX: Prevent abnormal width */
    max-width: 200px !important;
    /* Reasonable max width */
    display: inline-block !important;
    /* Ensure proper rendering */
}

.cta-button::after {
    display: none !important;
}

.cta-button:hover {
    background: #b08d45 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
    color: #0a3d2e !important;
}

/* Ensure CTA button stands out in navigation */
.nav-links .cta-button {
    margin-left: 15px;
    /* Extra spacing from other nav items */
    flex-shrink: 0;
    /* Prevent button from shrinking */
}


/* --- GLOBAL HEADER OFFSET FOR ALL PAGES --- */
/* Ensure all hero/banner sections start below sticky header */
/* --- GLOBAL HEADER OFFSET FOR ALL PAGES --- */
/* Ensure all hero/banner sections start top of container, offset is handled by body padding */
.hero,
.hero-slider,
.page-hero {
    margin-top: 0 !important;
    /* Fixed: Removed double spacing */
    width: 100%;
    position: relative;
}

/* --- Hero Slider Section --- */
.hero-slider {
    height: calc(100vh - 80px);
    /* Adjust height to fit visible area */
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 800px;
    width: 90%;
    color: var(--white);
}

.hero-subtitle {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(197, 160, 89, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* Slider Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.dot.active {
    background: var(--gold);
    border-color: var(--white);
    width: 14px;
    height: 14px;
}

/* --- Section Titles --- */
.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-line {
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    margin: 20px auto 0;
}

/* --- Grid Layouts --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* --- Cards (Values, Facilities) --- */
.card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    /* Softer shadow */
    transition: var(--transition);
    border: 1px solid var(--gray-medium);
    /* Soft border */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Premium lift */
    border-color: var(--gold);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.card:hover .icon-box {
    background-color: var(--primary);
    color: var(--gold);
}

/* --- Stats Section --- */
.stats-section {
    background-color: var(--primary);
    color: var(--white);
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding-top: 80px;
    padding-bottom: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Developer Credit */
.developer-credit {
    text-align: center;
    padding: 15px 0;
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.developer-credit a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.developer-credit a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Welcome Section --- */
.welcome-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- Feature Grid (Why Choose Us) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-box {
    background: var(--white);
    padding: 35px;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-box h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

/* --- Admissions Timeline (Modern) --- */
.admissions-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.admissions-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(200, 169, 81, 0.4), transparent);
    z-index: -1;
}

.timeline-step {
    text-align: center;
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-step:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: var(--gold);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    position: relative;
    box-shadow: 0 0 20px rgba(200, 169, 81, 0.4);
    border: 4px solid var(--primary);
    transition: transform 0.3s ease;
}

.timeline-step:hover .timeline-icon {
    transform: scale(1.1) rotate(5deg);
}

.timeline-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
}

.timeline-content h4 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

/* Responsive Admissions Timeline */
@media (max-width: 992px) {
    .admissions-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .admissions-timeline::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .admissions-timeline {
        grid-template-columns: 1fr;
    }
}

/* --- Testimonials (Modern) --- */
.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    margin: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-gray);
    position: relative;
    z-index: 2;
    font-style: italic;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(200, 169, 81, 0.1);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 15px;
}

.testimonial-meta {
    flex-grow: 1;
    padding-right: 10px;
}

.testimonial-name {
    font-size: 1.1rem;
    margin: 0 0 4px;
    color: var(--primary);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: block;
}

.testimonial-rating {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 3px;
    color: var(--gold);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* --- Curriculum Pathway --- */
.pathway-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.pathway-item {
    background: var(--gray-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--gold);
}

.pathway-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- Safety Features --- */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.safety-item {
    text-align: center;
    padding: 30px;
}

.safety-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

/* --- Split Section (Image + Content) --- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-section img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- Background Variations --- */
.bg-light {
    background-color: var(--gray-light);
}

.bg-white {
    background-color: var(--white);
}

.bg-primary {
    background-color: var(--primary);
    color: var(--white);
}

/* --- About Page Specific --- */
.page-hero {
    height: 40vh;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 25px 0;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.6));
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero-content h5 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.page-hero-content h1 {
    font-size: 2.3rem;
    line-height: 1.15;
    margin-bottom: 8px;
}

.page-hero-content p {
    font-size: 1rem;
    line-height: 1.45;
    max-width: 700px;
    margin: 0 auto;
}

/* Quick Facts Box */
.facts-box {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--gold);
}

.fact-item {
    margin-bottom: 25px;
}

.fact-item:last-child {
    margin-bottom: 0;
}

.fact-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.fact-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

/* Vision/Mission Statement Box */
.statement-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px;
    border-radius: 8px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.statement-box::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 10rem;
    color: var(--gold);
    opacity: 0.1;
    font-family: var(--font-heading);
    line-height: 1;
}

.statement-box h2 {
    color: var(--white);
    position: relative;
    z-index: 2;
}

.statement-box p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--gold);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: calc(50% + 40px);
}

.timeline-year {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--gold);
    border-radius: 50%;
    top: 0;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Principal/Manager Page Responsive */
    .split-section {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .split-section>div {
        max-width: 100% !important;
        flex: 1 !important;
    }

    .split-section .premium-card {
        margin: 0 auto;
        max-width: 350px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .pathway-grid {
        grid-template-columns: 1fr;
    }

    .safety-grid {
        grid-template-columns: 1fr;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .welcome-content {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline mobile adjustments */
    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-dot {
        left: 20px;
    }

    /* --- Redesigned Mobile Menu - Matching Image --- */

    /* Overlay for mobile menu */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* ============================================
       PREMIUM MOBILE DRAWER - REDESIGNED
    ============================================ */

    /* Drawer Container */
    .navbar .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: linear-gradient(160deg, #ffffff 0%, #f5f0e8 100%);
        flex-direction: column;
        padding: 0;
        margin: 0 !important;
        align-items: stretch;
        box-shadow: 8px 0 50px rgba(0, 0, 0, 0.28);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 9999 !important;
        transform: translateX(-100%);
        transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
        border: none;
    }

    .navbar .nav-links.active {
        transform: translateX(0);
    }

    /* ---- MENU HEADER ---- */
    .mobile-menu-header {
        display: flex !important;
        align-items: center;
        gap: 14px;
        background: linear-gradient(135deg, #0B3D2E 0%, #175c40 100%);
        padding: 18px 20px !important;
        border-bottom: 3px solid var(--gold);
        position: sticky;
        top: 0;
        z-index: 10;
        flex-shrink: 0;
        box-shadow: 0 3px 16px rgba(0,0,0,0.3);
    }

    .mobile-menu-header::before {
        content: '';
        display: block;
        width: 44px;
        height: 44px;
        min-width: 44px;
        background: url('../cambridge images/images/logo.png') center/contain no-repeat;
        background-color: rgba(255,255,255,0.12);
        border-radius: 50%;
        flex-shrink: 0;
        border: 2px solid rgba(201,162,77,0.5);
    }

    .mobile-menu-header h3 {
        font-family: var(--font-heading);
        font-size: 0.92rem !important;
        color: #fff;
        margin: 0;
        letter-spacing: 0.4px;
        line-height: 1.35;
        font-weight: 700;
        flex: 1;
        padding-right: 42px;
    }

    .mobile-menu-header p {
        display: none !important;
    }

    /* Close Button */
    .mobile-menu-header::after {
        content: '\00d7';
        font-size: 1.7rem;
        color: #fff;
        cursor: pointer;
        line-height: 1;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 300;
        z-index: 10;
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255,255,255,0.22);
        transition: background 0.25s ease;
    }

    /* ---- NAV ITEMS ---- */
    .navbar .nav-links>a,
    .navbar .nav-links .nav-item {
        width: 100% !important;
        border-bottom: 1px solid rgba(11, 61, 46, 0.09) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        position: relative;
    }

    .navbar .nav-links .nav-item>a,
    .navbar .nav-links>a {
        padding: 16px 20px 16px 22px !important;
        font-size: 0.82rem !important;
        color: #1a3a28 !important;
        font-weight: 700 !important;
        background: transparent !important;
        text-transform: uppercase !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        letter-spacing: 1.4px !important;
        width: 100% !important;
        text-align: left !important;
        position: relative;
        margin: 0 !important;
        transition: background 0.22s ease, border-color 0.22s ease, padding-left 0.22s ease !important;
        border-left: 4px solid transparent !important;
    }

    .navbar .nav-links .nav-item>a:hover,
    .navbar .nav-links>a:hover {
        background: rgba(11, 61, 46, 0.055) !important;
        border-left-color: var(--gold) !important;
        padding-left: 26px !important;
    }

    .navbar .nav-links .nav-item>a:active,
    .navbar .nav-links>a:active {
        background: rgba(11, 61, 46, 0.1) !important;
    }

    /* Active page highlight */
    .navbar .nav-links .nav-item>a.active,
    .navbar .nav-links>a.active {
        border-left-color: var(--gold) !important;
        color: var(--primary) !important;
        background: rgba(201, 162, 77, 0.09) !important;
    }

    /* ---- ACCORDION INDICATOR ---- */
    .nav-item:has(.dropdown-menu)>a {
        justify-content: space-between !important;
        padding-right: 18px !important;
    }

    .nav-item:has(.dropdown-menu)>a::after {
        content: '\f078' !important;
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 900 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.52rem !important;
        color: var(--gold) !important;
        position: static !important;
        margin-left: auto !important;
        width: 28px;
        min-width: 28px;
        height: 28px;
        border-radius: 50%;
        background: rgba(201, 162, 77, 0.12);
        border: 1.5px solid rgba(201, 162, 77, 0.3);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
    }

    .nav-item:has(.dropdown-menu).active>a::after {
        transform: rotate(180deg);
        background: rgba(201, 162, 77, 0.22);
        border-color: var(--gold);
    }

    .nav-item:not(:has(.dropdown-menu))>a::after {
        display: none !important;
    }

    /* ---- DROPDOWN ACCORDION ---- */
    .dropdown-menu {
        position: static !important;
        display: block !important;
        max-height: 0;
        visibility: hidden !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        background: rgba(11, 61, 46, 0.042) !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 3px solid transparent !important;
        transition: max-height 0.38s ease, opacity 0.28s ease, padding 0.28s ease, border-color 0.3s ease !important;
        width: 100% !important;
        transform: none !important;
        left: 0 !important;
        top: auto !important;
    }

    .nav-item.active .dropdown-menu {
        max-height: 1000px !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 6px 0 14px !important;
        border-left-color: var(--gold) !important;
    }

    .dropdown-menu a {
        padding: 11px 20px 11px 44px !important;
        font-size: 0.82rem !important;
        color: #245038 !important;
        border: none !important;
        text-transform: none !important;
        letter-spacing: 0.2px !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        font-weight: 500 !important;
        text-align: left !important;
        background: transparent !important;
        transform: none !important;
        visibility: inherit !important;
        opacity: inherit !important;
        position: relative;
        transition: all 0.2s ease !important;
        border-left: none !important;
    }

    .dropdown-menu a::before {
        content: '›';
        position: absolute;
        left: 26px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.2rem;
        color: var(--gold);
        font-weight: 700;
        line-height: 1;
    }

    .dropdown-menu a:hover {
        padding-left: 50px !important;
        color: var(--primary) !important;
        background: rgba(201, 162, 77, 0.07) !important;
    }

    /* Active Link in Mobile Drawer */
    .nav-links a.active {
        color: var(--primary) !important;
        background: rgba(201, 162, 77, 0.09) !important;
        font-weight: 700 !important;
        border-left-color: var(--gold) !important;
    }

    .dropdown-menu a.active {
        color: var(--gold) !important;
        font-weight: 700 !important;
        border-left: none !important;
    }

    /* Hide desktop chevrons */
    .nav-links .dropdown-icon,
    .nav-links .fa-chevron-down {
        display: none !important;
    }

    .nav-links>a::after {
        display: none !important;
    }

    .nav-links .nav-item:has(.dropdown-menu)>a::after {
        display: inline-flex !important;
    }

    .nav-links .nav-item:not(:has(.dropdown-menu))>a::after {
        display: none !important;
    }
}

/* Stand-out CTA Button - GOLD Highlights */
.cta-button {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%) !important;
    color: #0b3d2e !important;
    /* Dark green text for contrast on gold */
    padding: 12px 24px !important;
    border-radius: 4px;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3) !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0;
    margin-left: 20px;
    border: none !important;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.45) !important;
    background: linear-gradient(135deg, #f1c40f 0%, #d4af37 100%) !important;
}

/* Admissions CTA Button - PREMIUM MOBILE STYLE */
.navbar .nav-links .cta-button {
    margin: 24px 18px 20px !important;
    padding: 15px 24px !important;
    background: linear-gradient(135deg, #C9A24D 0%, #b8960b 50%, #C9A24D 100%) !important;
    color: #0b3d2e !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    font-size: 0.82rem !important;
    text-align: center !important;
    box-shadow: 0 4px 18px rgba(201, 162, 77, 0.35),
               inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    display: block !important;
    width: calc(100% - 36px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    justify-content: center !important;
    flex-shrink: 0;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    position: relative;
}

/* Close Button & Hamburger Area */
.mobile-toggle {
    display: flex;
    color: var(--white);
    cursor: pointer;
    z-index: 1005;
}

.mobile-toggle.active {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--white);
    z-index: 10001;
    border-radius: 50%;
    border: 1.5px solid rgba(201, 162, 77, 0.4);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.mobile-toggle.active i {
    font-size: 1.1rem;
    color: var(--gold);
}

/* Logo scaling in mobile menu header if needed */
.logo img {
    height: 35px;
}

.logo {
    max-width: 70%;
}

.school-name {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.school-address {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
}

.logo img {
    height: 30px;
}

.hero h1 {
    font-size: 2.5rem !important;
    /* Force smaller hero text */
    margin-top: 20px;
}

@media (min-width: 769px) {
    .hero-content {
        padding-top: 60px;
    }
}

/* ========================================
   STANDARDIZED FOOTER DESIGN - ALL PAGES
   ======================================== */

.footer-section {
    background-color: var(--primary);
    color: var(--cream);
    padding: 40px 0 0;
    font-family: var(--font-body);
    width: 100%;
    overflow-x: hidden;
}

.footer-section .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 30px;
    margin-bottom: 15px;
}

/* Left Column - Logo + School Name + Description */
.footer-about {
    display: flex;
    flex-direction: column;
}

/* Logo Area - Horizontal Layout */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
}

/* Footer Logo - Reduced Size, No White Box */
.footer-logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

/* School Name - Right of Logo */
.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-logo-text h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
    color: var(--cream);
    font-family: var(--font-heading);
}

/* School Description - Below Logo + Name */
.school-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 248, 238, 0.75);
    margin-bottom: 14px;
    margin-top: 0;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 248, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--cream);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-link:hover {
    background-color: var(--gold);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ========================================
   SOCIAL MEDIA CARDS - CONTACT PAGE
   ======================================== */

/* Social Media Grid Layout */
.social-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* Individual Social Media Card */
.social-media-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
}

/* Animated Background Gradient on Hover */
.social-media-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.social-media-card:hover::before {
    opacity: 1;
}

/* Icon Wrapper with Animation */
.social-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon-wrapper i {
    font-size: 2.5rem;
    transition: all 0.4s ease;
}

/* Card Text Styling */
.social-media-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    color: var(--primary);
}

.social-media-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Hover Effects for All Cards */
.social-media-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.social-media-card:hover .social-icon-wrapper {
    transform: scale(1.15) rotate(5deg);
}

.social-media-card:hover h4,
.social-media-card:hover p {
    color: var(--white);
}

/* ========================================
   BRAND-SPECIFIC STYLES
   ======================================== */

/* Facebook Card */
.facebook-card {
    border-bottom-color: #1877F2;
}

.facebook-card::before {
    background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
}

.facebook-card .social-icon-wrapper {
    background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

.facebook-card .social-icon-wrapper i {
    color: var(--white);
}

.facebook-card:hover {
    border-bottom-color: #0C63D4;
}

.facebook-card:hover .social-icon-wrapper {
    box-shadow: 0 12px 35px rgba(24, 119, 242, 0.5);
}

/* Instagram Card */
.instagram-card {
    border-bottom-color: #E4405F;
}

.instagram-card::before {
    background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
}

.instagram-card .social-icon-wrapper {
    background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.3);
}

.instagram-card .social-icon-wrapper i {
    color: var(--white);
}

.instagram-card:hover {
    border-bottom-color: #DD2A7B;
}

.instagram-card:hover .social-icon-wrapper {
    box-shadow: 0 12px 35px rgba(228, 64, 95, 0.5);
}

/* YouTube Card */
.youtube-card {
    border-bottom-color: #FF0000;
}

.youtube-card::before {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
}

.youtube-card .social-icon-wrapper {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.youtube-card .social-icon-wrapper i {
    color: var(--white);
}

.youtube-card:hover {
    border-bottom-color: #CC0000;
}

.youtube-card:hover .social-icon-wrapper {
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.5);
}

/* Pulse Animation for Icons */
@keyframes social-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.social-media-card:hover .social-icon-wrapper i {
    animation: social-pulse 1.5s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet View */
@media (max-width: 992px) {
    .social-media-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .social-media-card {
        padding: 40px 25px;
    }

    .social-icon-wrapper {
        width: 75px;
        height: 75px;
    }

    .social-icon-wrapper i {
        font-size: 2rem;
    }

    .social-media-card h4 {
        font-size: 1.15rem;
    }

    .social-media-card p {
        font-size: 0.9rem;
    }
}

/* Mobile View */
@media (max-width: 576px) {
    .social-media-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 350px;
    }

    .social-media-card {
        padding: 40px 30px;
    }

    .social-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .social-icon-wrapper i {
        font-size: 2.2rem;
    }

    .social-media-card h4 {
        font-size: 1.25rem;
    }

    .social-media-card p {
        font-size: 0.95rem;
    }
}


/* Footer Widgets */
.footer-widget {
    display: flex;
    flex-direction: column;
}

.widget-title {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--cream);
    font-weight: 600;
    font-family: var(--font-heading);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 7px;
}

.footer-links a {
    color: rgba(255, 248, 238, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

/* Parents Login Section */
.footer-parent-login {
    text-align: center;
    padding: 14px 0 4px;
    margin-top: 0;
    border-top: 1px solid rgba(255, 248, 238, 0.1);
}

.parent-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--gold), #d4af57, #e0c068);
    background-size: 200% 200%;
    animation: btnShimmer 3s ease infinite;
    color: #0B3D2E;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 162, 77, 0.35);
    position: relative;
}

.parent-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(201, 162, 77, 0.55);
    color: #0B3D2E;
}

.parent-login-btn i {
    font-size: 1.05rem;
}

@keyframes btnShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Contact Information */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 248, 238, 0.75);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-contact-list i {
    color: var(--gold);
    font-size: 1rem;
    margin-top: 3px;
    min-width: 18px;
    flex-shrink: 0;
}

/* Footer Bottom - Copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 248, 238, 0.15);
    padding: 14px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 248, 238, 0.6);
    margin-top: 0;
}

/* Developer Credit */
.developer-credit {
    text-align: center;
    padding: 8px 0 16px;
    font-size: 0.78rem;
    color: rgba(255, 248, 238, 0.5);
}

.developer-credit a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE FOOTER - TABLET & MOBILE
   ======================================== */

/* Tablet View */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-logo-img {
        height: 58px;
    }

    .footer-logo-text h3 {
        font-size: 1rem;
    }
}

/* Mobile View */
@media (max-width: 576px) {
    .footer-section {
        padding: 30px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Mobile Logo - Smaller, Still Horizontal */
    .logo-area {
        gap: 12px;
        margin-bottom: 15px;
    }

    .footer-logo-img {
        height: 50px;
    }

    .footer-logo-text h3 {
        font-size: 0.95rem;
        line-height: 1.25;
    }

    .school-desc {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }

    .widget-title {
        font-size: 1.05rem;
        margin-bottom: 15px;
    }

    .footer-links a,
    .footer-contact-list li {
        font-size: 0.85rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding: 20px 0;
    }

    .developer-credit {
        font-size: 0.75rem;
        padding: 12px 0 20px;
    }
}

/* Process Steps (Career Page) */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.step-item h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   MODERN ANIMATED HERO BACKGROUND (NEW REDESIGN)
   ======================================== */
.hero-main {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f3d2e, #145a42, #0a2c20);
    background-size: 300% 300%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    /* Keep it behind the text content (z-index 2) */
    pointer-events: none;
}

/* Floating Shapes */
.anim-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: floatShape linear infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #1e7555;
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #0B3D2E;
    bottom: -50px;
    right: 10%;
    animation-duration: 20s;
    animation-direction: reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #258c67;
    top: 30%;
    left: 40%;
    animation-duration: 30s;
}

@keyframes floatShape {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) scale(1.1) rotate(120deg);
    }

    66% {
        transform: translateY(20px) scale(0.9) rotate(240deg);
    }

    100% {
        transform: translateY(0) scale(1) rotate(360deg);
    }
}

/* Glowing Particles */
.particle {
    position: absolute;
    background: #cfa73b;
    border-radius: 50%;
    box-shadow: 0 0 10px #cfa73b, 0 0 20px #cfa73b;
    opacity: 0;
    animation: floatParticle linear infinite;
}

.p-1 {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 15%;
    animation-duration: 15s;
    animation-delay: 0s;
}

.p-2 {
    width: 4px;
    height: 4px;
    top: 70%;
    left: 80%;
    animation-duration: 18s;
    animation-delay: 3s;
}

.p-3 {
    width: 8px;
    height: 8px;
    top: 40%;
    left: 60%;
    animation-duration: 12s;
    animation-delay: 5s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Make sure text elements in page-hero have relative position and higher z-index to stay above background */
.page-hero .container {
    position: relative;
    z-index: 2;
}

/* ========================================
   PREMIUM GALLERY SYSTEM
   ======================================== */

.premium-gallery {
    margin-top: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(201, 162, 77, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 61, 46, 0.15);
    border-color: var(--gold);
}

.gallery-img-container {
    position: relative;
    aspect-ratio: 3/4;
    /* Consistent Portrait Ratio */
    overflow: hidden;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-img-container img {
    transform: scale(1.1);
}

.gallery-info {
    padding: 20px;
    text-align: center;
    background: var(--white);
    border-top: 1px solid var(--gray-medium);
}

.gallery-info h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font-body);
    /* Using body font for modern clean look */
    letter-spacing: 0.5px;
}

/* Responsive Gallery */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-img-container {
        aspect-ratio: 4/5;
        /* Slightly wider for mobile */
    }
}

/* ========================================
   MULTI-SLIDE CAROUSEL
   ======================================== */
.ms-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 0 20px;
}

.ms-carousel-viewport {
    overflow: hidden;
    border-radius: 12px;
}

.ms-carousel-track {
    display: flex;
    gap: 24px;
    will-change: transform;
}

/* Slide card */
.ms-carousel-slide {
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(201, 162, 77, 0.1);
}

.ms-carousel-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14);
    border-color: rgba(201, 162, 77, 0.3);
}

.ms-carousel-slide .slide-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.ms-carousel-slide .slide-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f0eb;
    border-radius: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ms-carousel-slide:hover .slide-img img {
    transform: scale(1.08);
}

.ms-carousel-slide .slide-caption {
    padding: 16px 20px;
    text-align: center;
}

.ms-carousel-slide .slide-caption h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--primary);
    font-family: var(--font-body);
}

/* Navigation Buttons */
.ms-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(201, 162, 77, 0.5);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ms-carousel-btn:hover {
    background: var(--primary);
    color: var(--gold);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(11, 61, 46, 0.3);
}

.ms-carousel-btn.ms-prev {
    left: -10px;
}

.ms-carousel-btn.ms-next {
    right: -10px;
}

/* Dots */
.ms-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.ms-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ms-dot.active {
    background: var(--gold);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(201, 162, 77, 0.4);
}

.ms-dot:hover {
    background: var(--gold);
}

/* Responsive */
@media (max-width: 992px) {
    .ms-carousel-btn.ms-prev {
        left: 5px;
    }

    .ms-carousel-btn.ms-next {
        right: 5px;
    }

    .ms-carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .ms-carousel-track {
        gap: 16px;
    }

    .ms-carousel-btn {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .ms-carousel-btn.ms-prev {
        left: 5px;
    }

    .ms-carousel-btn.ms-next {
        right: 5px;
    }

    .ms-carousel-slide .slide-caption {
        padding: 12px 16px;
    }

    .ms-carousel-slide .slide-caption h4 {
        font-size: 0.9rem;
    }
}

/* ========================================
   INLINE STYLE REPLACEMENTS
   Moved from index.html inline styles
   ======================================== */

/* Hero Content Inline Overrides */
.hero-content .hero-title {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content .hero-description {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: #f5f5f5;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Welcome Section */
.welcome-subtitle {
    color: var(--gold);
    letter-spacing: 2px;
}

.welcome-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.welcome-text-lg {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.welcome-image {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Section Descriptions */
.section-description {
    max-width: 700px;
    margin: 20px auto 0;
    color: var(--text-gray);
}

.section-description-center {
    max-width: 700px;
    margin: 20px auto 0;
    color: var(--text-gray);
    text-align: center;
}

/* Feature Animation Delays */
.feature-box.delay-1 {
    transition-delay: 0.1s;
}

.feature-box.delay-2 {
    transition-delay: 0.2s;
}

.feature-box.delay-3 {
    transition-delay: 0.3s;
}

.feature-box.delay-4 {
    transition-delay: 0.4s;
}

.feature-box.delay-5 {
    transition-delay: 0.5s;
}

/* General Animation Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.anim-delay-2 {
    animation-delay: 0.2s;
}

/* Curriculum Section */
.curriculum-image {
    width: 100%;
}

.curriculum-text {
    margin-bottom: 25px;
}

.curriculum-list {
    margin: 30px 0;
}

.curriculum-list li {
    margin-bottom: 12px;
}

.curriculum-list li i {
    margin-right: 10px;
}

/* Commitment Section */
.commitment-subtitle {
    color: var(--gold);
}

.commitment-content {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.commitment-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.commitment-subtext {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Faculty Section */
.faculty-text {
    margin-bottom: 25px;
}

.faculty-list {
    margin-bottom: 30px;
}

.faculty-list li {
    margin-bottom: 15px;
}

.faculty-list li i {
    margin-right: 10px;
}

.faculty-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Student Life Grid */
.student-life-grid {
    margin-top: 50px;
}

/* Campus Image Container */
.campus-image-container {
    margin-top: 50px;
    text-align: center;
}

.campus-image {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

/* Safety Animation Delays */
.safety-item.delay-1 {
    transition-delay: 0.1s;
}

.safety-item.delay-2 {
    transition-delay: 0.2s;
}

.safety-item.delay-3 {
    transition-delay: 0.3s;
}

.safety-item.delay-4 {
    transition-delay: 0.4s;
}

.safety-item.delay-5 {
    transition-delay: 0.5s;
}

/* Admissions Section */
.admissions-subtitle {
    color: var(--gold);
}

.admissions-description {
    max-width: 700px;
    margin: 20px auto 0;
    color: rgba(255, 255, 255, 0.9);
}

.admissions-cta {
    margin-top: 60px;
}

.admissions-cta-text {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* Facilities CTA */
.facilities-explore {
    margin-top: 50px;
}

/* Testimonials Grid */
.testimonials-grid {
    margin-top: 50px;
}

.testimonial-card.delay-1 {
    transition-delay: 0.1s;
}

.testimonial-card.delay-2 {
    transition-delay: 0.2s;
}

/* Timeline Step Delays */
.timeline-step.delay-1 {
    transition-delay: 0.1s;
}

.timeline-step.delay-2 {
    transition-delay: 0.2s;
}

.timeline-step.delay-3 {
    transition-delay: 0.3s;
}

/* Value Card Delays */
.value-card.delay-1 {
    transition-delay: 0.1s;
}

.value-card.delay-2 {
    transition-delay: 0.2s;
}

.value-card.delay-3 {
    transition-delay: 0.3s;
}

.value-card.delay-4 {
    transition-delay: 0.4s;
}

.value-card.delay-5 {
    transition-delay: 0.5s;
}

/* Page Hero Elements */
.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.hero-bg-orb-1 {
    top: 15%;
    left: 8%;
    width: 120px;
    height: 120px;
    background: rgba(201, 162, 77, 0.1);
    animation: float 7s ease-in-out infinite;
}

.hero-bg-orb-2 {
    bottom: 20%;
    right: 10%;
    width: 180px;
    height: 180px;
    background: rgba(201, 162, 77, 0.08);
    animation: float 9s ease-in-out infinite reverse;
}

.hero-bg-orb-3 {
    top: 40%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(201, 162, 77, 0.06);
    animation: float 5s ease-in-out infinite;
}

.hero-content-relative {
    position: relative;
    z-index: 10;
}

.hero-page-subtitle {
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-page-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 0;
    opacity: 0.95;
}

/* Facts Section */
.facts-title {
    margin-bottom: 30px;
    color: var(--primary);
}

/* Educational Philosophy */
.edu-philosophy-title {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Campus Description */
.campus-description {
    margin-bottom: 40px;
}

/* CTA Description */
.cta-description {
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* ========================================
   CONTACT PAGE UTILITY CLASSES
   ======================================== */

/* Contact Info Grid */
.contact-info-grid {
    margin-top: 50px;
    gap: 25px;
}

/* Contact Card Icon */
.contact-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--gold);
    font-size: 1.4rem;
}

/* Contact Card Title */
.contact-card-title {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Contact Card Text */
.contact-card-text {
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.contact-card-text-lg {
    color: var(--text-gray);
    line-height: 1.9;
    margin: 0;
    font-size: 0.95rem;
}

.contact-label {
    color: var(--primary);
}

/* Map Section */
.map-container {
    margin-top: 50px;
}

.map-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-frame iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

.map-actions {
    text-align: center;
    margin-top: 35px;
}

.icon-mr {
    margin-right: 8px;
}

/* Promise Cards */
.promise-grid {
    margin-top: 50px;
    gap: 25px;
}

.promise-card {
    padding: 35px 25px;
}

.promise-card-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--gold);
    font-size: 1.3rem;
}

.promise-card-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.promise-card-text {
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* Social Media Grid */
.social-grid-mt {
    margin-top: 50px;
}

/* Section with custom padding */
.section-padded {
    padding: 80px 0;
}

/* CTA Heading Styles */
.cta-heading {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 35px;
    opacity: 0.95;
}

/* Button padding extra */
.btn-padded {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* White CTA button */
.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--cream);
    border-color: var(--cream);
}

/* ===== UTILITY CLASSES FOR INLINE STYLE ELIMINATION ===== */

/* Margin utilities */
.mt-50 {
    margin-top: 50px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-25 {
    margin-bottom: 25px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mr-10 {
    margin-right: 10px;
}

.mr-5 {
    margin-right: 5px;
}

.m-0 {
    margin: 0;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Padding utilities */
.p-card {
    padding: 15px 20px;
}

.p-card-fw {
    padding: 15px 20px;
    font-weight: 600;
}

.p-table-cell {
    padding: 18px 20px;
    text-align: left;
}

.p-row {
    padding: 12px 0;
}

.p-row-border {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-medium);
}

/* Font size utilities */
.fs-09 {
    font-size: 0.9rem;
}

.fs-095 {
    font-size: 0.95rem;
}

.fs-1 {
    font-size: 1rem;
}

.fs-11 {
    font-size: 1.1rem;
}

.fs-small-icon {
    font-size: 0.5rem;
    margin-right: 10px;
}

/* Color utilities */
.text-primary {
    color: var(--primary);
}

.text-gray {
    color: var(--text-gray);
}

.text-white-90 {
    color: rgba(255, 255, 255, 0.9);
}

.text-gold-fw {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.fw-600 {
    font-weight: 600;
}

/* Section icon (large circle icon) */
.section-icon-lg {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

/* Content width utility */
.section-subtitle-wide {
    margin: 20px auto 40px;
    max-width: 600px;
    font-size: 1.1rem;
}

/* Line height */
.lh-17 {
    line-height: 1.7;
}

/* Table-like row layouts */
.flex-row-between {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-medium);
}

.flex-row-between-alt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.table-row-striped {
    border-bottom: 1px solid var(--gray-medium);
    background: var(--gray-light);
}

/* Card image full width */
.card-img-full {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Fee card styles */
.fee-card-title {
    color: var(--gold);
    margin-bottom: 20px;
}

.fee-highlight {
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
}

.fee-total-box {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--gold);
}

/* Bordered bottom */
.bb-gray {
    border-bottom: 1px solid var(--gray-medium);
}

/* White section text */
.text-white-mb-25 {
    color: var(--white);
    margin-bottom: 25px;
}

/* Primary heading with margin */
.heading-primary-mb {
    color: var(--primary);
    margin-bottom: 15px;
}

/* More utility classes */
.section-icon-primary {
    font-size: 4rem;
    color: var(--primary);
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.lh-2 {
    line-height: 2;
}

/* Extended utility classes */
.flex-item-heading {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.stat-number {
    font-size: 3.5rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-serif {
    font-family: 'Playfair Display', serif;
}

.step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.5rem;
    text-align: center;
    background: var(--cream);
    color: var(--primary);
    border-radius: 50%;
    margin-bottom: 15px;
}

.list-icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

.avatar-circle {
    width: 150px;
    height: 150px;
    background: var(--gray-light);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.badge-gold {
    background: var(--gold);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.cell-bordered {
    padding: 10px;
    border: 1px solid #eee;
}

.border-light {
    border: 1px solid #eee;
}

.flex-align-gap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.fs-13 {
    font-size: 1.3rem;
}

.th-primary {
    font-weight: bold;
    color: var(--primary);
    border: 1px solid #eee;
}

.fw-700 {
    font-weight: 700;
}

.text-gold-link {
    color: var(--gold);
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

.list-unstyled {
    list-style: none;
    padding: 0;
}

.anim-delay-05 {
    animation-delay: 0.5s;
}

.anim-delay-1 {
    animation-delay: 1s;
}

.cell-bordered-sm {
    padding: 12px;
    border: 1px solid #ddd;
}

.mt-40 {
    margin-top: 40px;
}

.icon-circle-gold {
    width: 70px;
    height: 70px;
    background: rgba(201, 162, 77, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.table-responsive {
    overflow-x: auto;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.card-img-shadow {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-img-aspect {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    aspect-ratio: 3/2;
    object-fit: cover;
}

/* More utilities */
.step-icon-gold {
    background: var(--gold);
    color: var(--white);
}

.mb-50 {
    margin-bottom: 50px;
}

.pt-0 {
    padding-top: 0;
}

.mt-30 {
    margin-top: 30px;
}

.flex-1 {
    flex: 1;
}

.anim-delay-03 {
    animation-delay: 0.3s;
}

.bg-gray-light {
    background: var(--gray-light);
}

.img-full-rounded {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.fs-25 {
    font-size: 2.5rem;
}

/* Profile page styles (principal/manager) */
.profile-card {
    border-radius: 12px;
    padding: 40px 30px;
    background: var(--white);
}

.profile-hero-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), #0d4a35);
    border-radius: 24px;
    padding: 60px 50px;
    color: var(--white);
    box-shadow: 0 25px 60px rgba(11, 61, 46, 0.25);
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 162, 77, 0.1) 0%, transparent 50%);
}

.profile-text {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.profile-subtitle {
    font-size: 1.05rem;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.profile-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.profile-name {
    margin-bottom: 8px;
    font-size: 2.2rem;
}

.profile-img-col {
    flex: 0 0 auto;
    max-width: 420px;
}

.profile-layout {
    gap: 50px;
    align-items: flex-start;
}

.gold-line {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto 30px;
}

.btn-premium {
    padding: 15px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cream-card {
    padding: 20px;
    background: var(--cream);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section-heading-lg {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.section-icon-fade {
    opacity: 0.8;
}

.anim-delay-15 {
    animation-delay: 1.5s;
}

/* Principal/Manager page styles */
.anim-delay-02 {
    animation-delay: 0.2s;
}

.anim-delay-04 {
    animation-delay: 0.4s;
}

.icon-fixed-width {
    width: 20px;
    display: inline-block;
}

.container-narrow {
    max-width: 1000px;
    margin: 0 auto;
}

.quote-card {
    margin-bottom: 30px;
    padding: 35px;
    border-left: 4px solid var(--gold);
}

.signature-card {
    padding: 35px;
    text-align: center;
    background: white;
}

.signature-name {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 8px;
}

.mb-5 {
    margin-bottom: 5px;
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.profile-cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, #0d4a35 100%);
    border-radius: 24px;
    padding: 70px 50px;
    color: var(--white);
    text-align: center;
}

.profile-overlay-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(201, 162, 77, 0.15), transparent 50%);
}

/* Avatar/card variants */
.avatar-gold-border {
    border: 4px solid var(--gold);
}

.bg-gold {
    background: var(--gold);
}

.bg-primary-light {
    background: var(--primary-light);
}

.p-card-lg {
    padding: 35px 25px;
}

.fw-400 {
    font-weight: 400;
}

.text-muted {
    color: #999;
}

.hero-overlay {
    background: linear-gradient(rgba(0, 36, 31, 0.8), rgba(0, 36, 31, 0.8));
}

/* House system colors */
.house-red {
    border-left-color: #e74c3c;
}

.house-blue {
    border-left-color: #3498db;
}

.house-green {
    border-left-color: #27ae60;
}

.house-yellow {
    border-left-color: #f39c12;
}

.house-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.house-icon-red {
    background: #e74c3c;
}

.house-icon-blue {
    background: #3498db;
}

.house-icon-green {
    background: #27ae60;
}

.house-icon-yellow {
    background: #f39c12;
}

/* Academic calendar */
.feature-gold {
    border-left-color: var(--gold);
}

.card-gold-top {
    border-top: 4px solid var(--gold);
}

.mt-10 {
    margin-top: 10px;
}

.text-left {
    text-align: left;
}

/* Career */
.badge-secondary {
    background: #666;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.email-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.email-link {
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

/* Exam */
.th-fail {
    font-weight: bold;
    color: #d32f2f;
    border: 1px solid #eee;
}

.pb-10 {
    padding-bottom: 10px;
}