/* ==========================================================================
   TES GIZI — INTERACTIVE LEARNING LAB DESIGN SYSTEM
   Design Tokens & Modern Styling for Indonesian Nutrition Quiz Platform
   Language: id-ID | Style: Interactive Learning Lab
   ========================================================================== */

:root {
  /* Cobalt & Navy Primary Palette */
  --cobalt-950: #071326;
  --cobalt-900: #0B1E3B;
  --cobalt-800: #0B2545;
  --cobalt-700: #133E87;
  --cobalt-600: #1D4ED8;
  --cobalt-500: #2563EB;
  --cobalt-100: #DBEAFE;
  --cobalt-50:  #EFF6FF;

  /* Accent Lime */
  --lime-600: #65A30D;
  --lime-500: #84CC16;
  --lime-400: #A3E635;
  --lime-300: #BEF264;
  --lime-100: #ECFCCB;
  --lime-50:  #F7FEE7;

  /* Accent Warm Orange */
  --orange-600: #EA580C;
  --orange-500: #F97316;
  --orange-400: #FB923C;
  --orange-100: #FFEDD5;
  --orange-50:  #FFF7ED;

  /* Neutrals & Dark Graphite */
  --slate-950: #0B0F19;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white:     #FFFFFF;

  /* Feedback States */
  --success-text: #166534;
  --success-bg:   #DCFCE7;
  --success-border: #86EFAC;
  --error-text:   #991B1B;
  --error-bg:     #FEE2E2;
  --error-border: #FCA5A5;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1200px;
  --container-quiz: 840px;
  --container-reading: 780px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--slate-50);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cobalt-700);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--cobalt-600);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cobalt-700);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-quiz {
  max-width: var(--container-quiz);
}

.container-reading {
  max-width: var(--container-reading);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cobalt-900);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--cobalt-800), var(--cobalt-700));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime-400);
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(19, 62, 135, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cobalt-900);
  line-height: 1.15;
}

.logo-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lime-600);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cobalt-800);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--cobalt-700);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-header-quiz {
  background-color: var(--cobalt-800);
  color: var(--lime-300);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--cobalt-700);
  box-shadow: 0 2px 6px rgba(11, 37, 69, 0.2);
  transition: all 0.2s ease;
}

.btn-header-quiz:hover {
  background-color: var(--cobalt-700);
  color: var(--white);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--slate-800);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.mobile-nav {
  display: none;
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 16px 20px 24px;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate-800);
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-100);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--cobalt-800);
  color: var(--white);
  border: 1px solid var(--cobalt-900);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--cobalt-700);
  color: var(--lime-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--lime-400);
  color: var(--cobalt-950);
  border: 1px solid var(--lime-500);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background-color: var(--lime-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--cobalt-800);
  border: 2px solid var(--cobalt-800);
}

.btn-outline:hover {
  background-color: var(--cobalt-50);
  color: var(--cobalt-900);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-cobalt {
  background-color: var(--cobalt-100);
  color: var(--cobalt-800);
}

.badge-lime {
  background-color: var(--lime-100);
  color: var(--lime-600);
}

.badge-orange {
  background-color: var(--orange-100);
  color: var(--orange-600);
}

.badge-source {
  background-color: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  font-size: 0.72rem;
  text-transform: none;
  font-weight: 600;
}

/* ==========================================================================
   HERO / QUIZ DASHBOARD (MAIN PAGE)
   ========================================================================== */
.hero-dashboard {
  padding: 56px 0 44px;
  background: linear-gradient(180deg, #F0F5FA 0%, var(--slate-50) 100%);
  border-bottom: 1px solid var(--slate-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--white);
  border: 1px solid var(--slate-300);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cobalt-800);
  width: fit-content;
  box-shadow: var(--shadow-xs);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background-color: var(--lime-500);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px var(--lime-100);
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--cobalt-950);
}

.hero-title span {
  color: var(--cobalt-700);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--slate-600);
  line-height: 1.55;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero-lab-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-200);
  margin-top: 8px;
}

.lab-stat-item {
  display: flex;
  flex-direction: column;
}

.lab-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cobalt-800);
  line-height: 1.1;
}

.lab-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-500);
}

.hero-visual {
  position: relative;
}

.hero-card-frame {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.hero-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.hero-card-overlay {
  padding: 20px;
  background: var(--white);
  border-top: 1px solid var(--slate-100);
}

.hero-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-600);
  background-color: var(--orange-50);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.hero-preview-question {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.hero-preview-hint {
  font-size: 0.82rem;
  color: var(--slate-500);
}

/* ==========================================================================
   QUIZ CATALOG / SELECTION PANEL
   ========================================================================== */
.section-panel {
  padding: 64px 0;
}

.section-panel-alt {
  background-color: var(--white);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-header {
  margin-bottom: 40px;
}

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-category-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cobalt-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cobalt-950);
  line-height: 1.2;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
  margin-top: 10px;
}

.quiz-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.quiz-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

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

.quiz-card-thumb-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background-color: var(--slate-100);
}

.quiz-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.quiz-card:hover .quiz-card-thumb {
  transform: scale(1.04);
}

.quiz-card-number {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--cobalt-900);
  color: var(--lime-300);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.quiz-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.quiz-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 12px;
  font-weight: 600;
}

.quiz-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.quiz-card-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--cobalt-900);
  line-height: 1.3;
  margin-bottom: 10px;
}

.quiz-card-text {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.quiz-card-footer {
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-card-source {
  font-size: 0.74rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* ==========================================================================
   EXPLANATION / LEARNING FEEDBACK SHOWCASE BLOCK
   ========================================================================== */
.feedback-showcase {
  background: linear-gradient(135deg, var(--cobalt-900) 0%, var(--cobalt-800) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.feedback-showcase::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 204, 22, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.feedback-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feedback-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
}

.feedback-text {
  color: var(--cobalt-100);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.feedback-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feedback-feat-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(163, 230, 53, 0.2);
  color: var(--lime-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feedback-feat-desc h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
}

.feedback-feat-desc p {
  font-size: 0.85rem;
  color: var(--slate-300);
}

.feedback-demo-card {
  background-color: var(--white);
  color: var(--slate-900);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--slate-200);
}

.demo-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cobalt-700);
}

.demo-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background-color: var(--success-bg);
  color: var(--success-text);
}

.demo-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cobalt-950);
  margin-bottom: 12px;
}

.demo-answer-box {
  background-color: #F0FDF4;
  border: 1px solid var(--success-border);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.demo-answer-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--success-text);
  margin-bottom: 4px;
}

.demo-answer-body {
  font-size: 0.86rem;
  color: var(--slate-700);
  line-height: 1.45;
}

.demo-source-tag {
  font-size: 0.74rem;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   INTERACTIVE MYTH OR FACT WIDGET (HOME & SECTION)
   ========================================================================== */
.myth-interactive-box {
  background-color: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin: 32px 0;
}

.myth-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.myth-box-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--orange-600);
  background-color: var(--orange-50);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.myth-statement {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cobalt-950);
  line-height: 1.35;
  margin-bottom: 24px;
}

.myth-choice-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.btn-myth-choice {
  flex: 1;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: 2px solid var(--slate-300);
  background-color: var(--slate-50);
  color: var(--slate-800);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-myth-choice:hover {
  background-color: var(--white);
  border-color: var(--cobalt-700);
  color: var(--cobalt-900);
}

.btn-myth-choice.selected-myth {
  border-color: var(--orange-500);
  background-color: var(--orange-50);
  color: var(--orange-600);
}

.btn-myth-choice.selected-fact {
  border-color: var(--lime-600);
  background-color: var(--lime-50);
  color: var(--lime-600);
}

.myth-result-reveal {
  display: none;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.myth-result-reveal.visible {
  display: block;
}

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

/* ==========================================================================
   QUIZ ENGINE & INTERFACE (THE MAIN QUIZ RUNNER)
   ========================================================================== */
.quiz-runner-wrapper {
  padding: 40px 0 64px;
}

.quiz-runner-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Header & Progress */
.quiz-runner-header {
  padding: 24px 32px;
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.quiz-runner-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.quiz-topic-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cobalt-900);
}

.quiz-step-indicator {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cobalt-700);
  background-color: var(--cobalt-50);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.quiz-progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cobalt-700), var(--lime-500));
  border-radius: var(--radius-full);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Screen 1: Idle / Start Screen */
.quiz-screen-idle {
  padding: 48px 36px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.quiz-idle-icon {
  width: 72px;
  height: 72px;
  background-color: var(--cobalt-50);
  color: var(--cobalt-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.quiz-idle-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--cobalt-950);
  margin-bottom: 12px;
}

.quiz-idle-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 28px;
}

.quiz-idle-specs {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 32px;
  padding: 16px;
  background-color: var(--slate-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spec-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cobalt-800);
}

.spec-lbl {
  font-size: 0.76rem;
  color: var(--slate-500);
  font-weight: 600;
  text-transform: uppercase;
}

/* Screen 2 & 3: Active Question & Answer Feedback */
.quiz-screen-question {
  padding: 36px 32px 40px;
}

.question-number-tag {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--orange-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.question-prompt {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cobalt-950);
  line-height: 1.4;
  margin-bottom: 28px;
}

.quiz-options-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.quiz-option-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background-color: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.quiz-option-item:hover:not(.disabled) {
  border-color: var(--cobalt-700);
  background-color: var(--cobalt-50);
  transform: translateX(4px);
}

.quiz-option-item.selected {
  border-color: var(--cobalt-700);
  background-color: #EFF6FF;
  box-shadow: 0 0 0 1px var(--cobalt-700);
}

.quiz-option-item.state-correct {
  border-color: #22C55E !important;
  background-color: #F0FDF4 !important;
}

.quiz-option-item.state-incorrect {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
}

.quiz-option-letter {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background-color: var(--slate-100);
  color: var(--slate-700);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.quiz-option-item.selected .quiz-option-letter {
  background-color: var(--cobalt-700);
  color: var(--white);
}

.quiz-option-item.state-correct .quiz-option-letter {
  background-color: #16A34A;
  color: var(--white);
}

.quiz-option-item.state-incorrect .quiz-option-letter {
  background-color: #DC2626;
  color: var(--white);
}

.quiz-option-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-800);
  line-height: 1.4;
  flex: 1;
}

/* Feedback panel below options */
.feedback-box {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius-lg);
  animation: slideUp 0.3s ease;
}

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

.feedback-box.is-correct {
  background-color: #F0FDF4;
  border: 1.5px solid var(--success-border);
}

.feedback-box.is-incorrect {
  background-color: #FEF2F2;
  border: 1.5px solid var(--error-border);
}

.feedback-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.feedback-status-badge {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.feedback-box.is-correct .feedback-status-badge {
  background-color: #DCFCE7;
  color: #15803D;
}

.feedback-box.is-incorrect .feedback-status-badge {
  background-color: #FEE2E2;
  color: #B91C1C;
}

.feedback-body {
  font-size: 0.95rem;
  color: var(--slate-800);
  line-height: 1.55;
  margin-bottom: 14px;
}

.feedback-source {
  font-size: 0.78rem;
  color: var(--slate-600);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feedback-source strong {
  color: var(--slate-700);
}

/* Action Bar */
.quiz-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--slate-100);
  margin-top: 24px;
  gap: 14px;
  flex-wrap: wrap;
}

.quiz-action-hint {
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* Screen 4: Results Screen */
.quiz-screen-results {
  padding: 44px 36px;
}

.results-header-card {
  background: linear-gradient(135deg, var(--cobalt-950) 0%, var(--cobalt-800) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.results-badge-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.level-needs-study {
  background-color: #FEF3C7;
  color: #92400E;
}

.level-moderate {
  background-color: #E0E7FF;
  color: #3730A3;
}

.level-good {
  background-color: var(--lime-100);
  color: var(--lime-600);
}

.results-score-big {
  font-size: clamp(3.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 8px;
}

.results-score-big span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--lime-400);
}

.results-summary-text {
  font-size: 1.15rem;
  color: var(--cobalt-100);
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.results-stat-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.results-stat-item {
  display: flex;
  flex-direction: column;
}

.results-stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}

.results-stat-lbl {
  font-size: 0.75rem;
  color: var(--slate-300);
  text-transform: uppercase;
}

/* Results Question Review Breakdown */
.results-review-section {
  margin-bottom: 40px;
}

.results-review-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cobalt-950);
  margin-bottom: 20px;
}

.results-review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  background-color: var(--white);
  transition: all 0.2s ease;
}

.review-item.is-correct {
  border-left: 5px solid #22C55E;
}

.review-item.is-incorrect {
  border-left: 5px solid #EF4444;
}

.review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-question-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.review-answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.review-ans-box {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}

.review-ans-user {
  background-color: var(--slate-100);
  color: var(--slate-800);
}

.review-ans-user.correct {
  background-color: #DCFCE7;
  color: #15803D;
  font-weight: 700;
}

.review-ans-user.incorrect {
  background-color: #FEE2E2;
  color: #B91C1C;
}

.review-ans-correct {
  background-color: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
  font-weight: 700;
}

.review-explanation {
  font-size: 0.88rem;
  color: var(--slate-700);
  background-color: var(--slate-50);
  padding: 12px;
  border-radius: var(--radius-md);
  line-height: 1.5;
  border: 1px solid var(--slate-200);
}

.review-source {
  font-size: 0.76rem;
  color: var(--slate-500);
  margin-top: 8px;
}

/* Results Action Buttons */
.results-actions-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
}

/* Related Learning Articles in Results */
.results-related-articles {
  margin-top: 48px;
  padding: 32px;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
}

.related-articles-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cobalt-950);
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.related-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.related-card:hover {
  border-color: var(--cobalt-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.related-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cobalt-900);
  margin-bottom: 6px;
}

.related-card-desc {
  font-size: 0.82rem;
  color: var(--slate-600);
  margin-bottom: 10px;
  flex: 1;
}

.related-card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cobalt-700);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   EDUCATIONAL MATERIALS / READING ARTICLES
   ========================================================================== */
.article-header {
  padding: 56px 0 32px;
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-500);
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--cobalt-950);
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--slate-600);
  font-weight: 500;
}

.article-content {
  padding: 48px 0 64px;
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--slate-800);
}

.article-body h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--cobalt-950);
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cobalt-900);
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-lead {
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--cobalt-900);
  font-weight: 500;
  padding: 20px 24px;
  background-color: var(--cobalt-50);
  border-left: 4px solid var(--cobalt-700);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.callout-box {
  padding: 24px;
  border-radius: var(--radius-lg);
  margin: 32px 0;
  border: 1px solid var(--slate-200);
  background-color: var(--white);
  box-shadow: var(--shadow-xs);
}

.callout-box.highlight {
  background-color: #F8FAFC;
  border-left: 4px solid var(--lime-500);
}

.callout-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cobalt-900);
  margin-bottom: 8px;
}

.article-sources-box {
  margin-top: 48px;
  padding: 24px;
  background-color: var(--slate-100);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
}

.article-sources-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--slate-700);
  margin-bottom: 10px;
}

.article-sources-list {
  font-size: 0.85rem;
  color: var(--slate-600);
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-sources-list li {
  margin-bottom: 6px;
  padding-left: 14px;
  position: relative;
}

.article-sources-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--cobalt-700);
}

.article-quiz-cta {
  margin: 48px 0;
  padding: 32px;
  background: linear-gradient(135deg, var(--cobalt-900), var(--cobalt-800));
  border-radius: var(--radius-xl);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.article-quiz-cta-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--white);
}

.article-quiz-cta-text p {
  font-size: 0.95rem;
  color: var(--cobalt-100);
  margin: 0;
}

/* ==========================================================================
   TANTANG MITOS (MYTH CHALLENGE HUB)
   ========================================================================== */
.myth-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.myth-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.myth-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}

.myth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.myth-tag-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--orange-100);
  color: var(--orange-600);
}

.myth-card-claim {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--cobalt-950);
  line-height: 1.35;
  margin-bottom: 16px;
}

.myth-verdict-banner {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background-color: #FEF2F2;
  border: 1px solid var(--error-border);
  color: var(--error-text);
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.fact-verdict-banner {
  background-color: #F0FDF4;
  border: 1px solid var(--success-border);
  color: var(--success-text);
}

.myth-card-explanation {
  font-size: 0.92rem;
  color: var(--slate-700);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 18px;
}

.myth-card-source {
  font-size: 0.75rem;
  color: var(--slate-500);
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
}

/* ==========================================================================
   FOOTER & LEGAL PAGES
   ========================================================================== */
.site-footer {
  background-color: var(--cobalt-950);
  color: var(--slate-300);
  padding: 56px 0 28px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--slate-400);
  line-height: 1.6;
}

.footer-badge-law {
  font-size: 0.75rem;
  color: var(--lime-300);
  background-color: rgba(132, 204, 22, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
  border: 1px solid rgba(132, 204, 22, 0.2);
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link {
  font-size: 0.88rem;
  color: var(--slate-400);
  transition: color 0.15s ease;
}

.footer-nav-link:hover {
  color: var(--white);
}

.footer-disclaimer-box {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--slate-400);
  margin-bottom: 32px;
}

.footer-disclaimer-box strong {
  color: var(--slate-200);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: var(--slate-500);
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .feedback-showcase-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop, .btn-header-quiz {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }

  .quiz-runner-header {
    padding: 16px 20px;
  }

  .quiz-screen-question {
    padding: 24px 20px;
  }

  .quiz-screen-idle,
  .quiz-screen-results {
    padding: 28px 20px;
  }

  .review-answers-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
