
/* === CHRISTMAS TRIVIA DESIGN SYSTEM === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800;900&family=Lato:wght@300;400;700;900&display=swap');

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

:root {
  --red: #c0392b;
  --red-dark: #8e2218;
  --red-light: #e74c3c;
  --green: #1a6b3c;
  --green-light: #27ae60;
  --gold: #d4a017;
  --gold-light: #f1c40f;
  --cream: #fdf8f0;
  --warm-gray: #f5f0eb;
  --dark: #1a1a2e;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --content-width: 820px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--dark);
  line-height: 1.25;
}

a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-dark); }

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

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes snowfall {
  0% { transform: translateY(-10%) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(110%) rotate(360deg); opacity: 0; }
}

@keyframes progressGrow {
  from { width: 0; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(192,57,43,0); }
}

@keyframes rotateIn {
  from { transform: rotate(-90deg); opacity: 0; }
  to { transform: rotate(0deg); opacity: 1; }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Auto fade-in for cards and content sections via CSS-only animation */
.card,
.q-item,
.quick-answer,
.questions-box,
.cta-banner,
.sister-link,
.howto,
.toc {
  animation: fadeInUp 0.6s ease-out both;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }
.card:nth-child(5) { animation-delay: 0.4s; }
.card:nth-child(6) { animation-delay: 0.5s; }

/* === HEADER === */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-logo:hover { color: var(--red); }
.site-logo span { color: var(--red); }

/* Navigation */
.site-nav { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.site-nav a {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--cream); color: var(--red); }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: 100px !important;
  padding: 8px 20px !important;
  font-weight: 700 !important;
  transition: all 0.25s ease !important;
}
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 8px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 3px solid var(--red);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 16px; font-size: 1rem; min-height: 44px; display: flex; align-items: center; }
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 40%, var(--red-light) 100%);
  color: #ffffff;
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.10) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(0,0,0,0.12) 0%, transparent 70%);
  z-index: 0;
}

/* Snowflake pattern pseudo-element overlay */
.hero::after {
  content: '\2744\00a0\00a0\2745\00a0\00a0\2746\00a0\00a0\2744\00a0\00a0\2745\00a0\00a0\2746\00a0\00a0\2744\00a0\00a0\2745\00a0\00a0\2746\00a0\00a0\2744\00a0\00a0\2745\00a0\00a0\2746';
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.09);
  letter-spacing: 40px;
  line-height: 3;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; animation: fadeIn 0.8s ease-out; }

/* Hero badge with shimmer effect */
.hero-badge {
  display: inline-block;
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.18) 40%,
    rgba(255,255,255,0.42) 50%,
    rgba(255,255,255,0.18) 60%,
    rgba(255,255,255,0.18) 100%
  );
  background-size: 200% 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 8px 24px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  animation: shimmer 3s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.hero p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  font-weight: 300;
  max-width: 650px;
  margin: 0 auto 32px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero-stat { text-align: center; }
.hero-stat-num { display: block; font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 800; color: #ffffff; text-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.hero-stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.80); text-transform: uppercase; letter-spacing: 1px; }

/* === MAIN CONTENT === */
.main { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px; }
.content-narrow { max-width: var(--content-width); margin: 0 auto; }

/* Section headers with gradient underline on hover */
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 64px 0 32px;
}
.section-header:first-child { margin-top: 0; }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}
.section-header h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold-light));
  border-radius: 2px;
  transition: width 0.4s ease;
}
.section-header:hover h2::after {
  width: 100%;
}
.section-line { flex: 1; height: 2px; background: linear-gradient(90deg, var(--red), transparent); border-radius: 2px; }

/* Article content h2 gradient underline on hover */
.article-content h2 {
  position: relative;
  display: inline-block;
}
.article-content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold-light));
  border-radius: 2px;
  transition: width 0.4s ease;
}
.article-content h2:hover::after {
  width: 100%;
}

/* === CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background-color: #fffcf8;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}
.card.card-green::before { background: linear-gradient(90deg, var(--green), var(--green-light)); }
.card.card-gold::before { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.card.card-red::before { background: linear-gradient(90deg, var(--red), var(--red-light)); }
.card-icon { font-size: 2.8rem; margin-bottom: 16px; display: block; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card h3 a { color: var(--dark); transition: color 0.2s ease; }
.card h3 a:hover { color: var(--red); }
.card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 12px; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag {
  display: inline-block;
  background: var(--warm-gray);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  transition: background-color 0.2s ease;
}
.tag:hover { background: #ebe5de; }
.tag-popular {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
}
.card-count { display: block; font-size: 0.85rem; font-weight: 700; color: var(--green); margin-top: 14px; }

/* === QUICK ANSWER === */
.quick-answer {
  background: linear-gradient(135deg, var(--cream), var(--white));
  border-left: 5px solid var(--gold);
  padding: 28px 32px;
  border-radius: var(--radius);
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.quick-answer-label {
  color: #b8860b;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 10px;
}

/* === ARTICLE CONTENT === */
.article-content { padding: 24px 0 48px; }
.article-content h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 24px; font-weight: 800; }
.article-content h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream);
}
.article-content h3 { font-size: 1.2rem; margin-top: 32px; margin-bottom: 12px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 16px 0; padding-left: 28px; }
.article-content li { margin-bottom: 8px; }

/* Table of contents */
.toc {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 32px 0;
}
.toc h2 { font-size: 1.15rem !important; margin: 0 0 12px !important; padding: 0 !important; border: none !important; }
.toc h2::after { display: none !important; }
.toc ul { list-style: none; padding: 0; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { font-size: 0.92rem; transition: color 0.2s ease, padding-left 0.2s ease; }
.toc a:hover { padding-left: 4px; }
@media (max-width: 600px) { .toc ul { columns: 1; } }

/* Questions / Details - improved with rotating arrow */
details { margin: 12px 0; }
details summary {
  color: var(--red);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 0 10px 28px;
  transition: color 0.2s ease;
  position: relative;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::marker { display: none; content: ''; }
details summary::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 0;
  height: 0;
  border-left: 7px solid var(--red);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition: transform 0.3s ease;
}
details[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
}
details summary:hover { color: var(--red-dark); }
details[open] summary { margin-bottom: 4px; }
details p {
  padding: 12px 18px;
  background: var(--cream);
  border-radius: 8px;
  margin-top: 4px;
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease-out;
}

/* Sample questions box */
.questions-box {
  background: var(--warm-gray);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  margin: 40px 0;
}
.q-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.q-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.q-item:last-child { margin-bottom: 0; }
.q-item strong { color: var(--dark); font-size: 1.02rem; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-light) 100%);
  color: #ffffff;
  padding: 56px 36px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 56px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.cta-banner h2 { color: #ffffff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 16px; position: relative; z-index: 1; text-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.cta-banner p { font-size: 1.1rem; color: rgba(255,255,255,0.92); max-width: 580px; margin: 0 auto 28px; position: relative; z-index: 1; }
.btn-primary {
  display: inline-block;
  background: #ffffff;
  color: var(--red);
  padding: 16px 44px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: 'Lato', sans-serif;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); color: var(--red); background: #fff8f6; }

/* Sister site link */
.sister-link {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: #ffffff;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sister-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sister-link-text { flex: 1; min-width: 260px; }
.sister-link h3 { color: #ffffff; font-size: 1.25rem; margin-bottom: 8px; }
.sister-link p { margin: 0; color: rgba(255,255,255,0.9); }
.btn-white {
  display: inline-block;
  background: #ffffff;
  color: var(--green);
  padding: 12px 32px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-white:hover { transform: translateY(-2px); color: var(--green); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* How-to steps */
.howto { background: var(--white); border-radius: var(--radius-lg); padding: 40px 36px; margin: 40px 0; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04); }
.howto ol { counter-reset: steps; list-style: none; padding: 0; }
.howto li { counter-increment: steps; padding: 18px 0 18px 64px; position: relative; border-bottom: 1px solid var(--warm-gray); }
.howto li:last-child { border-bottom: none; }
.howto li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 18px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'Lato', sans-serif;
}

/* === FOOTER === */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 32px;
  margin-top: 80px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand h3 { font-family: 'Playfair Display', serif; color: #ffffff; font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; }
.footer-links h4 { color: #ffffff; font-family: 'Lato', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.92rem; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--gold-light); }

/* === BREADCRUMBS === */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumbs a { color: var(--text-light); transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { margin: 0 8px; opacity: 0.5; }

/* Content page article top spacing fix */
.article-content { padding-top: 24px; }
.pillar-page > .quick-answer-box:first-child { margin-top: 0; }

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


/* ============================================
   INTERACTIVE QUIZ WIDGET
   ============================================ */

.quiz-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--cream);
  position: relative;
  overflow: hidden;
}
.quiz-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--green), var(--gold));
}

.quiz-question {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.4;
}

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

.quiz-option {
  background: var(--warm-gray);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 16px 20px 16px 52px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  transition: all 0.25s ease;
  position: relative;
  text-align: left;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.quiz-option::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-light);
  background: var(--white);
  transition: all 0.25s ease;
}
.quiz-option:hover {
  border-color: var(--red-light);
  background: #fdf0ee;
  transform: translateX(4px);
}
.quiz-option:hover::before {
  border-color: var(--red);
}

.quiz-option.selected {
  border-color: var(--red);
  background: #fdf0ee;
  font-weight: 700;
}
.quiz-option.selected::before {
  border-color: var(--red);
  background: var(--red);
  box-shadow: inset 0 0 0 3px var(--white);
}

.quiz-option.correct {
  border-color: var(--green-light);
  background: #eafaf1;
  color: var(--green);
  font-weight: 700;
}
.quiz-option.correct::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 3px var(--white);
}

.quiz-option.wrong {
  border-color: var(--red-light);
  background: #fdecea;
  color: var(--red);
  font-weight: 700;
  opacity: 0.85;
}
.quiz-option.wrong::before {
  border-color: var(--red-light);
  background: var(--red-light);
  box-shadow: inset 0 0 0 3px var(--white);
}

.quiz-option.correct::after {
  content: '\2713';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--green);
  font-weight: 900;
  animation: rotateIn 0.3s ease;
}
.quiz-option.wrong::after {
  content: '\2717';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--red-light);
  font-weight: 900;
  animation: rotateIn 0.3s ease;
}

.quiz-score {
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
}
.quiz-score span {
  color: var(--green);
}

.quiz-progress {
  width: 100%;
  height: 8px;
  background: var(--warm-gray);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 24px;
}
.quiz-progress-bar,
.quiz-progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--green));
  border-radius: 100px;
  transition: width 0.5s ease;
}

.quiz-btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  min-height: 44px;
}
.quiz-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(192,57,43,0.3);
  color: var(--white);
}
.quiz-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.quiz-btn.quiz-btn-restart {
  background: var(--green);
}
.quiz-btn.quiz-btn-restart:hover {
  background: var(--green-light);
}


/* ============================================
   HIGHLIGHT BOX VARIANTS
   ============================================ */

.highlight-box {
  padding: 28px 32px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.5s ease-out both;
}
.highlight-box-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 10px;
}

/* Red variant */
.highlight-box.highlight-red {
  background: linear-gradient(135deg, #fdf0ee, var(--white));
  border-left: 5px solid var(--red);
}
.highlight-box.highlight-red .highlight-box-label { color: var(--red); }

/* Green variant */
.highlight-box.highlight-green {
  background: linear-gradient(135deg, #eafaf1, var(--white));
  border-left: 5px solid var(--green);
}
.highlight-box.highlight-green .highlight-box-label { color: var(--green); }

/* Gold variant (same as quick-answer style) */
.highlight-box.highlight-gold {
  background: linear-gradient(135deg, var(--cream), var(--white));
  border-left: 5px solid var(--gold);
}
.highlight-box.highlight-gold .highlight-box-label { color: #b8860b; }


/* ============================================
   FACT CARD
   ============================================ */

.fact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-bottom: 32px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.fact-card-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1.1;
  margin-bottom: 12px;
}
.fact-card-text {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}
.fact-card-source {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 12px;
}


/* ============================================
   SHARE BAR
   ============================================ */

.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0;
  margin: 24px 0;
  border-top: 1px solid var(--cream);
  border-bottom: 1px solid var(--cream);
}
.share-bar-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}
.share-bar a,
.share-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  text-decoration: none;
  border: 2px solid var(--cream);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  gap: 6px;
}
.share-bar a:hover,
.share-bar button:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}


/* ============================================
   PRINT BUTTON
   ============================================ */

.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--warm-gray);
  color: var(--text);
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 44px;
}
.print-btn:hover {
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.print-btn::before {
  content: '\1F5A8';
  font-size: 1.1rem;
}


/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(192,57,43,0.35);
  transition: all 0.3s ease;
  z-index: 90;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(192,57,43,0.45);
}
.back-to-top::after {
  content: '\2191';
  font-weight: 900;
}


/* ============================================
   READING PROGRESS BAR
   ============================================ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold-light), var(--green));
  z-index: 200;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}


/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 900px) {
  .hero { padding: 56px 20px; }
  .hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
  .hero-stats { gap: 32px; }
  .hero-stat-num { font-size: 2rem; }

  .main { padding: 36px 16px; }

  .section-header { margin: 48px 0 24px; }

  .card-grid { grid-template-columns: 1fr; gap: 20px; }
  .card { padding: 24px 20px; }

  .questions-box { padding: 28px 20px; }
  .q-item { padding: 16px 18px; }

  .cta-banner { padding: 40px 24px; margin: 40px 0; }

  .sister-link { padding: 24px 20px; gap: 20px; }

  .howto { padding: 28px 20px; }
  .howto li { padding-left: 56px; }

  .quiz-widget { padding: 28px 20px; }
  .quiz-option { padding: 14px 16px 14px 48px; }

  .quick-answer { padding: 22px 24px; }
  .highlight-box { padding: 22px 24px; }

  .fact-card { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .hero { padding: 44px 16px; }
  .hero h1 { font-size: 1.6rem; line-height: 1.3; }
  .hero p { font-size: 0.95rem; margin-bottom: 24px; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 1.7rem; }
  .hero-badge { font-size: 0.72rem; padding: 5px 16px; }

  .header-inner { padding: 0 16px; height: 64px; }
  .site-logo { font-size: 1.2rem; }

  .section-header h2 { font-size: 1.3rem; }
  .section-header { flex-direction: column; gap: 8px; align-items: flex-start; }
  .section-line { width: 100%; }

  .breadcrumbs { padding: 12px 16px; font-size: 0.8rem; }

  .article-content h1 { font-size: 1.6rem; }
  .article-content h2 { font-size: 1.25rem; margin-top: 40px; }

  .toc { padding: 20px 18px; }

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

  .share-bar { justify-content: center; }

  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

/* Ensure all interactive elements meet 44px touch targets on touch devices */
@media (pointer: coarse) {
  .site-nav a,
  .nav-toggle,
  .btn-primary,
  .btn-white,
  .quiz-btn,
  .quiz-option,
  .print-btn,
  .share-bar a,
  .share-bar button,
  .back-to-top,
  details summary,
  .toc a {
    min-height: 44px;
  }
  details summary { padding-top: 12px; padding-bottom: 12px; }
  .toc a { display: inline-block; padding: 6px 0; }
  .toc li { margin-bottom: 2px; }
}


/* ============================================
   DARK MODE
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1e1e2e;
    --warm-gray: #252538;
    --dark: #e8e8f0;
    --text: #d0d0dc;
    --text-light: #9898ac;
    --white: #141422;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.35);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.45);
  }

  body { background: #141422; }

  .site-header {
    background: #1a1a2e;
    border-bottom-color: var(--red);
  }

  .site-nav a { color: var(--text); }
  .site-nav a:hover { background: #252538; color: var(--red-light); }

  .card { background: #1a1a2e; border: 1px solid rgba(255,255,255,0.06); }
  .card:hover { background: #1e1e32; }
  .card h3 a { color: var(--dark); }

  .quick-answer { background: linear-gradient(135deg, #1e1e2e, #1a1a2e); }
  .quick-answer-box { background: linear-gradient(135deg, #1e1e2e, #1a1a2e) !important; border-left-color: var(--gold) !important; color: var(--text) !important; }
  .quick-answer-box strong { color: var(--gold) !important; }
  .highlight-box.highlight-red { background: linear-gradient(135deg, #2a1a1a, #1a1a2e); }
  .highlight-box.highlight-green { background: linear-gradient(135deg, #1a2a1a, #1a1a2e); }
  .highlight-box.highlight-gold { background: linear-gradient(135deg, #2a2a1a, #1a1a2e); }

  .toc { background: #1e1e2e; }

  details p { background: #1e1e2e; }

  .questions-box { background: #1a1a2e; }
  .q-item { background: #252538; }

  .quiz-widget { background: #1a1a2e; border-color: #252538; }
  .quiz-option { background: #252538; color: var(--text); }
  .quiz-option:hover { background: #2a1e1e; border-color: var(--red-light); }
  .quiz-option.selected { background: #2a1e1e; }
  .quiz-option.correct { background: #1a2a1a; color: var(--green-light); }
  .quiz-option.wrong { background: #2a1a1a; color: var(--red-light); }
  .quiz-option::before { background: #1a1a2e; border-color: #5a5a6c; }

  .fact-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }

  .share-bar a,
  .share-bar button { background: #1a1a2e; border-color: #252538; color: var(--text); }
  .share-bar a:hover,
  .share-bar button:hover { border-color: var(--red); color: var(--red-light); }

  .print-btn { background: #252538; color: var(--text); border-color: rgba(255,255,255,0.06); }
  .print-btn:hover { background: #1e1e2e; }

  .howto { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }

  .sister-link { box-shadow: none; }

  .site-footer { background: #0e0e1a; }

  .share-bar { border-color: #252538; }

  .tag { background: #252538; color: var(--text); }
  .tag:hover { background: #2e2e42; }

  img { opacity: 0.9; }
}


/* ============================================
   PRINT STYLESHEET
   ============================================ */

@media print {
  .site-header,
  .site-nav,
  .nav-toggle,
  .site-footer,
  .cta-banner,
  .sister-link,
  .back-to-top,
  .reading-progress,
  .share-bar,
  .print-btn,
  .quiz-btn,
  .nav-cta {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
    line-height: 1.6;
  }

  h1, h2, h3, h4 { color: #000; page-break-after: avoid; }
  h2 { border-bottom: 1pt solid #ccc; }

  .hero {
    background: none !important;
    color: #000 !important;
    padding: 20px 0;
  }
  .hero h1 { color: #000 !important; font-size: 24pt; }
  .hero p { color: #333 !important; opacity: 1; }
  .hero-badge { border: 1pt solid #999; color: #333; background: none; }
  .hero::before, .hero::after { display: none; }

  .card {
    box-shadow: none;
    border: 1pt solid #ddd;
    page-break-inside: avoid;
  }
  .card::before { background: #999; }
  .card:hover { transform: none; }

  .quick-answer,
  .highlight-box { border-left: 3pt solid #999; background: #f9f9f9; }

  .quiz-widget { border: 1pt solid #ddd; box-shadow: none; }
  .quiz-option { border: 1pt solid #ccc; background: #f9f9f9; }

  .fact-card { box-shadow: none; border: 1pt solid #ddd; }

  a { color: #000; text-decoration: underline; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #666; }
  .toc a[href]::after { content: ''; }

  .main { max-width: 100%; padding: 0; }
  .content-narrow { max-width: 100%; }

  /* No animations in print */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
