/* ==========================================================================
   ANANDHA NURSERY & PRIMARY SCHOOL - MODERN 2026 STYLESHEET
   Location: Melpattampakkam, Cuddalore District, Tamil Nadu – 607104
   Design: Educational + Trust + Childhood + Growth + Modern Glassmorphism
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --navy-950: #060b17;
    --navy-900: #0a1226;
    --navy-850: #0e1b38;
    --navy-800: #14244b;
    --navy-700: #1e3a8a;
    --royal-blue: #2563eb;
    --royal-hover: #1d4ed8;
    --sky-blue: #38bdf8;
    --sky-light: #e0f2fe;
    --sky-glow: rgba(56, 189, 248, 0.28);

    /* Warm Accents (Subtle, balanced) */
    --accent-amber: #f59e0b;
    --accent-gold: #fbbf24;
    --accent-orange: #f97316;
    --accent-warm-glow: rgba(245, 158, 11, 0.22);

    /* Fresh Educational Accents */
    --accent-emerald: #10b981;
    --emerald-light: #ecfdf5;

    /* Neutral Surfaces */
    --canvas-bg: #f8fafc;
    --surface-white: #ffffff;
    --surface-alt: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-light: rgba(148, 163, 184, 0.22);
    --border-subtle: rgba(226, 232, 240, 0.8);

    /* Glassmorphism Tokens */
    --hero-glass-bg: rgba(255, 255, 255, 0.10);
    --hero-glass-border: rgba(255, 255, 255, 0.22);
    --hero-glass-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);

    --card-glass-bg: rgba(255, 255, 255, 0.82);
    --card-glass-border: rgba(255, 255, 255, 0.9);
    --card-glass-shadow: 0 12px 32px -6px rgba(14, 27, 56, 0.08), 0 4px 12px -2px rgba(14, 27, 56, 0.04);
    --card-hover-shadow: 0 24px 48px -10px rgba(14, 27, 56, 0.14), 0 8px 16px -4px rgba(14, 27, 56, 0.06);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', sans-serif;

    /* Spacing & Transitions */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

/* Offset sticky/fixed navbar on anchor jump & smooth scroll */
#home,
#about,
#classes,
#activities,
#contact,
.section[id] {
    scroll-margin-top: 88px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--canvas-bg);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: var(--sky-blue);
    color: var(--navy-950);
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

ul {
    list-style: none;
}

/* Accessibility Focus Outline */
:focus-visible {
    outline: 2px solid var(--royal-blue);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   3. Ambient Decorative Glow Blobs
   -------------------------------------------------------------------------- */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    transition: transform 10s ease-in-out;
}

.glow-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--sky-blue) 0%, rgba(56, 189, 248, 0) 70%);
    top: -150px;
    left: -150px;
    animation: driftBlobOne 22s infinite alternate ease-in-out;
}

.glow-blob-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--royal-blue) 0%, rgba(37, 99, 235, 0) 70%);
    top: 35%;
    right: -200px;
    animation: driftBlobTwo 26s infinite alternate ease-in-out;
}

.glow-blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-amber) 0%, rgba(245, 158, 11, 0) 70%);
    bottom: 10%;
    left: -100px;
    opacity: 0.2;
    animation: driftBlobOne 20s infinite alternate-reverse ease-in-out;
}

@keyframes driftBlobOne {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(60px, 80px) scale(1.1);
    }

    100% {
        transform: translate(-40px, 40px) scale(0.95);
    }
}

@keyframes driftBlobTwo {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-80px, -60px) scale(1.08);
    }

    100% {
        transform: translate(40px, -30px) scale(0.92);
    }
}

/* --------------------------------------------------------------------------
   4. Global Header / Navbar — Apple iOS Liquid Glass Floating Capsule
   Dynamic Island inspired floating pill with rich refraction, specular rim & blur
   -------------------------------------------------------------------------- */
.site-header,
.navbar {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1280px;
    z-index: 1000;
    padding: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(28px) saturate(190%) contrast(100%);
    -webkit-backdrop-filter: blur(28px) saturate(190%) contrast(100%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 10px 32px -4px rgba(15, 23, 42, 0.08),
        0 4px 12px -2px rgba(15, 23, 42, 0.04),
        inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Specular Liquid Top Sheen */
.site-header::before,
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9) 50%, transparent);
    pointer-events: none;
    border-radius: 9999px;
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px 8px 12px;
    background: transparent;
    border: none;
    border-radius: 9999px;
    box-shadow: none;
    transition: padding 0.35s ease;
}

/* Header Scrolled State — refined frosted liquid glass depth */
.site-header.scrolled,
.navbar.scrolled {
    top: 10px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 14px 38px -4px rgba(15, 23, 42, 0.12),
        0 6px 16px -2px rgba(15, 23, 42, 0.06),
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 1px 0 rgba(255, 255, 255, 0.4);
}

.site-header.scrolled .nav-container {
    padding: 6px 16px 6px 10px;
}

/* Brand Link */
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-frame {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-bounce), width 0.3s ease, height 0.3s ease;
}

.site-header.scrolled .brand-logo-frame {
    width: 44px;
    height: 44px;
}

.brand-link:hover .brand-logo-frame {
    transform: scale(1.05) rotate(-2deg);
}

.brand-logo,
.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.brand-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.05;
    color: #0f172a;
    letter-spacing: -0.015em;
    transition: color 0.3s ease;
}

.brand-subtitle {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1d4ed8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    margin-top: 2px;
}

.brand-location {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

/* Scrolled text colors — identical to default for stable clarity */
.site-header.scrolled .brand-title {
    color: #0f172a;
}

.site-header.scrolled .brand-subtitle {
    color: #1d4ed8;
}

.site-header.scrolled .brand-location {
    color: #64748b;
}

/* Desktop Nav Links — Apple Liquid Glass Capsule Pills */
.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 0.96rem;
    font-weight: 600;
    color: #334155;
    border-radius: 9999px;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

/* Active Liquid Tint Pill */
.nav-link.active {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow:
        inset 0 1px 1.5px rgba(255, 255, 255, 0.8),
        0 2px 8px rgba(37, 99, 235, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header.scrolled .nav-link {
    color: #334155;
}

.site-header.scrolled .nav-link:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.95);
}

.site-header.scrolled .nav-link.active {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(37, 99, 235, 0.24);
}

/* Apple iOS Action Pill (Contact Button) */
.nav-contact-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    padding: 8px 22px !important;
    font-size: 0.96rem !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    margin-left: 6px;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow:
        0 4px 14px rgba(37, 99, 235, 0.38),
        inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-contact-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1.5px) scale(1.02) !important;
    box-shadow:
        0 6px 20px rgba(37, 99, 235, 0.48),
        inset 0 1px 1.5px rgba(255, 255, 255, 0.65) !important;
}

/* Mobile Toggle — dark icon on light header, always visible */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
    gap: 5px;
    padding: 8px;
    transition: all var(--transition-fast);
}

.site-header.scrolled .mobile-menu-toggle {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.15);
}

.hamburger-bar {
    width: 20px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.site-header.scrolled .hamburger-bar {
    background: #0f172a;
}

/* Mobile Toggle Active State */
.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 84px;
    left: 20px;
    right: 20px;
    background: rgba(14, 27, 56, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6);
    transform: translateY(-15px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.mobile-nav-drawer.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}

.mobile-brand-title {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
}

.mobile-brand-sub {
    font-size: 0.75rem;
    color: var(--sky-blue);
    font-weight: 500;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--sky-blue);
}

.mobile-contact-link {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--navy-700) 100%);
    color: #ffffff !important;
    text-align: center;
    margin-top: 8px;
}

.mobile-nav-footer {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mobile-motto {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-gold);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.mobile-timing {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   5. Hero Section & Cinematic Photo Showcase (Clean Cross-Fade)
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy-950);
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Carousel Track & Stacked Crossfade Slides */
.carousel-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navy-950);
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.75s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

/* Hero Photography (Natural aspect ratio, uncropped school signboard) */
.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Full Building Visible — anchored near top so blue signboard sits with breathing room below navbar */
.hero-img-building {
    object-fit: cover;
    object-position: center 10%;
}

.hero-img-assembly {
    object-position: center 38%;
}

.hero-img-reception {
    object-position: center 42%;
}

.hero-img-students {
    object-position: center 30%;
}

/* Vignette Overlay Removed (Web PC and Mobile) */
.hero-image-overlay {
    display: none !important;
    background: none !important;
}

/* Overlay Content (Positioned towards bottom-left gracefully) */
.hero-overlay-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 5vw 72px;
    max-width: 1400px;
    margin: 0 auto;
    left: 0;
    right: 0;
    pointer-events: none;
}

.hero-content-wrapper {
    max-width: 650px;
    pointer-events: auto;
}

/* Kicker / Tagline (AMS Reference: BE APART OF OUR HISTORY) */
.hero-kicker {
    font-family: var(--font-display);
    font-size: clamp(0.92rem, 1.4vw, 1.12rem);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

/* Main Heading (Clean Typography directly over photograph - Plus Jakarta Sans) */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 600;
    line-height: 1.12;
    color: #ffffff;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hero-title-highlight {
    color: #38bdf8;
    background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

/* Supporting Subtitle */
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    max-width: 620px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
    margin-bottom: 24px;
}

/* Hero Action CTA Button (AMS Reference Style) */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-btn-enroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1d4ed8;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.4);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-enroll:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.55);
    color: #ffffff;
}

.hero-btn-enroll .btn-arrow {
    transition: transform 0.25s ease;
}

.hero-btn-enroll:hover .btn-arrow {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. General Section Architecture
   -------------------------------------------------------------------------- */
.section {
    position: relative;
    padding: 100px 24px;
    z-index: 10;
}

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

/* Section Header Component */
.section-header {
    text-align: center;
    margin-bottom: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--royal-blue);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tag-icon {
    color: var(--royal-blue);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.6;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--royal-blue), var(--sky-blue));
    border-radius: var(--radius-full);
    margin-top: 18px;
}

/* --------------------------------------------------------------------------
   7. About Us Section
   -------------------------------------------------------------------------- */
.about-section {
    background: linear-gradient(to bottom, #ffffff 0%, var(--surface-alt) 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.about-hero-card {
    position: relative;
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--card-glass-shadow);
    margin-bottom: 28px;
    overflow: hidden;
}

.about-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--royal-blue), var(--sky-blue));
}

.about-quote-mark {
    position: absolute;
    top: 10px;
    right: 28px;
    font-family: var(--font-heading);
    font-size: 7rem;
    line-height: 1;
    color: rgba(37, 99, 235, 0.05);
    user-select: none;
    pointer-events: none;
}

.about-lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--navy-900);
    font-weight: 500;
    max-width: 950px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.about-signature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.signature-line {
    width: 40px;
    height: 2px;
    background: var(--accent-amber);
}

.signature-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ==========================================================================
   Staff Profiles Showcase (About Us Section)
   Layout follows handwritten reference:
   - Row 1 (3 cards): Abdul Rahman, Abdul Razak, Nachiyar
   - Row 2 (2 cards): Valarmathy, R. Ranjani B.Sc,B. Ed (centered horizontally under Row 1)
   ========================================================================== */
.staff-profiles-section {
    margin-bottom: 48px;
    position: relative;
    scroll-margin-top: 104px;
    /* Ensure fixed navbar never overlaps or hides first card */
}

.staff-section-header {
    text-align: center;
    margin-bottom: 24px;
    /* Clean spacing without unnecessary empty space */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.8vw, 1.95rem);
    font-weight: 700;
    color: var(--navy-900);
    margin-top: 8px;
    letter-spacing: -0.01em;
}

.staff-title-underline {
    margin: 10px auto 0;
}

/* Single ordered CSS Grid:
   Desktop: 6 columns
   - Cards 1, 2, 3: span 2 each (Row 1: exactly 3 cards)
   - Card 4: starts at col 2, spans 2 (cols 2 & 3)
   - Card 5: spans 2 (cols 4 & 5)
   Cols 1 and 6 are empty in Row 2, perfectly centering the 2 cards horizontally underneath Row 1.
*/
.staff-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px;
    max-width: 1040px;
    margin: 0 auto;
    width: 100%;
}

.staff-card {
    grid-column: span 2;
    position: relative;
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 30px 22px 24px;
    box-shadow: var(--card-glass-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-bounce), box-shadow var(--transition-smooth), border-color 0.3s ease;
    overflow: hidden;
    width: 100%;
}

/* Second row: exactly 2 cards centered underneath Row 1 */
.staff-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.staff-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--royal-blue), var(--sky-blue));
    opacity: 0.85;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(37, 99, 235, 0.35);
}

.staff-card:hover::before {
    height: 5px;
    opacity: 1;
}

.staff-avatar-wrap {
    position: relative;
    width: 176px;
    height: 176px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.45), 0 10px 28px -4px rgba(14, 27, 56, 0.16);
    margin-bottom: 18px;
    background-color: var(--surface-alt);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.staff-card:hover .staff-avatar-wrap {
    transform: scale(1.04);
    box-shadow: 0 0 0 3px var(--royal-blue), 0 14px 34px -4px rgba(37, 99, 235, 0.28);
}

.staff-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    transform: scale(1.22);
    transform-origin: center 25%;
    transition: transform 0.4s ease;
}

.staff-card:hover .staff-avatar-img {
    transform: scale(1.28);
}

.staff-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-900);
    margin: 0 0 8px;
    line-height: 1.3;
}

.staff-designation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--royal-blue);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.staff-card:hover .staff-designation {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(37, 99, 235, 0.35);
}

/* Vision & Mission Dual Cards */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.pillar-card {
    position: relative;
    background: var(--card-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--card-glass-shadow);
    transition: transform var(--transition-bounce), box-shadow var(--transition-smooth), border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.pillar-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.pillar-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-bounce);
}

.pillar-card:hover .pillar-icon-box {
    transform: scale(1.1) rotate(-4deg);
}

.vision-icon-box {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: var(--royal-blue);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.mission-icon-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(249, 115, 22, 0.15) 100%);
    color: var(--accent-orange);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.pillar-title-group {
    display: flex;
    flex-direction: column;
}

.pillar-pretitle {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy-900);
}

.pillar-description {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pillar-accent-bar {
    width: 100%;
    height: 4px;
    border-radius: var(--radius-full);
}

.vision-bar {
    background: linear-gradient(90deg, var(--sky-blue) 0%, var(--royal-blue) 100%);
}

.mission-bar {
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
}

/* --------------------------------------------------------------------------
   8. Classes Offered Section
   -------------------------------------------------------------------------- */
.classes-section {
    background: var(--canvas-bg);
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.class-card {
    position: relative;
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px 28px 28px;
    box-shadow: var(--card-glass-shadow);
    transition: transform var(--transition-bounce), box-shadow var(--transition-smooth), border-color 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(37, 99, 235, 0.35);
}

/* Watermark Number in Card Background */
.class-watermark {
    position: absolute;
    top: 12px;
    right: 18px;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(148, 163, 184, 0.12);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: color 0.3s ease;
}

.class-card:hover .class-watermark {
    color: rgba(37, 99, 235, 0.1);
}

.class-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform var(--transition-bounce);
}

.class-card:hover .class-icon-wrapper {
    transform: scale(1.12);
}

.pre-kg-icon {
    background: rgba(56, 189, 248, 0.14);
    color: #0284c7;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.lkg-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.ukg-icon {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.grades-icon {
    background: rgba(37, 99, 235, 0.14);
    color: var(--royal-blue);
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.class-stage-pill {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-alt);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.class-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.class-description {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.class-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.footer-highlight {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy-850);
}

.footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--royal-blue);
}

/* Featured Badge on Grade 1-7 */
.class-card-featured {
    border-color: rgba(37, 99, 235, 0.3);
    background: linear-gradient(to bottom, #ffffff 0%, #f0f7ff 100%);
}

/* --------------------------------------------------------------------------
   8b. Classroom Showcase Extension (10 Individual Class Cards)
   -------------------------------------------------------------------------- */
.classroom-showcase-wrap {
    margin-top: 56px;
    padding-top: 24px;
}

.classroom-showcase-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.classroom-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.classroom-divider-pill {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--royal-blue);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 5px 14px;
    border-radius: var(--radius-full);
}

.classroom-showcase-header {
    text-align: center;
    margin-bottom: 36px;
}

.classroom-showcase-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.classroom-showcase-subtitle {
    font-size: 0.96rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.55;
}

/* Classroom Cards Grid — 4 columns desktop for 8 cards (2 balanced rows of 4) */
.classroom-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Individual Classroom Card */
.classroom-card {
    position: relative;
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px 14px 18px;
    box-shadow: var(--card-glass-shadow);
    transition: transform var(--transition-bounce), box-shadow var(--transition-smooth), border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

/* Empty Image Container — strictly 4:3, neutral, subtle border, rounded */
.classroom-image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid rgba(203, 213, 225, 0.7);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    display: block;
}

/* When photographs are attached later */
.classroom-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    transition: transform var(--transition-bounce);
}

.classroom-card:hover .classroom-card-img {
    transform: scale(1.05);
}

/* Photo Image Container with Touch/Click Indicator */
.classroom-image-container.has-photo {
    cursor: pointer;
}

.classroom-image-container.has-photo::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(6, 11, 23, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") no-repeat center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0.88;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.classroom-card:hover .classroom-image-container.has-photo::after {
    opacity: 1;
    transform: scale(1.1);
    background-color: var(--royal-blue);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Card Section Switcher (Grade 2 Sec A / Sec B) */
.card-section-switcher {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    background: rgba(6, 11, 23, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 2px;
    gap: 2px;
}

.sec-pill-btn {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    line-height: 1.2;
}

.sec-pill-btn:hover {
    color: #ffffff;
}

.sec-pill-btn.active {
    background: var(--royal-blue);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Card Body & Typography */
.classroom-card-body {
    padding: 14px 2px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.classroom-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.classroom-stage-pill {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-alt);
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.classroom-card-meta .classroom-stage-pill {
    margin-bottom: 0;
}

.classroom-sections-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--royal-blue);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.22);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.classroom-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 6px;
    line-height: 1.25;
}

.classroom-card-desc {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0;
}

/* --------------------------------------------------------------------------
   8c. Classroom Image Pop-up Lightbox Modal
   -------------------------------------------------------------------------- */
.classroom-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 16px;
    box-sizing: border-box;
}

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

.classroom-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 11, 23, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
}

.classroom-lightbox-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    max-width: 96vw;
    max-height: 94vh;
    width: auto;
    margin: auto;
    transform: scale(0.94);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.classroom-lightbox-modal.active .classroom-lightbox-container {
    transform: scale(1);
}

.classroom-lightbox-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 12px;
    gap: 12px;
}

.classroom-lightbox-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.classroom-lightbox-tag {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.classroom-lightbox-stage-pill {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sky-blue);
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

/* Modal Section Switcher */
.modal-section-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 2px;
    gap: 3px;
    margin-left: 8px;
}

.modal-sec-btn {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-sec-btn:hover {
    color: #ffffff;
}

.modal-sec-btn.active {
    background: var(--royal-blue);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.classroom-lightbox-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.classroom-lightbox-close:hover,
.classroom-lightbox-close:active {
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fca5a5;
    transform: scale(1.08);
}

.classroom-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 76vh;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #000000;
}

.classroom-lightbox-img {
    display: block;
    max-width: 92vw;
    max-height: 76vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.classroom-lightbox-bottom-bar {
    padding: 12px 6px 0;
    text-align: center;
}

.classroom-lightbox-caption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.45;
}

@media (max-width: 600px) {
    .classroom-lightbox-stage {
        max-width: 95vw;
        max-height: 70vh;
    }

    .classroom-lightbox-img {
        max-width: 95vw;
        max-height: 70vh;
    }

    .classroom-lightbox-tag {
        font-size: 1.05rem;
    }

    .classroom-lightbox-stage-pill {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    .classroom-lightbox-caption {
        font-size: 0.8rem;
    }
}

/* --------------------------------------------------------------------------
   9. School Activities Section
   -------------------------------------------------------------------------- */
.activities-section {
    background: linear-gradient(to bottom, var(--surface-alt) 0%, #ffffff 100%);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.activity-card {
    position: relative;
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 14px rgba(10, 18, 38, 0.04);
    transition: transform var(--transition-bounce), box-shadow var(--transition-smooth), border-color 0.25s ease;
}

.activity-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 32px -6px rgba(14, 27, 56, 0.1);
    border-color: rgba(37, 99, 235, 0.35);
}

.activity-icon-container {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(56, 189, 248, 0.1) 100%);
    color: var(--royal-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-bounce), background 0.3s ease, color 0.3s ease;
}

.activity-card:hover .activity-icon-container {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--navy-700) 100%);
    color: #ffffff;
    transform: scale(1.1);
}

.activity-content {
    display: flex;
    flex-direction: column;
}

.activity-name {
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 4px;
    line-height: 1.35;
}

.activity-badge {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}



/* --------------------------------------------------------------------------
   11. Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f0f4f8 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    position: relative;
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    box-shadow: var(--card-glass-shadow);
    transition: transform var(--transition-bounce), box-shadow var(--transition-smooth), border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.contact-icon-frame {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(56, 189, 248, 0.12) 100%);
    color: var(--royal-blue);
    border: 1px solid rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: transform var(--transition-bounce), background 0.3s ease, color 0.3s ease;
}

.contact-card:hover .contact-icon-frame {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--navy-700) 100%);
    color: #ffffff;
}

.contact-details {
    width: 100%;
}

.contact-meta-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 12px;
}

.contact-value,
address.contact-value {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.contact-phone-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.phone-link,
.email-link {
    font-weight: 600;
    color: var(--royal-blue);
    word-break: break-all;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.phone-link:hover,
.email-link:hover {
    color: var(--navy-850);
    text-decoration: underline;
}

.phone-separator {
    display: none;
}

.hours-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    background: var(--navy-950);
    color: #ffffff;
    padding: 80px 24px 32px;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-ambient {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
    filter: blur(80px);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.8fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-col-identity {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo-frame {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.footer-brand-subtitle {
    font-size: 0.78rem;
    color: var(--sky-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-description {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 380px;
}

.footer-motto-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-gold);
    font-size: 0.9rem;
    align-self: flex-start;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sky-blue);
    margin-bottom: 22px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-class-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-class-list li {
    display: flex;
    flex-direction: column;
}

.footer-class-list span {
    font-weight: 600;
    font-size: 0.92rem;
    color: #ffffff;
}

.footer-class-list small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    line-height: 1.5;
}

.footer-contact-row svg {
    color: var(--sky-blue);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom-bar {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-tagline {
    color: rgba(255, 255, 255, 0.45);
}



/* --------------------------------------------------------------------------
   14. Scroll-to-Top Floating Button
   -------------------------------------------------------------------------- */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(14, 27, 56, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition-bounce);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--royal-blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

/* --------------------------------------------------------------------------
   15. Scroll Reveal & Micro-Interactions
   -------------------------------------------------------------------------- */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   16. Responsive Layout Breakpoints
   -------------------------------------------------------------------------- */

/* Large Tablets & Medium Screens */
@media (max-width: 1080px) {
    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .classroom-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

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



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

/* Mobile & Small Tablets */
@media (max-width: 768px) {

    /* --------------------------------------------------------------------------
       1. Mobile Compact Minimal Header (AMS Reference, No Pill Capsule)
       -------------------------------------------------------------------------- */
    .site-header,
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        transform: none;
        border-radius: 0;
        background: rgba(6, 11, 23, 0.70);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        padding: 0;
        transition: background 0.3s ease, border-color 0.3s ease;
    }

    .site-header::before,
    .navbar::before {
        display: none;
        /* Remove specular sheen on mobile */
    }

    .site-header.scrolled,
    .navbar.scrolled {
        top: 0;
        background: rgba(6, 11, 23, 0.92);
        border-bottom-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.40);
    }

    .nav-container {
        width: 100%;
        max-width: 100%;
        padding: max(10px, env(safe-area-inset-top, 10px)) 20px 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .site-header.scrolled .nav-container {
        padding: max(8px, env(safe-area-inset-top, 8px)) 20px 8px;
    }

    .desktop-nav {
        display: none;
    }

    .brand-link {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }

    .brand-logo-frame {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .site-header.scrolled .brand-logo-frame {
        width: 36px;
        height: 36px;
    }

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

    .brand-title {
        font-family: var(--font-heading);
        font-size: 1.15rem;
        font-weight: 700;
        line-height: 1.1;
        color: #ffffff;
        letter-spacing: -0.01em;
    }

    .site-header.scrolled .brand-title {
        color: #ffffff;
    }

    /* Show only Anandha & Melpattampakkam on mobile header */
    .brand-subtitle {
        display: none;
    }

    .brand-location {
        font-size: 0.65rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.72);
        letter-spacing: 0.04em;
        text-transform: uppercase;
        margin-top: 1px;
    }

    .site-header.scrolled .brand-location {
        color: rgba(255, 255, 255, 0.72);
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        gap: 4px;
        padding: 6px;
        cursor: pointer;
        transition: all var(--transition-fast);
    }

    .site-header.scrolled .mobile-menu-toggle {
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.25);
    }

    .hamburger-bar {
        width: 18px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .site-header.scrolled .hamburger-bar {
        background: #ffffff;
    }

    .mobile-nav-drawer {
        display: block;
        position: fixed;
        top: calc(58px + env(safe-area-inset-top, 0px));
        left: 12px;
        right: 12px;
        border-radius: 22px;
        background: rgba(10, 18, 38, 0.96);
        backdrop-filter: blur(32px) saturate(200%);
        -webkit-backdrop-filter: blur(32px) saturate(200%);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    }

    .mobile-nav-brand {
        border-bottom-color: rgba(255, 255, 255, 0.10);
    }

    .mobile-brand-title {
        color: #ffffff;
    }

    .mobile-brand-sub {
        color: rgba(255, 255, 255, 0.65);
    }

    .mobile-nav-link {
        color: rgba(255, 255, 255, 0.88);
        border-radius: 12px;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: rgba(37, 99, 235, 0.25);
        color: #60a5fa;
    }

    .mobile-nav-footer {
        border-top-color: rgba(255, 255, 255, 0.10);
    }

    .mobile-motto {
        color: rgba(255, 255, 255, 0.85);
    }

    .mobile-timing {
        color: rgba(255, 255, 255, 0.55);
    }

    /* --------------------------------------------------------------------------
       2. Full-Screen Cinematic Mobile Hero (100dvh Dynamic Viewport)
       -------------------------------------------------------------------------- */
    .hero-section {
        position: relative;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        background-color: var(--navy-950);
        overflow: hidden;
        padding: 0;
    }

    .hero-carousel {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
    }

    .carousel-track {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        aspect-ratio: auto;
        box-shadow: none;
        background-color: var(--navy-950);
        overflow: hidden;
    }

    .carousel-slide {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .hero-slide-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        inset: 0;
        background: var(--navy-950);
    }

    /* Mobile Building: Perfectly centered signboard & campus entrance */
    .hero-img-building {
        object-fit: cover;
        object-position: center 8%;
        background: none;
    }

    .hero-img-assembly {
        object-position: center 15%;
    }

    .hero-img-reception {
        object-position: center 30%;
    }

    .hero-img-students {
        object-position: center 15%;
    }

    /* Vignette Overlay Removed in Mobile View */
    .hero-image-overlay {
        display: none !important;
        background: none !important;
    }

    /* --------------------------------------------------------------------------
       3. Hero Text Layout: Left-Aligned, Anchored to Bottom on Mobile
       -------------------------------------------------------------------------- */
    .hero-overlay-content {
        position: absolute;
        inset: 0;
        z-index: 10;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 0 20px max(20px, env(safe-area-inset-bottom, 16px));
        max-width: 100%;
        margin: 0;
        pointer-events: none;
        background: linear-gradient(to top, rgba(10, 15, 30, 0.88) 0%, rgba(10, 15, 30, 0.45) 45%, transparent 75%);
    }

    .hero-content-wrapper {
        pointer-events: auto;
        max-width: 520px;
    }

    .hero-kicker {
        font-family: var(--font-display);
        font-size: 0.78rem;
        font-weight: 700;
        font-style: italic;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #ffffff;
        margin-bottom: 6px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    }

    .hero-title {
        font-family: var(--font-heading);
        font-size: clamp(1.45rem, 5.8vw, 1.95rem);
        font-weight: 700;
        line-height: 1.18;
        color: #ffffff;
        margin-bottom: 8px;
        max-width: 100%;
        text-shadow: 0 3px 16px rgba(0, 0, 0, 0.95);
        letter-spacing: -0.01em;
    }

    .hero-subtitle {
        font-size: 0.82rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.92);
        margin-bottom: 14px;
        max-width: 100%;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
    }

    .hero-actions {
        display: flex;
    }

    .hero-btn-enroll {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.88rem;
        font-weight: 600;
        padding: 10px 22px;
        border-radius: 9999px;
        background: var(--royal-blue);
        color: #ffffff;
        text-decoration: none;
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
        transition: transform var(--transition-fast), background var(--transition-fast);
    }

    /* General Section Spacing on Mobile */
    .section {
        padding: 46px 16px;
    }

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

    .section-tag {
        font-size: 0.74rem;
        padding: 4px 12px;
        margin-bottom: 8px;
    }

    .section-title {
        font-size: clamp(1.55rem, 5.5vw, 1.95rem);
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .section-subtitle {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .title-underline {
        margin-top: 10px;
        width: 40px;
        height: 3px;
    }

    /* 1. About Lead Hero Card — Fine & Compact Mobile Size */
    .about-hero-card {
        padding: 20px 18px 18px 20px;
        border-radius: 16px;
        margin-bottom: 20px;
        box-shadow: 0 4px 16px -2px rgba(14, 27, 56, 0.08);
    }

    .about-hero-card::before {
        width: 4px;
    }

    .about-quote-mark {
        font-size: 3.2rem;
        top: 2px;
        right: 12px;
        opacity: 0.7;
    }

    .about-lead-text {
        font-size: 0.92rem;
        line-height: 1.55;
        margin-bottom: 14px;
        font-weight: 500;
    }

    .about-signature {
        gap: 10px;
    }

    .signature-line {
        width: 24px;
        height: 2px;
    }

    .signature-text {
        font-size: 0.72rem;
        letter-spacing: 0.03em;
    }

    /* Staff Profiles Showcase Tablet / Mobile */
    .staff-profiles-section {
        margin-bottom: 28px;
        scroll-margin-top: 80px;
    }

    .staff-section-header {
        margin-bottom: 18px;
    }

    .staff-section-heading {
        font-size: clamp(1.3rem, 4.8vw, 1.6rem);
    }

    /* On wider mobile screens (601px - 860px), 2 columns maintain natural sequence */
    .staff-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 310px));
        justify-content: center;
        gap: 20px;
        max-width: 660px;
    }

    .staff-card {
        grid-column: auto;
        padding: 22px 16px 18px;
        border-radius: var(--radius-lg);
    }

    .staff-card:nth-child(4) {
        grid-column: auto;
    }

    .staff-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 310px;
        justify-self: center;
        width: 100%;
    }

    .staff-avatar-wrap {
        width: 160px;
        height: 160px;
        margin-bottom: 14px;
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.45), 0 8px 22px -3px rgba(14, 27, 56, 0.14);
    }

    .staff-name {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .staff-designation {
        font-size: 0.75rem;
        padding: 3px 12px;
    }

    /* 2. Vision & Mission Cards — Fine & Compact Mobile Size */
    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pillar-card {
        padding: 16px 16px 14px;
        border-radius: 16px;
        box-shadow: 0 4px 14px -2px rgba(14, 27, 56, 0.07);
    }

    .pillar-header {
        gap: 12px;
        margin-bottom: 10px;
    }

    .pillar-icon-box {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .pillar-icon-box svg {
        width: 20px;
        height: 20px;
    }

    .pillar-pretitle {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .pillar-title {
        font-size: 1.15rem;
        line-height: 1.2;
    }

    .pillar-description {
        font-size: 0.86rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .pillar-accent-bar {
        height: 3px;
    }

    /* 3. Classes Offered Cards — Compact 2-Column Mobile Grid */
    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .classroom-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .classroom-showcase-title {
        font-size: 1.55rem;
    }

    .class-card {
        padding: 14px 12px 12px;
        border-radius: 14px;
        box-shadow: 0 4px 14px -2px rgba(14, 27, 56, 0.06);
    }

    .class-watermark {
        font-size: 1.8rem;
        top: 6px;
        right: 8px;
        opacity: 0.08;
    }

    .class-icon-wrapper {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .class-icon-wrapper svg {
        width: 18px;
        height: 18px;
    }

    .class-stage-pill {
        font-size: 0.62rem;
        padding: 2px 7px;
        margin-bottom: 6px;
    }

    .class-title {
        font-size: 1.05rem;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .class-description {
        font-size: 0.78rem;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .class-card-footer {
        padding-top: 8px;
        font-size: 0.72rem;
    }

    /* 4. Activities Cards — Compact 2-Column Mobile Grid */
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .activity-card {
        padding: 12px 12px;
        gap: 10px;
        border-radius: 12px;
        box-shadow: 0 3px 12px rgba(10, 18, 38, 0.04);
    }

    .activity-icon-container {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .activity-icon-container svg {
        width: 16px;
        height: 16px;
    }

    .activity-title {
        font-size: 0.92rem;
        margin-bottom: 2px;
    }

    .activity-description {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    /* 5. Contact Cards — Compact Mobile Cards */
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-card {
        padding: 16px 16px;
        border-radius: 14px;
        box-shadow: 0 4px 14px -2px rgba(14, 27, 56, 0.06);
    }

    .contact-icon-frame {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .contact-icon-frame svg {
        width: 18px;
        height: 18px;
    }

    .contact-meta-label {
        font-size: 0.68rem;
        margin-bottom: 2px;
    }

    .contact-title {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }

    .contact-value {
        font-size: 0.88rem;
    }

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

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

/* Narrow Mobile Screens: 1 Card Per Row (Abdul Rahman, Abdul Razak, Nachiyar, Valarmathy, R. Ranjani B.Sc,B. Ed) */
@media (max-width: 600px) {
    .staff-cards-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        gap: 16px;
    }

    .staff-card {
        grid-column: auto !important;
        width: 100%;
        max-width: 100%;
    }

    .staff-card:nth-child(4),
    .staff-card:nth-child(5) {
        grid-column: auto !important;
        max-width: 100%;
    }
}

/* Very Small Mobile Screens */
@media (max-width: 480px) {
    .brand-title {
        font-size: 1rem;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-kicker {
        font-size: 0.76rem;
        letter-spacing: 0.08em;
        margin-bottom: 5px;
    }

    .hero-title {
        font-size: clamp(1.55rem, 6.4vw, 1.95rem);
        line-height: 1.15;
        margin-bottom: 6px;
    }

    .hero-subtitle {
        font-size: 0.82rem;
        line-height: 1.4;
        margin-bottom: 14px;
        max-width: 100%;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.85);
    }

    .hero-overlay-content {
        justify-content: flex-end;
        padding: 0 16px max(24px, env(safe-area-inset-bottom, 20px));
    }

    .hero-btn-enroll {
        font-size: 0.88rem;
        padding: 10px 20px;
    }

    .about-hero-card {
        padding: 18px 15px 15px 16px;
    }

    .about-lead-text {
        font-size: 0.88rem;
    }

    .staff-card {
        padding: 18px 14px 16px;
    }

    .staff-avatar-wrap {
        width: 150px;
        height: 150px;
        margin-bottom: 12px;
    }

    .staff-name {
        font-size: 1.05rem;
    }

    .staff-designation {
        font-size: 0.72rem;
        padding: 3px 10px;
    }

    .pillar-card {
        padding: 14px 14px 12px;
    }

    .class-card {
        padding: 12px 10px 10px;
    }

    .classroom-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .classroom-card {
        padding: 10px 10px 14px;
        border-radius: 14px;
    }

    .classroom-card-title {
        font-size: 1.05rem;
    }

    .classroom-card-desc {
        font-size: 0.74rem;
        line-height: 1.35;
    }

    .classroom-stage-pill {
        font-size: 0.6rem;
        padding: 2px 6px;
        margin-bottom: 6px;
    }
}

/* --------------------------------------------------------------------------
   17. Reduced Motion Support
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .glow-blob-1,
    .glow-blob-2,
    .glow-blob-3,
    .hero-image-placeholder::before,
    .gallery-placeholder-wrapper::before {
        animation: none !important;
    }
}