/* ===================================================
   BestCreditCardOptions.com — Main Stylesheet
   Light Theme | SEO-Optimized | Mobile-First
   =================================================== */

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

:root {
  --primary:    #1a56db;
  --primary-dk: #1e40af;
  --accent:     #0ea5e9;
  --green:      #059669;
  --bg:         #f8fafc;
  --bg-card:    #ffffff;
  --border:     #e2e8f0;
  --text:       #1e293b;
  --text-muted: #64748b;
  --gold:       #f59e0b;
  --radius:     12px;
  --shadow:     0 2px 16px rgba(0,0,0,.08);
  --shadow-md:  0 6px 30px rgba(0,0,0,.12);
  --max-w:      1200px;
  --font:       'Inter', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dk); }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section    { padding: 72px 0; }
.section-alt { background: #eef2ff; }
.section-white { background: #ffffff; }

/* --- Typography --- */
h1,h2,h3,h4,h5 { line-height: 1.25; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { color: var(--text-muted); }

.section-title      { text-align: center; margin-bottom: 12px; }
.section-subtitle   { text-align: center; color: var(--text-muted); font-size: 1.05rem; margin-bottom: 48px; max-width: 640px; margin-left: auto; margin-right: auto; }
.label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: 8px; display: block; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all .2s; border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,86,219,.35); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-green  { background: var(--green); color: #fff; }
.btn-green:hover { background: #047857; color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* ===================================================
   HEADER / NAV
   =================================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); }
.logo-icon { width: 38px; height: 38px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { fill: #fff; width: 22px; height: 22px; }
.logo span.accent { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 6px;
  font-size: .93rem; font-weight: 500; color: var(--text);
  transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav a.active { background: #eff6ff; color: var(--primary); }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: .7rem; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  min-width: 220px; padding: 8px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all .2s;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: 6px; font-size: .9rem; color: var(--text); }
.dropdown-menu a:hover { background: #eff6ff; color: var(--primary); }

.nav-cta { margin-left: 12px; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; display: block; }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .main-nav, .nav-cta { display: none; }
  .mobile-nav-open .main-nav {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px; gap: 4px; box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .mobile-nav-open .nav-cta { display: block; padding: 0 20px 20px; }
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 50%, #f0fdf4 100%);
  padding: 80px 0 90px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #dbeafe; color: var(--primary);
  padding: 6px 14px; border-radius: 20px;
  font-size: .8rem; font-weight: 600; margin-bottom: 20px;
}
.hero-title { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 20px; }
.hero-title .highlight { color: var(--primary); }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--text); }
.trust-item svg { width: 18px; height: 18px; fill: var(--green); }

.hero-visual { position: relative; }
.card-stack { position: relative; height: 320px; }
.hero-card {
  position: absolute; border-radius: 16px;
  width: 300px; height: 185px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  transition: transform .3s;
}
.hero-card:hover { transform: translateY(-4px) rotate(-1deg) scale(1.02); }
.card-1 { background: linear-gradient(135deg,#1e40af,#3b82f6); transform: rotate(-6deg) translateX(-20px); top: 0; left: 20px; z-index: 1; }
.card-2 { background: linear-gradient(135deg,#047857,#10b981); transform: rotate(3deg) translateX(30px); top: 60px; left: 60px; z-index: 2; }
.card-3 { background: linear-gradient(135deg,#b45309,#f59e0b); transform: rotate(0deg) translateX(10px); top: 120px; left: 10px; z-index: 3; }
.hero-card .card-chip { width: 36px; height: 28px; background: rgba(255,255,255,.3); border-radius: 5px; }
.hero-card .card-number { font-size: .9rem; color: rgba(255,255,255,.8); letter-spacing: .1em; font-family: monospace; }
.hero-card .card-type { font-size: .75rem; color: rgba(255,255,255,.7); font-weight: 600; }
.hero-card .card-reward { font-size: 1.1rem; color: #fff; font-weight: 700; }
.hero-card .card-row { display: flex; justify-content: space-between; align-items: flex-end; }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
}

/* ===================================================
   SEARCH BAR
   =================================================== */
.search-bar-section {
  background: #fff; padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.search-bar-wrap {
  display: flex; max-width: 680px; margin: 0 auto;
  background: var(--bg); border: 2px solid var(--border);
  border-radius: 50px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.search-bar-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,86,219,.12); }
.search-bar-wrap input {
  flex: 1; border: none; background: transparent;
  padding: 14px 20px; font-size: 1rem; outline: none; color: var(--text);
}
.search-bar-wrap button {
  background: var(--primary); color: #fff; border: none;
  padding: 0 24px; font-weight: 600; cursor: pointer;
  font-size: .95rem; transition: background .2s;
  border-radius: 0 50px 50px 0;
}
.search-bar-wrap button:hover { background: var(--primary-dk); }
.search-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.search-tag {
  background: #eff6ff; color: var(--primary);
  padding: 5px 12px; border-radius: 20px; font-size: .82rem;
  font-weight: 500; cursor: pointer; transition: background .15s;
}
.search-tag:hover { background: #dbeafe; }

/* ===================================================
   STATS STRIP
   =================================================== */
.stats-strip { background: var(--primary); padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: #fff; }
.stat-lbl { font-size: .85rem; color: rgba(255,255,255,.75); margin-top: 2px; }

@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

/* ===================================================
   CATEGORIES
   =================================================== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.cat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px;
  text-align: center; transition: all .2s; cursor: pointer;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--text); }
.cat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.cat-name { font-weight: 700; font-size: .97rem; }
.cat-count { font-size: .82rem; color: var(--text-muted); }

/* ===================================================
   CARD LISTINGS (Top Picks)
   =================================================== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 24px; }
.cc-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: all .22s;
  display: flex; flex-direction: column;
}
.cc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cc-card-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.cc-card-badge { width: 64px; height: 42px; border-radius: 8px; object-fit: contain; background: #f1f5f9; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: var(--text-muted); }
.cc-card-title { font-size: 1.08rem; font-weight: 700; margin-bottom: 2px; }
.cc-card-issuer { font-size: .82rem; color: var(--text-muted); }
.cc-rating { display: flex; gap: 2px; color: var(--gold); font-size: .85rem; margin-top: 4px; }
.cc-rating span { color: var(--text-muted); font-size: .82rem; margin-left: 4px; }

.cc-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.cc-highlight { background: #f8fafc; border-radius: 8px; padding: 10px 12px; }
.cc-hl-label { font-size: .74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-bottom: 2px; }
.cc-hl-value { font-size: .95rem; font-weight: 700; color: var(--text); }

.cc-pros { margin-bottom: 18px; }
.cc-pro { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; color: var(--text-muted); margin-bottom: 5px; }
.cc-pro::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

.cc-card-footer { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.cc-card-footer .btn { flex: 1; justify-content: center; font-size: .9rem; }

.best-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fef3c7; color: #92400e;
  padding: 4px 10px; border-radius: 20px;
  font-size: .76rem; font-weight: 700; margin-bottom: 10px;
}

/* ===================================================
   COMPARISON TABLE
   =================================================== */
.comparison-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.comparison-table { width: 100%; border-collapse: collapse; background: #fff; }
.comparison-table th {
  background: var(--primary); color: #fff;
  padding: 16px 20px; text-align: left; font-size: .9rem;
  white-space: nowrap;
}
.comparison-table th:first-child { border-radius: 12px 0 0 0; }
.comparison-table th:last-child  { border-radius: 0 12px 0 0; }
.comparison-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: #f8fafc; }
.comparison-table tr:hover td { background: #eff6ff; }
.td-check { color: var(--green); font-size: 1.1rem; }
.td-x { color: #ef4444; font-size: 1.1rem; }

/* ===================================================
   ARTICLES / BLOG
   =================================================== */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 28px; }
.article-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .22s;
  display: flex; flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-thumb {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--bg), var(--border));
}
.article-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.article-cat { background: #dbeafe; color: var(--primary); padding: 3px 9px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.article-date { font-size: .78rem; color: var(--text-muted); }
.article-read { font-size: .78rem; color: var(--text-muted); }
.article-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); line-height: 1.35; }
.article-title a { color: inherit; }
.article-title a:hover { color: var(--primary); }
.article-desc { font-size: .88rem; color: var(--text-muted); margin-bottom: 16px; flex: 1; }
.article-link { font-size: .88rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 5px; margin-top: auto; }
.article-link:hover { gap: 8px; }

/* ===================================================
   FEATURED / HERO ARTICLE
   =================================================== */
.featured-article {
  background: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
  border-radius: var(--radius); padding: 48px 40px;
  color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.featured-article h2 { color: #fff; margin-bottom: 14px; }
.featured-article p { color: rgba(255,255,255,.85); margin-bottom: 24px; }
.featured-visual { font-size: 6rem; text-align: center; }

@media (max-width: 640px) { .featured-article { grid-template-columns: 1fr; } .featured-visual { display: none; } }

/* ===================================================
   HOW IT WORKS
   =================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 24px; }
.step-card { text-align: center; padding: 28px 20px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: .9rem; }

/* ===================================================
   TRUST / EXPERT SECTION
   =================================================== */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 20px; }
.trust-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px 20px;
  text-align: center; box-shadow: var(--shadow);
}
.trust-icon { font-size: 2.2rem; margin-bottom: 12px; }
.trust-card h4 { margin-bottom: 6px; font-size: .95rem; }
.trust-card p { font-size: .84rem; }

/* ===================================================
   NEWSLETTER
   =================================================== */
.newsletter { background: linear-gradient(135deg, #eff6ff, #e0f2fe); padding: 72px 0; }
.newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter h2 { margin-bottom: 12px; }
.newsletter p { margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1 1 260px; padding: 14px 20px;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: 1rem; outline: none;
  transition: border-color .2s;
}
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-note { font-size: .8rem; color: var(--text-muted); margin-top: 10px; }

/* ===================================================
   FAQ SECTION
   =================================================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 18px 22px;
  background: #fff; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  transition: background .15s;
}
.faq-q:hover { background: #f8fafc; }
.faq-q span { font-size: 1.2rem; color: var(--primary); transition: transform .25s; }
.faq-a { padding: 0 22px 18px; font-size: .93rem; color: var(--text-muted); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q span { transform: rotate(45deg); }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 14px; }
.footer-logo-icon { width: 34px; height: 34px; background: var(--primary); border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.footer-logo-icon svg { fill: #fff; width: 20px; height: 20px; }
.footer-about { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: #cbd5e1; transition: background .2s;
  text-decoration: none;
}
.social-btn:hover { background: var(--primary); color: #fff; }

.footer-col h5 { color: #fff; font-size: .92rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .87rem; color: #94a3b8; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: gap;
  gap: 12px;
}
.footer-bottom p { font-size: .82rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: .82rem; color: #94a3b8; }
.footer-links a:hover { color: #fff; }
.disclaimer { font-size: .78rem; color: #64748b; margin-top: 20px; line-height: 1.6; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ===================================================
   BREADCRUMBS
   =================================================== */
.breadcrumbs { padding: 14px 0; font-size: .85rem; color: var(--text-muted); border-bottom: 1px solid var(--border); background: #fff; }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span { margin: 0 6px; }

/* ===================================================
   ARTICLE PAGE
   =================================================== */
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: flex-start; }
.article-content { background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.article-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-content h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.article-content h2 { font-size: 1.5rem; margin: 36px 0 14px; color: var(--text); }
.article-content h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article-content p  { margin-bottom: 16px; color: #374151; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 16px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; color: #374151; font-size: .95rem; }
.article-content strong { color: var(--text); }

.callout {
  background: #eff6ff; border-left: 4px solid var(--primary);
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 24px 0;
}
.callout.green { background: #ecfdf5; border-color: var(--green); }
.callout.yellow { background: #fffbeb; border-color: var(--gold); }
.callout-title { font-weight: 700; margin-bottom: 6px; font-size: .95rem; }

.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 88px; }
.sidebar-widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.sidebar-widget h4 { font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 6px; }
.toc-list a { font-size: .87rem; color: var(--text-muted); transition: color .15s; }
.toc-list a:hover { color: var(--primary); }
.toc-list a.active { color: var(--primary); font-weight: 600; }

@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* ===================================================
   RATING / SCORE
   =================================================== */
.score-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fef3c7; border: 1px solid #fde68a;
  padding: 6px 14px; border-radius: 8px;
  font-weight: 800; font-size: 1.2rem; color: #92400e;
}

/* ===================================================
   UTILITIES
   =================================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-green  { color: var(--green); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.flex  { display: flex; }
.gap-12 { gap: 12px; }
.gap-20 { gap: 20px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .cards-grid, .articles-grid { grid-template-columns: 1fr; }
}

/* --- Page-level active states --- */
.page-hero { background: linear-gradient(135deg, #eff6ff, #e0f2fe); padding: 56px 0 64px; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; max-width: 620px; }

/* --- Skeleton Loading --- */
.skeleton { background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* --- Progress Bar --- */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--primary); z-index: 999; transition: width .1s; }
