/* ── Announcement bar ───────────────────────────────────────────────────────── */
.announce-bar {
  background: var(--yellow);
  color: #1a1400;
  font-size: .82rem;
  font-weight: 500;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.announce-bar strong { font-weight: 700; }

.announce-bar__link {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.announce-bar__close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: #1a1400;
  padding: 0 4px;
  opacity: .7;
}

.announce-bar__close:hover { opacity: 1; }

/* ── Variables & Reset ──────────────────────────────────────────────────────── */
:root {
  --blue:        #006AA7;
  --blue-dark:   #00527f;
  --blue-light:  #e6f2fa;
  --yellow:      #FECC00;
  --yellow-dark: #d4a900;

  --bg:          #f5f7fa;
  --surface:     #ffffff;
  --surface-2:   #f0f4f8;
  --border:      #d8e0e8;
  --text:        #1a2330;
  --text-muted:  #5a6a7a;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --shadow-hover:0 6px 24px rgba(0,106,167,.16);
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  .22s ease;
}

[data-theme="dark"] {
  --bg:          #0f1622;
  --surface:     #1a2335;
  --surface-2:   #1e2a3a;
  --border:      #2a3a50;
  --text:        #e8edf4;
  --text-muted:  #7a8ea0;
  --shadow:      0 2px 12px rgba(0,0,0,.3);
  --shadow-hover:0 6px 24px rgba(0,106,167,.3);
  --blue-light:  #0a2035;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ── Layout ──────────────────────────────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

main { flex: 1; }

/* ── Navigation ──────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__flag {
  font-size: 1.5rem;
  line-height: 1;
}

.navbar__brand-text span {
  color: var(--blue);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }

/* ── Language switcher ───────────────────────────────────────────────────────── */
.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  margin-left: 4px;
}

.lang-btn {
  padding: 4px 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .06em;
}

.lang-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.lang-btn:hover:not(.active) { color: var(--text); }

#theme-toggle {
  margin-left: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: var(--text);
}

#theme-toggle:hover { background: var(--border); }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #003d6b 0%, var(--blue) 50%, #004e80 100%);
  color: #fff;
  padding: 88px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Canvas for flickering grid — sits behind content */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Fade out toward bottom */
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero__content { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}

.hero__title span { color: var(--yellow); }

.hero__subtitle {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 520px;
  margin: 0 auto 38px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Chevron separator at hero bottom */
.hero__separator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 32px;
  pointer-events: none;
}

.hero__separator svg {
  width: 100%;
  height: 100%;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--yellow); color: #1a1a00; border-color: var(--yellow); }
.btn--primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }

.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn--blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--border); }

.btn--sm { padding: 8px 18px; font-size: .875rem; }

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

/* ── Stats bar ───────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.stats-bar__inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat__value { font-size: 1.5rem; font-weight: 800; color: var(--blue); }
.stat__label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ── Section header ruled ────────────────────────────────────────────────────── */
.section-header-ruled {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 36px;
}

.section-header-ruled__title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.section-header-ruled__tag {
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

/* ── Trust / Disclaimer strip ────────────────────────────────────────────────── */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px;
}

.trust-strip__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust-strip__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-strip__item strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.trust-strip__item p {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.trust-strip__item a {
  color: var(--blue);
}

/* ── Three pathways ──────────────────────────────────────────────────────────── */
.pathways {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.pathways__grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.pathway-card {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.pathway-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.pathway-card--highlight {
  background: var(--blue-light);
  border-color: var(--blue);
}

[data-theme="dark"] .pathway-card--highlight {
  background: #0a1e2f;
  border-color: var(--blue);
}

.pathway-card__num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue);
  text-transform: uppercase;
}

.pathway-card__icon { font-size: 2rem; line-height: 1; margin: 4px 0 8px; }

.pathway-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pathway-card__body {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.pathway-card__btn { margin-top: 16px; align-self: flex-start; }

.pathway-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.pathway-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
}

@media (max-width: 700px) {
  .pathways__grid { flex-direction: column; gap: 16px; }
  .pathway-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* ── Guide / article cards ───────────────────────────────────────────────────── */
.guides {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* Gradient image placeholder */
.guide-card__img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.guide-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.25));
}

.guide-card__img--law     { background: linear-gradient(135deg, #003d6b, var(--blue)); }
.guide-card__img--register { background: linear-gradient(135deg, #004e40, #00897b); }
.guide-card__img--study    { background: linear-gradient(135deg, #1a237e, #3949ab); }

.guide-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.guide-card__date {
  font-size: .78rem;
  color: var(--text-muted);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.guide-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.guide-card__excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.guide-card__link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 10px;
  align-self: flex-start;
}

/* ── Feature cards ───────────────────────────────────────────────────────────── */
.features {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.card__icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card__body { color: var(--text-muted); font-size: .95rem; }

/* ── CTA section ─────────────────────────────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, #004e80 0%, var(--blue) 100%);
  color: #fff;
  padding: 72px 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cta__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta__sub { opacity: .88; margin-bottom: 32px; font-size: 1.05rem; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FAQ ─────────────────────────────────────────────────────────────────────── */
.faq {
  padding: 60px 0 72px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.faq__list { max-width: 720px; margin: 0 auto; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq__question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--blue);
}

.faq__item.open .faq__question::after { transform: rotate(45deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 22px;
  color: var(--text-muted);
  font-size: .95rem;
}

.faq__item.open .faq__answer {
  max-height: 400px;
  padding: 0 22px 18px;
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 20px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.footer__tagline {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 220px;
  margin-top: 4px;
}

.footer__col { /* column wrapper */ }

.footer__heading {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer__links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .875rem;
  color: var(--text-muted);
}

.footer__links-list a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links-list a:hover { color: var(--blue); text-decoration: none; }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  max-width: 1200px;
  margin: 0 auto;
}

.footer__bottom a { color: var(--blue); }

@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

/* ── Page header (quiz / exam / progress) ────────────────────────────────────── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 36px 20px 32px;
}

.page-header__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.page-header__sub { color: var(--text-muted); font-size: .95rem; }

/* ── Quiz / Exam UI ──────────────────────────────────────────────────────────── */
.quiz-wrap { max-width: 720px; margin: 0 auto; padding: 40px 20px; }

.quiz-progress-bar {
  background: var(--border);
  border-radius: 99px;
  height: 8px;
  margin-bottom: 28px;
  overflow: hidden;
}

.quiz-progress-bar__fill {
  background: linear-gradient(90deg, var(--blue), #00a8e8);
  height: 100%;
  border-radius: 99px;
  transition: width .4s ease;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: .875rem;
  color: var(--text-muted);
}

.quiz-meta .category-badge {
  background: var(--blue-light);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
}

.question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.question-text {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.5;
}

.options { display: flex; flex-direction: column; gap: 12px; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  font-size: .97rem;
  line-height: 1.4;
  background: var(--bg);
  text-align: left;
  width: 100%;
  color: var(--text);
}

.option:hover:not([disabled]) {
  border-color: var(--blue);
  background: var(--blue-light);
}

.option__letter {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.option.correct {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #14532d;
}

[data-theme="dark"] .option.correct {
  background: #052e16;
  color: #86efac;
}

.option.correct .option__letter {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.option.wrong {
  border-color: #dc2626;
  background: #fef2f2;
  color: #7f1d1d;
}

[data-theme="dark"] .option.wrong {
  background: #2d0707;
  color: #fca5a5;
}

.option.wrong .option__letter {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.option[disabled] { cursor: not-allowed; }

/* Explanation box */
.explanation {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  color: var(--text);
  font-size: .9rem;
  line-height: 1.55;
  display: none;
}

.explanation.show { display: block; }

.explanation strong { color: var(--blue); }

/* Quiz controls */
.quiz-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Result screen ────────────────────────────────────────────────────────────── */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.result-card__score {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--blue);
}

.result-card__label {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.result-card__message {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-card__sub {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.result-card__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Timer ───────────────────────────────────────────────────────────────────── */
.timer {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .04em;
}

.timer.warning { color: #dc2626; animation: pulse 1s infinite; }

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

/* ── Category filter ─────────────────────────────────────────────────────────── */
.filter-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Progress page ───────────────────────────────────────────────────────────── */
.progress-wrap { max-width: 960px; margin: 0 auto; padding: 40px 20px; }

.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card__value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}

.stat-card__label {
  color: var(--text-muted);
  font-size: .85rem;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.category-breakdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.category-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.category-row__name {
  width: 180px;
  font-size: .9rem;
  font-weight: 500;
  flex-shrink: 0;
}

.progress-track {
  flex: 1;
  background: var(--border);
  border-radius: 99px;
  height: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), #00a8e8);
  transition: width .6s ease;
}

.progress-fill.good { background: linear-gradient(90deg, #16a34a, #22c55e); }
.progress-fill.medium { background: linear-gradient(90deg, #d97706, #f59e0b); }
.progress-fill.poor { background: linear-gradient(90deg, #dc2626, #ef4444); }

.category-row__pct {
  width: 42px;
  text-align: right;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.exam-history {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.exam-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  font-size: .9rem;
  flex-wrap: wrap;
}

.exam-row:last-child { border-bottom: none; }

.exam-score {
  font-weight: 700;
  font-size: 1.05rem;
}

.exam-score.pass { color: #16a34a; }
.exam-score.fail { color: #dc2626; }

.badge {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.badge--pass { background: #dcfce7; color: #15803d; }
.badge--fail { background: #fee2e2; color: #b91c1c; }

[data-theme="dark"] .badge--pass { background: #052e16; color: #86efac; }
[data-theme="dark"] .badge--fail { background: #2d0707; color: #fca5a5; }

/* ── Law notice banner ───────────────────────────────────────────────────────── */
.law-notice {
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 16px 22px;
  background: #fff7e6;
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius);
  font-size: .92rem;
  line-height: 1.6;
  color: #78350f;
}

.law-notice strong { color: #b45309; }

[data-theme="dark"] .law-notice {
  background: #1f1200;
  border-color: #b45309;
  color: #fcd34d;
}

[data-theme="dark"] .law-notice strong { color: #fbbf24; }

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .navbar__links { gap: 2px; }
  .nav-link { padding: 8px 10px; font-size: .82rem; }
  .hero { padding: 56px 20px 48px; }
  .question-card { padding: 22px 18px; }
  .category-row__name { width: 120px; font-size: .82rem; }
  .exam-row { font-size: .82rem; }
  .stats-bar__inner { gap: 28px; }
}
