/* ============================================================
   Learn With Saurab — Design System v5
   Clean, white, Claude-inspired theme: warm terracotta accent on a
   near-white/cream neutral base. Solid fills over gradients, generous
   whitespace, quiet borders and shadows instead of glassy pink glow.
   ============================================================ */

:root {
    --brand: #C15F3C;          /* warm terracotta — sole accent color */
    --brand-2: #D97757;        /* lighter terracotta, hover/secondary */
    --brand-dark: #9A4A2E;     /* deeper terracotta for text-on-light */
    --brand-darker: #742F1C;
    --brand-light: rgba(193, 95, 60, 0.10);
    --brand-border: rgba(193, 95, 60, 0.28);
    --brand-ink: #1f1b17;      /* dark anchor used for the footer */

    /* Secondary accent — a quiet warm charcoal used sparingly for
       decorative variety, replacing the old pink/rose accent. Never
       used for primary CTAs; the brand terracotta owns those. */
    --violet: #3f3a34;
    --cyan: #a8a29e;

    /* Solid fills everywhere — "gradient" variables now resolve flat so
       every existing consumer (buttons, badges, icons) reads as one
       consistent solid brand color instead of a gradient blend. */
    --grad: var(--brand);
    --grad-soft: var(--brand-light);

    /* Backwards-compatible aliases used across templates */
    --udemy-purple: var(--brand);
    --udemy-purple-dark: var(--brand-dark);
    --udemy-dark: #1f1b17;
    --accent-grad: var(--grad);
    --nav-glass: rgba(255, 255, 255, 0.86);

    --ink: #1f1b17;
    --ink-soft: #58524a;
    --ink-faint: #a19a90;
    --surface: #ffffff;
    --surface-alt: #faf9f7;
    --surface-2: #f3f1ec;
    --surface-glass: rgba(255, 255, 255, 0.7);
    --border: rgba(31, 27, 23, 0.08);
    --border-strong: rgba(31, 27, 23, 0.14);

    /* Dedicated footer palette — footer stays dark for contrast on a light site */
    --footer-bg: #1f1b17;
    --footer-border: rgba(255, 255, 255, 0.10);
    --footer-glass: rgba(255, 255, 255, 0.05);
    --footer-ink: #f2ede8;
    --footer-ink-soft: #c9c1b8;
    --footer-ink-faint: #8f857a;

    /* Ledger-blue — a muted ruled-paper blue used sparingly for structural
       rules/dividers, nodding to the blue feint lines on accounting ledger
       paper without competing with the terracotta "ink" accent. */
    --ledger-blue: #5b7a9d;
    --ledger-blue-soft: rgba(91, 122, 157, 0.14);

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 10px rgba(31, 27, 23, 0.06);
    --shadow: 0 10px 28px rgba(31, 27, 23, 0.08);
    --shadow-lg: 0 22px 54px rgba(31, 27, 23, 0.12);
    --glow: 0 0 0 1px rgba(193, 95, 60, 0.20), 0 8px 26px rgba(193, 95, 60, 0.14);

    /* Type system: a classic serif for display/headings (textbook voice),
       the existing grotesque for UI/body copy, and a mono face reserved
       for ledger-style tabular figures (stats, prices, timers). */
    --font-display: "Spectral", Georgia, "Times New Roman", serif;
    --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Utilize more of the viewport on large screens instead of a narrow container */
@media (min-width: 1400px) {
    .container { max-width: 1360px; }
}
@media (min-width: 1600px) {
    .container { max-width: 1520px; }
}

* { font-family: var(--font-body); }

/* Display serif — reserved for headings so the page reads "textbook classic"
   at a glance while every UI/body element stays on the modern grotesque. */
h1, h2, h3, h4,
.font-display,
.navbar-brand-text,
.hero-title-accent,
.gradient-text,
.blog-detail-title,
.blog-feature-body h2,
.footer-heading,
.plan-card .plan-name {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}
h5, h6 { letter-spacing: -0.005em; }

/* Ledger-mono — tabular, monospaced figures for numbers that should read
   like entries in an accounting ledger (stats, prices, countdowns). */
.font-mono,
.counter-value,
.plan-price,
.exam-timer,
.stat-badge-card h3,
.chart-illustration text {
    font-family: var(--font-mono) !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

html { scroll-behavior: smooth; height: 100%; }
html.is-loading { overflow: hidden; }

body {
    background-color: var(--surface-alt);
    color: var(--ink);
    background-image:
        radial-gradient(ellipse 900px 600px at 12% -10%, rgba(193, 95, 60, 0.07), transparent 60%),
        radial-gradient(ellipse 900px 700px at 100% 10%, rgba(31, 27, 23, 0.03), transparent 55%);
    background-attachment: fixed;
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); }

::selection { background: var(--brand-border); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; border: 2px solid var(--surface-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-dark); }

h1, h2, h3, h4, h5, h6 { color: var(--ink); }
.text-dark { color: var(--ink) !important; }
.text-secondary { color: var(--ink-soft) !important; }
.text-muted { color: var(--ink-faint) !important; }
.text-white-50 { color: rgba(255,255,255,0.55) !important; }
hr { border-color: var(--border); opacity: 1; }

/* ---------- Gradient text / utility color classes ---------- */
.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-purple { color: var(--brand-2) !important; }
.bg-purple {
    --bs-bg-opacity: 1;
    /* rgba (not a flat hex) so Bootstrap's .bg-opacity-10/25/50 utilities can
       actually lighten this into a soft tint instead of staying full-strength
       and swallowing same-color icons/text placed on top of it. */
    background-color: rgba(193, 95, 60, var(--bs-bg-opacity)) !important;
    color: #fff;
}
.bg-purple-subtle {
    background-color: var(--brand-light) !important;
}
.bg-white { background-color: var(--surface) !important; color: var(--ink); }
.bg-light { background-color: var(--surface-2) !important; color: var(--ink); }
.bg-info { background-color: rgba(14,165,233,0.12) !important; color: #0369a1 !important; }
.btn-purple {
    background: var(--grad);
    border: 1px solid transparent;
    color: #fff;
    position: relative;
    transition: filter .2s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-purple:hover, .btn-purple:focus {
    /* Explicit background required: Bootstrap's own .btn:hover rule sets
       background-color: var(--bs-btn-hover-bg), which is undefined for a
       custom (non-variant) button class and resolves to transparent —
       without this, the button (and its white label) vanish on hover. */
    background: linear-gradient(135deg, var(--brand-2), var(--brand-dark));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(193, 95, 60, 0.32);
}
.btn-outline-purple { border: 1.5px solid var(--brand-border); color: var(--brand-2); background: transparent; transition: .2s; }
.btn-outline-purple:hover { background: var(--brand-light); color: var(--brand-2); border-color: var(--brand); }
.btn-white { background: var(--surface); border: 1px solid var(--border); color: var(--ink); transition: .2s; }
.btn-white:hover { background: var(--surface-2); color: var(--ink); border-color: var(--border-strong); }
.btn-outline-dark, .btn-outline-light, .btn-outline-secondary, .btn-outline-danger {
    color: var(--ink-soft); border-color: var(--border);
}
.btn-outline-dark:hover, .btn-outline-light:hover, .btn-outline-secondary:hover {
    background: var(--surface-2); color: var(--ink); border-color: var(--border-strong);
}
.btn-warning { color: #1c1917; }
.border-purple { border-color: var(--brand) !important; }
.border-dark { border-color: var(--border) !important; }
.max-width-600 { max-width: 600px; }
.min-vh-50 { min-height: 50vh; }

/* Glass card */
.glass-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
}

/* Generic bootstrap surfaces re-themed */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink);
}
.card-img-wrapper { background: var(--surface-2); }
.card-img-wrapper::after,
.course-mini-card .ratio::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 46%;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0));
    pointer-events: none;
    z-index: 1;
}
.card-img-wrapper .badge-price,
.course-mini-card .ratio .badge {
    z-index: 2;
}
.list-group-item { background: var(--surface); border-color: var(--border); color: var(--ink-soft); }
.form-control, .form-select {
    background: var(--surface);
    border-color: var(--border);
    color: var(--ink);
}
.form-control::placeholder { color: var(--ink-faint); }
.form-control:disabled { background: var(--surface-2); }
.input-group-text { border-color: var(--border); background: var(--surface-2); color: var(--ink-soft); }
.modal-content { background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
.dropdown-menu { background: var(--surface); }
.accordion-item { border-color: var(--border) !important; }
.accordion-button { color: var(--ink) !important; }
.accordion-button:not(.collapsed) { color: var(--brand-2) !important; background: var(--brand-light); }
.alert-success { background: rgba(34,197,94,0.10); color: #15803d; border-color: rgba(34,197,94,0.3); }
.alert-danger { background: rgba(239,68,68,0.10); color: #b91c1c; border-color: rgba(239,68,68,0.3); }
.alert-warning { background: rgba(250,204,21,0.14); color: #92400e; border-color: rgba(250,204,21,0.3); }
.badge-price { background: var(--grad) !important; color: #fff; }

/* ---------- Preloader ---------- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.2rem;
    transition: opacity .55s ease, visibility .55s ease;
}
#preloader.preloader-hide { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-orb {
    position: relative;
    width: 96px; height: 96px;
    display: flex; align-items: center; justify-content: center;
}
.preloader-orb::before, .preloader-orb::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}
.preloader-orb::before {
    border-top-color: var(--brand);
    border-right-color: var(--brand-2);
    animation: spin 1.1s linear infinite;
}
.preloader-orb::after {
    inset: 14px;
    border-bottom-color: var(--violet);
    border-left-color: var(--cyan);
    animation: spin 1.6s linear infinite reverse;
}
.preloader-mark {
    width: 34px; height: 34px;
    color: var(--brand-2);
    animation: pulseScale 1.4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseScale { 0%, 100% { transform: scale(0.9); opacity: 0.75; } 50% { transform: scale(1.08); opacity: 1; } }
.preloader-text {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.preloader-text span { color: var(--brand-2); }
.preloader-bar {
    width: 160px; height: 3px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
}
.preloader-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: var(--grad);
    animation: barSlide 1.1s ease-in-out infinite;
}
@keyframes barSlide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(360%); }
}

body.content-ready main,
body.content-ready .site-footer {
    animation: contentFadeIn .6s ease both;
}
@keyframes contentFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Ambient background blobs (vector illustration, pure CSS) ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    animation: orbFloat 16s ease-in-out infinite;
}
.bg-orb.orb-1 { width: 420px; height: 420px; top: -120px; left: -100px; background: var(--brand); animation-duration: 18s; }
.bg-orb.orb-2 { width: 380px; height: 380px; top: 30%; right: -140px; background: var(--violet); animation-duration: 22s; animation-delay: -4s; }
.bg-orb.orb-3 { width: 320px; height: 320px; bottom: -100px; left: 20%; background: var(--cyan); opacity: 0.18; animation-duration: 20s; animation-delay: -8s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, 30px) scale(1.08); }
    66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* ---------- Pinned notice strip ---------- */
#pinned-strip {
    background: linear-gradient(90deg, var(--brand-darker), #431407);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
#pinned-strip .pinned-track {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 2.5rem .5rem 1rem;
    min-height: 2.4rem;
}
#pinned-strip .pinned-item {
    display: none;
    align-items: center;
    gap: .5rem;
    animation: fadeSlideIn .5s ease;
}
#pinned-strip .pinned-item.active { display: flex; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
#pinned-strip .pinned-close {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .2s;
}
#pinned-strip .pinned-close:hover { background: rgba(255,255,255,0.32); }

/* ---------- Navbar (glass, dark) ---------- */
.navbar-premium {
    background: var(--nav-glass) !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s ease, background .25s ease, padding .25s ease;
    padding-top: .7rem; padding-bottom: .7rem;
}
.navbar-premium.scrolled { box-shadow: var(--shadow); padding-top: .4rem; padding-bottom: .4rem; }

.navbar-premium .navbar-brand {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--ink) !important;
    transition: transform .2s ease;
    min-width: 0; /* allow the flex item to shrink instead of forcing the toggler to wrap */
}
.navbar-premium .navbar-brand:hover { transform: scale(1.02); }
.navbar-brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}
@media (max-width: 420px) {
    .navbar-brand-text { max-width: 120px; }
}
.brand-mark {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px;
    background: var(--grad);
    box-shadow: 0 4px 14px rgba(193, 95, 60,0.35);
}
.brand-mark svg { width: 19px; height: 19px; }

.navbar-premium .nav-link {
    position: relative;
    font-weight: 600;
    color: var(--ink-soft) !important;
    padding: .5rem .9rem !important;
    transition: color .2s ease;
}
.navbar-premium .nav-link::after {
    content: "";
    position: absolute;
    left: .9rem; right: .9rem; bottom: .15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.navbar-premium .nav-link:hover { color: var(--ink) !important; }
.navbar-premium .nav-link:hover::after,
.navbar-premium .nav-link.active::after { transform: scaleX(1); }

.navbar-premium .dropdown-menu {
    border: 1px solid var(--border);
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: dropIn .18s ease;
    padding: .5rem;
}
.navbar-premium .dropdown-menu .dropdown-item { color: var(--ink-soft); border-radius: 10px; padding: .55rem .75rem; }
.navbar-premium .dropdown-menu .dropdown-item:hover { background: var(--brand-light); color: var(--brand-2); }
.navbar-premium .dropdown-menu .dropdown-divider { border-color: var(--border); }
.navbar-premium .dropdown-item-text { color: var(--ink-faint); }
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bell notification pulse */
.bell-btn { position: relative; color: var(--ink-soft) !important; }
.bell-dot {
    position: absolute; top: 2px; right: 2px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 rgba(193, 95, 60,0.55);
    animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(193, 95, 60,0.5); }
    70% { box-shadow: 0 0 0 7px rgba(193, 95, 60,0); }
    100% { box-shadow: 0 0 0 0 rgba(193, 95, 60,0); }
}

/* ---------- Navbar utility cluster (notices + YouTube icon buttons) ---------- */
.navbar-utility-cluster { display: flex; align-items: center; gap: .25rem; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    font-size: 1.05rem;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); transform: translateY(-1px); }
.icon-btn-youtube:hover { background: rgba(220, 38, 38, 0.10); color: #dc2626; }

.navbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-strong);
    margin: 0 .35rem;
}

/* Account dropdown — replaces the old scattered greeting/dashboard/logout
   trio with one consolidated control, matching the utility icon sizing. */
.account-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: .3rem .7rem .3rem .3rem;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.85rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.account-toggle:hover, .account-toggle[aria-expanded="true"] {
    border-color: var(--brand-border);
    box-shadow: 0 0 0 3px var(--brand-light);
}
.account-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 800;
    flex-shrink: 0;
}
.account-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { font-size: 0.65rem; color: var(--ink-faint); transition: transform .18s ease; }
.account-toggle[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }

.navbar-toggler { border: none !important; box-shadow: none !important; }
.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    display: inline-block;
    width: 22px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%; height: 2px;
    background: var(--ink);
    border-radius: 2px;
}
.navbar-toggler-icon::before { top: -7px; }
.navbar-toggler-icon::after { top: 7px; }

@media (max-width: 991.98px) {
    .navbar-premium .navbar-collapse {
        background: #ffffff;
        border-radius: var(--radius);
        margin-top: .75rem;
        padding: 1rem;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .navbar-premium .nav-link::after { display: none; }
}

/* ---------- Footer (advanced — intentionally stays dark for contrast on a light site) ---------- */
footer.site-footer {
    background:
        radial-gradient(ellipse 700px 400px at 15% 0%, rgba(193, 95, 60,0.16), transparent 60%),
        radial-gradient(ellipse 600px 400px at 100% 20%, rgba(236,72,153,0.12), transparent 60%),
        var(--footer-bg);
    color: var(--footer-ink-soft);
    border-top: 1px solid var(--footer-border);
    position: relative;
    overflow: hidden;
}
footer.site-footer h5, footer.site-footer h6 { color: #fff; }
footer.site-footer a { color: var(--footer-ink-soft); text-decoration: none; transition: color .15s ease, padding-left .15s ease; }
footer.site-footer a:hover { color: var(--brand-2); padding-left: 2px; }
footer.site-footer .social-icon {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--footer-glass);
    border: 1px solid var(--footer-border);
    color: #fff;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
footer.site-footer .social-icon:hover { background: var(--grad); color: #fff; transform: translateY(-3px); border-color: transparent; }

.footer-brand-mark { width: 42px; height: 42px; border-radius: 13px; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(193, 95, 60,0.3); }
.footer-brand-mark svg { width: 22px; height: 22px; }

.footer-heading {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
    margin-bottom: 1.1rem;
}

.newsletter-box {
    background: var(--footer-glass);
    border: 1px solid var(--footer-border);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input {
    flex: 1 1 200px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--footer-border);
    border-radius: 999px;
    padding: .65rem 1.1rem;
    color: #fff;
    outline: none;
    transition: border-color .2s ease;
}
.newsletter-form input:focus { border-color: var(--brand); }
.newsletter-form input::placeholder { color: var(--footer-ink-faint); }

.footer-bottom-bar {
    border-top: 1px solid var(--footer-border);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}
.footer-payment-badges { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.footer-payment-badges span {
    font-size: 0.68rem; font-weight: 700; letter-spacing: .03em;
    padding: .3rem .7rem; border-radius: 999px;
    background: var(--footer-glass); border: 1px solid var(--footer-border); color: var(--footer-ink-faint);
}

/* ---------- Generic sections ---------- */
.stat-badge-card {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    backdrop-filter: blur(10px);
}
.stat-badge-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand-border); }

/* Bootstrap's .ratio > * rule force-stretches every direct child of a
   .ratio box to fill it (100% width/height) — needed for the video/image,
   but it also swallows an absolutely-positioned badge placed alongside it.
   Reset the badge back to its natural size so it reads as a small pill
   instead of covering the whole thumbnail. */
.ratio > .ratio-badge { width: auto; height: auto; inset: auto; top: 0; right: 0; }

.course-mini-card, .course-card { transition: transform .25s ease, box-shadow .25s ease; }
.course-mini-card:hover, .course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--brand-border) !important;
}

.testimonial-card {
    border-radius: var(--radius);
    background: var(--surface-glass);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
    backdrop-filter: blur(10px);
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.timeline-step { position: relative; padding-left: 2.5rem; }
.timeline-step::before {
    content: '';
    position: absolute;
    left: 12px; top: 32px; bottom: -24px; width: 2px;
    background: var(--grad);
    opacity: 0.25;
}
.timeline-step:last-child::before { display: none; }
.timeline-number {
    position: absolute; left: 0; top: 0;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--grad); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: bold;
    box-shadow: 0 4px 14px rgba(193, 95, 60,0.3);
}

.badge-pulse { animation: badgeGlow 2.4s ease-in-out infinite; }
@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(193, 95, 60,0.30); }
    50% { box-shadow: 0 0 0 6px rgba(193, 95, 60,0); }
}

.video-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }

.hero-title-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero panel + ambient illustration (no flat wave dividers anymore) ---------- */
.hero-panel {
    background: transparent;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}
.hero-panel > .container { position: relative; z-index: 1; }

.hero-edu-mark {
    position: absolute;
    pointer-events: none;
    opacity: 0.12;
    z-index: 0;
    color: var(--brand);
    animation: floatSlow 9s ease-in-out infinite;
}
.hero-edu-mark.mark-2 { color: var(--violet); animation-duration: 12s; animation-delay: -3s; }
.hero-edu-mark.mark-1 { top: -30px; right: -30px; width: 260px; height: 260px; transform: rotate(8deg); }
.hero-edu-mark.mark-2 { bottom: 10px; left: -50px; width: 180px; height: 180px; transform: rotate(-12deg); }
@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-18px) rotate(var(--r, 0deg)); }
}

.wave-panel {
    background: var(--surface-glass);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    padding: 5rem 0;
    margin: 0 0 3rem;
}
.wave-panel .wave-divider { display: none; }

.notice-mini-card {
    border-radius: var(--radius);
    background: var(--surface-glass);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.notice-mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.notice-mini-card .notice-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--brand-light); color: var(--brand-2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.wave-divider { display: none; }

/* ---------- Notice bell count badge ---------- */
.bell-count-badge {
    position: absolute; top: -4px; right: -6px;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 0.65rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--surface-alt);
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 1040;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    transition: transform .2s ease, box-shadow .2s ease;
    animation: whatsappFloat 3s ease-in-out infinite;
}
@keyframes whatsappFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5); animation-play-state: paused; }
.whatsapp-float svg { width: 28px; height: 28px; }
@media (max-width: 575.98px) {
    .whatsapp-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
    .whatsapp-float svg { width: 25px; height: 25px; }
}

/* ---------- Blog ---------- */
.blog-cover-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-light), var(--surface-2));
    color: var(--brand-2);
    font-size: 2.2rem;
}
.blog-feature-card {
    display: flex;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.blog-feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-feature-media {
    flex: 1 1 420px;
    min-height: 280px;
    position: relative;
    background: var(--surface-2);
}
.blog-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-feature-body {
    flex: 1 1 380px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-feature-body h2 { font-size: 1.6rem; line-height: 1.25; }
.blog-read-link {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--brand-2);
    font-weight: 700;
    font-size: 0.9rem;
}
.blog-feature-card:hover .blog-read-link { color: var(--brand); gap: .6rem; }
.blog-read-link i { transition: transform .2s ease; }
.blog-feature-card:hover .blog-read-link i { transform: translateX(3px); }

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--ink-faint);
    font-weight: 600;
}
.blog-meta i { color: var(--brand-2); margin-right: .3rem; }

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-border); }
.blog-card-media { aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.05); }
.blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }

@media (max-width: 767.98px) {
    .blog-feature-media { min-height: 200px; }
    .blog-feature-body { padding: 1.75rem; }
}

.blog-back-link {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color .15s ease, gap .15s ease;
}
.blog-back-link:hover { color: var(--brand-2); gap: .6rem; }
.blog-detail-title { font-size: 2.1rem; line-height: 1.2; }
.blog-detail-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-height: 420px;
}
.blog-detail-cover img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
@media (max-width: 575.98px) {
    .blog-detail-title { font-size: 1.6rem; }
}

/* ---------- Rich text (CKEditor output) prose styling ----------
   Used for blog posts, course descriptions, about-page copy, and
   question-bank text — anywhere admin-authored HTML is rendered raw.
   Without this, headings/lists/quotes/images fall back to bare UA
   defaults and read as unstyled and cramped. */
.course-rich-text > *:first-child { margin-top: 0; }
.course-rich-text > *:last-child { margin-bottom: 0; }
.course-rich-text h1, .course-rich-text h2, .course-rich-text h3,
.course-rich-text h4, .course-rich-text h5, .course-rich-text h6 {
    font-weight: 800;
    color: var(--ink);
    margin: 1.8em 0 0.7em;
    line-height: 1.3;
}
.course-rich-text h1 { font-size: 1.7em; }
.course-rich-text h2 { font-size: 1.42em; }
.course-rich-text h3 { font-size: 1.2em; }
.course-rich-text h4 { font-size: 1.05em; }
.course-rich-text p { margin: 0 0 1.15em; }
.course-rich-text ul, .course-rich-text ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.course-rich-text li { margin-bottom: 0.45em; }
.course-rich-text li::marker { color: var(--brand-2); }
.course-rich-text a { color: var(--brand-2); text-decoration: underline; text-decoration-color: var(--brand-border); text-underline-offset: 2px; }
.course-rich-text a:hover { color: var(--brand); }
.course-rich-text strong, .course-rich-text b { color: var(--ink); font-weight: 700; }
.course-rich-text blockquote {
    margin: 1.6em 0;
    padding: 0.9em 1.4em;
    border-left: 3px solid var(--brand);
    background: var(--brand-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--ink-soft);
}
.course-rich-text blockquote p:last-child { margin-bottom: 0; }
.course-rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.4em 0;
    box-shadow: var(--shadow-sm);
}
.course-rich-text hr { margin: 2em 0; }
.course-rich-text code {
    background: var(--surface-2);
    color: var(--brand-dark);
    padding: 0.15em 0.4em;
    border-radius: 5px;
    font-size: 0.9em;
}
.course-rich-text pre {
    background: var(--brand-ink);
    color: #f2ede8;
    padding: 1.1em 1.3em;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 1.4em 0;
}
.course-rich-text pre code { background: none; color: inherit; padding: 0; }
.course-rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 0.95em;
}
.course-rich-text th, .course-rich-text td {
    border: 1px solid var(--border);
    padding: 0.6em 0.9em;
    text-align: left;
}
.course-rich-text th { background: var(--surface-2); font-weight: 700; }

/* ---------- Section eyebrow label ---------- */
.section-eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--brand-2);
    background: var(--brand-light);
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    padding: .3rem .8rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ---------- Stamp badge — signature element ----------
   A rubber-ink-stamp motif (rotated, double ring, dashed inner border)
   standing in for "verified / official" markers — a nod to the stamped
   seals on Nepali academic certificates and ledgers, reused for trust
   badges, bestseller tags and verification chips across the site. */
.stamp-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    position: relative;
    color: var(--brand-dark);
    background: var(--surface);
    border: 1.5px solid var(--brand);
    border-radius: 999px;
    padding: .38rem .9rem .38rem .7rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    transform: rotate(-2deg);
    box-shadow: 0 3px 0 0 rgba(193, 95, 60, 0.12);
}
.stamp-badge::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px dashed var(--brand-border);
    border-radius: 999px;
    pointer-events: none;
}
.stamp-badge i { font-size: 0.85rem; }
.stamp-badge.stamp-ink-blue { color: var(--ledger-blue); border-color: var(--ledger-blue); }
.stamp-badge.stamp-ink-blue::before { border-color: var(--ledger-blue-soft); }
.stamp-badge.stamp-tilt-right { transform: rotate(2deg); }

/* ---------- Ledger rule-lines — ambient texture for hero/wave panels ----------
   Faint horizontal feint lines echo ruled accounting paper; a single
   red-ish vertical "margin rule" nods to the margin line on ledger sheets. */
.ledger-lines {
    position: relative;
    background-image:
        repeating-linear-gradient(
            to bottom,
            rgba(31, 27, 23, 0.05) 0,
            rgba(31, 27, 23, 0.05) 1px,
            transparent 1px,
            transparent 2.75rem
        );
}
.ledger-lines::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 52px;
    width: 1px;
    background: rgba(193, 95, 60, 0.16);
    pointer-events: none;
    display: none;
}
@media (min-width: 992px) {
    .ledger-lines::before { display: block; }
}

.yt-cta-banner {
    background: var(--grad);
    border-radius: var(--radius-lg);
    color: white;
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow);
}
.yt-cta-banner::before {
    content: '\F62C';
    font-family: 'bootstrap-icons';
    position: absolute;
    bottom: -20px; right: 20px;
    font-size: 15rem;
    opacity: 0.12;
    pointer-events: none;
}

/* ---------- Feature / benefit cards (new homepage content) ---------- */
.feature-card {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    height: 100%;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    backdrop-filter: blur(10px);
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--brand-border); box-shadow: var(--shadow); }
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-soft);
    color: var(--brand-2);
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
}

/* Counter / stat number ticking */
.counter-value { font-variant-numeric: tabular-nums; }

/* Marquee subject strip */
.marquee-wrap { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marqueeScroll 28s linear infinite; }
.marquee-track span {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 700; color: var(--ink-faint); white-space: nowrap; font-size: 0.95rem;
}
.marquee-track span i { color: var(--brand); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Blob illustration used in hero/about panels */
.blob-illustration { position: relative; }
.blob-shape {
    position: absolute;
    border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
    background: var(--grad-soft);
    filter: blur(2px);
    animation: blobMorph 10s ease-in-out infinite;
    z-index: 0;
}
@keyframes blobMorph {
    0%, 100% { border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%; }
    50% { border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; }
}

/* ---------- Floating illustration chips (hero decoration) ---------- */
.floating-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .65rem;
    background: rgba(255,255,255,0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .7rem 1rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    z-index: 2;
    animation: chipFloat 5s ease-in-out infinite;
}
.floating-chip .chip-icon {
    width: 38px; height: 38px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad); color: #fff; font-size: 1.05rem; flex-shrink: 0;
}
.floating-chip strong { display: block; font-size: 0.95rem; color: var(--ink); line-height: 1.1; }
.floating-chip span { font-size: 0.7rem; color: var(--ink-faint); font-weight: 600; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Inline SVG chart illustration (animated line/bar draw on reveal) ---------- */
.chart-illustration { width: 100%; height: auto; overflow: visible; }
.chart-illustration .chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-illustration .chart-bar {
    transform-box: fill-box;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.chart-illustration .chart-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1.4s ease;
}
.chart-illustration .chart-dot {
    opacity: 0;
    transform: scale(0);
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity .4s ease, transform .4s ease;
}
[data-aos].reveal-visible .chart-illustration .chart-bar { transform: scaleY(1); }
[data-aos].reveal-visible .chart-illustration .chart-line { stroke-dashoffset: 0; }
[data-aos].reveal-visible .chart-illustration .chart-dot { opacity: 1; transform: scale(1); }
.chart-illustration .chart-bar:nth-of-type(1) { transition-delay: .05s; }
.chart-illustration .chart-bar:nth-of-type(2) { transition-delay: .15s; }
.chart-illustration .chart-bar:nth-of-type(3) { transition-delay: .25s; }
.chart-illustration .chart-bar:nth-of-type(4) { transition-delay: .35s; }
.chart-illustration .chart-bar:nth-of-type(5) { transition-delay: .45s; }
.chart-illustration .chart-bar:nth-of-type(6) { transition-delay: .55s; }

/* ---------- Forms ---------- */
.form-control:focus, .form-select:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 0.2rem rgba(193, 95, 60, 0.15) !important;
    background: var(--surface);
    color: var(--ink);
}

/* ---------- Lightweight scroll-reveal (IntersectionObserver driven) ---------- */
.reveal-init {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal-init.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Accessibility & motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 575.98px) {
    .display-4 { font-size: 2rem; }
    .hero-container, .hero-section { padding: 2.75rem 1.25rem !important; }
    main.container { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .bg-orb { display: none; }
}

/* =====================================================================
   Paywall / Locked-content blur teaser (notes, exams, curriculum rows)
   ===================================================================== */
.locked-wrap { position: relative; }
.locked-blur {
    filter: blur(6px) saturate(0.6);
    user-select: none;
    pointer-events: none;
    max-height: 480px;
    overflow: hidden;
}
.locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.75) 55%);
}
:root[data-theme="dark"] .locked-overlay { background: linear-gradient(180deg, rgba(10,8,6,0.35), rgba(10,8,6,0.8) 55%); }
.locked-card {
    max-width: 380px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem 1.75rem;
}
.locked-card .locked-icon {
    width: 60px; height: 60px; margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad); color: #fff; font-size: 1.6rem;
}
.locked-row {
    opacity: 0.6;
    pointer-events: none;
}

/* =====================================================================
   Subscription plan picker (checkout)
   ===================================================================== */
.plan-card {
    display: block;
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    height: 100%;
}
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.plan-card input[type="radio"] { display: none; }
.plan-card .plan-name { font-weight: 700; color: var(--ink); }
.plan-card .plan-price { font-size: 1.4rem; font-weight: 800; color: var(--brand); }
.plan-card .plan-duration { font-size: 0.8rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; }
.plan-card.selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(193, 95, 60,0.15);
    background: var(--grad-soft);
}
.plan-card .plan-check {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--border-strong);
    display: inline-flex; align-items: center; justify-content: center;
    color: transparent; font-size: 0.75rem;
}
.plan-card.selected .plan-check { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Checkout: payment provider tabs ---------- */
.payment-tab-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.payment-tab-btn:hover { transform: translateY(-1px); border-color: var(--brand-border); }
.payment-tab-btn.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}
.payment-qr-display {
    background: var(--surface-alt);
    border-color: var(--border) !important;
}

/* =====================================================================
   Curriculum accordion (lectures + exams interleaved, Udemy-style)
   ===================================================================== */
.curriculum-row { border-bottom: 1px solid var(--border); }
.curriculum-row .row-icon { width: 30px; text-align: center; flex-shrink: 0; }
.exam-status-pill {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: .28rem .6rem;
    border-radius: 999px;
}
.exam-status-pill.status-not_started { background: var(--surface-alt); color: var(--ink-faint); }
.exam-status-pill.status-in_progress { background: #fef3c7; color: #92400e; }
.exam-status-pill.status-passed { background: #dcfce7; color: #166534; }
.exam-status-pill.status-failed { background: #fee2e2; color: #991b1b; }

/* =====================================================================
   Exam-taking page
   ===================================================================== */
.exam-shell { user-select: none; }
.exam-timer {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 1.15rem;
    padding: .5rem 1rem;
    border-radius: var(--radius);
    background: var(--surface-alt);
    border: 1px solid var(--border);
}
.exam-timer.time-critical { background: #fee2e2; color: #991b1b; border-color: #fca5a5; animation: examTimerPulse 1s ease-in-out infinite; }
@keyframes examTimerPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.exam-option-label {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
    margin-bottom: .6rem;
}
.exam-option-label:hover { border-color: var(--brand-2); }
.exam-option-label.selected { border-color: var(--brand); background: var(--grad-soft); }
.exam-question-nav-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-soft);
}
.exam-question-nav-btn.answered { background: var(--grad-soft); border-color: var(--brand-2); color: var(--brand-dark); }
.exam-question-nav-btn.current { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(193, 95, 60,0.2); }
#examBlurGuard {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--surface); display: none;
    align-items: center; justify-content: center;
    font-weight: 700; color: var(--ink-faint);
}
