/* ============================================
   QuizKoba — Bootstrap Custom Theme v4.0
   Max font-weight: 400
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400&family=Fredoka+One&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --orange:        #F57C00;
  --orange-hover:  #E65100;
  --orange-light:  #FFF3E0;
  --orange-mid:    #FFB74D;
  --orange-glow:   rgba(245,124,0,0.18);

  --blue:          #1565C0;
  --blue-hover:    #0D47A1;
  --blue-light:    #EFF6FF;
  --blue-mid:      #42A5F5;
  --blue-sky:      #BBDEFB;

  --ink:           #0D2A5C;
  --ink-mid:       #2C4A7C;
  --ink-light:     #5B7BA8;
  --ink-faint:     #9BB3D0;

  --cream:         #F0F6FF;
  --cream-dark:    #D6E4F7;
  --white:         #FFFFFF;
  --card-bg:       #FFFFFF;

  --green:         #2E7D32;
  --green-light:   #E8F5E9;
  --red:           #C62828;
  --red-light:     #FFEBEE;

  --shadow-xs:  0 1px 3px rgba(13,42,92,0.06);
  --shadow-sm:  0 2px 8px rgba(13,42,92,0.08);
  --shadow-md:  0 4px 20px rgba(13,42,92,0.10);
  --shadow-lg:  0 8px 40px rgba(13,42,92,0.13);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Bootstrap overrides ── */
:root {
  --bs-primary:    #1565C0;
  --bs-secondary:  #F57C00;
  --bs-body-bg:    #F0F6FF;
  --bs-body-color: #0D2A5C;
  --bs-font-sans-serif: 'Nunito', sans-serif;
  --bs-border-radius: 12px;
  --bs-border-radius-lg: 18px;
  --bs-border-radius-sm: 8px;
  --bs-border-color: #D6E4F7;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── FONT WEIGHT CAP ── */
b, strong, .fw-bold, .fw-semibold, .fw-medium,
[style*="font-weight"], label, th {
  font-weight: 400 !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Fredoka One', cursive;
  font-weight: 400;
  color: var(--ink);
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--blue);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── FOCUS ── */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.navbar {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cream-dark);
  height: 68px;
  padding: 0 40px;
  transition: box-shadow 0.3s var(--ease);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--orange), #FF9800);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: white;
  box-shadow: 0 4px 12px var(--orange-glow);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.navbar-brand:hover .logo-icon { transform: rotate(-8deg) scale(1.08); }
.logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 24px;
  color: var(--blue);
  line-height: 1;
}
.logo-text span { color: var(--orange); }
.logo-sub {
  font-size: 10px;
  color: var(--ink-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.navbar-nav .nav-link {
  font-size: 14px;
  color: var(--ink-mid) !important;
  font-weight: 400;
  padding: 7px 14px !important;
  border-radius: 12px;
  transition: all 0.18s var(--ease);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--blue) !important;
  background: var(--blue-light);
}

.nav-cta-btn {
  background: linear-gradient(135deg, var(--orange), #FF9800);
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  box-shadow: 0 3px 10px var(--orange-glow);
  transition: all 0.18s var(--ease) !important;
}
.nav-cta-btn:hover {
  background: linear-gradient(135deg, var(--orange-hover), var(--orange)) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--orange-glow) !important;
}

/* Mobile nav */
.navbar-toggler {
  border: none;
  padding: 4px 8px;
  font-size: 20px;
}
.navbar-toggler:focus { box-shadow: none; outline: 2px solid var(--orange); }

/* ══════════════════════════════════════════
   TICKER
   ══════════════════════════════════════════ */
.ticker-wrap {
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 36px;
  font-size: 12px;
  gap: 0;
}
.ticker-label {
  background: var(--orange);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Fredoka One', cursive;
  font-size: 13px;
}
.ticker-track {
  display: flex;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}
.ticker-item { padding: 0 20px; }
.ticker-dot { width: 4px; height: 4px; background: var(--orange-mid); border-radius: 50%; margin: auto 4px; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero-wrap {
  background: linear-gradient(160deg, var(--cream) 0%, var(--blue-light) 100%);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-wrap::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,124,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-light);
  color: var(--orange);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(245,124,0,0.2);
}
.hero-eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-size: 54px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-desc {
  font-size: 17px;
  color: var(--ink-light);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Fredoka One', cursive;
  font-size: 32px;
  color: var(--blue);
  line-height: 1;
}
.stat-label { font-size: 11px; color: var(--ink-light); margin-top: 2px; }

/* Hero card */
.hero-card {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1.5px solid var(--cream-dark);
}
.hero-card-tag {
  font-size: 12px;
  color: var(--orange);
  font-family: 'Fredoka One', cursive;
  background: var(--orange-light);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-card-inner { padding: 28px; }
.hero-card-title {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 12px;
}
.hero-card-excerpt {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.6;
  margin-bottom: 18px;
}
.hero-card-link {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.hero-card-link:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  color: var(--white);
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn-primary-qk {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue), #1976D2);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 999px;
  font-family: 'Fredoka One', cursive;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(21,101,192,0.25);
  transition: all 0.18s var(--ease);
}
.btn-primary-qk:hover {
  background: linear-gradient(135deg, var(--blue-hover), var(--blue));
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(21,101,192,0.3);
  color: var(--white);
}

.btn-secondary-qk {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--ink-mid);
  padding: 11px 24px;
  border-radius: 999px;
  font-family: 'Fredoka One', cursive;
  font-size: 14px;
  text-decoration: none;
  border: 1.5px solid var(--cream-dark);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.btn-secondary-qk:hover {
  border-color: var(--blue-mid);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-orange-qk {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--orange), #FF9800);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 999px;
  font-family: 'Fredoka One', cursive;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--orange-glow);
  transition: all 0.18s var(--ease);
}
.btn-orange-qk:hover {
  background: linear-gradient(135deg, var(--orange-hover), var(--orange));
  transform: translateY(-2px);
  color: var(--white);
}

.btn-white-qk {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--blue);
  padding: 12px 28px;
  border-radius: 999px;
  font-family: 'Fredoka One', cursive;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.btn-white-qk:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  color: var(--blue);
}

/* ══════════════════════════════════════════
   SECTION HEADERS
   ══════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 30px;
  color: var(--ink);
  margin: 0;
}
.section-link {
  font-size: 14px;
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.15s;
}
.section-link:hover { opacity: 0.75; color: var(--orange); }

/* ══════════════════════════════════════════
   CATEGORY CARDS
   ══════════════════════════════════════════ */
.category-card {
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: all 0.22s var(--ease);
  box-shadow: var(--shadow-xs);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-mid);
  color: var(--ink);
}
.category-icon {
  font-size: 40px;
  margin-bottom: 10px;
  line-height: 1;
}
.category-name {
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}
.category-count {
  font-size: 12px;
  color: var(--ink-light);
}

.category-card-full {
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: all 0.22s var(--ease);
  box-shadow: var(--shadow-xs);
}
.category-card-full:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange-mid);
  color: var(--ink);
}

/* ══════════════════════════════════════════
   ARTICLE CARDS
   ══════════════════════════════════════════ */
.article-card {
  background: var(--card-bg);
  border: 1.5px solid var(--cream-dark);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: all 0.22s var(--ease);
  box-shadow: var(--shadow-xs);
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-mid);
  color: var(--ink);
}
.article-card.featured {
  grid-column: span 2;
  flex-direction: row;
}
.article-card.featured .article-thumb {
  width: 240px;
  flex-shrink: 0;
  border-radius: 0;
  height: auto;
}

.article-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}
.article-content { padding: 18px; flex: 1; }
.article-category {
  font-size: 11px;
  color: var(--orange);
  font-family: 'Fredoka One', cursive;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.article-title-card {
  font-family: 'Fredoka One', cursive;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
}
.article-excerpt-card {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta-card {
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.quiz-tag {
  background: var(--blue-light);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

/* ══════════════════════════════════════════
   QUIZ CTA BANNER
   ══════════════════════════════════════════ */
.quiz-banner {
  background: linear-gradient(135deg, var(--blue), #1976D2);
  border-radius: 24px;
  padding: 48px 52px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.quiz-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.quiz-banner::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 30%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.quiz-banner h2 {
  font-size: 34px;
  color: var(--white);
  margin-bottom: 12px;
}
.quiz-banner p { font-size: 15px; color: rgba(255,255,255,0.8); max-width: 480px; }
.quiz-banner-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 14px;
}

.quiz-score-box {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 28px 36px;
  text-align: center;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}
.quiz-score-num {
  font-family: 'Fredoka One', cursive;
  font-size: 52px;
  color: var(--white);
  line-height: 1;
}
.quiz-score-label {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
}

/* ══════════════════════════════════════════
   PAGE HERO (category/article pages)
   ══════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(160deg, var(--cream) 0%, var(--blue-light) 100%);
  padding: 52px 0 48px;
  border-bottom: 1px solid var(--cream-dark);
}
.page-hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}
.page-hero p { font-size: 15px; color: var(--ink-light); }

/* Breadcrumb */
.breadcrumb-qk {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.breadcrumb-qk a {
  font-size: 13px;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb-qk a:hover { color: var(--orange); }
.breadcrumb-qk .sep { color: var(--ink-faint); font-size: 13px; }
.breadcrumb-qk .current { font-size: 13px; color: var(--ink); }

/* ══════════════════════════════════════════
   SUBCATEGORY CARDS
   ══════════════════════════════════════════ */
.subcat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.22s var(--ease);
  box-shadow: var(--shadow-xs);
}
.subcat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange-mid);
  color: var(--ink);
}
.subcat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.subcat-name {
  font-family: 'Fredoka One', cursive;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 3px;
}
.subcat-desc { font-size: 12px; color: var(--ink-light); }

/* ══════════════════════════════════════════
   ARTICLE PAGE
   ══════════════════════════════════════════ */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 44px 24px 80px; }

.article-header { margin-bottom: 24px; }
.cat-badge {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-family: 'Fredoka One', cursive;
  margin-bottom: 6px;
}

.article-thumb-full {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  margin-bottom: 32px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 10px;
}
.grade-badge {
  background: var(--green-light);
  color: var(--green);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
}

/* Article body prose */
.article-body { line-height: 1.8; font-size: 16px; color: var(--ink-mid); }
.article-body h2, .article-body h3 {
  font-family: 'Fredoka One', cursive;
  color: var(--ink);
  margin: 28px 0 12px;
}
.article-body h2 { font-size: 26px; }
.article-body h3 { font-size: 21px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 16px; }
.article-body li { margin-bottom: 8px; }

/* Fun fact */
.fun-fact-box {
  background: linear-gradient(135deg, var(--yellow-light,#FFFDE7), var(--orange-light));
  border: 2px solid rgba(245,124,0,0.2);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 28px 0;
}
.fun-fact-title {
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  color: var(--orange);
  margin-bottom: 8px;
}
.fun-fact-text { font-size: 15px; color: var(--ink-mid); line-height: 1.6; }

/* Exam tips */
.exam-tips-box {
  background: linear-gradient(135deg, var(--blue-light), #DCEEFF);
  border: 2px solid rgba(21,101,192,0.15);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 28px 0;
}
.exam-tips-title {
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  color: var(--blue);
  margin-bottom: 14px;
}
.exam-tip-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--ink-mid);
}
.tip-bullet {
  width: 20px; height: 20px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: 'Fredoka One', cursive;
}

/* Quiz section */
.quiz-section {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 22px;
  padding: 32px;
  margin-top: 40px;
}
.quiz-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.quiz-title {
  font-family: 'Fredoka One', cursive;
  font-size: 26px;
  color: var(--ink);
}

/* Progress bar */
.quiz-progress-bar-wrap { margin-bottom: 24px; }
.quiz-progress-bar {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 5px;
}
.quiz-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  transition: width 0.4s var(--ease);
  width: 0%;
}
.quiz-progress-text { font-size: 12px; color: var(--ink-light); }

/* Question blocks */
.question-block {
  background: var(--cream);
  border: 1.5px solid var(--cream-dark);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
}
.q-text {
  font-family: 'Fredoka One', cursive;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.4;
}
.option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  transition: all 0.18s var(--ease);
  margin-bottom: 8px;
  font-family: 'Nunito', sans-serif;
}
.option:hover:not(.disabled) {
  border-color: var(--blue-mid);
  background: var(--blue-light);
}
.option-letter {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  font-family: 'Fredoka One', cursive;
}
.option.correct { background: var(--green-light); border-color: var(--green); }
.option.wrong   { background: var(--red-light);   border-color: var(--red); }
.option.disabled { cursor: not-allowed; opacity: 0.8; }
.explanation {
display: none; /* JS will toggle this to 'flex' instead of 'block' */
  align-items: flex-start; /* Keeps emoji at the top if text is long */
  gap: 8px; /* Space between emoji and text */
  background: var(--white); /* Changed to white */
  border: 2px dashed var(--blue-mid);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink-mid);
  margin-top: 15px;
  line-height: 1.6;
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.9); }
  70% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* Add this to ensure the emoji doesn't shrink */
.explanation::before {
  content: '💡';
  flex-shrink: 0;
}

/* Score box */
.score-box {
  display: none;
  background: linear-gradient(135deg, var(--blue), #1976D2);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  color: var(--white);
  margin-top: 28px;
}
.score-emoji { font-size: 48px; margin-bottom: 12px; line-height: 1; }
.score-num {
  font-family: 'Fredoka One', cursive;
  font-size: 52px;
  color: var(--white);
  outline: none;
}
.score-msg { font-size: 15px; color: rgba(255,255,255,0.85); margin-top: 8px; margin-bottom: 20px; }

/* Sibling nav */
.sibling-nav { display: flex; gap: 12px; margin: 36px 0 28px; justify-content: space-between; }
.sibling-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  flex: 1;
  max-width: 48%;
  transition: all 0.18s var(--ease);
}
.sibling-btn:hover {
  border-color: var(--orange-mid);
  background: var(--orange-light);
  transform: translateY(-2px);
  color: var(--ink);
}
.next-btn { justify-content: flex-end; text-align: right; }
.sibling-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 3px;
  font-family: 'Fredoka One', cursive;
}
.sibling-title { font-size: 13px; color: var(--ink); line-height: 1.4; }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 32px;
  margin-top: 0;
}
.footer-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 26px;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-logo span { color: var(--orange-mid); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.5); margin: 0; }
.footer-col h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--orange-mid); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  margin-top: 40px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ══════════════════════════════════════════
   BACK TO TOP
   ══════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--blue-hover); transform: translateY(-3px); }

/* ══════════════════════════════════════════
   SKELETONS
   ══════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--cream-dark) 25%, var(--cream) 50%, var(--cream-dark) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.skeleton-thumb { height: 140px; border-radius: 12px 12px 0 0; }
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-line.wide   { width: 90%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.short  { width: 40%; }

/* ══════════════════════════════════════════
   ANIMATE IN
   ══════════════════════════════════════════ */
.animate-in {
  animation: fadeUp 0.5s var(--ease) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════ */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state-icon { font-size: 56px; margin-bottom: 20px; }
.empty-state h3 { font-family: 'Fredoka One', cursive; font-size: 24px; color: var(--ink-mid); margin-bottom: 10px; }
.empty-state p { font-size: 14px; color: var(--ink-light); margin-bottom: 24px; }

/* ══════════════════════════════════════════
   AUTH / LOGIN
   ══════════════════════════════════════════ */
.auth-container {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.auth-tabs {
  display: flex;
  background: var(--cream);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  cursor: pointer;
  font-family: 'Fredoka One', cursive;
  color: var(--ink-light);
  font-size: 15px;
  padding: 9px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.18s var(--ease);
}
.auth-tab.active {
  color: var(--blue);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.auth-perks {
  background: var(--orange-light);
  border: 1px solid rgba(245,124,0,0.15);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 24px;
}
.auth-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-mid);
  margin-bottom: 8px;
}
.auth-perk:last-child { margin-bottom: 0; }
.auth-perk-icon {
  width: 24px; height: 24px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  color: white;
}

/* Form controls */
.form-label-qk {
  display: block;
  font-family: 'Fredoka One', cursive;
  font-size: 12px;
  color: var(--ink-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.form-control-qk {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 400;
  outline: none;
  background: var(--cream);
  color: var(--ink);
  transition: all 0.18s var(--ease);
}
.form-control-qk:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.12);
}
.password-wrap { position: relative; }
.password-wrap .form-control-qk { padding-right: 44px; }
.password-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink-light);
  padding: 4px;
  border-radius: 6px;
}
.strength-wrap { margin-top: 8px; }
.strength-bar {
  height: 4px;
  background: var(--cream-dark);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}
.strength-fill {
  height: 100%;
  border-radius: 999px;
  width: 0%;
  transition: width 0.3s, background 0.3s;
}
.strength-label { font-size: 11px; color: var(--ink-light); }
.forgot-link {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--orange);
  text-decoration: none;
  margin-bottom: 20px;
}
.forgot-link:hover { opacity: 0.75; color: var(--orange); }
#auth-msg { font-size: 13px; text-align: center; min-height: 20px; }

/* ══════════════════════════════════════════
   LOAD MORE
   ══════════════════════════════════════════ */
.load-more-wrap { text-align: center; margin-top: 36px; }

/* SR only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 991px) {
  .hero h1 { font-size: 40px; }
  .hero-card-col { display: none; }
}
@media (max-width: 767px) {
  .navbar { padding: 0 16px; }
  .hero-wrap { padding: 48px 0 56px; }
  .hero h1 { font-size: 34px; }
  .quiz-banner { padding: 32px 24px; }
  .quiz-banner h2 { font-size: 26px; }
  .quiz-score-box { display: none; }
  .article-card.featured { flex-direction: column; grid-column: span 1; }
  .article-card.featured .article-thumb { width: 100%; height: 140px; }
  .sibling-btn { max-width: 100%; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .section-title { font-size: 24px; }
}
