/* ==========================================================================
   BDCP — 3D Business Design System
   1. Tokens          6. Navigation      11. Courses
   2. Reset & base    7. Hero + stage    12. Finder / Compare
   3. Background FX   8. Stats / marquee 13. Features / Gallery
   4. Utilities       9. About / steps   14. FAQ / Contact / Footer
   5. Buttons        10. Section headers 15. Overlays & responsive
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
    /* Core palette — pulled from the BDCP emblem (blue + gold) */
    --navy-950: #04070F;
    --navy-900: #060C19;
    --navy-850: #081224;
    --navy-800: #0B1830;
    --navy-700: #122444;

    --blue-600: #1F56E0;
    --blue-500: #2F6BFF;
    --blue-400: #5B8CFF;
    --blue-300: #8FB4FF;
    --cyan-400: #35D8EC;
    --gold-500: #E9A321;
    --gold-400: #F7BF4F;
    --gold-300: #FFD98A;
    --gold-200: #FFE6B0;

    --text-strong: #F5F8FF;
    --text-body: #C3CFE4;
    --text-muted: #93A3BF;
    --text-faint: #6E7F9C;

    --line: rgba(148, 173, 214, 0.16);
    --line-strong: rgba(148, 173, 214, 0.28);

    --glass-1: rgba(255, 255, 255, 0.075);
    --glass-2: rgba(255, 255, 255, 0.022);

    /* Premium glassmorphism — Apple-style frosted panels.
       Blur values live in tokens so low-end devices can dial them down
       in a single place (see the performance guards at the bottom). */
    --glass-blur: 26px;
    --glass-blur-strong: 36px;
    --glass-blur-soft: 14px;
    --glass-sat: 170%;
    --glass-tint-top: rgba(255, 255, 255, 0.135);
    --glass-tint-mid: rgba(255, 255, 255, 0.045);
    --glass-tint-bottom: rgba(255, 255, 255, 0.075);
    --glass-stroke: rgba(255, 255, 255, 0.16);
    --glass-stroke-soft: rgba(255, 255, 255, 0.085);
    --glass-specular: rgba(255, 255, 255, 0.38);
    --glass-shadow: 0 30px 64px -36px rgba(2, 6, 18, 0.95), 0 2px 8px -3px rgba(2, 6, 18, 0.55);
    --glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(255, 255, 255, 0.05);

    /* Shared card recipe: painted frost (no live backdrop blur) so a grid of
       20+ cards stays at 60fps on entry-level hardware. */
    --glass-surface:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.018) 42%, rgba(255, 255, 255, 0.004)),
        radial-gradient(120% 90% at 12% -10%, rgba(255, 255, 255, 0.1), transparent 62%),
        linear-gradient(158deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
    --glass-surface-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03),
        0 24px 50px -32px rgba(2, 6, 18, 0.95);
    --glass-surface-shadow-hover:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        0 30px 58px -30px rgba(2, 6, 18, 0.98),
        0 0 0 1px rgba(143, 180, 255, 0.08);

    --font-heading: 'Sora', 'Poppins', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-pill: 999px;

    /* Layered 3D elevation */
    --shadow-sm: 0 2px 6px rgba(2, 6, 18, 0.45);
    --shadow-md: 0 18px 36px -18px rgba(2, 6, 18, 0.85), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
    --shadow-lg: 0 40px 70px -32px rgba(2, 6, 18, 0.95), 0 1px 0 rgba(255, 255, 255, 0.07) inset;
    --shadow-blue: 0 18px 45px -18px rgba(47, 107, 255, 0.75);
    --shadow-gold: 0 18px 40px -20px rgba(233, 163, 33, 0.6);

    --ring: 0 0 0 3px rgba(47, 107, 255, 0.35);
    --ease: cubic-bezier(0.22, 0.85, 0.3, 1);
    --nav-h: 78px;

    /* Legacy aliases kept so any older markup keeps working */
    --primary-navy: var(--navy-900);
    --primary-blue: var(--blue-500);
    --primary-blue-hover: var(--blue-600);
    --accent-cyan: var(--cyan-400);
    --bg-light: var(--navy-850);
    --bg-white: var(--navy-900);
    --text-main: var(--text-body);
    --border-color: var(--line);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 18px);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-body);
    background-color: var(--navy-950);
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

p { color: var(--text-body); }
strong { color: var(--text-strong); font-weight: 600; }

a { color: var(--blue-300); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--gold-300); }

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
/* <picture> only picks a source; keep it out of the layout tree so the
   wrapped <img> keeps exactly the box it had before. */
picture { display: contents; }
button { font: inherit; color: inherit; }
::selection { background: rgba(47, 107, 255, 0.45); color: #fff; }

:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: -100vw;
    z-index: 3000;
    padding: 0.7rem 1.1rem;
    background: var(--blue-500);
    color: #fff;
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: top 0.25s ease;
}
.skip-link:focus { top: 14px; left: 16px; color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--blue-600), var(--navy-700));
    border-radius: 99px;
    border: 2px solid var(--navy-950);
}
::-webkit-scrollbar-thumb:hover { background: var(--blue-500); }

/* ==========================================================================
   3. Background FX — aurora, grid, noise, progress
   ========================================================================== */
.bg-fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 80% -10%, rgba(47, 107, 255, 0.20), transparent 60%),
        radial-gradient(90% 70% at 0% 10%, rgba(53, 216, 236, 0.10), transparent 55%),
        linear-gradient(180deg, #060C19 0%, #04070F 55%, #050A16 100%);
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: drift 26s var(--ease) infinite alternate;
    will-change: transform;
}
.aurora-1 {
    width: 46vw; height: 46vw; min-width: 340px; min-height: 340px;
    top: -14vw; right: -8vw;
    background: radial-gradient(circle at 40% 40%, rgba(47, 107, 255, 0.75), transparent 68%);
}
.aurora-2 {
    width: 38vw; height: 38vw; min-width: 280px; min-height: 280px;
    top: 42%; left: -14vw;
    background: radial-gradient(circle at 50% 50%, rgba(53, 216, 236, 0.45), transparent 66%);
    animation-delay: -8s;
    animation-duration: 32s;
}
.aurora-3 {
    width: 32vw; height: 32vw; min-width: 240px; min-height: 240px;
    bottom: -12vw; right: 6vw;
    background: radial-gradient(circle at 50% 50%, rgba(233, 163, 33, 0.34), transparent 68%);
    animation-delay: -16s;
    animation-duration: 38s;
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-4vw, 4vh, 0) scale(1.16); }
}

.bg-grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(148, 173, 214, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 173, 214, 0.075) 1px, transparent 1px);
    background-size: 74px 74px;
    transform: perspective(700px) rotateX(58deg) translateY(-8%);
    transform-origin: top center;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 78%);
    opacity: 0.55;
}

.bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 1200;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-400) 55%, var(--gold-400));
    box-shadow: 0 0 14px rgba(47, 107, 255, 0.8);
    transition: width 0.1s linear;
}

/* ==========================================================================
   4. Utilities
   ========================================================================== */
.container { width: min(1200px, 90%); margin: 0 auto; position: relative; min-width: 0; }

main, .footer, .navbar { position: relative; z-index: 1; max-width: 100%; overflow-x: clip; }

section { padding: clamp(3.6rem, 7vw, 6.5rem) 0; position: relative; overflow-x: clip; }
.hero-container > *, .about-grid > *, .toppers-panel > *, .contact-wrapper > *, .footer-grid > * { min-width: 0; }
main section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.grad-text {
    background: linear-gradient(100deg, var(--blue-300) 0%, var(--cyan-400) 48%, var(--gold-300) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.95rem 0.45rem 0.7rem;
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-strong);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 60%),
        linear-gradient(120deg, rgba(47, 107, 255, 0.2), rgba(53, 216, 236, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 10px 26px -16px rgba(47, 107, 255, 0.9);
    backdrop-filter: blur(var(--glass-blur-soft)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(160%);
}
.pill-dot {
    position: relative;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold-400);
}
/* The pulse rides on a transform-only pseudo-element. Animating box-shadow
   forced a repaint of the whole ring every frame — a non-composited animation
   Lighthouse flags on every view of the page that carries a pill. */
.pill-dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(247, 191, 79, 0.75);
    animation: pulseDot 2.4s ease-out infinite;
}
@keyframes pulseDot {
    0%   { transform: scale(0.8); opacity: 0.9; }
    70%  { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin-bottom: 1rem;
}
.eyebrow i { color: var(--gold-400); font-size: 0.8rem; }

/* Apple-style liquid glass: layered translucency, a soft specular top
   highlight and a hairline light ring instead of a flat border. */
.glass {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 38%, rgba(255, 255, 255, 0) 62%),
        radial-gradient(130% 100% at 8% -18%, rgba(255, 255, 255, 0.2), transparent 58%),
        linear-gradient(155deg, var(--glass-tint-top), var(--glass-tint-mid) 52%, var(--glass-tint-bottom));
    border: 1px solid var(--glass-stroke);
    border-radius: var(--r-lg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.06);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.06);
    box-shadow: var(--glass-inner), var(--glass-shadow);
    isolation: isolate;
}
.glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(150deg, var(--glass-specular), rgba(255, 255, 255, 0) 44%, rgba(120, 165, 255, 0.34));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.9;
}

.hidden { display: none !important; }
/* Visible to screen readers only: used where a skeleton carries the state
   visually but the live region still has to announce something. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.text-sm { font-size: 0.875rem; }
.mt-2 { margin-top: 1rem; }

/* 3D tilt (JS drives --rx / --ry; CSS handles the resting state).
   The effect is deliberately restrained: a whisper of rotation so cards
   feel physical without the wobble that costs frames on weak GPUs. */
.tilt {
    --rx: 0deg;
    --ry: 0deg;
    --ty: 0px;
    transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty));
    transform-style: preserve-3d;
    transition: transform 0.45s var(--ease), opacity 0.8s var(--ease), box-shadow 0.45s var(--ease), border-color 0.4s ease;
    backface-visibility: hidden;
}
/* Lift only slightly, and promote to its own layer only while hovered. */
.tilt:hover { --ty: -3px; will-change: transform; }

/* Cursor light — dim and tight, more "soft sheen" than spotlight. */
.card-sheen {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.07), transparent 62%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.tilt:hover .card-sheen { opacity: 0.85; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal:not(.is-visible) { transform: translateY(30px) scale(0.985); }
.reveal.is-visible { opacity: 1; }

/* Above-the-fold entrance — deliberately NOT .reveal.
   .reveal starts at opacity 0 and waits for script.js, so the hero (and its
   LCP photo) counted as "not painted" until JS ran; Lighthouse reported the
   hero well after first paint.  The hero is painted immediately at full
   opacity and only slides: a transform-only animation cannot delay paint. */
@keyframes heroRise {
    from { transform: translateY(18px); }
    to { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
    .hero-content > * {
        animation: heroRise 0.75s var(--ease) both;
    }
    .hero-content > :nth-child(2) { animation-delay: 0.06s; }
    .hero-content > :nth-child(3) { animation-delay: 0.12s; }
    .hero-content > :nth-child(4) { animation-delay: 0.18s; }
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.55rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn i { font-size: 0.95em; transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 48%, #16409F 100%);
    box-shadow: var(--shadow-blue), 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 -2px 0 rgba(0, 0, 0, 0.25) inset;
}
/* glossy sweep */
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: skewX(-18deg);
    transition: left 0.6s var(--ease);
    z-index: -1;
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 26px 50px -20px rgba(47, 107, 255, 0.95), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.btn-primary:hover::before { left: 120%; }

.btn-ghost {
    color: var(--text-strong);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 70%),
        rgba(255, 255, 255, 0.028);
    border-color: var(--glass-stroke-soft);
    backdrop-filter: blur(var(--glass-blur-soft)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 12px 28px -22px rgba(2, 6, 18, 0.9);
}
.btn-ghost:hover {
    color: var(--text-strong);
    border-color: rgba(143, 180, 255, 0.6);
    background: rgba(47, 107, 255, 0.14);
    transform: translateY(-2px);
}

.btn-outline {
    color: var(--blue-300);
    border-color: rgba(143, 180, 255, 0.5);
    background: rgba(47, 107, 255, 0.06);
}
.btn-outline:hover {
    color: #fff;
    background: rgba(47, 107, 255, 0.22);
    border-color: var(--blue-300);
    transform: translateY(-2px);
}

/* ==========================================================================
   6. Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    max-width: 100%;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    z-index: 1000;
    overflow-x: clip;
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, height 0.4s ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    height: 68px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 60%, rgba(255, 255, 255, 0.03)),
        rgba(6, 12, 25, 0.62);
    backdrop-filter: blur(var(--glass-blur-strong)) saturate(180%) brightness(1.05);
    -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(180%) brightness(1.05);
    border-bottom-color: rgba(255, 255, 255, 0.09);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 18px 44px -30px rgba(0, 0, 0, 0.95);
}

.nav-container { display: flex; align-items: center; justify-content: space-between; gap: clamp(0.65rem, 1.4vw, 1.5rem); min-width: 0; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-strong);
    flex-shrink: 0;
}
.logo:hover { color: var(--text-strong); }

.logo-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 4px;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 24%, #FFFFFF 0%, #EAF0FD 62%, #C9D8F5 100%);
    box-shadow:
        0 10px 22px -10px rgba(47, 107, 255, 0.85),
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 -3px 8px rgba(9, 24, 56, 0.22) inset;
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo:hover .logo-mark { transform: translateY(-2px) rotate(-3deg); box-shadow: 0 16px 28px -12px rgba(47, 107, 255, 0.95); }
.logo-mark.small { width: 42px; height: 42px; border-radius: 12px; }

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title {
    font-family: var(--font-heading);
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(100deg, #FFFFFF, #BFD3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.logo-subtitle {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* The menu and the call-to-action share one right-aligned group, so the
   "Enquire Now" button can never be squeezed by the link row. */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
    min-width: 0;
    flex: 0 1 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.15rem;
    min-width: 0;
}
.nav-links > a:not(.nav-btn) {
    position: relative;
    padding: 0.5rem 0.6rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--r-pill);
    white-space: nowrap;
    transition: color 0.25s ease, background 0.25s ease;
}
.nav-links > a:not(.nav-btn)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--blue-400), var(--gold-400));
    transform: translateX(-50%);
    transition: width 0.3s var(--ease);
}
.nav-links > a:not(.nav-btn):hover,
.nav-links > a.is-active { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-links > a:not(.nav-btn):hover::after,
.nav-links > a.is-active::after { width: 22px; }

.nav-btn {
    flex: 0 0 auto;
    gap: 0.45rem;
    padding: 0.68rem 1rem;
    font-size: 0.87rem;
    line-height: 1.1;
    white-space: nowrap;
}
.nav-btn .nav-btn-short { display: none; }
.nav-btn i { font-size: 0.82em; }
.nav-btn:hover i { transform: translateX(3px); }

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-strong);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02) 65%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-stroke-soft);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(var(--glass-blur-soft)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(160%);
    cursor: pointer;
    transition: background 0.25s ease;
}
.mobile-toggle:hover { background: rgba(47, 107, 255, 0.24); }

/* --- Day / Night toggle ---------------------------------------------------
   Modelled on the reference pill: a soft inset groove with one raised,
   frosted knob that slides along it. Night (default) parks the knob left
   with a moon and a cool blue glow; Day slides it right, swaps in the sun
   and warms the glow orange — exactly the reference frame. The button
   itself stays transparent so the groove reads as carved into the bar. */
.theme-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 4px;
    margin-left: 0.35rem;
    background: transparent;
    border: none;
    border-radius: var(--r-pill);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.theme-toggle-track {
    position: relative;
    display: block;
    width: 62px;
    height: 32px;
    border-radius: var(--r-pill);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1)),
        rgba(3, 8, 18, 0.55);
    border: 1px solid var(--glass-stroke-soft);
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.55),
        inset 0 -1px 0 rgba(255, 255, 255, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.06);
    transition: background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.theme-toggle-knob {
    position: absolute;
    top: 50%;
    left: 3px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 24px;
    border-radius: var(--r-pill);
    color: #BFD3FF;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 55%),
        linear-gradient(120deg, rgba(91, 140, 255, 0.4), rgba(53, 216, 236, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 4px 10px -3px rgba(2, 6, 18, 0.8),
        0 0 14px -2px rgba(91, 140, 255, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transform: translateY(-50%);
    transition: transform 0.5s var(--ease), background 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.theme-toggle:active .theme-toggle-knob { scale: 0.94; }
.theme-toggle .theme-icon { grid-area: 1 / 1; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.theme-toggle .theme-icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .theme-icon-moon { opacity: 1; transform: none; }

/* Day: knob travels right, sun rotates in, glow turns warm (the reference). */
[data-theme="day"] .theme-toggle-track {
    background: linear-gradient(145deg, #D8DEEA, #E9EDF5);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow:
        inset 3px 3px 7px rgba(163, 177, 198, 0.75),
        inset -3px -3px 7px rgba(255, 255, 255, 0.95);
}
[data-theme="day"] .theme-toggle-knob {
    color: #E8890C;
    background:
        linear-gradient(180deg, #FFFFFF, rgba(255, 255, 255, 0.55) 55%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(255, 176, 92, 0.45));
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        3px 3px 8px rgba(163, 177, 198, 0.65),
        -2px -2px 6px rgba(255, 255, 255, 0.95),
        0 0 16px -1px rgba(255, 150, 50, 0.55),
        inset 0 1px 0 #fff;
    transform: translate(23px, -50%);
}
[data-theme="day"] .theme-toggle .theme-icon-sun { opacity: 1; transform: none; }
[data-theme="day"] .theme-toggle .theme-icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
@media (prefers-reduced-motion: reduce) {
    .theme-toggle-knob, .theme-toggle .theme-icon { transition: none; }
}

/* ==========================================================================
   7. Hero + 3D stage
   ========================================================================== */
.hero {
    padding-top: calc(var(--nav-h) + clamp(2.2rem, 5vw, 4.2rem));
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
    overflow-x: clip;
    overflow-y: visible;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(143, 180, 255, 0.45), transparent);
}

.credentials-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 1180px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.credential-item {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    color: var(--text-body);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.055em;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
    border: 1px solid rgba(148, 173, 214, 0.16);
    border-radius: var(--r-md);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.credential-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--gold-300);
    font-size: 1rem;
    border: 1px solid rgba(247, 191, 79, 0.3);
    border-radius: 50%;
    background: rgba(233, 163, 33, 0.09);
}
.credential-icon-iso {
    color: #a9d8ff;
    font: 800 0.64rem var(--font-heading);
    letter-spacing: -0.04em;
    border-color: rgba(91, 140, 255, 0.42);
    background: rgba(47, 107, 255, 0.13);
}
.credential-icon-msme {
    color: #a9e6d0;
    font: 800 0.51rem var(--font-heading);
    letter-spacing: -0.035em;
    border-color: rgba(64, 190, 145, 0.38);
    background: rgba(42, 155, 117, 0.12);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.35rem, 4.4vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.04;
    margin: 1.1rem 0 1.15rem;
    text-wrap: balance;
    text-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}
.hero-content h1 .grad-text { display: block; padding-bottom: 0.06em; }

.hero-lead {
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    color: var(--text-muted);
    max-width: 34rem;
    margin-bottom: 1.9rem;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.8rem; }

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.4rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-muted);
}
.trust-row li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-row i { color: var(--cyan-400); font-size: 0.9rem; }

/* --- 3D stage --- */
.hero-visual {
    position: relative;
    perspective: 1600px;
    padding: 1rem 0;
}
.stage {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(8deg) rotateZ(1deg);
    transition: transform 0.7s var(--ease);
}
.hero-visual:hover .stage { transform: rotateY(-10deg) rotateX(5deg) rotateZ(0deg); }

.stage-ring {
    position: absolute;
    inset: -12% -8% -6% -10%;
    border-radius: 50%;
    background: conic-gradient(from 210deg, rgba(47, 107, 255, 0.55), rgba(53, 216, 236, 0.35), rgba(233, 163, 33, 0.4), rgba(47, 107, 255, 0.55));
    filter: blur(46px);
    opacity: 0.5;
    transform: translateZ(-90px);
}

.stage-screen {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: #07101F;
    border: 1px solid rgba(180, 208, 255, 0.24);
    box-shadow:
        0 50px 90px -40px rgba(0, 0, 0, 0.95),
        0 0 70px -20px rgba(47, 107, 255, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.22) inset;
    transform-style: preserve-3d;
}
.stage-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(255, 255, 255, 0.16) 0%, transparent 34%, transparent 70%, rgba(3, 8, 20, 0.5) 100%);
    pointer-events: none;
}
.stage-screen img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transform: scale(1.01);
}

.stage-chrome {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.9rem;
    background: linear-gradient(180deg, rgba(5, 11, 24, 0.92), rgba(5, 11, 24, 0));
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(200, 216, 245, 0.75);
}
.stage-chrome span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}
.stage-chrome span:first-child { background: rgba(247, 191, 79, 0.85); }
.stage-chrome em { margin-left: auto; font-style: normal; font-size: 0.66rem; }

.stage-screen figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.15rem;
    padding: 2.8rem 1.4rem 1.15rem 34%;
    background: linear-gradient(0deg, rgba(4, 9, 20, 0.94), rgba(4, 9, 20, 0));
}
.stage-screen figcaption strong {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    color: #fff;
}
.stage-screen figcaption span { font-size: 0.8rem; color: rgba(198, 212, 238, 0.82); }

.stage-plate {
    position: absolute;
    left: -6%;
    bottom: -11%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.1rem 0.6rem 0.65rem;
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(219, 231, 252, 0.92));
    box-shadow: 0 26px 46px -22px rgba(0, 0, 0, 0.9), 0 1px 0 #fff inset;
    transform: translateZ(70px);
    animation: plateFloat 7s ease-in-out infinite alternate;
}
.stage-plate img { width: 40px; height: 42px; object-fit: contain; }
.stage-plate div { display: flex; flex-direction: column; line-height: 1.2; }
.stage-plate strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #0A1A33;
    letter-spacing: 0.02em;
}
.stage-plate span { font-size: 0.66rem; color: #4B5F84; text-transform: uppercase; letter-spacing: 0.12em; }

@keyframes plateFloat {
    from { transform: translateZ(70px) translateY(0); }
    to   { transform: translateZ(86px) translateY(-8px); }
}

.float-chip {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-strong);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 62%),
        rgba(10, 20, 40, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--r-pill);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 18px 34px -18px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(var(--glass-blur-soft)) saturate(165%);
    -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(165%);
    animation: chipFloat 6s ease-in-out infinite alternate;
    white-space: nowrap;
}
.float-chip i { color: var(--gold-400); font-size: 0.85rem; }
.chip-1 { top: 1%; right: -3%; transform: translateZ(110px); animation-delay: -1s; }
.chip-2 { top: 34%; right: -7%; transform: translateZ(140px); animation-delay: -2.6s; }
.chip-2 i { color: var(--cyan-400); }
.chip-3 { bottom: 24%; left: -8%; transform: translateZ(130px); animation-delay: -1.8s; }
.chip-3 i { color: var(--blue-300); }
.chip-4 { top: -5%; left: 4%; transform: translateZ(100px); animation-delay: -3.4s; }

@keyframes chipFloat {
    from { translate: 0 0; }
    to   { translate: 0 -12px; }
}

/* ==========================================================================
   8. Stats band + marquee
   ========================================================================== */
.stats-band {
    padding: 0 0 clamp(2rem, 4vw, 3rem);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    padding: 0;
    border-radius: var(--r-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.022) 42%, rgba(255, 255, 255, 0.006)),
        radial-gradient(120% 90% at 14% -12%, rgba(255, 255, 255, 0.12), transparent 62%),
        linear-gradient(160deg, rgba(9, 20, 40, 0.8), rgba(6, 13, 26, 0.86));
    border: 1px solid var(--glass-stroke-soft);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        var(--glass-shadow);
    backdrop-filter: blur(var(--glass-blur-soft)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(150%);
    overflow: hidden;
    position: relative;
}
.stats-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 120% at 50% -30%, rgba(47, 107, 255, 0.28), transparent 70%);
    pointer-events: none;
}
.stat {
    position: relative;
    padding: 1.7rem 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(148, 173, 214, 0.1);
}
.stat:last-child { border-right: none; }
.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(140deg, #FFFFFF 12%, var(--blue-300) 55%, var(--gold-300) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.15;
}
.stat-label {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.83rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.marquee {
    position: relative;
    overflow: hidden;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(148, 173, 214, 0.12);
    border-bottom: 1px solid rgba(148, 173, 214, 0.12);
    background: linear-gradient(90deg, rgba(47, 107, 255, 0.06), rgba(233, 163, 33, 0.06));
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    width: max-content;
    animation: marquee 38s linear infinite;
}
.marquee-track span {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(198, 214, 240, 0.72);
    white-space: nowrap;
}
.marquee-track i { font-size: 0.5rem; color: var(--gold-400); opacity: 0.8; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ==========================================================================
   10. Section headers
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 54rem;
    margin: 0 auto clamp(2.2rem, 4vw, 3.4rem);
}
.section-header h2 {
    max-width: 46rem;
    margin-inline: auto;
    font-size: clamp(1.8rem, 3.2vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.7rem;
    text-wrap: balance;
}
.section-header p {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    max-width: 38rem;
    margin: 0 auto;
}

/* ==========================================================================
   9. About + steps
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.22fr 0.78fr;
    gap: clamp(2rem, 4vw, 3.6rem);
    align-items: start;
}
.about-text > p { margin-bottom: 1.05rem; color: var(--text-muted); }
.about-text > p strong { color: var(--text-strong); }

.about-points { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1.8rem; }
.about-point {
    display: flex;
    gap: 0.95rem;
    padding: 1rem 1.1rem;
    border-radius: var(--r-md);
    background: var(--glass-surface);
    border: 1px solid var(--glass-stroke-soft);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 14px 30px -24px rgba(0, 0, 0, 0.9);
    transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease;
}
.about-point:hover {
    transform: translateY(-3px);
    border-color: rgba(143, 180, 255, 0.4);
    background: linear-gradient(140deg, rgba(47, 107, 255, 0.16), rgba(255, 255, 255, 0.02));
}
.about-point > i {
    flex: 0 0 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--gold-300);
    background: linear-gradient(150deg, rgba(233, 163, 33, 0.24), rgba(233, 163, 33, 0.06));
    border: 1px solid rgba(247, 191, 79, 0.28);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
.about-point h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.about-point p { font-size: 0.88rem; color: var(--text-muted); }

.teacher-card { padding: 1.9rem; overflow: hidden; text-align: center; }
.teacher-card::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -20%;
    width: 140%;
    height: 120%;
    background: radial-gradient(ellipse at 50% 0%, rgba(47, 107, 255, 0.28), transparent 62%);
    pointer-events: none;
}
.teacher-avatar {
    position: relative;
    width: 112px;
    height: 112px;
    margin: 0 auto 1.35rem;
    border-radius: 50%;
    background: linear-gradient(150deg, #16294A, #0A1528);
    border: 1px solid rgba(143, 180, 255, 0.32);
    box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.16) inset;
}
/* Hard clip so the photo can never spill outside the circle, whatever the
   source image's aspect ratio is. */
.teacher-photo-frame {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    border-radius: 50%;
}
.teacher-photo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 14%;
    border-radius: 50%;
    background: #0A1528;
}
.avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 140deg, var(--blue-500), var(--cyan-400), var(--gold-400), var(--blue-500));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.teacher-info { position: relative; z-index: 1; }
.teacher-info .designation {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin-bottom: 0.5rem;
}
.teacher-info h3 { font-size: 1.45rem; margin-bottom: 0.15rem; }
.teacher-role { font-size: 0.85rem; color: var(--cyan-400); margin-bottom: 0.9rem !important; }
.teacher-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.teacher-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-bottom: 1.4rem; }
.teacher-tags span {
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-body);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: clamp(2.4rem, 4vw, 3.4rem);
}
.step-card {
    position: relative;
    padding: 1.8rem 1.6rem;
    border-radius: var(--r-lg);
    background: var(--glass-surface);
    border: 1px solid var(--glass-stroke-soft);
    box-shadow: var(--glass-surface-shadow);
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}
.step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(143, 180, 255, 0.34);
    box-shadow: var(--glass-surface-shadow-hover);
}
.step-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-400), var(--gold-400), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.step-card:hover::before { opacity: 1; }
.step-num {
    position: absolute;
    top: 0.9rem;
    right: 1.2rem;
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(143, 180, 255, 0.28);
}
.step-card > i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(150deg, var(--blue-500), var(--blue-600));
    box-shadow: 0 12px 22px -12px rgba(47, 107, 255, 0.9), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ==========================================================================
   11. Courses
   ========================================================================== */
.courses { background: linear-gradient(180deg, rgba(11, 24, 48, 0.45), transparent 40%); }

.course-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: clamp(2rem, 3.5vw, 2.8rem);
}
.filter-btn {
    padding: 0.55rem 1.15rem;
    font-family: var(--font-heading);
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.filter-btn:hover {
    color: var(--text-strong);
    border-color: rgba(143, 180, 255, 0.45);
    transform: translateY(-2px);
}
.filter-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    border-color: transparent;
    box-shadow: var(--shadow-blue), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.35rem;
}

.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    animation: cardIn 0.55s var(--ease) both;
    padding: 1.6rem;
    border-radius: var(--r-lg);
    background: var(--glass-surface);
    border: 1px solid var(--glass-stroke-soft);
    box-shadow: var(--glass-surface-shadow);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}
.course-card:hover {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: var(--glass-surface-shadow-hover);
}
.course-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 0%), rgba(120, 165, 255, 0.08), transparent 62%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}
.course-card:hover::before { opacity: 1; }
.course-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-400) 55%, var(--gold-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.course-card:hover::after { transform: scaleX(1); }

.course-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.course-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(150deg, var(--blue-500), #16357C);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 26px -14px rgba(47, 107, 255, 0.95), 0 1px 0 rgba(255, 255, 255, 0.32) inset;
    transition: transform 0.4s var(--ease);
}
.course-card:hover .course-icon { transform: translateY(-2px) rotate(-6deg); }
/* Basics keeps the default blue accent; declared explicitly so every category
   has its own rule (and the catalogue test can enforce one accent per category). */
.course-icon.cat-basics { background: linear-gradient(150deg, #5B8DFF, #2F6BFF); box-shadow: 0 14px 26px -14px rgba(47, 107, 255, 0.95), 0 1px 0 rgba(255, 255, 255, 0.32) inset; }
.course-icon.cat-design { background: linear-gradient(150deg, #C046D8, #5B2A9E); box-shadow: 0 14px 26px -14px rgba(192, 70, 216, 0.9), 0 1px 0 rgba(255, 255, 255, 0.3) inset; }
.course-icon.cat-accounting { background: linear-gradient(150deg, var(--gold-400), #A96A0C); color: #201502; box-shadow: 0 14px 26px -14px rgba(233, 163, 33, 0.9), 0 1px 0 rgba(255, 255, 255, 0.4) inset; }
.course-icon.cat-advanced { background: linear-gradient(150deg, #17C3C9, #0B5E8A); box-shadow: 0 14px 26px -14px rgba(23, 195, 201, 0.9), 0 1px 0 rgba(255, 255, 255, 0.3) inset; }
.course-icon.cat-school { background: linear-gradient(150deg, #6D8BFF, #2A3EA8); box-shadow: 0 14px 26px -14px rgba(80, 110, 235, 0.9), 0 1px 0 rgba(255, 255, 255, 0.32) inset; }
.course-icon.cat-kids { background: linear-gradient(150deg, #FF8FA3, #C2185B); box-shadow: 0 14px 26px -14px rgba(233, 64, 122, 0.9), 0 1px 0 rgba(255, 255, 255, 0.34) inset; }

.course-category {
    padding: 0.25rem 0.6rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--blue-300);
    background: rgba(47, 107, 255, 0.14);
    border: 1px solid rgba(143, 180, 255, 0.28);
    border-radius: var(--r-pill);
    white-space: nowrap;
}
.course-card h3 {
    font-size: 1.16rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}
.course-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    flex-grow: 1;
}
.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    padding-top: 1rem;
    margin-bottom: 1.15rem;
    border-top: 1px solid rgba(148, 173, 214, 0.12);
    font-size: 0.79rem;
    color: var(--text-muted);
}
.course-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.course-meta i { color: var(--gold-400); font-size: 0.78rem; }
.course-actions { display: flex; gap: 0.5rem; }
.course-actions .btn { padding: 0.7rem 1.1rem; font-size: 0.85rem; }

@keyframes cardIn {
    from { opacity: 0; translate: 0 18px; }
    to { opacity: 1; translate: 0 0; }
}

.courses-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-faint);
    text-align: center;
    flex-wrap: wrap;
}
.courses-note i { color: var(--cyan-400); }

/* ==========================================================================
   12. Finder + compare
   ========================================================================== */
.wizard, .compare { padding-block: clamp(3rem, 6vw, 5.5rem); }

.wizard-shell { position: relative; max-width: 44rem; margin: 0 auto; }
.wizard-glow {
    position: absolute;
    inset: -12% 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 30%, rgba(47, 107, 255, 0.42), transparent 62%);
    filter: blur(50px);
    pointer-events: none;
}
.wizard-container {
    position: relative;
    padding: clamp(1.6rem, 3.4vw, 2.8rem);
    border-radius: var(--r-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.018) 40%, rgba(255, 255, 255, 0) 64%),
        radial-gradient(130% 100% at 8% -18%, rgba(255, 255, 255, 0.18), transparent 58%),
        linear-gradient(160deg, rgba(9, 20, 40, 0.82), rgba(6, 13, 26, 0.9));
    border: 1px solid var(--glass-stroke-soft);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.05);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        var(--glass-shadow),
        0 0 80px -44px rgba(47, 107, 255, 0.9);
    overflow: hidden;
}
.wizard-container::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-400), var(--cyan-400), var(--gold-400), transparent);
    opacity: 0.75;
}
.wizard-header { text-align: center; margin-bottom: 1.9rem; }
.wizard-header h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}
.wizard-header p { color: var(--text-muted); font-size: 0.95rem; }

.form-group { margin-bottom: 1.15rem; }
.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-strong);
}
.form-group label > span { color: var(--gold-400); }
.form-group label > span:not(:last-child) { font-size: 0.74rem; letter-spacing: 0.1em; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.94rem;
    color: var(--text-strong);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
        rgba(4, 10, 22, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-md);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover { border-color: rgba(143, 180, 255, 0.4); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-400);
    background: rgba(8, 17, 34, 0.92);
    box-shadow: var(--ring);
}
.form-group textarea { resize: vertical; min-height: 88px; }
.form-group select option,
.compare-select option { background: #0B1830; color: #F5F8FF; }

.select-wrap { position: relative; }
.select-wrap > i {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--text-faint);
    pointer-events: none;
    transition: transform 0.3s ease;
}
.select-wrap:focus-within > i { color: var(--blue-300); transform: translateY(-50%) rotate(180deg); }

.wizard-result {
    margin-top: 1.8rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    animation: fadeUp 0.5s var(--ease);
}
.wizard-result h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 0.8rem; }
.recommended-course {
    position: relative;
    padding: 1.3rem 1.4rem;
    border-radius: var(--r-md);
    background: linear-gradient(150deg, rgba(47, 107, 255, 0.18), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(143, 180, 255, 0.35);
    box-shadow: 0 20px 40px -28px rgba(47, 107, 255, 0.9);
    overflow: hidden;
    margin-bottom: 0.9rem;
}
.recommended-course::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(var(--blue-400), var(--gold-400));
}
.recommended-course h4 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.recommended-course p { font-size: 0.88rem; color: var(--text-muted); }
.recommended-course .mt-2 { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wizard-result > .text-sm { color: var(--text-faint); }

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

/* Compare */
.compare-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}
.compare-controls .select-wrap { flex: 1 1 220px; max-width: 280px; }
.compare-select {
    width: 100%;
    padding: 0.8rem 2.3rem 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-strong);
    background: rgba(9, 19, 38, 0.8);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    appearance: none;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.compare-select:hover { border-color: rgba(143, 180, 255, 0.45); }
.compare-select:focus { outline: none; border-color: var(--blue-400); box-shadow: var(--ring); }
.compare-select option { background: var(--navy-850); }

.table-responsive {
    overflow-x: auto;
    border-radius: var(--r-lg);
    border: 1px solid transparent;
    background: transparent;
    transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.table-responsive.is-populated {
    border-color: var(--line);
    background: rgba(8, 17, 34, 0.6);
    box-shadow: var(--shadow-lg);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    font-size: 0.88rem;
}
.compare-table th,
.compare-table td {
    padding: 1rem 1.15rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(148, 173, 214, 0.12);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.compare-muted { color: var(--text-faint); font-style: italic; }
.compare-table thead th,
.compare-table tr:first-child th {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-strong);
    background: linear-gradient(180deg, rgba(47, 107, 255, 0.2), rgba(47, 107, 255, 0.05));
    border-bottom: 1px solid rgba(143, 180, 255, 0.3);
}
.compare-table tr:first-child th:first-child {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.compare-table td:first-child {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-300);
    white-space: nowrap;
    background: rgba(4, 10, 22, 0.4);
}
.compare-table td { color: var(--text-muted); }
.compare-table ul { padding-left: 1rem; margin: 0; }
.compare-table ul li { list-style: disc; margin-bottom: 0.2rem; }
.compare-table tbody tr:hover td { background: rgba(47, 107, 255, 0.07); }

/* ==========================================================================
   13. Features / outcomes / gallery
   ========================================================================== */
.features { background: linear-gradient(180deg, transparent, rgba(11, 24, 48, 0.4) 30%, transparent); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}
.feature-card {
    position: relative;
    padding: 1.7rem 1.5rem;
    border-radius: var(--r-lg);
    background: var(--glass-surface);
    border: 1px solid var(--glass-stroke-soft);
    box-shadow: var(--glass-surface-shadow);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}
.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: var(--glass-surface-shadow-hover);
}
.feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.1rem;
    border-radius: 15px;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(150deg, var(--blue-500), #14306F);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 16px 30px -16px rgba(47, 107, 255, 0.95),
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 -3px 0 rgba(0, 0, 0, 0.2) inset;
    transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.feature-card:hover .feature-icon {
    transform: translateY(-3px) rotateX(12deg) rotateY(-12deg);
    box-shadow: 0 22px 36px -18px rgba(47, 107, 255, 1), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.feature-card p { font-size: 0.87rem; color: var(--text-muted); }

.outcomes-box {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding: clamp(1.5rem, 3vw, 2.3rem);
    border-radius: var(--r-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.016) 40%, rgba(255, 255, 255, 0.004)),
        radial-gradient(90% 140% at 0% 0%, rgba(233, 163, 33, 0.14), transparent 55%),
        linear-gradient(158deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
    border: 1px solid rgba(233, 163, 33, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03),
        var(--glass-shadow);
    position: relative;
    overflow: hidden;
}
.outcomes-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.outcomes-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 16px;
    font-size: 1.25rem;
    color: #221703;
    background: linear-gradient(150deg, var(--gold-300), var(--gold-500));
    box-shadow: 0 16px 30px -16px rgba(233, 163, 33, 0.9), 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}
.outcomes-head h3 { font-size: 1.25rem; }
.outcomes-head p { font-size: 0.88rem; color: var(--text-muted); }

.outcomes-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1.6rem;
}
.outcomes-list li {
    display: flex;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.outcomes-list i {
    flex: 0 0 20px;
    height: 20px;
    margin-top: 0.14rem;
    display: grid;
    place-items: center;
    font-size: 0.6rem;
    color: #061021;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--cyan-400), var(--blue-400));
}
.small-note { margin-top: 1.2rem; font-size: 0.78rem; color: var(--text-faint); }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
}
.gallery-item {
    position: relative;
    margin: 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid var(--line);
    background: #061020;
    box-shadow: var(--shadow-md);
    transform-style: preserve-3d;
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.9s var(--ease), filter 0.6s ease;
    filter: saturate(105%) contrast(102%);
}
.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.07), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover img { transform: scale(1.06); filter: saturate(115%) contrast(104%); }
.gallery-item::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 62%;
    background: linear-gradient(0deg, rgba(4, 9, 20, 0.94) 8%, rgba(4, 9, 20, 0.35) 55%, transparent);
    z-index: 1;
    pointer-events: none;
}
.gallery-item figcaption {
    position: absolute;
    z-index: 3;
    left: 0; right: 0; bottom: 0;
    padding: 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.gallery-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    padding: 0.24rem 0.6rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-200);
    background: rgba(7, 16, 32, 0.75);
    border: 1px solid rgba(247, 191, 79, 0.35);
    border-radius: var(--r-pill);
    backdrop-filter: blur(8px);
}
.gallery-title {
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.4vw, 1.12rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}
.gallery-zoom {
    position: absolute;
    z-index: 3;
    top: 0.9rem;
    right: 0.9rem;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.8rem;
    color: #fff;
    background: rgba(7, 16, 32, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(-6px) scale(0.9);
    transition: all 0.35s var(--ease);
}
.gallery-item:hover .gallery-zoom { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
    place-items: center;
    padding: 4rem 1.5rem;
    background: rgba(3, 7, 15, 0.9);
    backdrop-filter: blur(14px);
}
.lightbox.open { display: grid; animation: fadeUp 0.35s var(--ease); }
.lightbox figure { position: relative; max-width: min(1080px, 92vw); margin: 0; }
.lightbox img {
    display: block;
    max-width: 100%;
    max-height: 76vh;
    height: auto;
    object-fit: contain;
    border-radius: var(--r-lg);
    border: 1px solid rgba(148, 173, 214, 0.3);
    box-shadow: 0 50px 90px -40px #000, 0 0 80px -30px rgba(47, 107, 255, 0.7);
}
.lightbox figcaption {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    width: 46px;
    height: 46px;
    font-size: 1.7rem;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox-close:hover { background: rgba(47, 107, 255, 0.3); transform: rotate(90deg); }

/* --- Toppers / results advertisement (highlighted) --- */
.toppers {
    background:
        radial-gradient(55% 75% at 82% 18%, rgba(233, 163, 33, 0.10), transparent 62%),
        radial-gradient(50% 70% at 10% 88%, rgba(47, 107, 255, 0.13), transparent 64%);
}
.toppers-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 3.4rem);
    padding: clamp(1.5rem, 3.4vw, 2.9rem);
    border-radius: var(--r-xl);
    border: 1px solid rgba(247, 191, 79, 0.26);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.016) 40%, rgba(255, 255, 255, 0.004)),
        radial-gradient(120% 130% at 100% 0%, rgba(233, 163, 33, 0.16), transparent 55%),
        radial-gradient(120% 90% at 8% -12%, rgba(255, 255, 255, 0.1), transparent 60%),
        linear-gradient(158deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        var(--glass-shadow);
    overflow: hidden;
    isolation: isolate;
}
.toppers-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    opacity: 0.85;
}
.toppers-aura {
    position: absolute;
    z-index: -1;
    top: -18%;
    right: -12%;
    width: 62%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(247, 191, 79, 0.3), rgba(47, 107, 255, 0.12) 58%, transparent 76%);
    filter: blur(26px);
    pointer-events: none;
}

/* Copy column */
.toppers-copy h2 {
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 0.85rem;
    text-wrap: balance;
}
.toppers-copy > p {
    color: var(--text-muted);
    max-width: 33rem;
    margin-bottom: 1.5rem;
}
.toppers-copy > p strong { color: var(--gold-200); font-weight: 600; }

.topper-scores {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1.7rem;
}
.topper-scores li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.05rem;
    border-radius: var(--r-md);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.012) 55%),
        linear-gradient(150deg, rgba(6, 14, 30, 0.66), rgba(6, 14, 30, 0.26));
    border: 1px solid rgba(247, 191, 79, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 20px 38px -30px rgba(0, 0, 0, 0.95);
    transition: border-color 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.topper-scores li:hover {
    transform: translateX(4px);
    border-color: rgba(247, 191, 79, 0.5);
    box-shadow: 0 24px 42px -28px rgba(233, 163, 33, 0.65);
}
.score-value {
    flex: 0 0 auto;
    min-width: 5.1rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(120deg, var(--gold-200), var(--gold-400) 55%, var(--gold-300));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.score-value span { font-size: 0.72em; opacity: 0.82; }
.score-meta { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.score-meta strong {
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-strong);
}
.score-meta span { font-size: 0.78rem; color: var(--text-muted); }

.toppers-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Poster */
.topper-figure {
    position: relative;
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 0.85rem;
}
.topper-ad {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 9px;
    border-radius: calc(var(--r-lg) + 9px);
    background: linear-gradient(148deg, var(--gold-300) 0%, #FFF7E3 24%, var(--gold-500) 52%, #EAD9AE 72%, var(--blue-400) 100%);
    box-shadow:
        0 40px 80px -34px rgba(233, 163, 33, 0.6),
        0 30px 60px -34px rgba(0, 0, 0, 0.95),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    cursor: zoom-in;
    isolation: isolate;
}
.topper-ad:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 6px; }

.topper-halo {
    position: absolute;
    z-index: -1;
    inset: -9px;
    border-radius: inherit;
    border: 1px solid rgba(247, 191, 79, 0.45);
    box-shadow: 0 0 54px -6px rgba(233, 163, 33, 0.5);
    pointer-events: none;
    animation: topperHalo 4.6s ease-in-out infinite;
}
@keyframes topperHalo {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.014); }
}

.topper-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: #0A1224;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.topper-media img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.8s var(--ease), filter 0.5s ease;
    filter: saturate(104%) contrast(102%);
}
.topper-ad:hover .topper-media img { transform: scale(1.025); filter: saturate(110%) contrast(103%); }

.topper-shine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 42%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: translateX(-150%) skewX(-16deg);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: topperShine 7s ease-in-out infinite;
}
@keyframes topperShine {
    0%, 74% { transform: translateX(-150%) skewX(-16deg); }
    100% { transform: translateX(360%) skewX(-16deg); }
}

.topper-badge {
    position: absolute;
    z-index: 3;
    top: -15px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.9rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2A1C00;
    background: linear-gradient(150deg, var(--gold-300), var(--gold-500));
    border-radius: var(--r-pill);
    box-shadow: 0 16px 30px -14px rgba(233, 163, 33, 0.95), 0 1px 0 rgba(255, 255, 255, 0.65) inset;
    transform: rotate(-2.5deg);
    pointer-events: none;
}
.topper-badge i { font-size: 0.72rem; }

.topper-zoom {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
    color: var(--gold-200);
    background: rgba(6, 12, 25, 0.72);
    border: 1px solid rgba(247, 191, 79, 0.45);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    transition: transform 0.35s var(--ease), background 0.35s ease, color 0.35s ease;
    pointer-events: none;
}
.topper-ad:hover .topper-zoom {
    transform: scale(1.08);
    color: #2A1C00;
    background: linear-gradient(150deg, var(--gold-300), var(--gold-500));
}

.topper-caption {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    color: var(--text-faint);
}

/* ==========================================================================
   Google review summary — highlighted trust signal (built by reviews.js
   from reviews-config.js; nothing renders unless the config is valid)
   ========================================================================== */

/* Small high-visibility pill that rides the hero caption's own stack —
   injected as the first child of the figcaption, directly above the
   "Learn by doing" line, showing the rating only. ------------------------ */
.reviews-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: max-content;
    max-width: calc(100% - 0.4rem);
    padding: 0.42rem 0.7rem;
    border-radius: var(--r-pill);
    border-color: rgba(247, 191, 79, 0.34);
    color: var(--text-strong);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s var(--ease);
}
.stage-screen figcaption .reviews-strip {
    /* Inside the caption's flex column (right-aligned): drop to the bottom,
       stack it above the strong, keep it clear of the image's right chrome. */
    align-self: flex-end;
    margin-bottom: 0.65rem;
}
.reviews-strip > * { position: relative; z-index: 1; }
.reviews-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(92deg, rgba(233, 163, 33, 0.12), transparent 52%, rgba(47, 107, 255, 0.12));
    pointer-events: none;
}
.reviews-strip:hover {
    transform: translateY(-2px);
    border-color: rgba(247, 191, 79, 0.52);
    box-shadow: 0 24px 46px -28px rgba(233, 163, 33, 0.65), var(--shadow-md);
}
.reviews-strip:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; }
.reviews-strip-mark { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.reviews-strip-mark .google-mark { width: 1rem; height: 1rem; display: block; }
.reviews-strip-avg {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text-strong);
    white-space: nowrap;
}


/* Layered stars — grey track with a gold fill clipped to the average ------- */
.reviews-stars {
    --star-size: 1.06rem;
    --stars-gap: 0.19rem;
    position: relative;
    display: inline-flex;
    line-height: 0;
    flex: 0 0 auto;
}
.reviews-stars-track { display: inline-flex; gap: var(--stars-gap); color: rgba(148, 173, 214, 0.32); }
.reviews-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    color: var(--gold-400);
    filter: drop-shadow(0 2px 6px rgba(233, 163, 33, 0.45));
}
.reviews-stars-inner { display: inline-flex; gap: var(--stars-gap); width: max-content; line-height: 0; }
.reviews-star { width: var(--star-size); height: var(--star-size); display: block; }
.reviews-stars--xs { --star-size: 0.7rem; --stars-gap: 0.1rem; }
.reviews-stars--lg { --star-size: 1.45rem; --stars-gap: 0.26rem; }

/* Highlighted panel before the contact section ---------------------------- */
.reviews-panel-section { padding: 0 0 clamp(2rem, 4vw, 3.2rem); }
.reviews-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(1.6rem, 3.4vw, 2.8rem);
    padding: clamp(1.6rem, 3vw, 2.5rem);
    border-radius: var(--r-xl);
    border: 1px solid rgba(91, 140, 255, 0.3);
    background:
        radial-gradient(130% 110% at 100% -20%, rgba(47, 107, 255, 0.2), transparent 55%),
        radial-gradient(110% 120% at 0% -30%, rgba(233, 163, 33, 0.12), transparent 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.016) 44%, rgba(255, 255, 255, 0.004)),
        linear-gradient(155deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        var(--glass-shadow);
    overflow: hidden;
    isolation: isolate;
}
.reviews-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue-300), transparent);
    opacity: 0.75;
    pointer-events: none;
}
.reviews-aura {
    position: absolute;
    z-index: -1;
    top: -32%;
    left: -16%;
    width: 52%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(47, 107, 255, 0.32), transparent 74%);
    filter: blur(30px);
    pointer-events: none;
}
.reviews-panel-eyebrow, .eyebrow.reviews-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.reviews-eyebrow .google-mark { width: 1.15rem; height: 1.15rem; display: block; }
.reviews-panel-copy h2 {
    font-size: clamp(1.6rem, 2.9vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.16;
    margin-bottom: 0.85rem;
    text-wrap: balance;
}
.reviews-panel-lead { color: var(--text-muted); max-width: 30rem; margin-bottom: 1.5rem; }
.reviews-panel-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.reviews-score-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: clamp(1.35rem, 2.4vw, 1.9rem) clamp(1.2rem, 2vw, 1.7rem);
    border-radius: var(--r-xl);
    border: 1px solid rgba(247, 191, 79, 0.3);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02) 52%),
        linear-gradient(155deg, rgba(233, 163, 33, 0.08), rgba(47, 107, 255, 0.05));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 24px 48px -32px rgba(2, 6, 18, 0.95);
    backdrop-filter: blur(var(--glass-blur-soft));
    -webkit-backdrop-filter: blur(var(--glass-blur-soft));
}
.reviews-score-kicker { font-size: 0.66rem; letter-spacing: 0.18em; }
.reviews-score-number {
    font-family: var(--font-heading);
    font-size: clamp(2.9rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
    background: linear-gradient(120deg, #FFF7E3 8%, var(--gold-300) 44%, var(--gold-400) 74%, var(--gold-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.reviews-score-total { font-size: 0.86rem; color: var(--text-muted); letter-spacing: 0.01em; }
.reviews-score-total strong { color: var(--text-strong); font-weight: 600; }

/* Day (neumorphism) theme — same content, light canvas ------------------- */
[data-theme="day"] .reviews-strip {
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .reviews-strip::before { display: none; }
[data-theme="day"] .reviews-strip:hover { border-color: rgba(190, 128, 10, 0.45); box-shadow: var(--neu-raised-hover); }
[data-theme="day"] .reviews-strip-avg { color: #16233F; }
[data-theme="day"] .reviews-stars-track { color: rgba(22, 35, 63, 0.16); }
[data-theme="day"] .reviews-stars-fill { filter: none; }
[data-theme="day"] .reviews-panel {
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .reviews-aura { display: none; }
[data-theme="day"] .reviews-panel::before { display: none; }
[data-theme="day"] .reviews-score-card {
    background: #E2E7F0;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: var(--neu-inset);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .reviews-score-number {
    background: linear-gradient(120deg, #C07F0A, #8A5E06 55%, #B97E0A);
    -webkit-background-clip: text;
    background-clip: text;
}
[data-theme="day"] .reviews-score-total strong { color: #16233F; }

/* Reduced-motion and low-power parity ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .reviews-strip, .reviews-strip:hover { transition: none; transform: none; }
}

@media (max-width: 920px) {
    .reviews-panel { grid-template-columns: 1fr; }
    .reviews-score-card { display: grid; gap: 0.5rem; max-width: 460px; margin-inline: auto; width: 100%; }
}

@media (max-width: 520px) {
    .stage-screen figcaption .reviews-strip { margin-bottom: 0.45rem; }
    .reviews-strip { gap: 0.38rem; padding: 0.36rem 0.58rem; }
    .reviews-strip-avg { font-size: 0.82rem; }
    .reviews-strip-mark .google-mark { width: 0.85rem; height: 0.85rem; }
    .reviews-panel-actions { flex-direction: column; align-items: stretch; }
    .reviews-panel-actions .btn { width: 100%; }
}

/* ==========================================================================
   14. FAQ / contact / footer
   ========================================================================== */
.accordion { max-width: 52rem; margin: 0 auto; display: grid; gap: 0.75rem; }
.accordion-item {
    border-radius: var(--r-md);
    background: var(--glass-surface);
    border: 1px solid var(--glass-stroke-soft);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 14px 30px -26px rgba(2, 6, 18, 0.95);
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.accordion-item:hover { border-color: rgba(143, 180, 255, 0.32); }
.accordion-item.active {
    border-color: rgba(143, 180, 255, 0.36);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 44%, rgba(255, 255, 255, 0.006)),
        linear-gradient(158deg, rgba(47, 107, 255, 0.14), rgba(255, 255, 255, 0.02));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 24px 44px -30px rgba(47, 107, 255, 0.95);
}
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-strong);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}
.accordion-header i {
    flex: 0 0 26px;
    height: 26px;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    color: var(--blue-300);
    border-radius: 50%;
    background: rgba(47, 107, 255, 0.16);
    border: 1px solid rgba(143, 180, 255, 0.3);
    transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease;
}
.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
    color: #061021;
    background: var(--gold-400);
    border-color: var(--gold-400);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}
.accordion-content p {
    padding: 0 1.35rem 1.3rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 46rem;
}

/* Contact */
.contact { padding-block: clamp(3.2rem, 6vw, 5.5rem); }
.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 60% at 15% 0%, rgba(47, 107, 255, 0.18), transparent 60%),
        radial-gradient(60% 60% at 90% 100%, rgba(233, 163, 33, 0.12), transparent 60%);
    pointer-events: none;
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.6rem);
    align-items: start;
}
.contact-info h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
}
.contact-lead { color: var(--text-muted); max-width: 30rem; margin-bottom: 2rem; }

.contact-details { display: grid; gap: 1.05rem; }
.contact-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-icon {
    flex: 0 0 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 0.95rem;
    color: var(--gold-300);
    background: linear-gradient(150deg, rgba(47, 107, 255, 0.24), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(143, 180, 255, 0.28);
    box-shadow: 0 12px 24px -16px rgba(47, 107, 255, 0.9), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
}
.contact-item h3 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.1rem;
}
.contact-item p { font-size: 0.93rem; color: var(--text-body); }
.contact-item .map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-300);
}
.contact-item .map-link:hover { color: var(--gold-400); gap: 0.55rem; }
.fb-inline { color: var(--text-body); text-decoration: underline; text-underline-offset: 3px; }

.contact-form-container { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-xl); }
.contact-form-container .enquiry-form h3 {
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
}
.form-intro { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-group label > span:last-child { color: var(--gold-400); margin-left: 0.1rem; }
.privacy-note {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.76rem;
    color: var(--text-faint);
    margin: 0.4rem 0 1.2rem;
}
.privacy-note i { color: var(--cyan-400); margin-top: 0.2rem; }

/* Footer */
.footer {
    padding: clamp(2.8rem, 5vw, 4rem) 0 1.6rem;
    background: linear-gradient(180deg, rgba(4, 9, 20, 0.4), rgba(3, 6, 14, 0.96));
    border-top: 1px solid var(--line);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 1fr;
    gap: clamp(1.8rem, 4vw, 3.2rem);
    padding-bottom: 2.6rem;
}
.footer-logo { margin-bottom: 1rem; }
.footer-desc { font-size: 0.88rem; color: var(--text-muted); max-width: 26rem; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.footer-tags span {
    padding: 0.26rem 0.62rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
}
.footer-links h3 {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin-bottom: 1.1rem;
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color 0.25s ease, transform 0.25s ease;
}
.footer-links a i { font-size: 0.8rem; color: var(--text-faint); transition: color 0.25s ease; }
.footer-links a:hover { color: var(--text-strong); transform: translateX(3px); }
.footer-links a:hover i { color: var(--gold-400); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(148, 173, 214, 0.1);
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-faint); }
.back-top {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--text-strong);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition: all 0.3s var(--ease);
}
.back-top:hover {
    color: #fff;
    background: var(--blue-500);
    border-color: var(--blue-500);
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue);
}

/* ==========================================================================
   15. Modal, floating buttons
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    overflow-y: auto;
    padding: 4rem 1.25rem;
    background: rgba(3, 7, 15, 0.62);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}
.modal.open { display: block; animation: fadeUp 0.3s var(--ease); }

.modal-content {
    position: relative;
    width: min(720px, 100%);
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border-radius: var(--r-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.018) 34%, rgba(255, 255, 255, 0) 58%),
        radial-gradient(90% 60% at 100% 0%, rgba(47, 107, 255, 0.22), transparent 58%),
        linear-gradient(165deg, rgba(11, 24, 48, 0.86), rgba(7, 15, 30, 0.92) 70%);
    border: 1px solid var(--glass-stroke-soft);
    backdrop-filter: blur(var(--glass-blur-strong)) saturate(var(--glass-sat)) brightness(1.05);
    -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(var(--glass-sat)) brightness(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        0 60px 100px -50px #000,
        0 0 90px -50px rgba(47, 107, 255, 0.9);
    animation: modalPop 0.4s var(--ease);
}
@keyframes modalPop {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
}
.close-modal:hover { color: #fff; background: rgba(47, 107, 255, 0.3); transform: rotate(90deg); }

/* Modal inner content (generated by script.js) */
.modal-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    margin-bottom: 0.8rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-300);
    background: rgba(47, 107, 255, 0.16);
    border: 1px solid rgba(143, 180, 255, 0.3);
    border-radius: var(--r-pill);
}
.modal-title { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 0.6rem; letter-spacing: -0.03em; }
.modal-desc { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.modal-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}
.fact {
    padding: 0.85rem 1rem;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
}
.fact span {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.25rem;
}
.fact strong { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text-strong); line-height: 1.45; }
.modal-subhead {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin-bottom: 0.7rem;
}
.modal-note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0 0 1.1rem;
    padding: 0.8rem 0.95rem;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--text-body);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-md, 14px);
}
.modal-note i { color: var(--cyan-400); margin-top: 0.25rem; }
.modal-syllabus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
    margin-bottom: 1.6rem;
}
.modal-syllabus li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.modal-syllabus i { color: var(--cyan-400); font-size: 0.6rem; margin-top: 0.42rem; }
.modal-actions { display: grid; gap: 0.6rem; }

.floating-contact {
    position: fixed;
    right: clamp(0.9rem, 2vw, 1.6rem);
    bottom: clamp(0.9rem, 2vw, 1.6rem);
    z-index: 990;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.float-btn {
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease, filter 0.3s ease;
}
.float-btn:hover { transform: translateY(-3px) scale(1.06); filter: brightness(1.08); }
.float-fb { background: linear-gradient(150deg, #2C7BF3, #1657C4); }
.float-call { background: linear-gradient(150deg, var(--blue-400), var(--blue-600)); }
.float-wa { background: linear-gradient(150deg, #3EE279, #128C4A); }
.float-wa::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(62, 226, 121, 0.55);
    animation: waPulse 2.6s ease-out infinite;
}
@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.9; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { opacity: 0; }
}

/* Floating back-to-top button — pinned to the bottom-left corner (the
   floating contact buttons own the bottom-right). Hidden until the visitor
   scrolls past the first stretch of the page, then eases in. script.js
   toggles .is-visible; the class keeps it out of the tab order until shown. */
.back-to-top {
    position: fixed;
    left: clamp(0.9rem, 2vw, 1.6rem);
    bottom: clamp(0.9rem, 2vw, 1.6rem);
    z-index: 990;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    color: var(--text-strong);
    cursor: pointer;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%),
        rgba(9, 19, 38, 0.78);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 14px, 0) scale(0.94);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition:
        opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.36s,
        color 0.24s ease,
        background-color 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
        opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s,
        color 0.24s ease,
        background-color 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease;
}
.back-to-top.is-visible:active {
    transform: translate3d(0, 0, 0) scale(0.94);
}
@media (hover: hover) and (pointer: fine) {
    .back-to-top.is-visible:hover {
        color: #fff;
        background: var(--blue-500);
        border-color: var(--blue-500);
        transform: translate3d(0, -3px, 0);
        box-shadow: var(--shadow-blue);
    }
}
.back-to-top:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Keep the full menu (nine links + the CTA) on one line down to the
   mobile-menu breakpoint: drop the long logo subtitle first, then tighten the
   link rhythm in two steps. */
/* On very wide screens the navigation gets a slightly wider track so the full
   logo lock-up (mark + institute name) can sit beside nine links and the CTA
   without crowding either of them. */
@media (min-width: 1560px) {
    .nav-container { width: min(1360px, 94%); }
}

/* Below that the long institute name under the mark is dropped — the mark and
   "BDCP" carry the brand, and the row keeps breathing room. */
@media (max-width: 1559px) {
    .logo-subtitle { display: none; }
}

/* Small laptops and tablets held sideways: tighten the link rhythm and let the
   CTA drop only its arrow, never its label or its height. */
@media (max-width: 1279px) {
    .nav-container { width: min(1200px, 95%); gap: 0.7rem; }
    .nav-links { gap: 0.05rem; }
    .nav-links > a:not(.nav-btn) { padding-inline: 0.34rem; font-size: 0.82rem; }
    .nav-links > a.nav-portal-link::before { margin-right: 0.28rem; width: 5px; height: 5px; }
    .nav-btn { padding-inline: 0.9rem; font-size: 0.82rem; }
    .nav-btn i { display: none; }
}

@media (max-width: 1080px) {
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
        margin: 0;
        padding: 1rem 5% 1.6rem;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 55%),
            rgba(6, 12, 25, 0.9);
        backdrop-filter: blur(var(--glass-blur)) saturate(170%);
        -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px -30px rgba(0, 0, 0, 0.95);
        clip-path: circle(0% at 100% 0%);
        transition: clip-path 0.45s var(--ease);
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }
    .nav-links.active { clip-path: circle(150% at 100% 0%); }
    .nav-links > a:not(.nav-btn) { padding: 0.85rem 0.9rem; font-size: 1rem; }
    .nav-links > a:not(.nav-btn)::after { display: none; }
    .nav-menu { margin-left: auto; gap: 0.5rem; }
    .nav-btn { padding: 0.62rem 0.95rem; font-size: 0.85rem; }
    .mobile-toggle { display: inline-flex; }
    .navbar.scrolled .nav-links { top: 68px; }

    .hero-container { grid-template-columns: 1fr; gap: 3.5rem; }
    .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .about-grid { grid-template-columns: 1fr; }
    .teacher-card { max-width: 480px; }
    .toppers-panel { grid-template-columns: 1fr; gap: 2.4rem; }
    .topper-figure { max-width: 500px; width: 100%; margin: 0 auto; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .credential-item { padding: 0.75rem; gap: 0.65rem; font-size: 0.7rem; }
    .credential-icon { flex-basis: 34px; width: 34px; height: 34px; }
    .credential-icon-msme { font-size: 0.47rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(148, 173, 214, 0.1); }
    .steps { grid-template-columns: 1fr; }
    .outcomes-list { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .compare-controls .select-wrap { max-width: none; }
}

@media (max-width: 620px) {
    :root { --nav-h: 70px; }
    .nav-container { gap: 0.55rem; }
    .nav-menu { gap: 0.45rem; }
    .nav-btn { padding: 0.6rem 0.9rem; font-size: 0.82rem; }
    .nav-btn i { font-size: 0.78em; }
    .credentials-strip { grid-template-columns: 1fr; gap: 0.55rem; margin-bottom: 1.8rem; }
    .credential-item { min-height: 58px; padding: 0.65rem 0.8rem; font-size: 0.7rem; }
    .logo-subtitle { display: none; }
    .logo-title { font-size: 1.15rem; }
    .logo-mark { width: 42px; height: 42px; border-radius: 12px; }
    /* On the narrowest phones the CTA keeps its label but drops to one word,
       so it never crowds the logo or the menu button. */
    .nav-btn-long { display: none; }
    .nav-btn .nav-btn-short { display: inline; }
    .nav-btn i { display: none; }

    .hero-content h1 { font-size: clamp(2.05rem, 9vw, 2.6rem); }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { width: 100%; }
    .trust-row { gap: 0.5rem 1rem; font-size: 0.8rem; }

    .toppers-panel { padding: 1.35rem 1.05rem 1.6rem; border-radius: var(--r-lg); gap: 2rem; }
    .topper-scores li { padding: 0.65rem 0.8rem; gap: 0.75rem; }
    .score-value { font-size: 1.3rem; min-width: 4.2rem; }
    .score-meta strong { font-size: 0.79rem; }
    .score-meta span { font-size: 0.72rem; }
    .toppers-actions { flex-direction: column; align-items: stretch; }
    .toppers-actions .btn { width: 100%; }
    .topper-badge { top: -13px; left: 12px; padding: 0.34rem 0.7rem; font-size: 0.6rem; }
    .topper-zoom { width: 32px; height: 32px; font-size: 0.72rem; }
    .topper-caption { font-size: 0.72rem; text-align: center; }

    .hero-visual { padding: 1.4rem 1rem; }
    .stage { transform: rotateY(-8deg) rotateX(5deg); }
    .stage-plate { left: -2%; bottom: -12%; padding: 0.5rem 0.8rem 0.5rem 0.5rem; }
    .stage-plate strong { font-size: 0.88rem; }
    .stage-plate span { font-size: 0.58rem; }
    .stage-plate img { width: 32px; height: 34px; }
    .float-chip { font-size: 0.68rem; padding: 0.4rem 0.7rem; }
    .chip-1 { right: -2%; top: -2%; }
    .chip-2 { right: -4%; top: 26%; }
    .chip-3 { left: -4%; bottom: 28%; }
    .chip-4 { display: none; }

    .feature-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .modal-facts { grid-template-columns: 1fr; }
    .modal-syllabus { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column-reverse; text-align: center; }
    .stats-grid { border-radius: var(--r-lg); }
    .stat { padding: 1.3rem 0.8rem; }
    .stat-label { font-size: 0.76rem; }
    .modal { padding: 1.5rem 0.9rem 3rem; }
    .floating-contact { right: 0.8rem; bottom: 0.8rem; }
    .float-btn { width: 44px; height: 44px; font-size: 1rem; }
    .back-to-top { left: 0.8rem; bottom: 0.8rem; width: 44px; height: 44px; font-size: 0.95rem; }
}

/* ==========================================================================
   Skeleton loaders
   Photos and the certificate lookup do not arrive with the page. skeleton.js
   drops a shimmering placeholder into any container whose content is still on
   its way and fades it out the moment the real content can paint. Everything
   here is decorative: aria-hidden, click-through, and removed even when the
   image or the request fails.
   ========================================================================== */
.media-skeleton,
.skel-line,
.skel-circle {
    --skel-base: rgba(148, 173, 214, 0.07);
    --skel-sheen: rgba(148, 173, 214, 0.17);
    position: relative;
    overflow: hidden;
    background: var(--skel-base);
    pointer-events: none;
}

.media-skeleton {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(148, 173, 214, 0.085), rgba(148, 173, 214, 0.03));
    transition: opacity 0.42s var(--ease);
}
.media-skeleton::after,
.skel-line::after,
.skel-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, var(--skel-sheen), transparent);
    animation: skeleton-sheen 1.5s var(--ease) infinite;
}
.media-skeleton.is-done { opacity: 0; }

/* The lightbox and the photo-sphere preview have no box to inherit until the
   image lands, so their placeholder brings its own. */
.media-skeleton.is-boxed {
    position: static;
    inset: auto;
    width: min(88vw, 720px);
    aspect-ratio: 1200 / 655;
    border-radius: var(--r-lg);
}

@keyframes skeleton-sheen { to { transform: translateX(100%); } }

/* Text-shaped placeholders: the certificate record that is still being
   fetched is drawn as the header and detail rows it will become. */
.skel-stack { flex: 1; min-width: 0; display: grid; gap: 0.55rem; }
.skel-line { display: block; height: 0.62rem; border-radius: 999px; }
.skel-line.is-strong { height: 0.95rem; width: min(58%, 220px); }
.skel-line.is-muted { width: min(84%, 320px); opacity: 0.7; }
.skel-circle { display: block; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; }
.skel-rows {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) 2fr;
    align-items: center;
    gap: 0.85rem 1rem;
}
.skel-rows .skel-line { height: 0.55rem; }
.skel-rows .skel-line.is-label { width: 64%; opacity: 0.7; }
.skel-rows .skel-line.is-value { width: 86%; }

@media (max-width: 560px) {
    .skel-rows { grid-template-columns: 1fr; gap: 0.5rem 1rem; }
    .skel-rows .skel-line.is-label { width: 42%; }
}

/* ==========================================================================
   Performance guard — low-end devices
   script.js adds `.low-power` when the device reports limited memory/cores
   or a slow update rate. The layout and palette stay identical; only the
   per-frame work (full-screen animated filters, live blurs, tilt) is
   replaced with cheap static equivalents.
   ========================================================================== */
.low-power {
    --glass-blur: 14px;
    --glass-blur-strong: 16px;
    --glass-blur-soft: 10px;
    --glass-sat: 145%;
}
.low-power .aurora { animation: none; opacity: 0.42; }
.low-power .bg-noise { display: none; }
.low-power .bg-grid { opacity: 0.4; }
.low-power .topper-halo,
.low-power .topper-shine,
.low-power .float-wa::after,
.low-power .avatar-ring,
.low-power .pill-dot::after,
.low-power .certificate-orbit-inner { animation: none; }
/* Placeholders still fill the gap on a slow device; only the sweep stops. */
.low-power .media-skeleton::after,
.low-power .skel-line::after,
.low-power .skel-circle::after { animation: none; }
.low-power .tilt,
.low-power .tilt:hover { --rx: 0deg !important; --ry: 0deg !important; will-change: auto; }
.low-power .card-sheen { display: none; }
.low-power .glass,
.low-power .navbar.scrolled,
.low-power .wizard-container,
.low-power .modal-content,
.low-power .stats-grid,
.low-power .nav-links {
    backdrop-filter: blur(12px) saturate(135%);
    -webkit-backdrop-filter: blur(12px) saturate(135%);
}

/* Phones: a tighter cursor light and smaller blur radii keep scrolling fluid. */
@media (max-width: 780px) {
    :root {
        --glass-blur: 18px;
        --glass-blur-strong: 20px;
        --glass-blur-soft: 10px;
    }
    .card-sheen {
        background: radial-gradient(160px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.05), transparent 62%);
    }
    .course-card::before,
    .gallery-item::before {
        background: radial-gradient(200px circle at var(--gx, 50%) var(--gy, 50%), rgba(120, 165, 255, 0.06), transparent 62%);
    }
}

/* Browsers that tell us the device struggles to keep up. */
@media (update: slow) {
    .aurora { animation: none; }
    .bg-noise { display: none; }
    .tilt { --rx: 0deg !important; --ry: 0deg !important; }
}

/* ==========================================================================
   Reduced motion, reduced transparency & fallbacks
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1 !important; }
    .reveal:not(.is-visible) { transform: none !important; }
    .tilt { transform: none !important; }
    .marquee-track { animation: none; }
    .aurora,
    .topper-halo,
    .topper-shine,
    .float-wa::after,
    .avatar-ring,
    .pill-dot::after,
    .certificate-orbit-inner { animation: none !important; }
}

/* macOS/iOS "Reduce transparency" — swap glass for solid, high-contrast navy. */
@media (prefers-reduced-transparency: reduce) {
    .glass,
    .navbar.scrolled,
    .wizard-container,
    .modal-content,
    .stats-grid,
    .nav-links,
    .pill,
    .course-card,
    .feature-card,
    .step-card,
    .accordion-item,
    .toppers-panel,
    .outcomes-box {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-color: rgba(9, 19, 38, 0.97);
    }
    .tilt { transform: none; }
}

@supports not (backdrop-filter: blur(6px)) {
    .glass,
    .stats-grid,
    .wizard-container,
    .modal-content,
    .navbar.scrolled,
    .nav-links,
    .pill,
    .float-chip,
    .contact-form-container {
        background-color: rgba(9, 19, 38, 0.96);
    }
}

/* Certificate verification */
.certificate-verification { background: radial-gradient(ellipse at 50% 65%, rgba(47,107,255,.12), transparent 58%); }
.certificate-panel { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; border: 1px solid var(--glass-stroke-soft); border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.014) 45%), #0a1427; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(255,255,255,.03), 0 35px 90px -40px #000, 0 0 70px -35px rgba(47,107,255,.35); }
.certificate-visual { position: relative; min-height: 430px; display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.3rem); overflow: hidden; border-right: 1px solid rgba(127,170,230,.15); background: radial-gradient(circle at 50% 35%, rgba(37,105,213,.3), transparent 48%), linear-gradient(145deg, #102b52, #08182f 75%); }
.certificate-visual::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: linear-gradient(rgba(129,186,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(129,186,255,.2) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.certificate-visual-top, .certificate-visual-footer { position: relative; display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: #a5bcd9; font-size: .59rem; font-weight: 700; letter-spacing: .11em; }
.certificate-visual-brand { color: #f0f7ff; font: 700 .75rem var(--font-heading); letter-spacing: .09em; }
.certificate-visual-brand i { color: #6adff1; margin-right: .35rem; }
.certificate-visual-brand span { color: #5d8abd; padding: 0 .25rem; }
.certificate-visual-tag { color: #9cbbdb; border: 1px solid rgba(130,190,255,.22); border-radius: 5px; padding: .38rem .5rem; }
.certificate-orb { position: relative; align-self: center; width: 190px; height: 190px; display: grid; place-items: center; margin: 1.35rem 0 .8rem; }
.certificate-orbit { position: absolute; inset: 0; border: 1px solid rgba(105,201,255,.28); border-radius: 50%; }
.certificate-orbit-outer::before, .certificate-orbit-outer::after { content: ''; position: absolute; background: #81e9fb; border-radius: 50%; box-shadow: 0 0 12px #35d8ec; }
.certificate-orbit-outer::before { width: 5px; height: 5px; top: 26px; right: 24px; }
.certificate-orbit-outer::after { width: 4px; height: 4px; bottom: 32px; left: 20px; }
.certificate-orbit-inner { inset: 20px; border-style: dashed; border-color: rgba(105,201,255,.32); animation: certificate-orbit-spin 32s linear infinite; }
.certificate-orb-core { width: 104px; height: 104px; display: grid; place-items: center; border: 1px solid rgba(126,224,255,.38); border-radius: 30px; transform: rotate(45deg); color: #9bedff; background: linear-gradient(135deg, rgba(73,168,233,.34), rgba(22,72,140,.22)); box-shadow: 0 0 45px rgba(53,216,236,.2), inset 0 0 28px rgba(53,216,236,.08); }
.certificate-orb-core i { font-size: 2.35rem; transform: rotate(-45deg); text-shadow: 0 0 18px rgba(53,216,236,.6); }
.certificate-orb-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #f7bf4f; right: 20px; bottom: 24px; box-shadow: 0 0 15px #f7bf4f; }
.certificate-visual-copy { position: relative; margin-top: auto; }
.certificate-kicker { color: #7ed7ec; font-size: .62rem; font-weight: 700; letter-spacing: .16em; }
.certificate-visual-copy h3 { color: #f5faff; font: 600 clamp(1.4rem, 2.3vw, 1.85rem)/1.25 var(--font-heading); letter-spacing: -.04em; margin: .6rem 0; }
.certificate-visual-copy h3 span { color: var(--gold-400); }
.certificate-visual-copy p { max-width: 280px; color: #a4bbd7; font-size: .8rem; line-height: 1.6; }
.certificate-visual-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(140,190,255,.16); justify-content: flex-start; }
.certificate-visual-footer i { color: #71d8e7; font-size: .9rem; }
.certificate-visual-footer span { margin-left: auto; color: #7d9ebf; }
.certificate-workspace { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, rgba(18,35,61,.85), rgba(7,17,33,.96)); }
.certificate-panel-heading { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.5rem; margin-bottom: 1.7rem; border-bottom: 1px solid var(--line); }
.certificate-heading-icon { flex: 0 0 50px; width: 50px; height: 50px; display: grid; place-items: center; color: #8fdcf3; font-size: 1.1rem; border: 1px solid rgba(110,198,243,.25); border-radius: 14px; background: rgba(47,107,255,.1); }
.certificate-panel-heading h3 { margin: .25rem 0; color: var(--text-strong); font: 600 1.15rem var(--font-heading); }
.certificate-panel-heading p { color: var(--text-muted); font-size: .82rem; }
.certificate-panel .form-group { margin-bottom: 0; }
.certificate-panel .form-group label { justify-content: space-between; color: var(--text-strong); font-size: .83rem; margin-bottom: .7rem; }
.certificate-panel .form-group label .certificate-label-note { color: #7992b2; font: 700 .59rem var(--font-body); letter-spacing: .12em; }
.certificate-search { display: flex; flex-direction: column; gap: .8rem; }
.certificate-input-wrap { position: relative; }
.certificate-input-wrap > i { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); color: #6684a7; font-size: .9rem; pointer-events: none; }
.certificate-panel .certificate-input-wrap input { width: 100%; min-height: 54px; padding-left: 2.7rem; border-color: rgba(131,170,218,.27); border-radius: 12px; background: rgba(3,10,23,.6); }
.certificate-search button { width: 100%; min-height: 53px; justify-content: center; border-radius: 12px; }
.certificate-search button i { margin-left: .3rem; }
.certificate-help { color: var(--text-muted); font-size: .76rem; margin-top: .75rem; line-height: 1.7; }
.certificate-result:not(:empty) { padding: 1.35rem; margin-top: 1.5rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow-wrap: anywhere; }
.certificate-result-header { display: flex; align-items: center; gap: 1rem; }
.certificate-result-copy { min-width: 0; }
.certificate-result-copy strong { display: block; color: var(--text-strong); font: 600 1rem var(--font-heading); }
.certificate-result-copy p { margin: .3rem 0 0; color: var(--text-body); font-size: .84rem; line-height: 1.6; }
.certificate-status-icon { flex: 0 0 52px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; animation: certificate-pop .55s var(--ease) both; }
.certificate-status-icon svg { width: 29px; height: 29px; fill: none; stroke: white; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.certificate-status-icon path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: certificate-draw .5s .2s ease forwards; }
.certificate-success { background: rgba(26, 167, 110, .1); border-color: rgba(68, 207, 145, .4) !important; }
.certificate-success .certificate-status-icon { background: #19a86f; box-shadow: 0 0 0 6px rgba(25,168,111,.13), 0 0 30px rgba(25,168,111,.25); }
.certificate-not-found { background: rgba(225, 65, 76, .1); border-color: rgba(249, 104, 112, .4) !important; }
.certificate-not-found .certificate-status-icon { background: #e54b59; box-shadow: 0 0 0 6px rgba(229,75,89,.13), 0 0 30px rgba(229,75,89,.25); }
.certificate-neutral-icon { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--gold-300); background: rgba(233,163,33,.12); font-size: 1.25rem; font-weight: 700; }
.certificate-loading .certificate-neutral-icon { color: var(--blue-300); background: rgba(47,107,255,.14); }
.certificate-details { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: .8rem 1rem; margin: 1.3rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(145, 230, 189, .15); font-size: .85rem; }
.certificate-details dt { color: var(--text-muted); }
.certificate-details dd { margin: 0; color: var(--text-strong); font-weight: 500; }
.certificate-assistance { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1.5rem; color: var(--text-muted); font-size: .8rem; line-height: 1.6; }
.certificate-assistance i { color: var(--blue-300); margin-top: .2rem; }
.certificate-assistance a { color: var(--blue-300); text-decoration: underline; text-underline-offset: 3px; }
#certificate-submit:disabled { opacity: .65; cursor: wait; }
@keyframes certificate-pop { from { opacity: 0; transform: scale(.45); } 70% { opacity: 1; transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }
@keyframes certificate-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
    .certificate-status-icon, .certificate-status-icon path { animation: none; }
    .certificate-status-icon path { stroke-dashoffset: 0; }
}
@keyframes certificate-orbit-spin { to { transform: rotate(360deg); } }
.certificate-loading .certificate-neutral-icon { font-size: 0; border: 2px solid rgba(91,140,255,.2); border-top-color: #8fb4ff; animation: certificate-orbit-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .certificate-orbit-inner, .certificate-loading .certificate-neutral-icon { animation: none; } }
@media (max-width: 700px) {
    .certificate-panel { grid-template-columns: 1fr; }
    .certificate-visual { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(127,170,230,.15); }
    .certificate-orb { width: 140px; height: 140px; margin: 1rem 0; }
    .certificate-orbit-inner { inset: 15px; }
    .certificate-orb-core { width: 76px; height: 76px; border-radius: 22px; }
    .certificate-orb-core i { font-size: 1.8rem; }
    .certificate-visual-footer { margin-top: 1rem; }
    .certificate-details { grid-template-columns: 1fr; gap: .25rem; }
    .certificate-details dd { margin-bottom: .75rem; }
    .certificate-result-header { align-items: flex-start; }
}

/* Interactive gallery sphere */
.gallery-more { margin-top: 1.3rem; padding: 1.8rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border: 1px solid rgba(91,140,255,.25); border-radius: var(--r-lg); background: radial-gradient(circle at 80% 10%, rgba(47,107,255,.16), transparent 45%), rgba(255,255,255,.025); }
.gallery-more-label { color: var(--gold-400); font-size: .68rem; font-weight: 700; letter-spacing: .17em; }
.gallery-more h3 { margin: .35rem 0; font-family: var(--font-heading); color: #fff; }
.gallery-more p { color: var(--text-muted); font-size: .9rem; }
.sphere-dialog[hidden], .sphere-preview[hidden] { display: none; }
.sphere-dialog { position: fixed; inset: 0; z-index: 3000; background: #030918; }
.sphere-panel { position: relative; width: 100%; height: 100%; height: 100dvh; overflow: hidden; background: radial-gradient(circle at 50% 48%, #112d5c 0%, #09162d 42%, #030918 80%); }
.sphere-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; }
.sphere-stage:active { cursor: grabbing; }
.sphere-stage::before, .sphere-orbit { position: absolute; left: 50%; top: 50%; width: min(75vw, 75vh, 850px); width: min(75vw, 75dvh, 850px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.sphere-stage::before { content: ''; background: radial-gradient(circle, rgba(53,216,236,.15), rgba(47,107,255,.06) 48%, transparent 70%); box-shadow: 0 0 100px rgba(47,107,255,.1); }
.sphere-orbit { border: 1px solid rgba(128,180,255,.16); }
.sphere-orbit-two { transform: translate(-50%, -50%) rotate(60deg) scaleX(.45); }
.sphere-photos { position: absolute; inset: 0; }
.sphere-photo { position: absolute; top: 50%; left: 50%; width: clamp(74px, 15vmin, 190px); aspect-ratio: 4/3; padding: 3px; border: 1px solid rgba(206,226,255,.8); border-radius: 9px; background: #edf3ff; box-shadow: 0 8px 25px #0009; cursor: pointer; will-change: transform; }
.sphere-photo:focus-visible, .sphere-icon-button:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }
.sphere-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; pointer-events: none; }
.sphere-icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); color: #fff; background: rgba(7,16,32,.75); cursor: pointer; }
.sphere-icon-button:hover { background: rgba(47,107,255,.45); }
.sphere-icon-button:disabled { opacity: .3; cursor: default; }
.sphere-close, .sphere-preview-close { position: absolute; top: max(1rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right)); z-index: 300; font-size: 1.7rem; line-height: 1; }
.sphere-controls { position: absolute; z-index: 250; bottom: max(1.25rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .55rem; }
.sphere-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sphere-preview { position: absolute; inset: 0; z-index: 400; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 4rem 1rem; background: rgba(3,8,19,.97); }
.sphere-preview img {
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    max-height: calc(100dvh - 8rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}
@media (max-width: 700px) {
    .gallery-more { align-items: flex-start; flex-direction: column; padding: 1.4rem; }
    .sphere-controls { gap: .35rem; }
}

/* ==========================================================================
   Digital Attendance portal link (attendance/ sub-application)
   Kept minimal so the existing navigation rhythm is unchanged.
   ========================================================================== */
.nav-links > a.nav-portal-link { color: var(--gold-300); }
.nav-links > a.nav-portal-link::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.42rem;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(233, 163, 33, 0.16);
    vertical-align: middle;
}
.nav-links > a.nav-portal-link:hover,
.nav-links > a.nav-portal-link.is-active { color: var(--gold-200, #FFE6B0); }

@media (max-width: 1024px) {
    .nav-links > a.nav-portal-link {
        color: var(--gold-300);
        font-weight: 600;
    }
}

/* The portal dot follows the two desktop tightening steps defined in the
   Navigation section, so the rhythm stays predictable from 1440px down. */
@media (min-width: 1280px) and (max-width: 1559px) {
    .nav-links > a.nav-portal-link::before { margin-right: 0.3rem; }
}

/* ==========================================================================
   15b. Floating Notice Board Button & Official Circular Modal
   ========================================================================== */
.nav-notices-link {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
}
.nav-notice-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(247, 191, 79, 0.22);
}
.nav-notice-dot[hidden] { display: none; }

/* Floating Notice Board trigger — sits on the bottom-left and glides just
   above .back-to-top using strictly GPU-composited translate3d when
   .back-to-top becomes visible (no layout-property `bottom` animation). */
.floating-notice-btn {
    position: fixed;
    left: clamp(0.9rem, 2vw, 1.6rem);
    bottom: clamp(0.9rem, 2vw, 1.6rem);
    z-index: 990;
    height: 48px;
    padding: 0 0.95rem 0 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-strong);
    font: 600 0.84rem/1 var(--font-body);
    letter-spacing: 0.01em;
    cursor: pointer;
    border: 1px solid rgba(247, 191, 79, 0.42);
    border-radius: var(--r-pill);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 55%),
        radial-gradient(120% 90% at 0% 0%, rgba(233, 163, 33, 0.2), transparent 65%),
        rgba(9, 19, 38, 0.84);
    backdrop-filter: blur(var(--glass-blur)) saturate(170%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
    box-shadow:
        0 18px 34px -16px rgba(0, 0, 0, 0.92),
        0 1px 0 rgba(255, 255, 255, 0.22) inset;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition:
        transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.24s ease,
        background-color 0.24s ease,
        box-shadow 0.24s ease;
}
.back-to-top.is-visible + .floating-notice-btn {
    transform: translate3d(0, -58px, 0);
}
.floating-notice-btn:active {
    transform: translate3d(0, 0, 0) scale(0.96);
}
.back-to-top.is-visible + .floating-notice-btn:active {
    transform: translate3d(0, -58px, 0) scale(0.96);
}
.floating-notice-btn svg {
    flex-shrink: 0;
    color: var(--gold-300);
}
@media (hover: hover) and (pointer: fine) {
    .floating-notice-btn:hover {
        transform: translate3d(0, -3px, 0);
        border-color: rgba(247, 191, 79, 0.72);
        box-shadow:
            0 22px 38px -14px rgba(0, 0, 0, 0.95),
            0 0 24px -6px rgba(233, 163, 33, 0.45),
            0 1px 0 rgba(255, 255, 255, 0.3) inset;
    }
    .back-to-top.is-visible + .floating-notice-btn:hover {
        transform: translate3d(0, -61px, 0);
    }
}
.floating-notice-btn:focus-visible {
    outline: 3px solid var(--gold-400);
    outline-offset: 3px;
}
.floating-notice-badge[hidden] { display: none; }
.floating-notice-badge {
    min-width: 21px;
    height: 21px;
    padding: 0 0.4rem;
    display: inline-grid;
    place-items: center;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: #081224;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}
.floating-notice-btn.has-highlight::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(247, 191, 79, 0.55);
    pointer-events: none;
}

/* Live pinned/latest update ticker inside Notice Board Modal */
.notice-ticker[hidden] { display: none; }
.notice-ticker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    max-width: 100%;
    padding: 0.62rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: var(--r-pill);
    border: 1px solid rgba(247, 191, 79, 0.3);
    background:
        linear-gradient(90deg, rgba(233, 163, 33, 0.14), rgba(47, 107, 255, 0.08) 45%, rgba(255, 255, 255, 0.03));
    box-shadow: var(--glass-surface-shadow);
}
.notice-ticker-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--r-pill);
    background: rgba(233, 163, 33, 0.16);
    border: 1px solid rgba(247, 191, 79, 0.32);
    color: var(--gold-300);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.notice-ticker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 10px rgba(247, 191, 79, 0.9);
}
.notice-ticker-btn {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: transparent;
    border: 0;
    color: var(--text-strong);
    font: inherit;
    text-align: left;
    cursor: pointer;
    padding: 0.2rem 0.25rem;
}
.notice-ticker-cat {
    flex-shrink: 0;
    padding: 0.18rem 0.56rem;
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(91, 140, 255, 0.16);
    color: var(--blue-300);
}
.notice-ticker-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-strong);
}
.notice-ticker-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-300);
    transition: transform 0.25s var(--ease);
}
.notice-ticker-btn:hover .notice-ticker-cta { transform: translateX(3px); }
.notice-ticker-controls {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.notice-ticker-nav {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-body);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.notice-ticker-nav:hover {
    background: rgba(47, 107, 255, 0.28);
    color: #fff;
}
.notice-ticker-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 2.2rem;
    text-align: center;
}

/* Category Filter Pills (shared by Notice Board modal tabs) */
.notice-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.48rem 0.92rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-body);
    font: 600 0.82rem/1 var(--font-body);
    cursor: pointer;
    transition: all 0.24s var(--ease);
}
.notice-filter-pill:hover {
    border-color: var(--line-strong);
    color: var(--text-strong);
    background: rgba(255, 255, 255, 0.08);
}
.notice-filter-pill.is-active {
    color: #fff;
    border-color: rgba(91, 140, 255, 0.65);
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    box-shadow: var(--shadow-blue);
}
.notice-pill-count {
    padding: 0.12rem 0.44rem;
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
}

/* Notice Cards inside the Notice Board modal */
.notice-card {
    position: relative;
    min-width: 0;
    overflow-wrap: anywhere;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.4rem;
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: transform 0.28s var(--ease), border-color 0.28s ease, box-shadow 0.28s ease;
}
.notice-card:hover,
.notice-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(143, 180, 255, 0.42);
    box-shadow: var(--glass-surface-shadow-hover);
    outline: none;
}
.notice-card.is-pinned {
    border-color: rgba(247, 191, 79, 0.45);
    background:
        linear-gradient(180deg, rgba(247, 191, 79, 0.11), rgba(255, 255, 255, 0.02) 48%),
        var(--glass-surface);
}
.notice-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.notice-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.24rem 0.62rem;
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(91, 140, 255, 0.15);
    border: 1px solid rgba(91, 140, 255, 0.28);
    color: var(--blue-300);
}
.notice-badge-pin {
    background: rgba(233, 163, 33, 0.2);
    border-color: rgba(247, 191, 79, 0.46);
    color: var(--gold-300);
}
.notice-badge-urgent {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(248, 113, 113, 0.42);
    color: #FCA5A5;
}
.notice-badge-important {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(251, 191, 36, 0.4);
    color: #FDE68A;
}
.notice-cat-admission {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(52, 211, 153, 0.32);
    color: #6EE7B7;
}
.notice-cat-examination {
    background: rgba(168, 85, 247, 0.16);
    border-color: rgba(192, 132, 252, 0.34);
    color: #D8B4FE;
}
.notice-cat-fees {
    background: rgba(53, 216, 236, 0.15);
    border-color: rgba(53, 216, 236, 0.34);
    color: #7CEEF9;
}
.notice-cat-holidays {
    background: rgba(244, 114, 182, 0.15);
    border-color: rgba(244, 114, 182, 0.34);
    color: #F9A8D4;
}
.notice-cat-course-updates {
    background: rgba(47, 107, 255, 0.18);
    border-color: rgba(143, 180, 255, 0.36);
    color: var(--blue-300);
}
.notice-card-date {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}
.notice-card-title {
    font-family: var(--font-heading);
    font-size: 1.07rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-strong);
}
.notice-card-summary {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-body);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notice-card-media {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 16 / 9;
    background: rgba(4, 9, 20, 0.55);
}
.notice-card-media-compact {
    max-height: 220px;
}
.notice-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.notice-media-tag {
    position: absolute;
    left: 0.55rem;
    bottom: 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: var(--r-pill);
    background: rgba(5, 11, 24, 0.8);
    color: #F5F8FF;
    font-size: 0.7rem;
    font-weight: 600;
}
.notice-card-attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.75rem;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--text-body);
    min-width: 0;
}
.notice-card-attachment span:first-of-type {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notice-attach-size {
    margin-left: auto;
    color: var(--text-faint);
    font-size: 0.72rem;
    flex-shrink: 0;
}
.notice-card-footer {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.notice-card-issuer {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.notice-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    background: transparent;
    border: 0;
    color: var(--gold-300);
    font: 600 0.82rem/1 var(--font-body);
    cursor: pointer;
    transition: transform 0.2s var(--ease), color 0.2s ease;
}
.notice-card:hover .notice-read-btn { transform: translateX(2px); color: var(--gold-400); }

.notice-empty {
    grid-column: 1 / -1;
    padding: 2.6rem 1.5rem;
    text-align: center;
    border-radius: var(--r-lg);
}
.notice-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.9rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(47, 107, 255, 0.16);
    color: var(--blue-300);
}
.notice-empty h3 {
    font-family: var(--font-heading);
    color: var(--text-strong);
    margin-bottom: 0.35rem;
}
.notice-empty p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Notice Board Modal (Archive + Official Circular Reader) */
.notice-modal-content {
    width: min(820px, 100%);
    overflow-x: hidden;
    overflow-wrap: anywhere;
}
.notice-modal-kicker {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 0.35rem;
}
.notice-modal-head h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    color: var(--text-strong);
    margin-bottom: 0.25rem;
}
.notice-modal-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}
.notice-modal-search {
    position: relative;
    margin-bottom: 1rem;
}
.notice-modal-search svg {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.notice-modal-search input {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 1rem 0.65rem 2.65rem;
    border-radius: var(--r-md);
    border: 1px solid var(--line-strong);
    background: rgba(4, 10, 22, 0.55);
    color: var(--text-strong);
    font: inherit;
}
.notice-modal-search input:focus {
    outline: none;
    border-color: var(--blue-400);
    box-shadow: var(--ring);
}
.notice-modal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
}
.notice-archive-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 55vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0.2rem;
}
.notice-card.is-archive-row {
    padding: 1.05rem 1.2rem;
    gap: 0.55rem;
}

.notice-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding-right: 2.5rem;
    margin-bottom: 1.25rem;
}
.notice-back-btn,
.notice-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-strong);
    font: 600 0.8rem/1 var(--font-body);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.notice-back-btn:hover,
.notice-tool-btn:hover {
    background: rgba(47, 107, 255, 0.26);
    border-color: rgba(143, 180, 255, 0.45);
}
.notice-detail-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.notice-circular-banner {
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.2rem;
}
.notice-circular-banner h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    line-height: 1.3;
    color: var(--text-strong);
    margin: 0.7rem 0 0.6rem;
}
.notice-circular-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.notice-circular-dates span {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
}
.notice-circular-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--text-body);
}
.notice-circular-attachment {
    margin-top: 1.35rem;
    padding: 1rem;
    border-radius: var(--r-md);
    border: 1px solid var(--line-strong);
    background: rgba(4, 10, 22, 0.48);
}
.notice-circular-image {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    border-radius: var(--r-sm);
    margin-bottom: 0.9rem;
    background: rgba(0, 0, 0, 0.25);
}
.notice-attachment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.notice-attachment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-strong);
    font-size: 0.86rem;
    font-weight: 500;
}
.notice-attachment-meta small {
    color: var(--text-muted);
    font-size: 0.76rem;
}
.notice-attachment-btns {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.notice-circular-footer {
    margin-top: 1.5rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.notice-signatory {
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
}
.notice-signatory-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-400);
}
.notice-signatory strong {
    font-family: var(--font-heading);
    color: var(--text-strong);
    font-size: 0.96rem;
}
.notice-signatory-place {
    font-size: 0.78rem;
    color: var(--text-muted);
}

@media (max-width: 680px) {
    .notice-ticker {
        flex-wrap: wrap;
        border-radius: var(--r-lg);
        padding: 0.85rem;
    }
    .notice-ticker-btn { flex-basis: 100%; order: 3; }
    .notice-ticker-controls { margin-left: auto; }
}

/* ==========================================================================
   16. Day mode — Neumorphism UI
   Night (the default, [data-theme="night"] or no attribute) is untouched:
   every rule above is the original glassmorphism design. Day re-skins the
   SAME layout by (a) flipping the shared tokens to a light palette whose
   glass recipes become soft extruded "neu" surfaces — one raised shadow
   pair (dark bottom-right, white top-left) on a flat #E7EAF1 canvas — and
   (b) re-painting the handful of components that hard-code dark navy /
   white-on-dark colours instead of using tokens. No backdrop blur in Day:
   neumorphism is opaque, and dropping the blur is also cheaper to paint.
   ========================================================================== */
:root[data-theme="day"] {
    color-scheme: light;

    --neu-bg: #E7EAF1;
    --neu-surface: linear-gradient(145deg, #EEF1F7, #DFE4EE);
    --neu-raised: 8px 8px 18px rgba(163, 177, 198, 0.5), -8px -8px 18px rgba(255, 255, 255, 0.9);
    --neu-raised-sm: 5px 5px 12px rgba(163, 177, 198, 0.45), -5px -5px 12px rgba(255, 255, 255, 0.85);
    --neu-raised-hover: 11px 11px 24px rgba(163, 177, 198, 0.58), -9px -9px 20px rgba(255, 255, 255, 0.95);
    --neu-inset: inset 4px 4px 9px rgba(163, 177, 198, 0.55), inset -4px -4px 9px rgba(255, 255, 255, 0.9);
    --neu-stroke: rgba(255, 255, 255, 0.65);

    --text-strong: #1C2942;
    --text-body: #3E4D68;
    --text-muted: #4F617F;
    --text-faint: #5D6E87;

    --line: rgba(62, 80, 115, 0.18);
    --line-strong: rgba(62, 80, 115, 0.32);

    /* Token-level glass → neu swap: every component already painted with
       these variables becomes neumorphic without per-component rules. */
    --glass-tint-top: rgba(255, 255, 255, 0.5);
    --glass-tint-mid: rgba(255, 255, 255, 0.12);
    --glass-tint-bottom: rgba(190, 199, 218, 0.25);
    --glass-stroke: var(--neu-stroke);
    --glass-stroke-soft: rgba(62, 80, 115, 0.14);
    --glass-specular: rgba(255, 255, 255, 0.9);
    --glass-shadow: var(--neu-raised);
    --glass-inner: inset 1px 1px 0 rgba(255, 255, 255, 0.8);
    --glass-surface: var(--neu-surface);
    --glass-surface-shadow: var(--neu-raised-sm);
    --glass-surface-shadow-hover: var(--neu-raised-hover);

    --shadow-sm: var(--neu-raised-sm);
    --shadow-md: var(--neu-raised);
    --shadow-lg: 14px 14px 30px rgba(163, 177, 198, 0.55), -10px -10px 24px rgba(255, 255, 255, 0.9);
    --shadow-blue: 8px 10px 22px -6px rgba(47, 107, 255, 0.55), -4px -4px 10px rgba(255, 255, 255, 0.7);
    --shadow-gold: 8px 10px 22px -6px rgba(233, 163, 33, 0.55), -4px -4px 10px rgba(255, 255, 255, 0.7);
    --ring: 0 0 0 3px rgba(47, 107, 255, 0.3);

    --bg-light: var(--neu-bg);
    --bg-white: var(--neu-bg);

    /* Accents darkened just enough to stay legible as text on the light
       canvas (badges/eyebrows/links); saturated fills keep night values
       where they sit on coloured backgrounds. */
    --blue-300: #1F56E0;
    --cyan-400: #0B8FA6;
    --gold-300: #9A6A08;
    --gold-400: #B07C0A;
}

/* Cross-fade only while switching (JS adds .theme-transition for ~650 ms). */
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color 0.5s ease, background 0.5s ease, color 0.4s ease,
        border-color 0.5s ease, box-shadow 0.5s ease, fill 0.4s ease, stroke 0.4s ease !important;
}

[data-theme="day"] body { background-color: var(--neu-bg); }
[data-theme="day"] ::selection { background: rgba(47, 107, 255, 0.28); color: #16233F; }
[data-theme="day"] ::-webkit-scrollbar-track { background: var(--neu-bg); }
[data-theme="day"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--blue-400), #A9BAD6);
    border-color: var(--neu-bg);
}

/* Ambient background: flat neu canvas, pastel aurora wash, faint grid. */
[data-theme="day"] .bg-fx {
    background:
        radial-gradient(120% 90% at 80% -10%, rgba(91, 140, 255, 0.16), transparent 60%),
        radial-gradient(90% 70% at 0% 10%, rgba(53, 216, 236, 0.12), transparent 55%),
        linear-gradient(180deg, #EEF1F7 0%, var(--neu-bg) 55%, #E9ECF3 100%);
}
[data-theme="day"] .aurora { opacity: 0.32; filter: blur(100px); }
[data-theme="day"] .bg-grid {
    background-image:
        linear-gradient(rgba(62, 80, 115, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 80, 115, 0.07) 1px, transparent 1px);
    opacity: 0.6;
}
[data-theme="day"] .bg-noise { opacity: 0.02; }

/* Glass panels become raised neu slabs; the specular glass ring turns off. */
[data-theme="day"] .glass {
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .glass { box-shadow: var(--neu-raised); }
[data-theme="day"] .glass::before { opacity: 0; }
[data-theme="day"] .card-sheen {
    background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.55), transparent 62%);
}

/* Header bar */
[data-theme="day"] .navbar.scrolled {
    background: rgba(231, 234, 241, 0.88);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 24px -14px rgba(120, 135, 165, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
[data-theme="day"] .logo-title {
    background: linear-gradient(100deg, #16233F, #2F6BFF);
    -webkit-background-clip: text;
    background-clip: text;
}
[data-theme="day"] .nav-links > a:not(.nav-btn) { color: var(--text-body); }
[data-theme="day"] .nav-links > a:not(.nav-btn):hover,
[data-theme="day"] .nav-links > a.is-active {
    color: var(--text-strong);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: var(--neu-inset);
}
[data-theme="day"] .mobile-toggle {
    color: var(--text-strong);
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .mobile-toggle:hover { background: #EDF0F7; }

/* Pills, chips and buttons */
[data-theme="day"] .pill {
    color: var(--text-strong);
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .btn-ghost {
    color: var(--text-strong);
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .btn-ghost:hover { color: var(--text-strong); background: #EDF0F7; border-color: rgba(255, 255, 255, 0.9); }
[data-theme="day"] .btn-ghost:active { box-shadow: var(--neu-inset); }
[data-theme="day"] .btn-outline { color: var(--blue-600); background: rgba(255, 255, 255, 0.35); border-color: rgba(47, 107, 255, 0.45); }
[data-theme="day"] .btn-outline:hover { color: #fff; background: var(--blue-500); }
[data-theme="day"] .grad-text {
    background: linear-gradient(100deg, #1F56E0 0%, #0B8FA6 48%, #C07F0A 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
[data-theme="day"] .float-chip {
    color: var(--text-strong);
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .hero::before { background: linear-gradient(90deg, transparent, rgba(62, 80, 115, 0.3), transparent); }

/* Raised neu cards across every section */
[data-theme="day"] .credential-item,
[data-theme="day"] .about-point,
[data-theme="day"] .step-card,
[data-theme="day"] .course-card,
[data-theme="day"] .feature-card,
[data-theme="day"] .accordion-item,
[data-theme="day"] .stat,
[data-theme="day"] .wizard-container,
[data-theme="day"] .outcomes-box,
[data-theme="day"] .gallery-more,
[data-theme="day"] .fact {
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .credential-item { color: var(--text-body); }
[data-theme="day"] .accordion-item.active {
    background: linear-gradient(145deg, #EDF1FA, #DCE6F8);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: var(--neu-inset);
}
[data-theme="day"] .courses,
[data-theme="day"] .features { background: linear-gradient(180deg, rgba(210, 218, 235, 0.35), transparent 45%); }
[data-theme="day"] .stats-band,
[data-theme="day"] .marquee {
    background: linear-gradient(90deg, rgba(91, 140, 255, 0.07), rgba(233, 163, 33, 0.07));
    border-color: var(--line);
}
[data-theme="day"] .marquee-track { color: rgba(62, 80, 115, 0.75); }

/* Hero stage frame: keep the photo, re-frame it in a neu bezel. */
[data-theme="day"] .stage-screen {
    background: #D9E0EE;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: var(--neu-raised), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
[data-theme="day"] .stage-ring { border-color: rgba(62, 80, 115, 0.16); }
[data-theme="day"] .teacher-avatar {
    background: linear-gradient(150deg, #DCE5F5, #C3D2EC);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: var(--neu-raised-sm);
}

/* Inset (pressed) neu wells: inputs, selects, filter + compare controls */
[data-theme="day"] .form-group input,
[data-theme="day"] .form-group select,
[data-theme="day"] .form-group textarea,
[data-theme="day"] .compare-select,
[data-theme="day"] .certificate-panel .certificate-input-wrap input {
    color: var(--text-strong);
    background: #E2E7F0;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: var(--neu-inset);
}
[data-theme="day"] .form-group input::placeholder,
[data-theme="day"] .form-group textarea::placeholder { color: var(--text-faint); }
[data-theme="day"] .compare-select option { background: #EDF0F7; color: var(--text-strong); }
[data-theme="day"] .filter-btn {
    color: var(--text-body);
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised-sm);
}
[data-theme="day"] .filter-btn:hover { color: var(--text-strong); }
[data-theme="day"] .filter-btn.active { box-shadow: var(--neu-inset); color: var(--blue-600); }
[data-theme="day"] .wizard-container {
    background: var(--neu-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .recommended-course {
    background: linear-gradient(150deg, rgba(47, 107, 255, 0.12), rgba(255, 255, 255, 0.35));
    border-color: rgba(47, 107, 255, 0.3);
    box-shadow: var(--neu-raised-sm);
}
[data-theme="day"] .compare-table { color: var(--text-body); }
[data-theme="day"] .table-responsive {
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised-sm);
}
[data-theme="day"] .compare-table th,
[data-theme="day"] .compare-table thead td {
    background: linear-gradient(180deg, rgba(47, 107, 255, 0.16), rgba(47, 107, 255, 0.06));
    color: var(--text-strong);
}
[data-theme="day"] .compare-table td { border-color: var(--line); }
[data-theme="day"] .compare-table tbody tr:hover td { background: rgba(47, 107, 255, 0.07); }

/* Gallery / toppers keep their photos; captions + frames go light */
[data-theme="day"] .gallery-item,
[data-theme="day"] .topper-media { border-color: rgba(255, 255, 255, 0.75); box-shadow: var(--neu-raised-sm); }
[data-theme="day"] .toppers-panel {
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .gallery-more h3 { color: var(--text-strong); }

/* Day contrast fixes: text/gradients that were painted pale-on-dark for
   Night must not land pale-on-light in Day. */
/* The highlighted phrase in the toppers copy was --gold-200 (#FFE6B0). */
[data-theme="day"] .toppers-copy > p strong { color: #8A5E06; }
/* Score rows were dark navy glass; in Day they become pressed neu wells
   so the (now dark) score text stays readable. */
[data-theme="day"] .topper-scores li {
    background: #E2E7F0;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: var(--neu-inset);
}
[data-theme="day"] .topper-scores li:hover { border-color: rgba(233, 163, 33, 0.55); box-shadow: var(--neu-inset); }
[data-theme="day"] .score-meta strong { color: var(--text-strong); }
[data-theme="day"] .score-meta span { color: var(--text-muted); }
/* Both number gradients started from near-white for the dark canvas. */
[data-theme="day"] .score-value {
    background: linear-gradient(120deg, #C07F0A, #8A5E06 55%, #B97E0A);
    -webkit-background-clip: text;
    background-clip: text;
}
[data-theme="day"] .stat-num {
    background: linear-gradient(140deg, #16233F 5%, #1F56E0 55%, #9A6A08 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
/* Gradient FILLS keep their bright Night golds — the darkened gold tokens
   above are only for text, and would turn these muddy. */
[data-theme="day"] .topper-ad { background: linear-gradient(148deg, #FFD98A 0%, #FFF7E3 24%, #E9A321 52%, #EAD9AE 72%, #5B8CFF 100%); }
[data-theme="day"] .topper-badge { background: linear-gradient(135deg, #FFD98A, #E9A321); }
[data-theme="day"] .certificate-heading-icon { color: #0B7E94; background: rgba(47, 107, 255, 0.12); border-color: rgba(47, 107, 255, 0.28); }
[data-theme="day"] .nav-links > a.nav-portal-link:hover,
[data-theme="day"] .nav-links > a.nav-portal-link.is-active { color: #8A5E06; }
/* Same pale-on-dark trap in the hero credential chips and the marquee
   (their element-level rules beat the inherited Day text colour). */
[data-theme="day"] .credential-icon-iso { color: #1F56E0; background: rgba(47, 107, 255, 0.14); }
[data-theme="day"] .credential-icon-msme { color: #0B7A5C; background: rgba(42, 155, 117, 0.14); }
[data-theme="day"] .marquee-track span { color: rgba(62, 80, 115, 0.78); }
[data-theme="day"] .topper-ad:hover .topper-zoom { background: linear-gradient(150deg, #FFD98A, #E9A321); }

/* FAQ / contact / footer */
[data-theme="day"] .contact::before {
    background:
        radial-gradient(80% 60% at 15% 0%, rgba(47, 107, 255, 0.1), transparent 60%),
        radial-gradient(60% 60% at 90% 100%, rgba(233, 163, 33, 0.1), transparent 60%);
}
[data-theme="day"] .contact-icon {
    color: var(--gold-500);
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised-sm);
}
[data-theme="day"] .footer {
    background: linear-gradient(180deg, rgba(210, 218, 235, 0.4), #DFE4EE);
    border-top-color: rgba(255, 255, 255, 0.75);
}
[data-theme="day"] .footer-tags span { background: rgba(255, 255, 255, 0.5); }
[data-theme="day"] .footer-links a:hover { color: var(--text-strong); }
[data-theme="day"] .back-top {
    color: var(--text-strong);
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised-sm);
}
[data-theme="day"] .back-top:hover { color: #fff; background: var(--blue-500); box-shadow: var(--shadow-blue); }
[data-theme="day"] .back-to-top {
    color: var(--text-strong);
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
@media (hover: hover) and (pointer: fine) {
    [data-theme="day"] .back-to-top.is-visible:hover { color: #fff; background: var(--blue-500); border-color: var(--blue-500); box-shadow: var(--shadow-blue); }
}

/* Overlays: modal, lightbox, certificate + photo sphere get light shells,
   while the photos themselves (and their dark scrims) stay as they are. */
[data-theme="day"] .modal { background: rgba(90, 105, 135, 0.35); }
[data-theme="day"] .modal-content {
    background: linear-gradient(145deg, #F0F3F9, #DFE4EE);
    border-color: var(--neu-stroke);
    box-shadow: 18px 18px 38px rgba(110, 126, 158, 0.5), -8px -8px 22px rgba(255, 255, 255, 0.8);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .close-modal { color: var(--text-muted); background: rgba(255, 255, 255, 0.55); }
[data-theme="day"] .close-modal:hover { color: #fff; background: var(--blue-500); }
[data-theme="day"] .lightbox { background: rgba(70, 84, 112, 0.55); }
[data-theme="day"] .certificate-panel {
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised);
}
[data-theme="day"] .certificate-visual {
    background: radial-gradient(circle at 50% 35%, rgba(73, 140, 255, 0.4), transparent 52%), linear-gradient(145deg, #2C5CA8, #173763 78%);
    border-color: rgba(255, 255, 255, 0.35);
}
[data-theme="day"] .certificate-workspace { background: transparent; }
[data-theme="day"] .certificate-panel .form-group label .certificate-label-note { color: var(--text-faint); }
[data-theme="day"] .certificate-input-wrap > i { color: var(--text-faint); }
/* Photo sphere in Day: a soft neu stage, not a blue glow blob. The centre
   wash drops to a whisper, the orbit rings switch to slate so they stay
   visible on the light canvas, photo tiles become raised neu frames
   (the Night tiles' black #0009 shadow reads as murk on light), and the
   controls sit in one raised neu pill instead of five faint circles. */
[data-theme="day"] .sphere-dialog { background: var(--neu-bg); }
[data-theme="day"] .sphere-panel {
    background:
        radial-gradient(90% 70% at 50% 44%, #F4F6FB 0%, var(--neu-bg) 55%, #DBE1ED 100%);
}
[data-theme="day"] .sphere-stage::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(91, 140, 255, 0.07) 48%, transparent 70%);
    box-shadow: none;
}
[data-theme="day"] .sphere-orbit {
    border-color: rgba(62, 80, 115, 0.3);
    box-shadow: inset 2px 2px 6px rgba(163, 177, 198, 0.35), inset -2px -2px 6px rgba(255, 255, 255, 0.7);
}
[data-theme="day"] .sphere-photo {
    padding: 4px;
    border-radius: 12px;
    background: linear-gradient(145deg, #FFFFFF, #E3E8F1);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 7px 7px 16px rgba(130, 148, 178, 0.45), -5px -5px 12px rgba(255, 255, 255, 0.75);
}
[data-theme="day"] .sphere-photo img { border-radius: 8px; }
[data-theme="day"] .sphere-controls {
    padding: 0.45rem;
    border-radius: var(--r-pill);
    background: linear-gradient(145deg, #EFF2F8, #DFE4EE);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--neu-raised-sm);
}
[data-theme="day"] .sphere-icon-button {
    color: var(--text-strong);
    background: linear-gradient(145deg, #F2F4F9, #E0E5EF);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 4px 4px 10px rgba(163, 177, 198, 0.5), -3px -3px 8px rgba(255, 255, 255, 0.85);
}
[data-theme="day"] .sphere-icon-button:hover {
    color: #fff;
    background: linear-gradient(145deg, var(--blue-500), var(--blue-600));
    box-shadow: var(--shadow-blue);
}
[data-theme="day"] .sphere-icon-button:active { box-shadow: var(--neu-inset); }
[data-theme="day"] .sphere-icon-button:disabled {
    opacity: 0.45;
    color: var(--text-faint);
    background: #DEE3ED;
    box-shadow: none;
}
[data-theme="day"] .sphere-preview { background: rgba(231, 234, 241, 0.97); }
[data-theme="day"] .sphere-preview img {
    border-radius: var(--r-lg);
    box-shadow: 14px 14px 30px rgba(130, 148, 178, 0.5), -8px -8px 20px rgba(255, 255, 255, 0.8);
}

/* Notice Board in Day: soft neumorphic canvas, crisp dark-on-light contrast */
[data-theme="day"] .floating-notice-btn {
    color: var(--text-strong);
    background: var(--neu-surface);
    border-color: rgba(190, 128, 10, 0.42);
    box-shadow: var(--neu-raised-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .floating-notice-btn svg { color: #9A5800; }
[data-theme="day"] .floating-notice-badge {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
}
@media (hover: hover) and (pointer: fine) {
    [data-theme="day"] .floating-notice-btn:hover {
        color: #fff;
        background: var(--blue-500);
        border-color: var(--blue-500);
        box-shadow: var(--shadow-blue);
    }
    [data-theme="day"] .floating-notice-btn:hover svg { color: #fff; }
    [data-theme="day"] .floating-notice-btn:hover .floating-notice-badge {
        background: #fff;
        color: var(--blue-600);
    }
}
[data-theme="day"] .notice-ticker {
    background: linear-gradient(145deg, #F4F6FA, #E2E7F0);
    border-color: rgba(190, 128, 10, 0.35);
    box-shadow: var(--neu-raised-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .notice-ticker-badge {
    background: rgba(217, 119, 6, 0.14);
    border-color: rgba(180, 110, 8, 0.28);
    color: #9A5800;
}
[data-theme="day"] .notice-ticker-cat {
    background: rgba(47, 107, 255, 0.12);
    color: var(--blue-600);
}
[data-theme="day"] .notice-ticker-cta { color: var(--blue-600); }
[data-theme="day"] .notice-ticker-nav {
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    color: var(--text-strong);
    box-shadow: var(--neu-raised-sm);
}
[data-theme="day"] .notice-ticker-nav:hover {
    color: #fff;
    background: var(--blue-500);
}
[data-theme="day"] .notice-filter-pill {
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    color: var(--text-body);
    box-shadow: var(--neu-raised-sm);
}
[data-theme="day"] .notice-filter-pill:hover {
    color: var(--text-strong);
    background: #F3F6FB;
}
[data-theme="day"] .notice-filter-pill.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    box-shadow: var(--shadow-blue);
}
[data-theme="day"] .notice-filter-pill.is-active .notice-pill-count {
    background: rgba(255, 255, 255, 0.24);
}
[data-theme="day"] .notice-pill-count {
    background: rgba(120, 138, 170, 0.16);
}
[data-theme="day"] .notice-card {
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    box-shadow: var(--neu-raised-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
[data-theme="day"] .notice-card:hover,
[data-theme="day"] .notice-card:focus-visible {
    box-shadow: var(--neu-raised-hover);
    border-color: rgba(47, 107, 255, 0.35);
}
[data-theme="day"] .notice-card.is-pinned {
    background: linear-gradient(145deg, #FFFBF2, #EAEFF7);
    border-color: rgba(190, 128, 10, 0.42);
}
[data-theme="day"] .notice-badge {
    background: rgba(47, 107, 255, 0.12);
    border-color: rgba(47, 107, 255, 0.28);
    color: var(--blue-600);
}
[data-theme="day"] .notice-badge-pin {
    background: rgba(217, 119, 6, 0.14);
    border-color: rgba(180, 110, 8, 0.35);
    color: #9A5800;
}
[data-theme="day"] .notice-badge-urgent {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.32);
    color: #B91C1C;
}
[data-theme="day"] .notice-badge-important {
    background: rgba(217, 119, 6, 0.14);
    border-color: rgba(217, 119, 6, 0.32);
    color: #9A5800;
}
[data-theme="day"] .notice-cat-admission {
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.32);
    color: #047857;
}
[data-theme="day"] .notice-cat-examination {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.3);
    color: #6D28D9;
}
[data-theme="day"] .notice-cat-fees {
    background: rgba(8, 145, 178, 0.12);
    border-color: rgba(8, 145, 178, 0.3);
    color: #0E7490;
}
[data-theme="day"] .notice-cat-holidays {
    background: rgba(219, 39, 119, 0.12);
    border-color: rgba(219, 39, 119, 0.3);
    color: #BE185D;
}
[data-theme="day"] .notice-card-media { background: #DDE3EE; }
[data-theme="day"] .notice-card-attachment {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(120, 138, 170, 0.22);
}
[data-theme="day"] .notice-read-btn { color: var(--blue-600); }
[data-theme="day"] .notice-card:hover .notice-read-btn { color: var(--blue-500); }
[data-theme="day"] .notice-modal-kicker,
[data-theme="day"] .notice-signatory-label { color: #9A5800; }
[data-theme="day"] .notice-modal-search input {
    background: #EAEEF6;
    border-color: rgba(120, 138, 170, 0.28);
    color: var(--text-strong);
    box-shadow: var(--neu-inset);
}
[data-theme="day"] .notice-back-btn,
[data-theme="day"] .notice-tool-btn {
    background: var(--neu-surface);
    border-color: var(--neu-stroke);
    color: var(--text-strong);
    box-shadow: var(--neu-raised-sm);
}
[data-theme="day"] .notice-back-btn:hover,
[data-theme="day"] .notice-tool-btn:hover {
    color: #fff;
    background: var(--blue-500);
}
[data-theme="day"] .notice-circular-attachment {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(120, 138, 170, 0.28);
}
[data-theme="day"] .notice-circular-image { background: #E3E8F2; }

/* Print circular cleanly when the visitor presses Print inside the modal */
@media print {
    body > *:not(#notice-board-modal) { display: none !important; }
    #notice-board-modal.open {
        position: static !important;
        display: block !important;
        padding: 0 !important;
        background: #fff !important;
    }
    #notice-board-modal .notice-modal-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 1.5rem !important;
        background: #fff !important;
        color: #111 !important;
        border: 1px solid #d1d5db !important;
        box-shadow: none !important;
    }
    #notice-board-modal .close-modal,
    #notice-board-modal .notice-detail-topbar,
    #notice-board-modal .notice-attachment-btns,
    #notice-board-modal .notice-circular-cta {
        display: none !important;
    }
    #notice-board-modal * {
        color: #111 !important;
        border-color: #cbd5e1 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* Skeletons + reduced-transparency fallback follow the light canvas */
[data-theme="day"] .media-skeleton,
[data-theme="day"] .skel-line,
[data-theme="day"] .skel-circle { background-color: rgba(120, 138, 170, 0.18); }
@media (prefers-reduced-transparency: reduce) {
    [data-theme="day"] .glass,
    [data-theme="day"] .modal-content,
    [data-theme="day"] .navbar.scrolled { background: #E9EDF4; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 1080px) {
    [data-theme="day"] .nav-links {
        background: linear-gradient(180deg, #EEF1F7, #E2E7F0);
        border-bottom-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 24px 34px -22px rgba(120, 135, 165, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.9);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
@media (max-width: 620px) {
    .theme-toggle { margin-left: 0; padding: 3px; }
    .theme-toggle-track { width: 54px; height: 29px; }
    .theme-toggle-knob { width: 30px; height: 21px; }
    [data-theme="day"] .theme-toggle-knob { transform: translate(19px, -50%); }
}

/* Floating action buttons keep their brand colours in both themes. */

/* Phone-first refinements: keep the desktop composition untouched while making
   the long landing page readable and tappable on narrow viewports. */
@media (max-width: 1080px) {
    .nav-links { visibility: hidden; pointer-events: none; transition: clip-path 0.45s var(--ease), visibility 0s 0.45s; }
    .nav-links.active { visibility: visible; pointer-events: auto; transition: clip-path 0.45s var(--ease), visibility 0s; }
    .navbar.scrolled .nav-links { max-height: calc(100dvh - 68px); }
}
@media (max-width: 620px) {
    .container { width: calc(100% - 2rem); }
    .nav-container { width: calc(100% - 1.5rem); }
    .nav-links { padding-inline: 1rem; max-height: calc(100dvh - var(--nav-h)); }
    .nav-links > a:not(.nav-btn) { min-height: 44px; display: flex; align-items: center; }
    .hero { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 2.5rem; }
    .hero-container { gap: 1.65rem; }
    .hero-content h1 { font-size: clamp(2rem, 9vw, 2.65rem); overflow-wrap: anywhere; }
    .hero-lead { font-size: 0.96rem; line-height: 1.65; margin-bottom: 1.4rem; }
    .hero-buttons { gap: 0.7rem; margin-bottom: 1.35rem; }
    .hero-buttons .btn { min-height: 48px; justify-content: center; }
    .hero-visual { padding: 0.8rem 0.45rem 1.6rem; }
    .stage, .hero-visual:hover .stage { transform: none; }
    .stage-plate { left: 0; bottom: -8%; }
    .chip-1 { right: -1%; }
    .chip-2, .chip-3 { display: none; }
    .course-grid { grid-template-columns: minmax(0, 1fr); }
    .gallery-more { padding: 1.25rem; flex-wrap: wrap; }
    .floating-contact { bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px)); right: calc(0.8rem + env(safe-area-inset-right, 0px)); }
    .back-to-top { bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px)); left: calc(0.8rem + env(safe-area-inset-left, 0px)); }
    .floating-notice-btn {
        height: 44px;
        padding: 0 0.85rem 0 0.72rem;
        font-size: 0.8rem;
        left: calc(0.8rem + env(safe-area-inset-left, 0px));
        bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px));
    }
    .back-to-top.is-visible + .floating-notice-btn {
        transform: translate3d(0, -53px, 0);
    }
    .back-to-top.is-visible + .floating-notice-btn:active {
        transform: translate3d(0, -53px, 0) scale(0.96);
    }
}
@media (max-width: 620px) and (hover: hover) and (pointer: fine) {
    .back-to-top.is-visible + .floating-notice-btn:hover {
        transform: translate3d(0, -56px, 0);
    }
}
@media (max-width: 360px) {
    .logo { gap: 0.35rem; }
    .logo-mark { width: 38px; height: 38px; }
    .logo-title { font-size: 1rem; }
    .nav-btn { padding-inline: 0.65rem; }
    .nav-container, .nav-menu { gap: 0.3rem; }
    .pill { font-size: 0.72rem; }
}

/* Fee Desk: a persistent header highlight without adding desktop width or motion. */
.nav-links > a.nav-fee-link:not(.nav-btn),
.nav-fee-button {
    color: #FFE2A0;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(245, 190, 70, 0.19), rgba(245, 190, 70, 0.09));
    box-shadow: inset 0 0 0 1px rgba(245, 190, 70, 0.5);
}
.nav-links > a.nav-fee-link:not(.nav-btn):hover,
.nav-fee-button:hover {
    color: #FFF1CF;
    background: rgba(245, 190, 70, 0.25);
}
.nav-links > a.nav-fee-link:not(.nav-btn)::after { display: none; }
.nav-links > a.nav-fee-link:not(.nav-btn):focus-visible,
.nav-fee-button:focus-visible {
    outline: 3px solid var(--gold-400);
    outline-offset: 3px;
}
[data-theme="day"] .nav-links > a.nav-fee-link:not(.nav-btn),
[data-theme="day"] .nav-fee-button {
    color: #754600;
    background: #FFF0C2;
    box-shadow: inset 0 0 0 1px #C59A42;
}
[data-theme="day"] .nav-links > a.nav-fee-link:not(.nav-btn):hover,
[data-theme="day"] .nav-fee-button:hover {
    color: #593500;
    background: #FFE3A0;
}

.nav-fee-button { display: none; }

@media (max-width: 1080px) {
    .nav-fee-button { display: inline-flex; }
    .nav-links > a.nav-fee-link:not(.nav-btn) { display: none; }
}

/* Keep both actions and toggles on one row on the narrowest phones. */
@media (max-width: 380px) {
    .nav-container .logo-text { display: none; }
    .nav-container, .nav-menu { gap: 0.3rem; }
    .nav-btn { padding-inline: 0.4rem; }
}

/* ==========================================================================
   17. Custom pointer cursor (fine-pointer desktop only)
   Native hardware CSS SVG cursors — 0ms OS pointer reaction time, zero JS
   event listeners, crisp vector shapes across Night & Day themes, gated
   behind `@media (hover: hover) and (pointer: fine)`:
   - Default: geometric tech arrow pointer (hotspot 4, 3)
   - Interactive links/buttons: pointing hand with gold cuff (hotspot 10, 3)
   - Editable inputs: precision tech I-beam (hotspot 14, 14)
   - Zoomable photos/banners: magnifying glass '+' (hotspot 12, 12)
   - Draggable photo sphere: open grab hand -> closed fist on :active (14, 14)
   - Disabled controls: diagonal not-allowed badge (hotspot 14, 14)
   ========================================================================== */
:root {
    --cursor-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M4 3L4 21L9 16.8L12.2 23.6L14.8 22.4L11.6 15.8L17.8 15.3Z' stroke='%23070E1F' stroke-opacity='0.94' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M4 3L4 21L9 16.8L12.2 23.6L14.8 22.4L11.6 15.8L17.8 15.3Z' fill='%23F5F8FF'/%3E%3Cpath d='M6.8 9.2L10.6 12.8' stroke='%230EA5C6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M8.6 14.5V4.8C8.6 3.7 9.2 3 10 3C10.8 3 11.4 3.7 11.4 4.8V11.4C11.4 10.3 12.1 9.7 12.9 9.7C13.7 9.7 14.3 10.3 14.3 11.3V12.1C14.3 11.1 15 10.5 15.8 10.5C16.6 10.5 17.2 11.1 17.2 12.1V12.9C17.2 12 17.9 11.4 18.6 11.4C19.4 11.4 20 12.1 20 13.1V17.2C20 19.4 18.9 21.2 17.6 22.4H10.1C9.1 21 7.6 19.1 5.6 16.7C4.7 15.7 4.7 14.5 5.6 13.8C6.4 13.2 7.4 13.5 8.6 14.5Z' stroke='%23070E1F' stroke-opacity='0.94' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M8.6 14.5V4.8C8.6 3.7 9.2 3 10 3C10.8 3 11.4 3.7 11.4 4.8V11.4C11.4 10.3 12.1 9.7 12.9 9.7C13.7 9.7 14.3 10.3 14.3 11.3V12.1C14.3 11.1 15 10.5 15.8 10.5C16.6 10.5 17.2 11.1 17.2 12.1V12.9C17.2 12 17.9 11.4 18.6 11.4C19.4 11.4 20 12.1 20 13.1V17.2C20 19.4 18.9 21.2 17.6 22.4H10.1C9.1 21 7.6 19.1 5.6 16.7C4.7 15.7 4.7 14.5 5.6 13.8C6.4 13.2 7.4 13.5 8.6 14.5Z' fill='%23FFF9EC'/%3E%3Cpath d='M11.4 11.4V14M14.3 12.1V14.4M17.2 12.9V14.8' stroke='%23070E1F' stroke-opacity='0.36' stroke-width='1.1' stroke-linecap='round'/%3E%3Cpath d='M10.7 20.4H17.1' stroke='%23E69C12' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
    --cursor-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M10.5 5.5H17.5M14 5.5V22.5M10.5 22.5H17.5M12.2 14H15.8' stroke='%23070E1F' stroke-opacity='0.94' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M10.5 5.5H17.5M14 5.5V22.5M10.5 22.5H17.5M12.2 14H15.8' stroke='%235CE6F5' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    --cursor-zoom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Ccircle cx='12' cy='12' r='6.5' fill='%2335D8EC' fill-opacity='0.16'/%3E%3Ccircle cx='12' cy='12' r='6.5' stroke='%23070E1F' stroke-opacity='0.94' stroke-width='3.4'/%3E%3Cpath d='M16.8 16.8L22.8 22.8M9.4 12H14.6M12 9.4V14.6' stroke='%23070E1F' stroke-opacity='0.94' stroke-width='3.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='12' r='6.5' stroke='%23F5F8FF' stroke-width='1.7'/%3E%3Cpath d='M16.8 16.8L22.8 22.8' stroke='%23F5F8FF' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M9.4 12H14.6M12 9.4V14.6' stroke='%2335D8EC' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    --cursor-grab: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M8.6 15.2V8.3C8.6 7.4 9.2 6.8 9.9 6.8C10.6 6.8 11.2 7.4 11.2 8.3V12.6V6.5C11.2 5.6 11.8 5 12.6 5C13.4 5 14 5.6 14 6.5V12.4V7.2C14 6.3 14.6 5.7 15.4 5.7C16.2 5.7 16.8 6.3 16.8 7.2V12.9V9.4C16.8 8.5 17.4 7.9 18.1 7.9C18.9 7.9 19.5 8.5 19.5 9.4V17.2C19.5 19.7 18.1 21.6 16.6 22.5H10.4C9.3 21.1 7.8 19.1 5.9 16.8C5.1 15.9 5.1 14.8 5.9 14.2C6.6 13.7 7.6 14.1 8.6 15.2Z' stroke='%23070E1F' stroke-opacity='0.94' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M8.6 15.2V8.3C8.6 7.4 9.2 6.8 9.9 6.8C10.6 6.8 11.2 7.4 11.2 8.3V12.6V6.5C11.2 5.6 11.8 5 12.6 5C13.4 5 14 5.6 14 6.5V12.4V7.2C14 6.3 14.6 5.7 15.4 5.7C16.2 5.7 16.8 6.3 16.8 7.2V12.9V9.4C16.8 8.5 17.4 7.9 18.1 7.9C18.9 7.9 19.5 8.5 19.5 9.4V17.2C19.5 19.7 18.1 21.6 16.6 22.5H10.4C9.3 21.1 7.8 19.1 5.9 16.8C5.1 15.9 5.1 14.8 5.9 14.2C6.6 13.7 7.6 14.1 8.6 15.2Z' fill='%23EEF5FF'/%3E%3Cpath d='M11.2 12.4V14.4M14 12.2V14.4M16.8 12.7V14.6' stroke='%23070E1F' stroke-opacity='0.36' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E");
    --cursor-grabbing: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M8.8 15V12.2C8.8 11.2 9.5 10.6 10.3 10.6C11.1 10.6 11.6 11.1 11.6 12C11.6 10.9 12.3 10.2 13.1 10.2C13.9 10.2 14.5 10.8 14.5 11.8C14.5 10.8 15.2 10.2 16 10.2C16.8 10.2 17.4 10.8 17.4 11.8C17.4 11.1 18.1 10.6 18.8 10.6C19.6 10.6 20.2 11.3 20.2 12.3V17.4C20.2 19.7 18.8 21.5 17.3 22.3H10.5C9.3 20.9 7.8 19.2 6.8 17.2C6.2 16 6.6 14.9 7.5 14.6C8 14.4 8.4 14.6 8.8 15Z' stroke='%23070E1F' stroke-opacity='0.94' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M8.8 15V12.2C8.8 11.2 9.5 10.6 10.3 10.6C11.1 10.6 11.6 11.1 11.6 12C11.6 10.9 12.3 10.2 13.1 10.2C13.9 10.2 14.5 10.8 14.5 11.8C14.5 10.8 15.2 10.2 16 10.2C16.8 10.2 17.4 10.8 17.4 11.8C17.4 11.1 18.1 10.6 18.8 10.6C19.6 10.6 20.2 11.3 20.2 12.3V17.4C20.2 19.7 18.8 21.5 17.3 22.3H10.5C9.3 20.9 7.8 19.2 6.8 17.2C6.2 16 6.6 14.9 7.5 14.6C8 14.4 8.4 14.6 8.8 15Z' fill='%23EEF5FF'/%3E%3Cpath d='M11.6 12V14.5M14.5 11.8V14.5M17.4 11.8V14.5' stroke='%23070E1F' stroke-opacity='0.36' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E");
    --cursor-disabled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Ccircle cx='14' cy='14' r='7.5' stroke='%23070E1F' stroke-opacity='0.94' stroke-width='3.4'/%3E%3Cpath d='M8.7 19.3L19.3 8.7' stroke='%23070E1F' stroke-opacity='0.94' stroke-width='3.4' stroke-linecap='round'/%3E%3Ccircle cx='14' cy='14' r='7.5' stroke='%23FF7B89' stroke-width='1.7'/%3E%3Cpath d='M8.7 19.3L19.3 8.7' stroke='%23FF7B89' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
}

[data-theme="day"] {
    --cursor-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M4 3L4 21L9 16.8L12.2 23.6L14.8 22.4L11.6 15.8L17.8 15.3Z' stroke='%23FFFFFF' stroke-opacity='0.96' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M4 3L4 21L9 16.8L12.2 23.6L14.8 22.4L11.6 15.8L17.8 15.3Z' fill='%230F1D3A'/%3E%3Cpath d='M6.8 9.2L10.6 12.8' stroke='%234F8BFF' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M8.6 14.5V4.8C8.6 3.7 9.2 3 10 3C10.8 3 11.4 3.7 11.4 4.8V11.4C11.4 10.3 12.1 9.7 12.9 9.7C13.7 9.7 14.3 10.3 14.3 11.3V12.1C14.3 11.1 15 10.5 15.8 10.5C16.6 10.5 17.2 11.1 17.2 12.1V12.9C17.2 12 17.9 11.4 18.6 11.4C19.4 11.4 20 12.1 20 13.1V17.2C20 19.4 18.9 21.2 17.6 22.4H10.1C9.1 21 7.6 19.1 5.6 16.7C4.7 15.7 4.7 14.5 5.6 13.8C6.4 13.2 7.4 13.5 8.6 14.5Z' stroke='%23FFFFFF' stroke-opacity='0.96' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M8.6 14.5V4.8C8.6 3.7 9.2 3 10 3C10.8 3 11.4 3.7 11.4 4.8V11.4C11.4 10.3 12.1 9.7 12.9 9.7C13.7 9.7 14.3 10.3 14.3 11.3V12.1C14.3 11.1 15 10.5 15.8 10.5C16.6 10.5 17.2 11.1 17.2 12.1V12.9C17.2 12 17.9 11.4 18.6 11.4C19.4 11.4 20 12.1 20 13.1V17.2C20 19.4 18.9 21.2 17.6 22.4H10.1C9.1 21 7.6 19.1 5.6 16.7C4.7 15.7 4.7 14.5 5.6 13.8C6.4 13.2 7.4 13.5 8.6 14.5Z' fill='%230F1D3A'/%3E%3Cpath d='M11.4 11.4V14M14.3 12.1V14.4M17.2 12.9V14.8' stroke='%23FFFFFF' stroke-opacity='0.34' stroke-width='1.1' stroke-linecap='round'/%3E%3Cpath d='M10.7 20.4H17.1' stroke='%23F7BF4F' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
    --cursor-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M10.5 5.5H17.5M14 5.5V22.5M10.5 22.5H17.5M12.2 14H15.8' stroke='%23FFFFFF' stroke-opacity='0.96' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M10.5 5.5H17.5M14 5.5V22.5M10.5 22.5H17.5M12.2 14H15.8' stroke='%231F56E0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    --cursor-zoom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Ccircle cx='12' cy='12' r='6.5' fill='%231F56E0' fill-opacity='0.16'/%3E%3Ccircle cx='12' cy='12' r='6.5' stroke='%23FFFFFF' stroke-opacity='0.96' stroke-width='3.4'/%3E%3Cpath d='M16.8 16.8L22.8 22.8M9.4 12H14.6M12 9.4V14.6' stroke='%23FFFFFF' stroke-opacity='0.96' stroke-width='3.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='12' r='6.5' stroke='%230F1D3A' stroke-width='1.7'/%3E%3Cpath d='M16.8 16.8L22.8 22.8' stroke='%230F1D3A' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M9.4 12H14.6M12 9.4V14.6' stroke='%231F56E0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    --cursor-grab: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M8.6 15.2V8.3C8.6 7.4 9.2 6.8 9.9 6.8C10.6 6.8 11.2 7.4 11.2 8.3V12.6V6.5C11.2 5.6 11.8 5 12.6 5C13.4 5 14 5.6 14 6.5V12.4V7.2C14 6.3 14.6 5.7 15.4 5.7C16.2 5.7 16.8 6.3 16.8 7.2V12.9V9.4C16.8 8.5 17.4 7.9 18.1 7.9C18.9 7.9 19.5 8.5 19.5 9.4V17.2C19.5 19.7 18.1 21.6 16.6 22.5H10.4C9.3 21.1 7.8 19.1 5.9 16.8C5.1 15.9 5.1 14.8 5.9 14.2C6.6 13.7 7.6 14.1 8.6 15.2Z' stroke='%23FFFFFF' stroke-opacity='0.96' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M8.6 15.2V8.3C8.6 7.4 9.2 6.8 9.9 6.8C10.6 6.8 11.2 7.4 11.2 8.3V12.6V6.5C11.2 5.6 11.8 5 12.6 5C13.4 5 14 5.6 14 6.5V12.4V7.2C14 6.3 14.6 5.7 15.4 5.7C16.2 5.7 16.8 6.3 16.8 7.2V12.9V9.4C16.8 8.5 17.4 7.9 18.1 7.9C18.9 7.9 19.5 8.5 19.5 9.4V17.2C19.5 19.7 18.1 21.6 16.6 22.5H10.4C9.3 21.1 7.8 19.1 5.9 16.8C5.1 15.9 5.1 14.8 5.9 14.2C6.6 13.7 7.6 14.1 8.6 15.2Z' fill='%230F1D3A'/%3E%3Cpath d='M11.2 12.4V14.4M14 12.2V14.4M16.8 12.7V14.6' stroke='%23FFFFFF' stroke-opacity='0.34' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E");
    --cursor-grabbing: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M8.8 15V12.2C8.8 11.2 9.5 10.6 10.3 10.6C11.1 10.6 11.6 11.1 11.6 12C11.6 10.9 12.3 10.2 13.1 10.2C13.9 10.2 14.5 10.8 14.5 11.8C14.5 10.8 15.2 10.2 16 10.2C16.8 10.2 17.4 10.8 17.4 11.8C17.4 11.1 18.1 10.6 18.8 10.6C19.6 10.6 20.2 11.3 20.2 12.3V17.4C20.2 19.7 18.8 21.5 17.3 22.3H10.5C9.3 20.9 7.8 19.2 6.8 17.2C6.2 16 6.6 14.9 7.5 14.6C8 14.4 8.4 14.6 8.8 15Z' stroke='%23FFFFFF' stroke-opacity='0.96' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M8.8 15V12.2C8.8 11.2 9.5 10.6 10.3 10.6C11.1 10.6 11.6 11.1 11.6 12C11.6 10.9 12.3 10.2 13.1 10.2C13.9 10.2 14.5 10.8 14.5 11.8C14.5 10.8 15.2 10.2 16 10.2C16.8 10.2 17.4 10.8 17.4 11.8C17.4 11.1 18.1 10.6 18.8 10.6C19.6 10.6 20.2 11.3 20.2 12.3V17.4C20.2 19.7 18.8 21.5 17.3 22.3H10.5C9.3 20.9 7.8 19.2 6.8 17.2C6.2 16 6.6 14.9 7.5 14.6C8 14.4 8.4 14.6 8.8 15Z' fill='%230F1D3A'/%3E%3Cpath d='M11.6 12V14.5M14.5 11.8V14.5M17.4 11.8V14.5' stroke='%23FFFFFF' stroke-opacity='0.34' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E");
    --cursor-disabled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Ccircle cx='14' cy='14' r='7.5' stroke='%23FFFFFF' stroke-opacity='0.96' stroke-width='3.4'/%3E%3Cpath d='M8.7 19.3L19.3 8.7' stroke='%23FFFFFF' stroke-opacity='0.96' stroke-width='3.4' stroke-linecap='round'/%3E%3Ccircle cx='14' cy='14' r='7.5' stroke='%23C82333' stroke-width='1.7'/%3E%3Cpath d='M8.7 19.3L19.3 8.7' stroke='%23C82333' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
}

@media (hover: hover) and (pointer: fine) {
    html {
        cursor: var(--cursor-arrow) 4 3, auto;
    }

    html .sphere-stage {
        cursor: var(--cursor-grab) 14 14, grab;
    }

    html .sphere-stage:active {
        cursor: var(--cursor-grabbing) 14 14, grabbing;
    }

    html :is(
        a[href],
        button,
        [role="button"],
        select,
        summary,
        label[for],
        .notice-card,
        .sphere-photo,
        .reviews-strip,
        .fee-theme,
        input[type="checkbox"],
        input[type="radio"],
        input[type="submit"],
        input[type="button"],
        input[type="reset"],
        input[type="file"]
    ) {
        cursor: var(--cursor-pointer) 10 3, pointer;
    }

    html :is(
        textarea,
        [contenteditable="true"],
        [contenteditable=""],
        input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"])
    ) {
        cursor: var(--cursor-text) 14 14, text;
    }

    html :is(.gallery-item, .topper-ad) {
        cursor: var(--cursor-zoom) 12 12, zoom-in;
    }

    html :is(
        button:disabled,
        input:disabled,
        select:disabled,
        textarea:disabled,
        [aria-disabled="true"],
        .fee-page button:disabled
    ) {
        cursor: var(--cursor-disabled) 14 14, not-allowed;
    }
}

@media print {
    html,
    html * {
        cursor: auto !important;
    }
}

