/* ==========================================================================
   BETHEL NURSERY AND PRIMARY SCHOOL - PREMIUM BRAND DESIGN STYLE SYSTEM
   ========================================================================== */

/* 1. BRAND DESIGN SYSTEM & ROOT TOKENS */
:root {
    /* Color Palette */
    --color-primary: #1E3A8A;
    /* Royal Blue */
    --color-primary-light: #2563EB;
    /* Premium Blue */
    --color-primary-glow: rgba(37, 99, 235, 0.15);

    --color-secondary: #FBBF24;
    /* Educational Yellow */
    --color-secondary-dark: #FB923C;
    /* Warm Orange */
    --color-secondary-glow: rgba(251, 191, 36, 0.4);

    --color-bg-light: #FFFBF5;
    /* Soft Warm White */
    --color-bg-cream: #FFF7ED;
    /* Warm Cream */
    --color-bg-tint: #EFF6FF;
    /* Soft Blue Tint */
    --color-bg-dark: #0F172A;
    /* Deep Slate for Lightbox & Hero overlays */

    --color-text-primary: #111827;
    /* Slate 900 */
    --color-text-secondary: #4B5563;
    /* Slate 600 */
    --color-text-muted: #6B7280;
    /* Slate 500 */
    --color-text-light: #F3F4F6;
    /* Slate 100 */

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --font-ui: 'Inter', sans-serif;

    /* Spacing System */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Interactive Tokens */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 15px 40px rgba(30, 58, 138, 0.08);
    --shadow-glow: 0 0 30px rgba(251, 191, 36, 0.25);

    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snappy: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Global Section Height Indicator */
    --header-height: 80px;
}

/* 2. BASE RESET & ACCESSIBILITY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    position: relative;
}

body {
    background-color: var(--color-bg-light);
    background-image: url('assets/image123.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
}

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

p {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text-secondary);
}

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

ul {
    list-style: none;
}

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

input,
select,
textarea,
button {
    font-family: var(--font-ui);
    font-size: 1rem;
    outline: none;
}

/* CUSTOM SCROLLBAR FOR MODERN VIEWERS */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-full);
    border: 3px solid var(--color-bg-cream);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

/* ==========================================================================
   3. ANIMATED PAGE LOADING SYSTEM
   ========================================================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: loaderFadeIn 0.4s ease both;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.9s ease;
}

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

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Premium Logo Wrapper for Preloader */
.loader-logo-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    animation: loaderLogoEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.loader-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.35) 0%, rgba(37, 99, 235, 0.15) 50%, transparent 75%);
    animation: glowPulse 2.4s ease-in-out infinite;
    pointer-events: none;
}

.loader-logo-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.55)) drop-shadow(0 0 36px rgba(37, 99, 235, 0.3));
    animation: loaderLogoFloat 3s ease-in-out infinite;
}

@keyframes loaderLogoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.9);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

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

.loader-bar-container {
    width: 160px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.loader-bar {
    width: 0;
    height: 100%;
    background-color: var(--color-secondary);
    border-radius: var(--radius-full);
    animation: loaderProgress 2.2s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

@keyframes loaderProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* ==========================================================================
   4. GLASSMORPHIC NAV BAR & RESPONSIVE HEADER
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
}

/* Sticky glass class activated on scroll */
.main-header.scrolled {
    height: 70px;
    background-color: rgba(255, 251, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(30, 58, 138, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO GROUP */
.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}



.logo-crest {
    width: 48px;
    height: 48px;
    transition: var(--transition-smooth);
}

.logo-crest svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(30, 58, 138, 0.15));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--color-secondary);
    transition: var(--transition-smooth);
}

.logo-subtitle {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-secondary);
    transition: var(--transition-smooth);
}

.main-header.scrolled .logo-crest {
    width: 42px;
    height: 42px;
}

.main-header.scrolled .logo-title {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.main-header.scrolled .logo-subtitle {
    color: var(--color-text-secondary);
}

/* DESKTOP NAV LINKS */
.desktop-nav ul {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 6px 0;
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary);
}

.main-header.scrolled .nav-link {
    color: var(--color-text-secondary);
}

.main-header.scrolled .nav-link:hover,
.main-header.scrolled .nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: var(--transition-snappy);
    border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-nav-cta {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    padding: 10px 22px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* MOBILE HAMBURGER ICON */
.menu-toggle {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10002;
    padding: 0;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-snappy);
}

.menu-toggle.active .bar-top {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar-middle {
    opacity: 0;
    transform: translateX(10px);
}

.menu-toggle.active .bar-bottom {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   5. MOBILE SLIDING DRAWER SYSTEM
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.4s ease;
}

.mobile-drawer.active {
    visibility: visible;
    pointer-events: auto;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-drawer.active .drawer-overlay {
    opacity: 1;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background-color: var(--color-bg-light);
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.mobile-drawer.active .drawer-panel {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(30, 58, 138, 0.08);
    padding-bottom: var(--spacing-sm);
}

.logo-crest.miniature {
    width: 36px;
    height: 36px;
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
}

.logo-title-mini {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
}

/* Logo image in mobile drawer */
.drawer-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(30, 58, 138, 0.2));
}

/* Logo image in footer */
.footer-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.4)) brightness(1.05);
}

.drawer-close {
    font-size: 2.2rem;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.mobile-nav {
    margin: var(--spacing-md) 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
    display: block;
    padding: 4px 0;
}

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

.drawer-footer {
    border-top: 1px solid rgba(30, 58, 138, 0.08);
    padding-top: var(--spacing-sm);
}

.drawer-footer .motto {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--color-primary-light);
    margin-bottom: var(--spacing-xs);
}

.drawer-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-link-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.mini-icon {
    width: 16px;
    height: 16px;
    fill: var(--color-primary-light);
}

/* ==========================================================================
   6. CINEMATIC HERO LAYER & TRUST STRIP TICKER
   ========================================================================== */
.story-layers {
    position: relative;
    width: 100%;
}

.story-layer {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Hero Section specifics */
.hero-layer {
    background-color: var(--color-bg-dark);
    padding-top: calc(var(--header-height) + var(--spacing-md));
    padding-bottom: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/image123.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    z-index: 1;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 30%, rgba(30, 58, 138, 0.72) 100%);
    z-index: 2;
}

.particles-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0.45;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: auto;
    padding: 0 var(--spacing-md);
    text-align: center;
    color: white;
}

.hero-crest-badge {
    display: inline-block;
    padding: 8px 18px;
    background-color: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
}

.badge-text {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-secondary);
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.gradient-text {
    background: linear-gradient(90deg, var(--color-secondary), #FB923C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.hero-subtext {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(243, 244, 246, 0.85);
    max-width: 800px;
    margin: 0 auto var(--spacing-md) auto;
    font-weight: 300;
}

/* Hero Action CTAs */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: var(--spacing-lg);
}

/* GLO BUTTON */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    transition: var(--transition-snappy);
    cursor: pointer;
    border: none;
}

.btn-primary-glowing {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: #111827;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary-glowing:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.55);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    fill: #111827;
    transition: var(--transition-snappy);
}

.btn-primary-glowing:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary-outline {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(6px);
}

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

.btn-whatsapp-inquiry {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-inquiry:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background-color: #20BA5A;
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
}

/* HERO TRUST CARDS */
.hero-trust-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.glass-trust-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.glass-trust-card:hover .card-glow {
    opacity: 1;
    transform: translate(10px, 10px);
}

.glass-trust-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.icon-sphere {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.red-gradient {
    background: linear-gradient(135deg, #EF4444, #B91C1C);
}

.blue-gradient {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.gold-gradient {
    background: linear-gradient(135deg, #F59E0B, #B45309);
}

.icon-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: white;
}

.svg-badge {
    width: 24px;
    height: 24px;
}

.card-meta h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.card-meta p {
    font-size: 0.8rem;
    color: rgba(243, 244, 246, 0.75);
}

/* INFINITE TRUST MARQUEE STRIP */
.trust-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    padding: 14px 0;
    z-index: 10;
}

.trust-ticker-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: tickerInfinite 28s linear infinite;
}

.trust-ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 35px;
}

.bullet-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-secondary);
}

.ticker-text {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
}

@keyframes tickerInfinite {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* FLOATING LAYER NAVIGATOR BUTTONS */
.layer-navigator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition-snappy);
}

.explore-call {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-secondary);
    border-radius: var(--radius-full);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseScrollWheel 1.6s infinite ease-in-out;
}

.layer-navigator:hover .explore-call {
    color: var(--color-secondary);
}

.layer-navigator:hover .mouse-icon {
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

@keyframes mouseScrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    50% {
        top: 16px;
        opacity: 0;
    }

    100% {
        top: 6px;
        opacity: 1;
    }
}

/* Dark mode overrides for navigators */
.layer-navigator.dark-style .explore-call {
    color: var(--color-text-secondary);
}

.layer-navigator.dark-style .mouse-icon {
    border-color: rgba(30, 58, 138, 0.4);
}

.layer-navigator.dark-style:hover .explore-call {
    color: var(--color-primary);
}

.layer-navigator.dark-style:hover .mouse-icon {
    border-color: var(--color-primary);
}

@media (max-width: 768px) {
    .layer-navigator {
        display: none !important;
    }
}

/* ==========================================================================
   7. ABOUT SECTION SPLIT LAYOUT & OVERLAPPING COLLAGE
   ========================================================================== */
.light-layer {
    background-color: var(--color-bg-light);
}

.section-padding {
    padding: var(--spacing-lg) 0;
    max-width: 1300px;
    margin: 0 auto;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 70px;
    padding: 0 var(--spacing-md);
}

/* LEFT SIDE COLLAGE */
.collage-container {
    position: relative;
    width: 100%;
    padding-bottom: 40px;
}

.main-collage-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 8px solid white;
    z-index: 3;
}

.card-image-wrapper {
    width: 100%;
    height: 480px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}

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

.collage-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border: 6px solid var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    text-align: center;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.25);
    color: white;
    white-space: nowrap;
    width: max-content;
}

.collage-badge .gold-text {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--color-secondary);
    line-height: 1;
}

.collage-badge .sub-meta {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.secondary-collage-card {
    position: absolute;
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    width: 240px;
    height: 170px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border: 6px solid white;
    z-index: 4;
}

.secondary-collage-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-accent-frame {
    position: absolute;
    top: -25px;
    right: -25px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-secondary);
    border-radius: var(--radius-lg);
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

/* RIGHT SIDE NARRATIVE */
.narrative-wrapper {
    display: flex;
    flex-direction: column;
}

.section-label {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--color-primary-light);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.paragraph-highlight {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.body-paragraph {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.values-checklist {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: var(--spacing-md);
}

.value-item {
    display: flex;
    gap: 16px;
}

.check-icon-box {
    width: 28px;
    height: 28px;
    background-color: var(--color-bg-tint);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.check-icon {
    width: 16px;
    height: 16px;
    fill: var(--color-primary-light);
}

.value-meta h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.value-meta p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.narrative-footer {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.25);
}

/* ==========================================================================
   8. FOUNDER LEGACY PORTRAIT FRAME & WARM quote CARD
   ========================================================================== */
.warm-layer {
    background-color: var(--color-bg-cream);
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 247, 237, 0.4) 0%, rgba(251, 146, 60, 0.05) 90%);
}

.founder-card-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 var(--spacing-md);
}

.text-gold {
    color: var(--color-secondary-dark);
}

.text-white {
    color: var(--color-primary);
}

.years-pill {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(251, 146, 60, 0.1);
    color: var(--color-secondary-dark);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
}

.quote-container {
    background-color: white;
    border-left: 5px solid var(--color-secondary);
    padding: 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--spacing-md);
}

.quote-body {
    font-size: 1.15rem;
    font-weight: 500;
    font-style: italic;
    color: var(--color-text-primary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.quote-signature {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.founder-narrative {
    font-size: 0.98rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xs);
}

/* PORTRAIT SYSTEM */
.founder-portrait-column {
    display: flex;
    justify-content: center;
}

.portrait-glowing-frame {
    position: relative;
    padding: 10px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    box-shadow: 0 20px 50px rgba(251, 146, 60, 0.2);
}

.portrait-container {
    position: relative;
    width: 100%;
    max-width: 330px;
    height: 440px;
    border-radius: calc(var(--radius-lg) - 6px);
    overflow: hidden;
    z-index: 2;
}

.founder-portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.portrait-glowing-frame:hover .founder-portrait-image {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.portrait-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 50%);
    z-index: 3;
}

.flower-crest-ornament {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: white;
    border: 3px solid var(--color-bg-cream);
    border-radius: var(--radius-full);
    padding: 8px 22px;
    z-index: 5;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
    white-space: nowrap;
}

.crest-text {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================================
   9. INTERACTIVE FACILITIES GRID
   ========================================================================== */
.centered-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg) auto;
    padding: 0 var(--spacing-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 30px;
    padding: 0 var(--spacing-md);
}

.facility-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 40px var(--spacing-md);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 138, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.facility-card:hover .card-bg-glow {
    opacity: 1;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(37, 99, 235, 0.15);
}

.facility-icon {
    width: 58px;
    height: 58px;
    background-color: var(--color-bg-tint);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-snappy);
}

.icon-svg {
    width: 28px;
    height: 28px;
    fill: var(--color-primary-light);
    transition: var(--transition-snappy);
}

.facility-card:hover .facility-icon {
    background-color: var(--color-primary);
}

.facility-card:hover .icon-svg {
    transform: scale(1.1) rotate(5deg);
}

.facility-card:hover .icon-svg path {
    fill: white;
}

.facility-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

/* ==========================================================================
   10. PREMIUM GALLERY MASONRY SYSTEM
   ========================================================================== */
.dark-blue-layer {
    background-color: #0B132B;
    background-image: radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
}

.text-light {
    color: rgba(243, 244, 246, 0.75);
}

/* CATEGORY FILTERS */

/* Hide legacy gallery items after migration */
.gallery-item {
    display: none !important;
}

/* Carousel container styling */
.gallery-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    background-color: var(--color-bg-dark);
}

.gallery-marquee .marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.gallery-marquee .marquee-track img {
    flex: 0 0 auto;
    width: 260px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-right: 20px;
}

.gallery-marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .gallery-marquee .marquee-track img {
        width: 180px;
        height: 130px;
    }
}

.gallery-carousel img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
    margin: 0 auto;
}

/* Carousel navigation dots */
.carousel-dots {
    text-align: center;
    margin-top: 12px;
}

.carousel-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
    transition: var(--transition-snappy);
}

.carousel-dots span.active {
    opacity: 1;
    transform: scale(1.2);
}


.filter-btn {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 22px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-snappy);
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.filter-btn.active {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #111827;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.35);
}

/* MASONRY SYSTEM */
.gallery-grid-masonry {
    column-count: 3;
    column-gap: 20px;
    padding: 0 var(--spacing-md);
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

/* Fade out inactive categories class */
.gallery-item.hidden {
    display: none;
}

.gallery-card-inner {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.02);
}

.gallery-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card-inner:hover .gallery-thumbnail {
    transform: scale(1.08);
}

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 24px;
    z-index: 2;
}

.gallery-card-inner:hover .gallery-hover-overlay {
    opacity: 1;
}

.overlay-meta {
    max-width: 80%;
    color: white;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(251, 191, 36, 0.2);
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.overlay-meta h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 2px;
}

.overlay-meta p {
    font-size: 0.78rem;
    color: rgba(243, 244, 246, 0.8);
}

.view-indicator-circle {
    width: 44px;
    height: 44px;
    background-color: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.svg-eye {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   11. CINEMATIC FULLSCREEN POPUP MODAL (LIGHTBOX)
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    /* Controlled in JS */
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3.5rem;
    cursor: pointer;
    z-index: 10005;
    transition: var(--transition-snappy);
    opacity: 0.7;
}

.lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10004;
    transition: var(--transition-snappy);
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-nav:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.lightbox-stage {
    max-width: 900px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10002;
}

.lightbox-active-img {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 4px solid rgba(255, 255, 255, 0.08);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.lightbox-active-img.reveal {
    transform: scale(1);
    opacity: 1;
}

.lightbox-caption-box {
    margin-top: 24px;
    text-align: center;
    color: white;
    max-width: 650px;
}

.lightbox-category {
    font-family: var(--font-ui);
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 6px;
}

.lightbox-title {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 6px;
}

.lightbox-desc {
    font-size: 0.9rem;
    color: rgba(243, 244, 246, 0.75);
    margin-bottom: 16px;
}

.btn-lightbox-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-snappy);
}

.btn-lightbox-download:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #111827;
    transform: translateY(-2px);
}

.svg-down {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ==========================================================================
   12. ADMISSIONS CONVERSION GRID
   ========================================================================== */
.admissions-card {
    background-color: #0F172A;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-glow-aurora {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.admissions-card-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.badge-admissions {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-full);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.admissions-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: white;
    margin-bottom: 12px;
}

.admissions-subtitle {
    color: rgba(243, 244, 246, 0.8);
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto var(--spacing-lg) auto;
}

.admissions-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 30px;
    margin-bottom: var(--spacing-lg);
}

.step-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px var(--spacing-sm);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-snappy);
}

.step-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.step-num {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    color: white;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.step-card h4 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.step-card p {
    color: rgba(243, 244, 246, 0.65);
    font-size: 0.85rem;
}

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

.btn-secondary-glowing {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: #111827;
    box-shadow: var(--shadow-glow);
}

.btn-secondary-glowing:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.5);
}

.btn-glass-dark {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-glass-dark:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
    border-color: white;
}

.btn-glass-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #25D366;
}

.btn-glass-whatsapp:hover {
    background: #25D366;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.cta-phone-icon,
.cta-wa-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================================
   13. CONTACT FORM, WORK HOURS & LIVE GOOGLE MAPS
   ========================================================================== */
.soft-cream-layer {
    background-color: var(--color-bg-cream);
}

.contact-split-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    padding: 0 var(--spacing-md);
}

.contact-desc-para {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.info-details-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: var(--spacing-md);
}

.info-card {
    display: flex;
    gap: 16px;
    background-color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(30, 58, 138, 0.03);
}

.info-icon-sphere {
    width: 46px;
    height: 46px;
    background-color: var(--color-bg-tint);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.info-svg-icon {
    width: 22px;
    height: 22px;
    fill: var(--color-primary-light);
}

.info-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.info-content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.phone-links a:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

/* DOWNLOAD BROCHURE CARD BUTTON */
.brochure-download-container {
    width: 100%;
}

.btn-brochure-download {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(30, 58, 138, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.brochure-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.06), transparent);
    opacity: 0;
    transition: var(--transition-snappy);
}

.btn-brochure-download:hover .brochure-glow {
    opacity: 1;
}

.btn-brochure-download:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary-light);
}

.download-icon-box {
    width: 44px;
    height: 44px;
    background-color: var(--color-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.35);
    flex-shrink: 0;
}

.download-arrow {
    width: 22px;
    height: 22px;
    fill: var(--color-primary);
    transition: var(--transition-snappy);
}

.btn-brochure-download:hover .download-arrow {
    transform: translateY(2px);
}

.brochure-meta span {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.brochure-meta p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* RIGHT SIDE FORM & MAP */
.premium-form-box {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(30, 58, 138, 0.05);
    margin-bottom: 30px;
}

.premium-form-box h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.premium-form-box p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.form-row {
    margin-bottom: 18px;
    width: 100%;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(75, 85, 99, 0.15);
    background-color: var(--color-bg-light);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    transition: var(--transition-snappy);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary-light);
    background-color: white;
    box-shadow: 0 0 10px var(--color-primary-glow);
}

.btn-submit-form {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    box-shadow: var(--shadow-medium);
    padding: 14px;
}

.btn-submit-form:hover {
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
    transform: translateY(-2px);
}

.send-icon {
    width: 18px;
    height: 18px;
    fill: white;
}

.form-status-msg {
    margin-top: 14px;
    font-size: 0.88rem;
    text-align: center;
    font-weight: 600;
}

.form-status-msg.success {
    color: #10B981;
}

.form-status-msg.error {
    color: #EF4444;
}

/* GOOGLE MAPS CARD */
.map-embed-card {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: none;
    /* removed fixed border to eliminate gap */
    aspect-ratio: 16 / 9;
    /* maintain 16:9 aspect ratio */
}

.map-embed-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-embed-card iframe {
    display: block;
}

/* ==========================================================================
   14. FLOATING ACTION CORNER BUTTONS (WHATSAPP & INSTAGRAM)
   ========================================================================== */
.floating-interactions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.2);
    transition: var(--transition-snappy);
    position: relative;
}

.whatsapp-float {
    background-color: #25D366;
}

.instagram-float {
    background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
}

.float-btn:hover {
    transform: scale(1.1) translateY(-3px);
}

.svg-float {
    width: 26px;
    height: 26px;
}

/* Pulse animation on WhatsApp */
.pulse-anim::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.5;
    z-index: -1;
    animation: pulseBorder 2s infinite ease-out;
}

@keyframes pulseBorder {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Float Tooltip */
.float-tooltip {
    position: absolute;
    right: 70px;
    background-color: var(--color-primary);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-snappy);
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.float-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
}

.float-btn:hover .float-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   15. ROYAL BLUE LAYERED SYSTEM FOOTER
   ========================================================================== */
.layered-footer {
    background-color: #0A1128;
    color: white;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top-accent {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-secondary), var(--color-secondary-dark));
}

.footer-content-grid {
    padding: 70px var(--spacing-md) 40px var(--spacing-md);
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h4 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

/* Brief Column Specifics */
.school-footer-motto {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--color-secondary);
    margin-top: 4px;
    margin-bottom: 12px;
}

.logo-crest.miniature.inverted {
    background-color: white;
    color: var(--color-primary);
}

.school-footer-summary {
    font-size: 0.85rem;
    color: rgba(243, 244, 246, 0.65);
    margin-bottom: 20px;
}

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

.footer-social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-snappy);
}

.footer-social-links a svg {
    width: 18px;
    height: 18px;
}

.footer-social-links a:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.footer-social-links a:hover svg path {
    fill: #111827;
}

/* Nav Link Column */
.navigation-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.navigation-links-col a {
    font-size: 0.88rem;
    color: rgba(243, 244, 246, 0.65);
}

.navigation-links-col a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

/* Trust Column */
.institutional-trust-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.institutional-trust-col li {
    font-size: 0.88rem;
    color: rgba(243, 244, 246, 0.65);
}

.institutional-trust-col li strong {
    color: white;
}

/* Operation Hours Column */
.operational-hours-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.72rem;
    font-family: var(--font-ui);
    color: rgba(243, 244, 246, 0.45);
    text-transform: uppercase;
    font-weight: 600;
}

.contact-val {
    font-size: 0.9rem;
    color: rgba(243, 244, 246, 0.85);
    font-weight: 500;
}

.contact-val a:hover {
    color: var(--color-secondary);
}

/* Bottom copyright info */
.footer-bottom-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px var(--spacing-md);
    background-color: #060A18;
}

.copyright-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.copyright-wrapper p {
    font-size: 0.78rem;
    color: rgba(243, 244, 246, 0.45);
}

.tribute-brief span {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: rgba(251, 146, 60, 0.6);
    font-weight: 500;
}

/* ==========================================================================
   16. PERFORMANCE SCROLL REVEAL (GLOBAL SYSTEM)
   ========================================================================== */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active animation state triggered by Observer in JS */
.reveal-active {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Delay modifiers */
.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

/* ==========================================================================
   17. MEDIA QUERIES (MOBILE FIRST BREAKPOINTS)
   ========================================================================== */

/* Up to Tablet Widths (1024px) */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
        /* Pull menu trigger */
    }

    .menu-toggle {
        display: flex;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .secondary-collage-card {
        left: 20px;
        top: auto;
        bottom: -20px;
        transform: none;
    }

    .founder-card-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .founder-portrait-column {
        order: -1;
        /* Display portrait above memorial biography on mobile */
    }

    .contact-split-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

/* Small Tablets and Mobile Devices (768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .main-header.scrolled {
        height: 60px;
    }

    .hero-layer {
        padding-top: calc(var(--header-height) + 20px);
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-trust-cards-wrapper {
        grid-template-columns: 1fr;
    }

    .secondary-collage-card {
        width: 150px;
        height: 100px;
        left: 10px;
        bottom: -15px;
    }

    .collage-badge {
        right: -5px;
        bottom: -10px;
        padding: 12px 18px;
        border-width: 4px;
    }

    .collage-badge .gold-text {
        font-size: 1.6rem;
    }

    .collage-badge .sub-meta {
        font-size: 0.65rem;
    }

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

    .gallery-grid-masonry {
        column-count: 2;
        /* 2 Column grid on mobile */
    }

    .admissions-steps {
        grid-template-columns: 1fr;
    }

    .split-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .btn-nav-cta {
        display: none;
        /* Hide on thin headers, keep inside Admissions drawer instead */
    }

    .copyright-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .lightbox-modal {
        padding: var(--spacing-xs);
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }

    .btn-lightbox-download span {
        display: none;
        /* Icon-only download on tiny mobile overlays */
    }

    .btn-lightbox-download {
        padding: 10px;
    }

    .floating-interactions {
        bottom: 20px;
        right: 20px;
    }

    .float-btn {
        width: 48px;
        height: 48px;
    }

    .svg-float {
        width: 22px;
        height: 22px;
    }
}

/* Very narrow devices (480px) */
@media (max-width: 480px) {
    .gallery-grid-masonry {
        column-count: 1;
        /* Pure single list masonry on tiny vertical screens */
    }

    .footer-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-image-wrapper {
        height: 320px;
    }

    .portrait-container {
        width: 280px;
        height: 380px;
    }

    .premium-form-box {
        padding: 24px 16px;
    }

    /* Mobile overflow and alignment fixes */
    html,
    body {
        overflow-x: hidden;
    }

    .story-layer,
    .hero-layer,
    .map-embed-card,
    .info-card,
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    .floating-interactions {
        bottom: 80px;
        /* ensure spacing from bottom for the whole group */
    }

    @media (max-width: 768px) {
        .footer-content-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Responsive preloader logo sizing */
    .loader-logo-wrapper {
        width: 130px;
        height: 130px;
    }

    .loader-logo-img {
        width: 120px;
        height: 120px;
    }

    .loader-logo-glow {
        width: 150px;
        height: 150px;
    }
}