/* ==========================================================================
   Teoriklar landing — clean, friendly, professional
   Inspired by teoritentamen.no: navy text, orange CTA, mint success accent,
   neutral grays, photo-rich category cards.
   ========================================================================== */

:root {
    /* Brand CTA — pages that load this file before any inline override get
       the orange. Pages that also inject :root { --primary } from admin
       settings are now also orange because the DB was updated. */
    --primary: #FC5F40;
    --primary-dark: #E04A2A;
    --primary-soft: rgba(252, 95, 64, 0.10);
    --cta: #FC5F40;
    --cta-dark: #E04A2A;
    --cta-soft: rgba(252, 95, 64, 0.10);

    /* Mint success accent (pass / verified). */
    --mint: #66D1B6;
    --mint-deep: #2EA184;
    --mint-soft: rgba(102, 209, 182, 0.14);

    /* Link blue. */
    --link: #216CA0;

    /* Navy / text. */
    --ink: #21303D;
    --ink-2: #2A3845;
    --muted: #505961;
    --faint: #9095A1;
    --on-dark: #ffffff;
    --on-dark-muted: rgba(255, 255, 255, .70);

    /* Surfaces. */
    --bg: #ffffff;
    --bg-soft: #F9F9F9;
    --bg-cool: #F5F7F7;
    --bg-warm: #FBFBFB;

    /* Borders. */
    --line: #ECEEEE;
    --line-strong: #DADBDD;
    --line-cool: #E5E7EB;
    --line-blue: #CBD5E1;

    /* Radii. */
    --r-sm: 6px;
    --r: 10px;
    --r-lg: 14px;
    --r-pill: 999px;

    /* Shadows. */
    --shadow-sm: 0 1px 2px rgba(33, 48, 61, .04);
    --shadow-md: 0 8px 24px rgba(33, 48, 61, .08);
    --shadow-lg: 0 24px 60px rgba(33, 48, 61, .14);
}

/* ========================================================
   Reset / globals
   ======================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink-2);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, Helvetica, Arial, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 700;
    letter-spacing: -0.018em;
    color: var(--ink);
    margin: 0;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--cta); }

/* ========================================================
   Top navigation
   ======================================================== */
.site-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    position: sticky; top: 0; z-index: 50;
}
.site-nav .brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.015em;
}
.site-nav .brand .logo-dot {
    width: 34px; height: 34px;
    background: var(--cta);
    color: #fff;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.site-nav .brand img { max-height: 36px; }

.site-nav .nav-link {
    color: var(--ink-2) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px !important;
    border-radius: var(--r-sm);
    transition: color .15s;
}
.site-nav .nav-link:hover { color: var(--cta) !important; background: transparent; }

.site-nav .navbar-toggler {
    border: 1px solid var(--line-strong);
    padding: 6px 10px;
    border-radius: var(--r-sm);
    background: var(--bg);
}
.site-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(252, 95, 64, .18);
}

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { padding: 12px 0 6px; }
    .site-nav .navbar-nav .nav-link {
        padding: 12px 4px !important;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
    }
    .site-nav .navbar-nav .nav-meta { margin-top: 12px; }
    .site-nav .btn-signin {
        display: inline-flex;
        width: 100%;
        justify-content: center;
    }
}

/* Sign-in button — outline navy */
.btn-signin {
    background: var(--bg);
    color: var(--ink) !important;
    padding: 9px 18px !important;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1.5px solid var(--ink);
    transition: background .15s, color .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-signin:hover {
    background: var(--ink);
    color: #fff !important;
}

/* Lang switcher */
.lang-switcher {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: var(--bg-cool);
    border-radius: var(--r-sm);
    border: 1px solid var(--line-cool);
}
.lang-switcher .lang-link {
    padding: 4px 10px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lang-switcher .lang-link:hover { color: var(--cta); }
.lang-switcher .lang-link.active {
    background: var(--bg);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

/* ========================================================
   Hero — clean centered/asymmetric with bold orange CTA
   ======================================================== */
.hero {
    background:
        radial-gradient(900px 460px at 88% -12%, color-mix(in srgb, var(--cta) 9%, transparent), transparent 70%),
        radial-gradient(720px 420px at -6% 8%, rgba(33, 48, 61, .05), transparent 65%),
        linear-gradient(180deg, var(--bg-cool) 0%, var(--bg) 62%);
    padding: 92px 0 88px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--cta) 55%, transparent) 0 26px, transparent 26px 52px);
    opacity: .5;
    pointer-events: none;
}

.hero .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mint-soft);
    color: var(--mint-deep);
    border: 1px solid color-mix(in srgb, var(--mint) 40%, transparent);
    padding: 5px 12px;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 12.5px;
    margin-bottom: 22px;
}
.hero .badge-pill i { color: var(--mint-deep); }

.hero h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.06;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: var(--ink);
    max-width: 700px;
}
.hero h1 .accent {
    color: var(--cta);
    font-style: normal;
    font-weight: 800;
    position: relative;
    white-space: nowrap;
}
.hero h1 .accent::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 8px;
    background: color-mix(in srgb, var(--cta) 28%, transparent);
    border-radius: 8px;
    z-index: -1;
}

.hero p.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* CTA row: primary + ghost secondary */
.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.hero .btn-primary-cta {
    background: var(--cta);
    color: #fff;
    padding: 15px 30px;
    border-radius: var(--r);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--cta);
    transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 6px 18px rgba(252, 95, 64, .28);
}
.hero .btn-primary-cta:hover {
    background: var(--cta-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(252, 95, 64, .36);
}
.hero .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 26px;
    border-radius: var(--r);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line-strong);
    transition: border-color .15s, color .15s, transform .15s;
}
.hero .btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.hero .btn-ghost i { color: var(--cta); }

/* Inline reassurance row under the CTAs */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust i { color: var(--mint-deep); font-size: 1rem; }

/* Hero visual — photo card with depth + floating klasse chips */
.hero .hero-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-lg);
    overflow: visible;
    background: var(--bg-cool);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}
.hero .hero-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--r-lg);
}
.hero .hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(33, 48, 61, 0) 55%, rgba(33, 48, 61, .42) 100%);
    pointer-events: none;
}
/* Floating licence-class chips around the photo */
.hero .klasse-floats { display: block; }
.hero .klasse-float {
    position: absolute;
    z-index: 4;
    background: #fff;
    color: var(--ink);
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 10px 26px rgba(33,48,61,.22);
    border: 1px solid var(--line);
}
.hero .klasse-float.k-a  { top: -16px; left: 22px; }
.hero .klasse-float.k-b  { top: 40%; left: -18px; background: var(--ink); color: #fff; border-color: var(--ink); }
.hero .klasse-float.k-ce { top: 16px; right: -16px; }
@media (max-width: 1199.98px) {
    .hero .klasse-float.k-b  { left: -10px; }
    .hero .klasse-float.k-ce { right: -8px; }
}

/* Hero info card — clean white pinned bottom-right */
.hero-stats-card {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 14px 18px;
    box-shadow: 0 10px 30px rgba(33, 48, 61, .25);
    min-width: 248px;
}
.hero-stats-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .68rem;
    font-weight: 700;
    color: var(--cta);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.hero-stats-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.hero-stat { text-align: left; }
.hero-stat-num {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.02em;
}
.hero-stat-label {
    font-size: .68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 5px;
    font-weight: 500;
}

/* ========================================================
   Trust / rating strip — social proof under hero
   ======================================================== */
.trust-strip {
    background: var(--bg-cool);
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
}
.trust-strip-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    text-align: center;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
}
.trust-item .stars {
    color: var(--cta);
    font-size: 0.95rem;
    letter-spacing: 1px;
}
.trust-item strong { color: var(--ink); font-weight: 700; }
.trust-divider {
    width: 1px;
    height: 22px;
    background: var(--line-strong);
}
@media (max-width: 575.98px) {
    .trust-divider { display: none; }
}

/* ========================================================
   Section base + heading
   ======================================================== */
.section {
    padding: 84px 0;
    background: var(--bg);
}
.section h2 {
    font-size: clamp(1.8rem, 2.8vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--ink);
    letter-spacing: -0.025em;
}

/* Eyebrow label above a section heading */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cta);
    margin-bottom: 12px;
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--cta);
    border-radius: 2px;
}

.section-head {
    text-align: center;
    margin: 0 auto 48px;
    max-width: 680px;
}
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 10px; }
.section-head .section-sub {
    font-size: 1.02rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.section > .container > h2:first-child {
    margin-bottom: 40px;
}

/* ========================================================
   Category cards — photo-led
   ======================================================== */
.cat-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    height: 100%;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.cat-card:hover {
    border-color: color-mix(in srgb, var(--cta) 45%, transparent);
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(33, 48, 61, .14);
}

/* Image area at the top of the card */
.cat-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-cool);
}
.cat-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}
.cat-card:hover .cat-card-media img {
    transform: scale(1.035);
}
.cat-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(33, 48, 61, 0) 55%, rgba(33, 48, 61, .42) 100%);
    pointer-events: none;
}
.cat-card-media .klasse-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    margin: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    background: rgba(33, 48, 61, .88);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Card body below the image */
.cat-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.cat-card-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--cta-soft);
    color: var(--cta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.cat-card h3 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--ink);
}
.cat-card .cat-tag {
    font-size: .92rem;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.55;
}
.cat-card .cat-count {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--cta);
    font-weight: 600;
    font-size: 13.5px;
}
.cat-card .cat-count i {
    transition: transform .15s;
    color: var(--cta);
}
.cat-card:hover .cat-count i { transform: translateX(4px); }

/* ========================================================
   Stats strip — light variant with mint accents
   ======================================================== */
.stats-strip {
    background: var(--bg-soft);
    color: var(--ink);
    padding: 56px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stats-strip .stat-num {
    font-size: clamp(2.2rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--cta);
    font-variant-numeric: tabular-nums;
}
.stats-strip .stat-label {
    margin-top: 8px;
    font-size: .8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* ========================================================
   Feature cards — clean and structured
   ======================================================== */
.feature-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 26px;
    height: 100%;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--cta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.feature-card:hover {
    border-color: color-mix(in srgb, var(--cta) 35%, transparent);
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(33, 48, 61, .10);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .feature-icon {
    width: 52px; height: 52px;
    border-radius: var(--r);
    background: var(--cta-soft);
    color: var(--cta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 18px;
}
.feature-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--ink);
}
.feature-card p {
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================================
   How it works — light gray band with mint step numbers
   ======================================================== */
.how {
    background: var(--bg-cool);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.how-step {
    background: var(--bg);
    border-radius: var(--r);
    padding: 30px 28px;
    height: 100%;
    text-align: left;
    border: 1px solid var(--line);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.how-step:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.how-step .step-num {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--cta);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 18px;
    box-shadow: 0 6px 16px rgba(252, 95, 64, .28);
}
.how-step h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--ink);
}
.how-step p {
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.6;
    font-size: .95rem;
}

/* ========================================================
   Testimonials — clean cards, gold-ish CTA stars
   ======================================================== */
.testimonials {
    background: var(--bg);
    border-top: 1px solid var(--line);
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
}
.testimonial {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.testimonial:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.testimonial .rating {
    color: var(--cta);
    font-size: 0.82rem;
    letter-spacing: 1px;
    margin-bottom: 14px;
    display: flex;
    gap: 1px;
}
.testimonial .quote-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.4rem;
    line-height: 0.5;
    color: var(--line-strong);
    margin-bottom: 8px;
    user-select: none;
}
.testimonial .quote {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--ink-2);
    margin: 0 0 22px;
    flex: 1;
}
.testimonial .author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.testimonial .avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    overflow: hidden;
}
.testimonial .avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.testimonial .name {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.94rem;
    line-height: 1.2;
}
.testimonial .meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 3px;
    font-weight: 500;
}

/* ========================================================
   Sample flashcards
   ======================================================== */
.flash-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.flash-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 22px 22px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    position: relative;
}
.flash-card:hover {
    border-color: var(--cta);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.flash-card .flash-pill {
    display: inline-block;
    background: var(--cta-soft);
    color: var(--cta);
    border: 1px solid color-mix(in srgb, var(--cta) 22%, transparent);
    padding: 2px 10px;
    border-radius: var(--r-pill);
    font-size: .7rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.flash-card .flash-q {
    font-weight: 500;
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 0;
    font-size: 0.96rem;
}

/* ========================================================
   Footer — light, organized
   ======================================================== */
.site-footer {
    background: var(--ink);
    color: var(--on-dark-muted);
    padding: 56px 0 28px;
    margin-top: 0;
    font-size: 14px;
    border-top: 1px solid var(--ink);
}
.site-footer h6 {
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}
.site-footer .footer-logo {
    height: 34px;
    width: auto;
    display: block;
    margin-bottom: 18px;
    /* White-out the dark wordmark so the logo reads on the dark footer. */
    filter: brightness(0) invert(1);
}
.site-footer a {
    color: var(--on-dark-muted);
    text-decoration: none;
    transition: color .15s;
}
.site-footer a:hover { color: var(--cta); }
.site-footer i { color: var(--cta); opacity: 0.85; }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 22px;
    margin-top: 36px;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.site-footer .disclaimer {
    font-size: .82rem;
    color: rgba(255, 255, 255, .5);
    max-width: 520px;
    line-height: 1.55;
}
.site-footer .builtby { font-size: .82rem; }
.site-footer .builtby-link {
    color: var(--on-dark-muted);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted rgba(255, 255, 255, .25);
}
.site-footer .builtby-link:hover {
    color: var(--cta);
    border-bottom-color: var(--cta);
}

/* Lang switcher inside footer */
.site-footer .lang-switcher {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
}
.site-footer .lang-switcher .lang-link {
    color: var(--on-dark-muted);
}
.site-footer .lang-switcher .lang-link:hover { color: var(--cta); }
.site-footer .lang-switcher .lang-link.active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    box-shadow: none;
}

/* ========================================================
   Scroll-reveal animations
   ======================================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(14px);
        transition:
            opacity .65s cubic-bezier(.22, .61, .36, 1),
            transform .65s cubic-bezier(.22, .61, .36, 1);
        will-change: opacity, transform;
    }
    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal[data-delay="0"] { transition-delay: 0s; }
    .reveal[data-delay="1"] { transition-delay: .08s; }
    .reveal[data-delay="2"] { transition-delay: .16s; }
    .reveal[data-delay="3"] { transition-delay: .24s; }
    .reveal[data-delay="4"] { transition-delay: .32s; }
    .reveal[data-delay="5"] { transition-delay: .40s; }
    .reveal[data-delay="6"] { transition-delay: .48s; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}

/* Tabular numerals */
.hero-stat-num,
.stats-strip .stat-num { font-variant-numeric: tabular-nums; }

/* ========================================================
   About page — hero, story, values, approach, CTA strip
   ======================================================== */
.page-hero {
    background: linear-gradient(180deg, var(--bg-cool) 0%, var(--bg) 100%);
    padding: 88px 0 72px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.page-hero .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cta-soft);
    color: var(--cta);
    border: 1px solid color-mix(in srgb, var(--cta) 22%, transparent);
    padding: 5px 12px;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 12.5px;
    margin-bottom: 22px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.page-hero .badge-pill i { color: var(--cta); }
.page-hero h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0 auto 16px;
    max-width: 720px;
}
.page-hero .lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
    font-weight: 400;
}

/* Soft-background section variant */
.section-soft {
    background: var(--bg-cool);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* Single-column story block */
.story-block {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.story-block .founded-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mint-soft);
    color: var(--mint-deep);
    border: 1px solid color-mix(in srgb, var(--mint) 40%, transparent);
    padding: 6px 14px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 22px;
    letter-spacing: 0.02em;
}
.story-block h2 {
    margin-bottom: 22px;
}
.story-block p {
    color: var(--ink-2);
    font-size: 1.08rem;
    line-height: 1.75;
    margin: 0;
    text-align: center;
}

/* 3-up / 2-up value cards */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.value-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 880px;
    margin: 0 auto;
}
.value-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 30px 28px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.value-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.value-card .value-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r);
    background: var(--cta-soft);
    color: var(--cta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 20px;
}
.value-card .value-icon.mint {
    background: var(--mint-soft);
    color: var(--mint-deep);
}
.value-card .value-icon.navy {
    background: rgba(33, 48, 61, 0.06);
    color: var(--ink);
}
.value-card h3 {
    font-weight: 700;
    font-size: 1.18rem;
    margin-bottom: 8px;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.value-card p {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
    margin: 0;
}

/* Featured 2-up approach cards (bigger feel) */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}
.approach-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 36px 32px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.approach-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.approach-card:hover::before { transform: scaleX(1); }
.approach-card .approach-icon {
    width: 62px;
    height: 62px;
    border-radius: var(--r);
    background: var(--cta-soft);
    color: var(--cta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 22px;
}
.approach-card .approach-icon.mint {
    background: var(--mint-soft);
    color: var(--mint-deep);
}
.approach-card h3 {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.approach-card p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

/* Bottom CTA strip — solid navy with orange button */
.cta-strip {
    background: var(--ink);
    color: #fff;
    padding: 72px 0;
    text-align: center;
}
.cta-strip h2 {
    color: #fff;
    font-size: clamp(1.7rem, 2.6vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.cta-strip p {
    color: var(--on-dark-muted);
    font-size: 1.05rem;
    margin: 0 auto 28px;
    max-width: 560px;
    line-height: 1.6;
}
.cta-strip .btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cta);
    color: #fff;
    padding: 14px 30px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid var(--cta);
    transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(252, 95, 64, .35);
}
.cta-strip .btn-primary-cta:hover {
    background: var(--cta-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(252, 95, 64, .42);
}

/* Active nav link (current page) */
.site-nav .nav-link.active {
    color: var(--cta) !important;
}

/* ============================================================
   BOOTSTRAP COMPONENT OVERRIDES (for non-landing pages)
   Carries the orange/navy theme to category, exam, exams,
   flashcards, results, take-exam, user-dashboard, user-login.
   Higher specificity via body to win against page-level styles
   that use plain class selectors.
   ============================================================ */

body .btn {
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    transition: background .15s, border-color .15s, color .15s, filter .15s, box-shadow .15s;
    box-shadow: none;
}
body .btn-sm { font-size: 13px; padding: 5px 11px; }
body .btn-lg { font-size: 15px; padding: 10px 18px; }

body .btn-primary {
    background: var(--cta) !important;
    border: 1px solid var(--cta) !important;
    color: #fff !important;
}
body .btn-primary:hover,
body .btn-primary:focus,
body .btn-primary:active {
    background: var(--cta-dark) !important;
    border-color: var(--cta-dark) !important;
    color: #fff !important;
}

body .btn-outline-primary {
    background: #fff !important;
    color: var(--ink) !important;
    border: 1px solid var(--line-strong) !important;
}
body .btn-outline-primary:hover,
body .btn-outline-primary:focus {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
    color: #fff !important;
}

body .btn-outline-secondary {
    background: #fff !important;
    color: var(--muted) !important;
    border: 1px solid var(--line-strong) !important;
}
body .btn-outline-secondary:hover {
    background: var(--bg-cool) !important;
    border-color: var(--line-strong) !important;
    color: var(--ink) !important;
}

body .btn-outline-danger {
    background: #fff !important;
    color: var(--cta-dark) !important;
    border: 1px solid color-mix(in srgb, var(--cta) 35%, transparent) !important;
}
body .btn-outline-danger:hover {
    background: var(--cta-soft) !important;
    color: var(--cta-dark) !important;
    border-color: color-mix(in srgb, var(--cta) 60%, transparent) !important;
}

body .btn-success {
    background: var(--mint-deep) !important;
    border-color: var(--mint-deep) !important;
    color: #fff !important;
}
body .btn-danger {
    background: var(--cta) !important;
    border-color: var(--cta) !important;
    color: #fff !important;
}
body .btn-light {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
}
body .btn-light:hover {
    background: var(--bg-cool) !important;
    color: var(--ink) !important;
}

/* Cards — flat with thin border */
body .card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: none;
    color: var(--ink);
}
body .card.shadow-sm,
body .card.shadow {
    box-shadow: var(--shadow-sm) !important;
}
body .card-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
    font-weight: 600;
    color: var(--ink);
}
body .card-body { padding: 20px; color: var(--ink-2); }
body .card-footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 12px 20px;
}

/* Tables */
body .table {
    color: var(--ink-2);
    font-size: 14px;
    border-color: var(--line);
}
body .table > thead > tr > th {
    background: var(--bg-cool);
    border-bottom: 1px solid var(--line);
    border-top: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    padding: 10px 14px;
}
body .table > tbody > tr > td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    border-top: 0;
    vertical-align: middle;
}
body .table-hover > tbody > tr:hover > * {
    background-color: var(--bg-soft) !important;
}

/* Badges */
body .badge {
    border-radius: 999px;
    font-weight: 600;
    font-size: 11.5px;
    padding: 3px 9px;
}
body .badge.bg-primary {
    background: var(--cta) !important;
    color: #fff !important;
}
body .badge.bg-secondary {
    background: var(--bg-cool) !important;
    color: var(--muted) !important;
    border: 1px solid var(--line);
}
body .badge.bg-success {
    background: var(--mint-soft) !important;
    color: var(--mint-deep) !important;
    border: 1px solid color-mix(in srgb, var(--mint) 30%, transparent);
}
body .badge.bg-danger {
    background: var(--cta-soft) !important;
    color: var(--cta-dark) !important;
    border: 1px solid color-mix(in srgb, var(--cta) 35%, transparent);
}
body .badge.bg-warning {
    background: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a;
}
body .badge.bg-info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe;
}
body .badge.bg-light {
    background: var(--bg-cool) !important;
    color: var(--ink) !important;
    border: 1px solid var(--line);
}

/* Forms */
body .form-control,
body .form-select {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--r-sm);
    padding: 9px 12px;
    font-size: 14px;
    color: var(--ink);
    box-shadow: none;
}
body .form-control:focus,
body .form-select:focus {
    border-color: var(--cta);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 18%, transparent);
}
body .form-control-lg, body .form-select-lg {
    padding: 11px 14px;
    font-size: 15px;
}
body .form-label {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ink);
    margin-bottom: 6px;
}
body .form-check-input:checked {
    background-color: var(--cta);
    border-color: var(--cta);
}
body .form-check-input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 18%, transparent);
}
body .input-group-text {
    background: var(--bg-cool);
    border: 1px solid var(--line);
    color: var(--muted);
}

/* Modals */
body .modal-content {
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
}
body .modal-header {
    border-bottom: 1px solid var(--line);
    padding: 14px 18px;
}
body .modal-title { font-size: 15px; font-weight: 700; color: var(--ink); }
body .modal-body { padding: 18px; }
body .modal-footer { border-top: 1px solid var(--line); padding: 12px 18px; }

/* Alerts */
body .alert {
    border-radius: var(--r);
    border-width: 1px;
    padding: 12px 14px;
    font-size: 14px;
}
body .alert-success {
    background: var(--mint-soft);
    border-color: color-mix(in srgb, var(--mint) 40%, transparent);
    color: var(--mint-deep);
}
body .alert-danger {
    background: var(--cta-soft);
    border-color: color-mix(in srgb, var(--cta) 35%, transparent);
    color: var(--cta-dark);
}
body .alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}
body .alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Nav tabs */
body .nav-tabs {
    border-bottom: 1px solid var(--line);
}
body .nav-tabs .nav-link {
    color: var(--muted) !important;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 10px 14px;
    font-weight: 600;
}
body .nav-tabs .nav-link:hover {
    color: var(--ink) !important;
    border-bottom-color: var(--line-strong);
}
body .nav-tabs .nav-link.active {
    color: var(--ink) !important;
    background: transparent;
    border-bottom-color: var(--cta);
    font-weight: 700;
}

/* Nav pills */
body .nav-pills .nav-link {
    color: var(--muted) !important;
    background: transparent !important;
    border-radius: var(--r-sm) !important;
    padding: 8px 14px !important;
    font-weight: 500;
}
body .nav-pills .nav-link:hover {
    color: var(--ink) !important;
    background: var(--bg-cool) !important;
}
body .nav-pills .nav-link.active {
    color: #fff !important;
    background: var(--cta) !important;
    font-weight: 600;
}

/* Pagination */
body .page-link {
    color: var(--muted);
    border-color: var(--line);
    font-size: 14px;
}
body .page-link:hover { background: var(--bg-cool); color: var(--ink); }
body .page-item.active .page-link {
    background: var(--cta);
    border-color: var(--cta);
    color: #fff;
}

/* Dropdowns */
body .dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-md);
    padding: 4px;
}
body .dropdown-item {
    border-radius: var(--r-sm);
    font-size: 14px;
    padding: 7px 10px;
    color: var(--ink);
}
body .dropdown-item:hover, body .dropdown-item:focus {
    background: var(--bg-cool);
    color: var(--ink);
}

/* List groups */
body .list-group-item {
    border-color: var(--line);
    color: var(--ink);
    background: #fff;
}
body .list-group-item.active {
    background: var(--bg-cool);
    color: var(--ink);
    border-color: var(--line);
    font-weight: 600;
}

/* Text utility colors used across pages */
body .text-primary { color: var(--cta) !important; }
body .text-success { color: var(--mint-deep) !important; }
body .text-danger  { color: var(--cta-dark) !important; }

/* ========================================================
   Misc polish
   ======================================================== */
body .text-muted { color: var(--muted) !important; }
.container { padding-left: 24px; padding-right: 24px; }

@media (max-width: 575.98px) {
    .hero { padding: 64px 0 56px; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 36px; }
    .stats-strip { padding: 44px 0; }
}
