/* =========================================================================
   THE PASSION ENGLISH SCHOOL — PREMIUM DESIGN SYSTEM v4.0
   Palette locked to the brand crest: deep navy, coral pen, sage mint.
   Crafted for a distinct, scholarly-yet-modern identity.
   ========================================================================= */

/* ─── FONTS ─────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
    /* ── Brand Colors (from the crest) ── */
    --primary: #12303D;          /* deep navy-teal */
    --primary-light: #1E4D60;    /* lifted navy */
    --primary-dark: #0A1F29;     /* near-black navy */
    --secondary: #E2755A;        /* coral pen */
    --secondary-light: #EC9079;  /* soft coral */
    --secondary-dark: #C75B41;   /* deep coral */
    --accent: #6FBFA7;           /* sage mint (saturated for UI) */
    --accent-soft: #A8D8C8;      /* logo mint */
    --accent-gold: #E2755A;      /* coral doubles as the warm accent */

    /* ── Neutrals ── */
    --dark: #0A1F29;
    --dark-muted: #355A66;
    --text-primary: #11252E;
    --text-secondary: #54707A;
    --text-tertiary: #8AA3AC;

    /* ── Backgrounds ── */
    --bg-white: #FFFFFF;
    --bg-cream: #F7FAF9;         /* faint mint-white */
    --bg-light: #ECF3F1;
    --bg-dark: #0A1F29;
    --bg-dark-card: #12303D;

    /* ── Borders ── */
    --border-light: rgba(18, 48, 61, 0.07);
    --border-medium: rgba(18, 48, 61, 0.14);

    /* ── Multi-Layer Shadows ── */
    --shadow-xs: 0 1px 2px rgba(10, 31, 41, 0.05);
    --shadow-sm: 0 2px 4px rgba(10, 31, 41, 0.05),
                 0 4px 8px rgba(10, 31, 41, 0.05);
    --shadow-md: 0 4px 6px rgba(10, 31, 41, 0.05),
                 0 10px 20px rgba(10, 31, 41, 0.07);
    --shadow-lg: 0 10px 15px rgba(10, 31, 41, 0.05),
                 0 20px 40px rgba(10, 31, 41, 0.10);
    --shadow-xl: 0 20px 25px rgba(10, 31, 41, 0.07),
                 0 40px 80px rgba(10, 31, 41, 0.14);
    --shadow-2xl: 0 30px 60px rgba(10, 31, 41, 0.22);
    --shadow-glow-blue: 0 0 30px rgba(18, 48, 61, 0.18),
                        0 10px 40px rgba(18, 48, 61, 0.14);
    --shadow-glow-orange: 0 0 30px rgba(226, 117, 90, 0.28),
                          0 10px 40px rgba(226, 117, 90, 0.16);
    --shadow-glow-mint: 0 0 30px rgba(111, 191, 167, 0.25),
                        0 10px 40px rgba(111, 191, 167, 0.14);

    /* ── Radius Scale ── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 999px;

    /* ── Motion Curves ── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;

    /* ── Typography ── */
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Fraunces', Georgia, serif;

    /* ── Signature gradients ── */
    --grad-brand: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --grad-warm: linear-gradient(135deg, var(--secondary) 0%, var(--accent-gold) 100%);
    --grad-deep: linear-gradient(160deg, #0A1F29 0%, #12303D 55%, #1E4D60 100%);
}


/* ─── GLOBAL RESET & BASE ───────────────────────────────────────────────── */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body) !important;
    background-color: var(--bg-white) !important;
    color: var(--text-primary) !important;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 400;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6,
.font-heading {
    font-family: var(--font-heading) !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.15;
}

h1 { font-weight: 800; line-height: 1.08; }
h2 { font-weight: 700; line-height: 1.12; }
h3 { font-weight: 700; line-height: 1.2; }
h4 { font-weight: 600; line-height: 1.25; }
h5 { font-weight: 600; line-height: 1.3; }
h6 { font-weight: 600; line-height: 1.35; }

p {
    color: var(--text-secondary);
    line-height: 1.75;
}

::selection {
    background: var(--secondary) !important;
    color: #FFFFFF !important;
}

::-moz-selection {
    background: var(--secondary) !important;
    color: #FFFFFF !important;
}


/* ─── LAYOUT UTILITIES ──────────────────────────────────────────────────── */

.max-w-container-max {
    max-width: 1280px;
    margin: 0 auto;
}

.section-padding {
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}


/* =========================================================================
   COMPONENTS
   ========================================================================= */

/* ─── PREMIUM CARD ──────────────────────────────────────────────────────── */

.premium-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all 500ms var(--ease-out);
    overflow: hidden;
    position: relative;
}

/* Signature: a thin coral top-rule that draws on hover */
.premium-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--grad-warm);
    transition: width 600ms var(--ease-out);
}

.premium-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--border-medium);
}

.premium-card:hover::after {
    width: 100%;
}


/* ─── ACCENT LINE ───────────────────────────────────────────────────────── */

.accent-line {
    width: 56px;
    height: 3px;
    background: var(--grad-warm);
    border-radius: var(--radius-full);
    box-shadow: 0 0 12px rgba(226, 117, 90, 0.25);
}


/* ─── BADGE MODERN ──────────────────────────────────────────────────────── */

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(111, 191, 167, 0.12);
    color: var(--primary);
    border: 1px solid rgba(111, 191, 167, 0.28);
    line-height: 1.5;
    white-space: nowrap;
    font-family: var(--font-body);
}


/* =========================================================================
   BUTTONS — Refined, never cheap
   ========================================================================= */

/* ─── Primary Button ────────────────────────────────────────────────────── */

.btn-primary {
    background-color: var(--primary) !important;
    color: #FFFFFF !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
    padding: 14px 34px !important;
    border-radius: var(--radius-full) !important;
    border: none !important;
    box-shadow: var(--shadow-glow-blue) !important;
    text-transform: none !important;
    letter-spacing: -0.01em;
    line-height: 1.5;
    transition: all var(--duration-normal) var(--ease-out) !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(111, 191, 167, 0.25) 0%,
        rgba(111, 191, 167, 0) 55%
    );
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.btn-primary:hover {
    background-color: var(--primary-light) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 40px rgba(18, 48, 61, 0.25),
                0 14px 50px rgba(18, 48, 61, 0.18) !important;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: var(--shadow-glow-blue) !important;
}

.btn-primary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ─── Secondary Button ──────────────────────────────────────────────────── */

.btn-secondary {
    background-color: var(--bg-white) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
    padding: 14px 34px !important;
    border-radius: var(--radius-full) !important;
    border: 1.5px solid var(--border-medium) !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: -0.01em;
    line-height: 1.5;
    transition: all var(--duration-normal) var(--ease-out) !important;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: var(--shadow-sm) !important;
    transform: translateY(-1px);
}

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

.btn-secondary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ─── Accent Button ─────────────────────────────────────────────────────── */

.btn-accent {
    background-color: var(--secondary) !important;
    color: #FFFFFF !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
    padding: 14px 34px !important;
    border-radius: var(--radius-full) !important;
    border: none !important;
    box-shadow: var(--shadow-glow-orange) !important;
    text-transform: none !important;
    letter-spacing: -0.01em;
    line-height: 1.5;
    transition: all var(--duration-normal) var(--ease-out) !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-accent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.20) 0%,
        rgba(255, 255, 255, 0) 50%
    );
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.btn-accent:hover {
    background-color: var(--secondary-light) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 40px rgba(226, 117, 90, 0.34),
                0 14px 50px rgba(226, 117, 90, 0.18) !important;
}

.btn-accent:hover::before {
    opacity: 1;
}

.btn-accent:active {
    transform: translateY(0) !important;
}

.btn-accent:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
}

/* ─── Premium gradient CTA (used in mobile drawer) ──────────────────────── */

.btn-premium {
    background: var(--grad-warm) !important;
    color: #FFFFFF !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    box-shadow: var(--shadow-glow-orange) !important;
    letter-spacing: 0.01em;
    transition: all var(--duration-normal) var(--ease-out) !important;
    cursor: pointer;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 50px rgba(226, 117, 90, 0.3) !important;
    color: #FFFFFF !important;
}


/* =========================================================================
   HEADER & NAVIGATION — Glassmorphic, floating
   ========================================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: rgba(247, 250, 249, 0.78);
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
    transition: padding var(--duration-normal) var(--ease-out),
                background var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                transform 420ms var(--ease-out);
}

/* Moving gradient accent line under the bar */
.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        var(--primary) 0%,
        var(--accent) 25%,
        var(--secondary) 50%,
        var(--accent) 75%,
        var(--primary) 100%);
    background-size: 300% 100%;
    animation: nav-gradient-pan 9s linear infinite;
    opacity: 0.85;
}

@keyframes nav-gradient-pan {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.site-header.scrolled {
    padding: 9px 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 30px rgba(10, 31, 41, 0.10);
}

/* Subtle drop-in motion the moment the bar becomes solid */
.site-header.scrolled .brand-logo {
    transform: scale(0.92);
}

/* Hide-on-scroll-down / reveal-on-scroll-up motion */
.site-header.nav-hidden {
    transform: translateY(-115%);
}

/* Scroll progress bar (very top edge) */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 1040;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--primary));
    box-shadow: 0 0 10px rgba(226,117,90,0.5);
    transition: width 80ms linear;
    pointer-events: none;
}

/* ─── Nav Links ─────────────────────────────────────────────────────────── */

.nav-link-custom {
    color: var(--text-secondary) !important;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
    text-decoration: none !important;
    position: relative;
    white-space: nowrap;
}

/* animated sliding underline for every link */
.nav-link-custom::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out);
}

.nav-link-custom:hover {
    color: var(--primary) !important;
}

.nav-link-custom:hover::after {
    transform: scaleX(1);
}

.nav-link-custom.active {
    color: var(--primary) !important;
    font-weight: 600;
}

.nav-link-custom.active::after {
    transform: scaleX(1);
    background: var(--secondary);
}

/* ─── Brand Logo ────────────────────────────────────────────────────────── */

.brand-logo {
    height: 50px;
    width: auto;
    transition: transform var(--duration-normal) var(--ease-out);
}

.brand-logo:hover {
    transform: scale(1.03);
}


/* =========================================================================
   UTILITY CLASSES
   ========================================================================= */

.hover-lift {
    transition: transform 400ms var(--ease-out);
}

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

.hover-lift-premium {
    transition: transform 500ms var(--ease-out),
                box-shadow 500ms var(--ease-out);
}

.hover-lift-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.hover-white:hover { color: #fff !important; }

.action-icon-btn {
    border-radius: var(--radius-full) !important;
    color: var(--primary) !important;
    transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.action-icon-btn:hover {
    background-color: rgba(111, 191, 167, 0.14) !important;
    color: var(--primary) !important;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 800ms var(--ease-out);
}

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

/* ─── Gradient Text ─────────────────────────────────────────────────────── */

.gradient-text,
.text-gradient {
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ─── Mesh Background ──────────────────────────────────────────────────── */

.bg-mesh {
    background-color: var(--bg-cream);
    background-image:
        radial-gradient(at 20% 25%, rgba(18, 48, 61, 0.05) 0%, transparent 50%),
        radial-gradient(at 80% 80%, rgba(111, 191, 167, 0.10) 0%, transparent 50%),
        radial-gradient(at 60% 10%, rgba(226, 117, 90, 0.06) 0%, transparent 50%),
        radial-gradient(at 10% 80%, rgba(168, 216, 200, 0.10) 0%, transparent 50%);
}


/* =========================================================================
   SPECIAL ELEMENTS
   ========================================================================= */

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-blue);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 999;
    font-size: 1.1rem;
}

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

.back-to-top-btn:hover {
    transform: scale(1.1) !important;
    background-color: var(--secondary);
    box-shadow: var(--shadow-glow-orange);
}

.back-to-top-btn:active {
    transform: scale(0.95) !important;
}


/* ─── Utility Bar ───────────────────────────────────────────────────────── */

.utility-bar {
    background:
        radial-gradient(120% 200% at 0% 0%, #1A4252 0%, transparent 45%),
        linear-gradient(100deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: rgba(255,255,255,0.82);
    height: 42px;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}
.utility-bar > .container-fluid { height: 100%; }
.utility-bar > .container-fluid > .d-flex { height: 100%; }

/* faint moving sheen */
.utility-bar::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168,216,200,0.10), transparent);
    animation: util-sheen 7s ease-in-out infinite;
    pointer-events: none;
}
@keyframes util-sheen {
    0%   { left: -60%; }
    55%  { left: 130%; }
    100% { left: 130%; }
}

/* Angled coral "live" tag */
.util-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 100%;
    padding: 0 22px 0 18px;
    margin-right: 20px;
    background: linear-gradient(120deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    box-shadow: 0 0 18px rgba(226,117,90,0.35);
}
.util-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
    animation: util-pulse 1.8s infinite;
}
@keyframes util-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
    70%  { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Contact items with mint icon badge */
.util-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.82) !important;
    text-decoration: none;
    transition: color var(--duration-fast) ease;
    white-space: nowrap;
}
.util-item:hover { color: #fff !important; }
.util-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(168,216,200,0.18);
    color: var(--accent-soft);
    transition: all var(--duration-fast) ease;
}
.util-ico .material-symbols-outlined { font-size: 14px; }
.util-item:hover .util-ico {
    background: var(--accent);
    color: var(--primary-dark);
}
.util-sep {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.18);
    margin: 0 16px;
}

/* Ghost text link */
.util-ghost {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.74rem;
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) ease;
}
.util-ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(168,216,200,0.5);
    color: #fff !important;
}

/* Quick-link icon pills */
.util-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    color: rgba(255,255,255,0.85) !important;
    background: rgba(255,255,255,0.08);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
}
.util-pill .material-symbols-outlined { font-size: 17px; }
.util-pill:hover {
    background: var(--secondary);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(226,117,90,0.4);
}

@media (max-width: 1100px) {
    .util-item .util-ico { display: none; }
    .util-sep { margin: 0 10px; }
}


/* =========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================= */

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

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

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

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

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


/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 991.98px) {
    .section-padding {
        padding-top: clamp(3rem, 6vw, 5rem);
        padding-bottom: clamp(3rem, 6vw, 5rem);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: clamp(2.5rem, 5vw, 4rem);
        padding-bottom: clamp(2.5rem, 5vw, 4rem);
    }

    h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
        letter-spacing: -0.02em;
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }

    h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem) !important;
    }

    .brand-logo {
        height: 42px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-accent {
        padding: 12px 26px !important;
        font-size: 0.88rem;
    }

    .premium-card:hover {
        transform: translateY(-2px);
    }

    .hover-lift:hover,
    .hover-lift-premium:hover {
        transform: translateY(-2px);
    }

    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .scroll-reveal {
        transform: translateY(24px);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
    }

    .btn-primary,
    .btn-secondary,
    .btn-accent {
        padding: 11px 22px !important;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}


/* =========================================================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================================================= */

@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;
    }

    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .animate-float,
    .animate-pulse {
        animation: none !important;
    }
}


/* =========================================================================
   PRINT STYLES
   ========================================================================= */

@media print {
    .site-header,
    .utility-bar,
    .back-to-top-btn {
        display: none !important;
    }

    body {
        color: #000 !important;
        background: #fff !important;
    }

    .premium-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* =========================================================================
   ULTRA-PREMIUM UPGRADES (v4.0)
   ========================================================================= */

:root {
    --dark-pitch: #061015;
    --dark-surface: #0A1F29;
    --surface-dark: #0A1F29;
    --border-glass: rgba(168, 216, 200, 0.12);
}

/* ── Typography Adjustments ── */
.display-1, .display-2, .display-3 {
    letter-spacing: -0.03em !important;
}

/* ── Glassmorphism ── */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px rgba(10, 31, 41, 0.14);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.glass-card-dark {
    background: rgba(10, 31, 41, 0.42);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(168, 216, 200, 0.10);
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    color: white;
}

/* ── Animated Grain/Shimmer ── */
.bg-grain {
    position: relative;
}
.bg-grain::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    animation: grain-shift 8s steps(10) infinite;
}

@keyframes grain-shift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* ── Magnetic Buttons & Interaction ── */
.magnetic-btn {
    transition: transform 0.1s linear, box-shadow 0.3s ease;
    will-change: transform;
}

/* Custom Trailing Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
    will-change: left, top, width, height;
}

.custom-cursor.active {
    width: 60px;
    height: 60px;
    background: rgba(168, 216, 200, 0.8);
}

@media (max-width: 768px) {
    .custom-cursor { display: none; }
}

/* High Contrast Dark Sections */
.bg-ultra-dark {
    background-color: var(--dark-pitch) !important;
    color: white !important;
}

.bg-ultra-dark .text-dark {
    color: white !important;
}
.bg-ultra-dark .text-secondary {
    color: rgba(255,255,255,0.7) !important;
}

/* Deep brand gradient surface */
.bg-brand-deep {
    background: var(--grad-deep) !important;
    color: #fff !important;
}

/* ── Sticky Stack ── */
.sticky-container {
    position: relative;
}

.sticky-context {
    position: sticky;
    top: 120px;
    height: max-content;
    z-index: 2;
}

.sticky-stack-card {
    position: sticky;
    margin-bottom: 24px;
}

@media (max-width: 991px) {
    .sticky-context,
    .sticky-stack-card {
        position: static !important;
    }
}

/* ── Cinematic Reveal & Parallax ── */
.cinematic-reveal {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

.parallax-wrap {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-2xl);
}

.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    transform: scale(1.1);
    will-change: transform;
}

/* ── Horizontal Scroll Gallery ── */
.horizontal-scroll-section {
    overflow: hidden;
    background: var(--surface-dark);
}

.horizontal-scroll-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    height: 100vh;
    align-items: center;
    padding: 0 10vw;
    gap: 4rem;
}

.horizontal-card {
    width: 60vw;
    max-width: 800px;
    height: 60vh;
    flex-shrink: 0;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border-glass);
}

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

.horizontal-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(to top, rgba(6,16,21,0.85) 0%, rgba(6,16,21,0) 100%);
    color: white;
}

@media (max-width: 768px) {
    .horizontal-card {
        width: 85vw;
        height: 50vh;
    }
    .horizontal-card-overlay {
        padding: 1.5rem;
    }
    .horizontal-scroll-track {
        gap: 2rem;
    }
}


/* =========================================================================
   BOOTSTRAP BRIDGE — re-skin Bootstrap utility classes to brand palette
   so inline `text-primary` / `bg-primary` / `btn-outline-primary` follow suit
   ========================================================================= */

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.text-danger { color: var(--secondary-dark) !important; }
.bg-danger { background-color: var(--secondary) !important; }
.text-success { color: var(--accent) !important; }
.bg-success { background-color: var(--accent) !important; }
.link-primary { color: var(--primary) !important; }

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}

a { color: var(--primary); }
a:hover { color: var(--secondary-dark); }

.bg-light { background-color: var(--bg-light) !important; }


/* =========================================================================
   THEME TOGGLE + GLOBAL DARK MODE (2026)
   ========================================================================= */
.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border-medium);
    background: transparent; display: grid; place-items: center;
    cursor: pointer; color: var(--primary);
    transition: all var(--duration-fast) var(--ease-out);
}
.theme-toggle:hover { background: rgba(111,191,167,0.14); transform: translateY(-2px); }

/* Circular glass badge behind the brand logo */
.brand-link { align-items: center; }
.brand-badge {
    width: 54px; height: 54px; flex-shrink: 0;
    border-radius: 14px;
    display: grid; place-items: center;
    background: #ffffff;
    border: 1px solid rgba(168,216,200,0.5);
    box-shadow: 0 6px 16px rgba(10,31,41,0.20);
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
    overflow: hidden;
    padding: 5px;
}
.site-header.scrolled .brand-badge { width: 48px; height: 48px; }
.brand-link:hover .brand-badge { transform: scale(1.06); box-shadow: 0 9px 22px rgba(10,31,41,0.26); }
.brand-crest { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-word {
    font-family: 'Fraunces', Georgia, serif; font-weight: 800; letter-spacing: 0.02em;
    font-size: 1.18rem; line-height: 1; color: #12303D; white-space: nowrap;
}
[data-theme="dark"] .brand-word { color: #EAF4F1; }
[data-theme="dark"] .brand-badge { background: rgba(255,255,255,0.95); }
@media (max-width: 575.98px) { .brand-word { display: none; } .brand-badge { width: 46px; height: 46px; } }

/* Dark mode applies to public pages (admin has its own theme) */
/* Flip the light design tokens so anything using var(--bg-*)/var(--text-*) goes dark */
[data-theme="dark"] {
    --bg-white: #0E2730;
    --bg-cream: #0B2129;
    --bg-light: #0B2129;
    --bg-dark: #050D11;
    --text-primary: #EAF4F1;
    --text-secondary: #9FBCC2;
    --text-tertiary: #7E9AA1;
    --border-light: rgba(168,216,200,0.12);
    --border-medium: rgba(168,216,200,0.22);
}
[data-theme="dark"] body {
    background-color: #07141A !important;
    color: #EAF4F1 !important;
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
[data-theme="dark"] .text-dark { color: #EAF4F1 !important; }
[data-theme="dark"] p, [data-theme="dark"] .text-secondary { color: #9FBCC2 !important; }
[data-theme="dark"] .text-primary { color: #A8D8C8 !important; }
[data-theme="dark"] .bg-white { background-color: #0E2730 !important; }
[data-theme="dark"] .bg-light, [data-theme="dark"] .section-soft { background-color: #0B2129 !important; }
[data-theme="dark"] .section-mint { background-color: #0E2730 !important; }
[data-theme="dark"] .section-coral { background-color: #1A1410 !important; }
[data-theme="dark"] .hero-bright {
    background:
        radial-gradient(120% 90% at 85% 10%, rgba(111,191,167,0.14) 0%, transparent 55%),
        radial-gradient(90% 80% at 10% 90%, rgba(226,117,90,0.10) 0%, transparent 55%),
        linear-gradient(180deg, #07141A 0%, #0E2730 100%) !important;
}
[data-theme="dark"] .bg-mesh { background-color: #0B2129 !important; background-image: none !important; }
[data-theme="dark"] .bg-cream { background-color: #0B2129 !important; }
[data-theme="dark"] .bg-light { background-color: #0B2129 !important; }
[data-theme="dark"] .premium-card,
[data-theme="dark"] .feature-tile,
[data-theme="dark"] .program-card,
[data-theme="dark"] .notice-row {
    background: #0E2730 !important;
    border-color: rgba(168,216,200,0.14) !important;
    color: #EAF4F1 !important;
}
[data-theme="dark"] .site-header {
    background: rgba(7,20,26,0.82) !important;
    border-bottom-color: rgba(168,216,200,0.12) !important;
}
[data-theme="dark"] .nav-link-custom { color: #9FBCC2 !important; }
[data-theme="dark"] .nav-link-custom:hover,
[data-theme="dark"] .nav-link-custom.active { color: #EAF4F1 !important; }
[data-theme="dark"] .theme-toggle { color: #EAF4F1; border-color: rgba(168,216,200,0.2); }
[data-theme="dark"] .action-icon-btn { color: #EAF4F1 !important; }
[data-theme="dark"] .form-control, [data-theme="dark"] .form-select {
    background: #0B2129 !important; border-color: rgba(168,216,200,0.16) !important; color: #EAF4F1 !important;
}
[data-theme="dark"] .btn-secondary {
    background-color: transparent !important; color: #EAF4F1 !important; border-color: rgba(168,216,200,0.25) !important;
}
/* Bootstrap accordion (FAQ) in dark mode */
[data-theme="dark"] .accordion,
[data-theme="dark"] .accordion-item,
[data-theme="dark"] .accordion-collapse,
[data-theme="dark"] .accordion-body,
[data-theme="dark"] .accordion-body.bg-white {
    background: #0E2730 !important; color: #EAF4F1 !important; border-color: rgba(168,216,200,0.12) !important;
}
[data-theme="dark"] .accordion-button {
    background: #0E2730 !important; color: #EAF4F1 !important; box-shadow: none !important;
}
[data-theme="dark"] .accordion-button:not(.collapsed) { background: #12303D !important; color: #EAF4F1 !important; }
[data-theme="dark"] .accordion-button.text-dark { color: #EAF4F1 !important; }
[data-theme="dark"] .accordion-body.text-secondary,
[data-theme="dark"] .accordion-body { color: #9FBCC2 !important; }
[data-theme="dark"] .accordion-button::after { filter: invert(0.85) sepia(0.2) hue-rotate(120deg); }
/* Bootstrap tables (fees structure etc.) in dark mode */
[data-theme="dark"] .table {
    --bs-table-bg: transparent; --bs-table-color: #EAF4F1; color: #EAF4F1;
    --bs-table-border-color: rgba(168,216,200,0.12);
}
[data-theme="dark"] .table > :not(caption) > * > * {
    background-color: #0E2730 !important; color: #EAF4F1 !important; border-color: rgba(168,216,200,0.12) !important;
}
[data-theme="dark"] .table thead th,
[data-theme="dark"] .table > thead > tr > * { background-color: #0A1F29 !important; color: #EAF4F1 !important; }
[data-theme="dark"] .table-hover > tbody > tr:hover > * { background-color: #12303D !important; }
[data-theme="dark"] .table .text-secondary, [data-theme="dark"] .table .text-muted { color: #9FBCC2 !important; }
[data-theme="dark"] .nav-pills .nav-link { color: #9FBCC2; }
[data-theme="dark"] .nav-pills .nav-link.active { background-color: var(--primary, #12303D); color: #fff; }


/* =========================================================================
   CLEAN & BRIGHT SCHOOL SYSTEM (homepage v4)
   ========================================================================= */

.font-accent { font-family: var(--font-accent) !important; }

/* Soft tinted section backgrounds */
.section-soft { background-color: var(--bg-cream); }
.section-mint { background-color: #EEF7F4; }
.section-coral { background-color: #FCF1ED; }

/* Eyebrow label */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary-dark);
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--secondary);
}
.eyebrow.center::before { display: none; }

/* Bright hero wash */
.hero-bright {
    background:
        radial-gradient(120% 90% at 85% 10%, rgba(111,191,167,0.16) 0%, transparent 55%),
        radial-gradient(90% 80% at 10% 90%, rgba(226,117,90,0.12) 0%, transparent 55%),
        linear-gradient(180deg, #FBFDFC 0%, #F2F8F6 100%);
}

/* Feature tile (icon chip) */
.feature-tile {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all 400ms var(--ease-out);
}
.feature-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(111,191,167,0.4);
}
.icon-chip {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}
.icon-chip .material-symbols-outlined { font-size: 30px; }
.chip-navy  { background: rgba(18,48,61,0.08);  color: var(--primary); }
.chip-coral { background: rgba(226,117,90,0.12); color: var(--secondary-dark); }
.chip-mint  { background: rgba(111,191,167,0.16); color: #2E8870; }

/* Stat block */
.stat-num {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    letter-spacing: -0.03em;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Program card with image */
.program-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 450ms var(--ease-out);
    height: 100%;
}
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.program-card .program-img {
    height: 190px;
    width: 100%;
    object-fit: cover;
}

/* Gallery tile */
.gallery-tile {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
}
.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--ease-out);
}
.gallery-tile:hover img { transform: scale(1.06); }
.gallery-tile .tile-cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(10,31,41,0.78), transparent);
    color: #fff;
    font-weight: 600;
}

/* Notice row */
.notice-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 300ms var(--ease-out);
}
.notice-row:hover {
    border-color: rgba(226,117,90,0.45);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

/* Section heading rule */
.divider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--secondary);
    display: inline-block;
}
