/* 
   Golden Nursery & Primary School — Premium Design System
   Theme: White & Gold | Glassmorphism + 3D Interactions
*/

/* ══════════════════════════════════════
   1. DESIGN TOKENS
   ══════════════════════════════════════ */
:root {
    /* Color Palette - White & Gold Theme */
    --primary-dark: #1a1a1a;
    --primary-mid: #2d2d2d;
    --primary-light: #f8f9fa;
    --primary-accent: #e8e8e8;

    --gold-main: #f4b400;
    --gold-light: #ffd54f;
    --gold-dim: #e09c00;
    --gold-glow: rgba(244, 180, 0, 0.3);

    --text-light: #1a1a1a;
    --text-dim: #666666;
    --text-body: #4a4a4a;
    --white: #ffffff;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-hover: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(212, 175, 55, 0.2);
    --glass-border-hover: rgba(212, 175, 55, 0.6);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Nunito', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4.5rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
}

/* ══════════════════════════════════════
   2. RESET & BASE
   ══════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px;
}

body {
    background: linear-gradient(135deg,
            #fffdf5 0%,
            #fff9ec 30%,
            #fef6ff 60%,
            #f5fbff 100%);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
    /* Hide scrollbar in Firefox/IE */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Heavy SVG noise filters and animated gradients were removed for scroll performance */

/* ══════════════════════════════════════
   3. SCROLLBAR
   ══════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-main);
}

/* ══════════════════════════════════════
   4. TYPOGRAPHY
   ══════════════════════════════════════ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
}

h3 {
    font-size: 1.3rem;
    color: var(--gold-main);
    margin-bottom: var(--spacing-xs);
}

h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

p {
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

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

a:hover {
    color: var(--gold-main);
}

.text-gold {
    background: linear-gradient(90deg,
            #ff6f61,
            #ff9800,
            #ffd54f,
            #66bb6a,
            #4fc3f7,
            #ab47bc);
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowFlow 6s linear infinite;
}

@keyframes rainbowFlow {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 300%;
    }
}

.text-center {
    text-align: center;
}

/* ══════════════════════════════════════
   5. LAYOUT
   ══════════════════════════════════════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* ══════════════════════════════════════
   6. GLASS CARD
   ══════════════════════════════════════ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: var(--spacing-md);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}


.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

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

.glass-card:hover {
    border-color: rgba(244, 180, 0, 0.5);
    background: var(--glass-bg-hover);
    box-shadow:
        0 16px 48px rgba(244, 180, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

/* ══════════════════════════════════════
   7. BUTTONS
   ══════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.8rem;
    border: 1px solid var(--gold-main);
    color: var(--gold-main);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: transparent;
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gold-glow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Shimmer sweep on hover */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
    transform: translateX(-100%);
    pointer-events: none;
    z-index: 2;
}

.btn-primary:hover::before {
    animation: shimmerSweep 0.7s forwards;
}

@keyframes shimmerSweep {
    to {
        transform: translateX(100%);
    }
}

.btn-primary:hover {
    color: var(--white);
    background: var(--gold-main);
    border-color: var(--gold-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(244, 180, 0, 0.45);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.8rem;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: transparent;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1rem;
}

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

/* ══════════════════════════════════════
   8. BULLETPROOF CURSOR FIX
   ══════════════════════════════════════ */

html,
body {
    overflow-x: hidden;


    /* ══════════════════════════════════════
   9. NAVBAR
   ══════════════════════════════════════ */
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        padding: 0.8rem 0;
        transition: all var(--transition-smooth);
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.98);
        border-bottom-color: var(--glass-border);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
        padding: 0.5rem 0;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
    }

    .logo-icon svg {
        width: 36px;
        height: 36px;
        color: var(--gold-main);
    }

    .logo-name {
        font-family: var(--font-heading);
        font-size: 1.4rem;
        font-weight: 800;
        color: var(--text-light);
        letter-spacing: 2px;
        display: block;
        line-height: 1.1;
    }

    .logo-sub {
        font-size: 0.65rem;
        color: var(--gold-main);
        text-transform: uppercase;
        letter-spacing: 2px;
        display: block;
    }

    .nav-links {
        display: flex;
        gap: var(--spacing-md);
        align-items: center;
    }

    .nav-link {
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--text-dim);
        position: relative;
        padding: 4px 0;
        transition: color var(--transition-fast);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -2px;
        left: 0;
        background: var(--gold-main);
        transition: width 0.3s ease;
    }

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

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

    .nav-cta {
        padding: 0.6rem 1.4rem;
        font-size: 0.85rem;
    }

    /* Hamburger */
    .nav-toggle {
        display: none;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }

    .nav-toggle span {
        width: 24px;
        height: 2px;
        background: var(--text-light);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

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

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* ══════════════════════════════════════
   10. HERO
   ══════════════════════════════════════ */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        position: relative;
        padding-top: 100px;
        overflow: hidden;
    }

    .hero-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
        background: radial-gradient(ellipse at 30% 50%, #ffffff 0%, #f8f9fa 70%);
    }

    .floating-shape {
        position: absolute;
        border-radius: 50%;
        filter: blur(100px);
        opacity: 0.3;
        animation: float 25s infinite ease-in-out;
    }

    .shape-1 {
        width: 500px;
        height: 500px;
        background: rgba(212, 175, 55, 0.08);
        top: -15%;
        left: -10%;
    }

    .shape-2 {
        width: 350px;
        height: 350px;
        background: rgba(212, 175, 55, 0.12);
        bottom: 5%;
        right: -5%;
        animation-delay: -8s;
    }

    .shape-3 {
        width: 200px;
        height: 200px;
        background: rgba(212, 175, 55, 0.06);
        top: 40%;
        left: 60%;
        animation-delay: -15s;
    }

    @keyframes float {

        0%,
        100% {
            transform: translate(0, 0) scale(1);
        }

        33% {
            transform: translate(30px, -40px) scale(1.05);
        }

        66% {
            transform: translate(-20px, 30px) scale(0.95);
        }
    }

    .hero-content {
        max-width: 750px;
        z-index: 1;
    }

    .hero-subtitle {
        color: var(--gold-main);
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 3px;
        text-transform: uppercase;
        display: block;
        margin-bottom: var(--spacing-sm);
    }

    .hero-title {
        margin-bottom: var(--spacing-md);
        font-weight: 800;
    }

    .hero-desc {
        font-size: 1.15rem;
        max-width: 600px;
        margin-bottom: var(--spacing-lg);
        color: var(--text-dim);
        line-height: 1.8;
    }

    .hero-cta {
        display: flex;
        gap: var(--spacing-sm);
        flex-wrap: wrap;
    }

    /* ══════════════════════════════════════
   11. SECTION HEADER
   ══════════════════════════════════════ */
    .section-header {
        text-align: center;
        margin-bottom: var(--spacing-lg);
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-label {
        color: var(--gold-main);
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 3px;
        display: block;
        margin-bottom: var(--spacing-xs);
    }

    .section-desc {
        color: var(--text-dim);
        font-size: 1.05rem;
        line-height: 1.8;
    }

    /* ══════════════════════════════════════
   12. STATS
   ══════════════════════════════════════ */
    .stats-section {
        padding: var(--spacing-lg) 0;
        position: relative;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-sm);
    }

    .stat-item {
        text-align: center;
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .stat-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto var(--spacing-sm);
    }

    .stat-icon svg {
        width: 32px;
        height: 32px;
        color: var(--gold-main);
    }

    .stat-number {
        font-family: var(--font-heading);
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--text-light);
        display: inline;
        line-height: 1;
    }

    .stat-suffix {
        font-family: var(--font-heading);
        font-size: 2rem;
        font-weight: 700;
        color: var(--gold-main);
    }

    .stat-label {
        display: block;
        color: var(--text-dim);
        font-size: 0.85rem;
        margin-top: var(--spacing-xs);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* ══════════════════════════════════════
   13. ABOUT
   ══════════════════════════════════════ */
    .about-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }

    .about-card {
        text-align: center;
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .card-icon {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--gold-glow);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto var(--spacing-sm);
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
        color: var(--gold-main);
    }

    .principal-message {
        display: flex;
        gap: 2.5rem;
        align-items: center;
        text-align: left;
        max-width: 900px;
        margin: 0 auto;
        padding: var(--spacing-lg);
        border-left: 3px solid var(--gold-main);
        border-radius: var(--radius-md);
    }

    .principal-photo-wrapper {
        flex-shrink: 0;
        width: 280px;
        height: 380px;
        border-radius: 8px;
        overflow: hidden;
        border: 4px solid var(--gold-light);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .principal-message .section-label {
        text-align: left;
    }

    .principal-message h3 {
        margin-bottom: var(--spacing-sm);
    }

    .principal-message p {
        font-size: 1.05rem;
        line-height: 1.9;
        font-style: italic;
    }

    .principal-name {
        font-style: normal !important;
        font-weight: 600;
        color: var(--gold-main) !important;
        margin-top: var(--spacing-sm);
    }

    /* ══════════════════════════════════════
   14. ACADEMICS
   ══════════════════════════════════════ */
    .academics-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .academic-card {
        display: flex;
        gap: var(--spacing-sm);
        align-items: flex-start;
        text-align: left;
    }

    .academic-card .card-icon {
        flex-shrink: 0;
        margin: 0;
    }

    .academic-card h3 {
        font-size: 1.1rem;
    }

    .academic-card p {
        font-size: 0.92rem;
        margin-bottom: 0;
    }

    /* ══════════════════════════════════════
   15. ADMISSIONS
   ══════════════════════════════════════ */
    .admission-timeline {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
        position: relative;
        align-items: start;
    }

    /* Connecting line */
    .admission-timeline::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 12.5%;
        width: 75%;
        height: 2px;
        background: linear-gradient(to right, var(--gold-main), var(--primary-accent));
        z-index: 0;
    }

    .timeline-step {
        text-align: center;
        position: relative;
        z-index: 1;
    }

    .step-number {
        font-family: var(--font-heading);
        font-size: 2rem;
        font-weight: 800;
        color: var(--gold-main);
        margin-bottom: var(--spacing-xs);
        display: block;
    }

    .timeline-step h3 {
        font-size: 1rem;
        margin-bottom: var(--spacing-xs);
    }

    .timeline-step p {
        font-size: 0.85rem;
    }

    /* Enquiry Form */
    .enquiry-form-wrapper {
        max-width: 800px;
        margin: 0 auto;
        padding: var(--spacing-lg);
    }

    .enquiry-form-wrapper>h3 {
        text-align: center;
        margin-bottom: var(--spacing-xs);
    }

    .enquiry-form-wrapper>p {
        text-align: center;
        margin-bottom: var(--spacing-md);
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }

    .form-group {
        margin-bottom: var(--spacing-sm);
        position: relative;
    }

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text-dim);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-sm);
        font-size: 0.95rem;
        font-family: var(--font-body);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-light);
        transition: all 0.3s ease;
        cursor: text;
    }

    .form-group select {
        cursor: pointer;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--gold-main);
        background: rgba(255, 255, 255, 0.06);
        box-shadow: 0 0 0 3px rgba(244, 163, 0, 0.1);
    }

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

    .form-group select option {
        background: var(--primary-dark);
        color: var(--text-light);
    }

    .form-error {
        display: none;
        color: #ff6b6b;
        font-size: 0.78rem;
        margin-top: 4px;
    }

    .form-group.error input,
    .form-group.error select {
        border-color: #ff6b6b;
    }

    .form-group.error .form-error {
        display: block;
    }

    .form-success {
        text-align: center;
        padding: var(--spacing-lg);
    }

    .form-success svg {
        width: 60px;
        height: 60px;
        color: var(--gold-main);
        margin-bottom: var(--spacing-sm);
    }

    .form-success h3 {
        color: var(--gold-main);
        margin-bottom: var(--spacing-xs);
    }

    /* ══════════════════════════════════════
   16. TESTIMONIALS
   ══════════════════════════════════════ */
    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

    .testimonial-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .testimonial-stars {
        color: var(--gold-main);
        font-size: 1.1rem;
        letter-spacing: 2px;
        margin-bottom: var(--spacing-sm);
    }

    .testimonial-card>p {
        font-style: italic;
        line-height: 1.8;
        flex: 1;
        margin-bottom: var(--spacing-md);
    }

    .testimonial-author strong {
        display: block;
        color: var(--text-light);
        font-size: 0.95rem;
    }

    .testimonial-author span {
        font-size: 0.8rem;
        color: var(--text-dim);
    }

    /* ══════════════════════════════════════
   17. EVENTS
   ══════════════════════════════════════ */
    .events-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

    .event-card {
        position: relative;
    }

    .event-badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: var(--radius-pill);
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        background: var(--gold-glow);
        color: var(--gold-main);
        border: 1px solid rgba(244, 163, 0, 0.2);
        margin-bottom: var(--spacing-sm);
    }

    .event-date {
        font-size: 0.82rem;
        color: var(--text-dim);
        margin-bottom: var(--spacing-xs);
    }

    .event-card h3 {
        font-size: 1.15rem;
    }

    /* ══════════════════════════════════════
   18. GALLERY
   ══════════════════════════════════════ */
    .gallery-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }

    .gallery-item {
        position: relative;
        background: linear-gradient(135deg, var(--primary-light), var(--primary-accent));
        border-radius: var(--radius-md);
        overflow: hidden;
        padding: 0;
        flex: 1 1 300px;
        max-width: 350px;
        aspect-ratio: 4 / 3;
        height: auto;
        box-shadow: var(--glass-shadow);
        border: 1px solid var(--glass-border);
    }

    .gallery-photo {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        transition: transform 0.5s ease;
    }

    .gallery-item:hover .gallery-photo {
        transform: scale(1.05);
    }

    /* ══════════════════════════════════════
   19. INLINE FAQ ACCORDION
   ══════════════════════════════════════ */
    .faq-list-inline {
        max-width: 800px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .faq-item-inline {
        padding: 0;
        overflow: hidden;
    }

    .faq-q {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.2rem var(--spacing-md);
        background: none;
        border: none;
        color: var(--text-light);
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 500;
        text-align: left;
        cursor: pointer;
        transition: color var(--transition-fast);
    }

    .faq-q:hover {
        color: var(--gold-main);
    }

    .faq-q svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        color: var(--text-dim);
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .faq-item-inline.open .faq-q svg {
        transform: rotate(180deg);
        color: var(--gold-main);
    }

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

    .faq-item-inline.open .faq-a {
        max-height: 500px;
    }

    .faq-a p {
        padding: 0 var(--spacing-md) var(--spacing-md);
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.8;
    }

    /* ══════════════════════════════════════
   20. CONTACT
   ══════════════════════════════════════ */
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
        align-items: start;
    }

    .contact-info-card {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .contact-item {
        display: flex;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--gold-glow);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
        color: var(--gold-main);
    }

    .contact-item h4 {
        color: var(--text-light);
    }

    .contact-item p {
        margin-bottom: 0;
        font-size: 0.92rem;
    }

    .contact-item a {
        color: var(--gold-main);
    }

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

    .map-card {
        padding: 8px;
        min-height: 450px;
    }

    /* ══════════════════════════════════════
   21. CTA SECTION
   ══════════════════════════════════════ */
    .cta-section {
        background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
        border-top: 1px solid var(--glass-border);
        border-bottom: 1px solid var(--glass-border);
    }

    .cta-section h2 {
        margin-bottom: var(--spacing-sm);
    }

    .cta-section .section-desc {
        margin-bottom: var(--spacing-md);
    }

    /* ══════════════════════════════════════
   22. FOOTER
   ══════════════════════════════════════ */
    .footer {
        background: linear-gradient(135deg, #fffdf5 0%, #fff9ec 50%, #f5fbff 100%);
        padding: var(--spacing-xl) 0 var(--spacing-md);
        border-top: 1px solid rgba(244, 180, 0, 0.2);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }

    .footer-brand p {
        font-size: 0.9rem;
        line-height: 1.7;
        max-width: 280px;
    }

    .footer-links h4,
    .footer-newsletter h4 {
        color: var(--text-light);
        font-family: var(--font-body);
        font-weight: 700;
        margin-bottom: var(--spacing-sm);
        font-size: 0.95rem;
    }

    .footer-links ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        color: var(--text-dim);
        font-size: 0.88rem;
        transition: color var(--transition-fast), padding-left var(--transition-fast);
    }

    .footer-links a:hover {
        color: var(--gold-main);
        padding-left: 4px;
    }

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

    .newsletter-form input {
        flex: 1;
        padding: 10px 16px;
        border: 1px solid rgba(244, 180, 0, 0.25);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.7);
        color: var(--text-light);
        font-family: var(--font-body);
        font-size: 0.88rem;
        cursor: text;
    }

    .newsletter-form input:focus {
        outline: none;
        border-color: var(--gold-main);
    }

    .newsletter-form input::placeholder {
        color: var(--text-dim);
        opacity: 0.5;
    }

    .newsletter-form .btn-primary {
        padding: 10px 14px;
        flex-shrink: 0;
    }

    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: var(--spacing-md);
        border-top: 1px solid var(--glass-border);
    }

    .footer-bottom p {
        font-size: 0.82rem;
        color: var(--text-dim);
        margin: 0;
    }

    .footer-brand p {
        font-size: 0.9rem;
        line-height: 1.7;
        max-width: 280px;
        color: var(--text-dim);
    }

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

    .footer-social a {
        color: var(--text-dim);
        transition: color var(--transition-fast), transform var(--transition-fast);
    }

    .footer-social a:hover {
        color: var(--gold-main);
        transform: translateY(-2px);
    }

    /* ══════════════════════════════════════
   23. SCROLL ANIMATIONS
   ══════════════════════════════════════ */
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    /* Stagger children */
    .stagger-children>* {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .stagger-children.visible>*:nth-child(1) {
        transition-delay: 0.1s;
    }

    .stagger-children.visible>*:nth-child(2) {
        transition-delay: 0.2s;
    }

    .stagger-children.visible>*:nth-child(3) {
        transition-delay: 0.3s;
    }

    .stagger-children.visible>*:nth-child(4) {
        transition-delay: 0.4s;
    }

    .stagger-children.visible>*:nth-child(5) {
        transition-delay: 0.5s;
    }

    .stagger-children.visible>*:nth-child(6) {
        transition-delay: 0.6s;
    }

    .stagger-children.visible>* {
        opacity: 1;
        transform: translateY(0);
    }

    /* ══════════════════════════════════════
   24. RESPONSIVE
   ══════════════════════════════════════ */

    /* Large tablets */
    @media (max-width: 1024px) {
        .footer-grid {
            grid-template-columns: 1fr 1fr;
            gap: var(--spacing-md);
        }

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

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

        .admission-timeline::before {
            display: none;
        }

        .gallery-grid {
            grid-auto-rows: 180px;
        }
    }

    /* Tablets / Small screens */
    @media (max-width: 768px) {
        :root {
            --spacing-xl: 3rem;
            --spacing-lg: 2rem;
        }

        body {
            cursor: auto;
        }

        .cursor-dot,
        .cursor-outline {
            display: none !important;
        }

        /* Navbar Mobile */
        .nav-links {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(10, 25, 47, 0.98);
            backdrop-filter: blur(20px);
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: var(--spacing-md);
            transform: translateX(100%);
            transition: transform 0.4s ease;
            z-index: 999;
        }

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

        .nav-link {
            font-size: 1.2rem;
        }

        .nav-cta {
            display: none;
        }

        .nav-toggle {
            display: flex;
        }

        /* Grids */
        .about-grid,
        .testimonials-grid,
        .events-grid {
            grid-template-columns: 1fr;
        }

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

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

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

        .admission-timeline {
            grid-template-columns: 1fr;
            gap: var(--spacing-sm);
        }

        .gallery-item {
            flex: 1 1 45%;
            max-width: 45%;
        }

        .footer-grid {
            grid-template-columns: 1fr;
            gap: var(--spacing-md);
        }

        .footer-bottom {
            flex-direction: column;
            gap: var(--spacing-sm);
            text-align: center;
        }

        .hero {
            padding-top: 80px;
            min-height: 90vh;
        }

        .hero-title {
            font-size: clamp(2rem, 8vw, 3rem);
        }

        .principal-message {
            flex-direction: column;
            text-align: center;
            padding: var(--spacing-md);
            border-left: none;
            border-top: 3px solid var(--gold-main);
            gap: 1.5rem;
        }

        .principal-message .section-label {
            text-align: center;
        }

        .principal-photo-wrapper {
            width: 240px;
            height: 320px;
        }

        .map-card {
            min-height: 300px;
        }

        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: var(--spacing-xs);
        }

        .stat-number {
            font-size: 2rem;
        }
    }

    /* Mobile */
    @media (max-width: 480px) {
        .container {
            padding: 0 var(--spacing-sm);
        }

        .hero-cta {
            flex-direction: column;
        }

        .hero-cta .btn-primary,
        .hero-cta .btn-outline {
            width: 100%;
            justify-content: center;
        }

        .gallery-item {
            flex: 1 1 100%;
            max-width: 100%;
        }

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


    /* ═══════════════ TEACHERS SECTION ═══════════════ */
    .teachers-section {
        padding: var(--section-pad) 0;
        margin-top: 4rem;
        background: linear-gradient(135deg, rgba(var(--primary-rgb, 10, 61, 98), 0.03) 0%, rgba(212, 175, 55, 0.05) 100%);
    }

    .teachers-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.75rem;
        margin-top: 2.5rem;
    }

    .teacher-card {
        padding: 0;
        overflow: hidden;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    }

    .teacher-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18), 0 0 0 2px rgba(212, 175, 55, 0.4);
    }

    .teacher-photo-wrap {
        position: relative;
        width: 100%;
        aspect-ratio: 3 / 4;
        overflow: hidden;
        flex-shrink: 0;
    }

    .teacher-photo {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
        transition: transform 0.5s ease;
    }

    .teacher-card:hover .teacher-photo {
        transform: scale(1.06);
    }

    .teacher-photo-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 50%, rgba(10, 40, 80, 0.55) 100%);
        pointer-events: none;
    }

    .teacher-info {
        padding: 1rem 1.25rem 1.25rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(4px);
        border-top: 1px solid rgba(212, 175, 55, 0.2);
    }

    /* Target the inline styles added to the details div */
    .teacher-card:hover .teacher-hover-details,
    .teacher-card:active .teacher-hover-details {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .teacher-name {
        font-size: 1rem;
        font-weight: 700;
        margin: 0 0 0.25rem;
        color: var(--text-primary, #0a3d62);
        letter-spacing: 0.01em;
    }

    .teacher-role {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--gold, #d4af37);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        background: rgba(212, 175, 55, 0.12);
        padding: 0.2rem 0.7rem;
        border-radius: 999px;
        display: inline-block;
    }

    /* ─── Responsive ─── */
    @media (max-width: 992px) {
        .teachers-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }
    }

    @media (max-width: 600px) {
        .teachers-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }

        .teacher-info {
            padding: 0.75rem 0.5rem 0.75rem;
        }

        .teacher-name {
            font-size: 0.85rem;
            margin-bottom: 0.15rem;
        }

        .teacher-role {
            font-size: 0.65rem;
            padding: 0.15rem 0.4rem;
        }

        /* Override inline styles for smaller cards on mobile */
        .teacher-card .teacher-hover-details {
            padding: 0.75rem !important;
        }

        .teacher-card .teacher-hover-details span {
            font-size: 0.65rem !important;
            margin-bottom: 0.1rem !important;
        }

        .teacher-card .teacher-hover-details p {
            font-size: 0.75rem !important;
            margin-bottom: 0.4rem !important;
        }

        .teacher-card:hover {
            transform: translateY(-4px);
        }
    }

    /* ══════════════════════════════════════
   DISNEY POLISH PACK — EXTRA MAGIC
   ══════════════════════════════════════ */

    /* Confetti celebration layer in CTA */
    .confetti-layer {
        position: absolute;
        inset: 0;
        pointer-events: none;
        background-image:
            radial-gradient(circle, #ff6f61 3px, transparent 3px),
            radial-gradient(circle, #ffd54f 3px, transparent 3px),
            radial-gradient(circle, #66bb6a 3px, transparent 3px),
            radial-gradient(circle, #4fc3f7 3px, transparent 3px),
            radial-gradient(circle, #ab47bc 3px, transparent 3px);
        background-size: 120px 120px;
        background-position: 0 0, 40px 40px, 80px 20px, 20px 80px, 60px 60px;
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 0;
    }

    .cta-section:hover .confetti-layer {
        opacity: 0.15;
    }

    /* Kid character hover bounce */
    .cta-kid {
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        cursor: default;
    }

    .cta-kid:hover {
        transform: scale(1.2) rotate(8deg) translateY(-8px);
    }

    /* Page entrance fade-in */
    @keyframes pageFadeIn {
        from {
            opacity: 0;
            transform: translateY(16px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-content {
        animation: pageFadeIn 0.9s ease both;
    }

    /* ══════════════════════════════════════
   CHILD-FRIENDLY FLOAT ANIMATIONS
   ══════════════════════════════════════ */

    /* Hero kids gentle bounce */
    .hero-kids-row .kid-icon {
        animation: gentleBounce 4s ease-in-out infinite;
        transition: transform 0.4s ease;
    }

    .hero-kids-row .kid-icon:hover {
        transform: scale(1.2) rotate(8deg);
    }

    .hero-kids-row .kid-icon:nth-child(2) {
        animation-delay: 0.4s;
    }

    .hero-kids-row .kid-icon:nth-child(3) {
        animation-delay: 0.8s;
    }

    .hero-kids-row .kid-icon:nth-child(4) {
        animation-delay: 1.2s;
    }

    .hero-kids-row .kid-icon:nth-child(5) {
        animation-delay: 1.6s;
    }

    .hero-kids-row .kid-icon:nth-child(6) {
        animation-delay: 2.0s;
    }

    @keyframes gentleBounce {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-12px);
        }
    }

    /* CTA kids floating */
    .cta-kid {
        animation: floatKids 6s ease-in-out infinite;
    }

    .cta-kid-2 {
        animation-delay: 1s;
    }

    .cta-kid-3 {
        animation-delay: 2s;
    }

    @keyframes floatKids {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-18px);
        }
    }

    /* CTA sparkle dot pattern */
    .cta-section::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
        background-size: 30px 30px;
        opacity: 0.06;
        pointer-events: none;
        z-index: 0;
    }

    /* Section stacking safe */
    section {
        position: relative;
        z-index: 1;
    }

    /* ══════════════════════════════════════
   CLOUD ANIMATIONS (Hero background)
   ══════════════════════════════════════ */
    .cloud {
        position: absolute;
        width: 180px;
        height: 60px;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 50px;
        opacity: 0.6;
        filter: blur(1.5px);
        animation: cloudMove 40s linear infinite;
        pointer-events: none;
    }

    .cloud::before,
    .cloud::after {
        content: '';
        position: absolute;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 50%;
    }

    .cloud::before {
        width: 90px;
        height: 90px;
        top: -38px;
        left: 20px;
    }

    .cloud::after {
        width: 70px;
        height: 70px;
        top: -28px;
        right: 22px;
    }

    .cloud-1 {
        top: 18%;
        left: -220px;
    }

    .cloud-2 {
        top: 58%;
        left: -320px;
        animation-delay: 12s;
        width: 140px;
    }

    @keyframes cloudMove {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(120%);
        }
    }

    /* ══════════════════════════════════════
   MOBILE PERFORMANCE
   ══════════════════════════════════════ */
    @media (max-width: 768px) {
        .glass-card {
            backdrop-filter: blur(8px);
        }

        .glass-card:hover {
            transform: none !important;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        }

        .hero-kids-row .kid-icon {
            animation: none;
        }

        .cta-kid {
            animation: none;
        }

        body::after {
            display: none;
        }
    }

    /* ══════════════════════════════════════
   TIMED ENQUIRY POPUP
   ══════════════════════════════════════ */
    .enquiry-popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 999999;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 10vh;
        padding-bottom: 5vh;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .enquiry-popup-overlay.show-popup {
        opacity: 1;
        visibility: visible;
    }

    .enquiry-popup-content {
        position: relative;
        width: 90%;
        max-width: 450px;
        background: rgba(255, 255, 255, 0.95);
        padding: 2.5rem;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        transform: translateY(30px) scale(0.95);
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .enquiry-popup-overlay.show-popup .enquiry-popup-content {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .enquiry-popup-close {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 2rem;
        color: var(--text-light);
        background: none;
        border: none;
        cursor: pointer;
        transition: color 0.2s ease;
        line-height: 1;
    }

    .enquiry-popup-close:hover {
        color: var(--primary-color);
    }

}

/* ══════════════════════════════════════
   CUSTOM TOAST NOTIFICATION
   ══════════════════════════════════════ */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border-left: 5px solid #66bb6a;
    min-width: 300px;
}

.toast-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.toast-message p {
    margin: 3px 0 0 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--kid-red, #ff6f61);
}

@media (max-width: 768px) {
    .toast-notification {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .toast-content {
        width: 100%;
        min-width: unset;
    }
}