:root {
  --brand: #0d3b66;
  --brand-accent: #f4a261;
  --soft: #f8f9fa;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a2e;
}

.navbar-brand span { color: var(--brand-accent); }

.hero {
  background: linear-gradient(135deg, var(--brand) 0%, #185a9d 100%);
  color: #fff;
  padding: 5rem 0 4rem;
}
.hero h1 { font-weight: 700; letter-spacing: -0.5px; }

.category-card {
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transition: transform .25s ease;
  height: 100%;
}
.category-card:hover { transform: translateY(-5px); }
.category-card .icon { font-size: 2.4rem; }

.article-card {
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s ease;
  height: 100%;
}
.article-card:hover { transform: translateY(-4px); }
.article-card .card-title { font-weight: 600; line-height: 1.3; }

.badge-topic {
  background: #e9f2fb;
  color: var(--brand);
  font-weight: 500;
}

.ad-slot {
  background: #f1f3f5;
  border: 2px dashed #ced4da;
  border-radius: .5rem;
  text-align: center;
  color: #6c757d;
  font-size: .85rem;
  padding: 1.5rem 1rem;
}
.ad-slot-inline { margin: 2rem 0; }

.stat-box {
  background: var(--soft);
  border-left: 4px solid var(--brand-accent);
  border-radius: .4rem;
  padding: 1rem 1.25rem;
}

.article-body h2 {
  margin-top: 2.25rem;
  font-weight: 700;
  font-size: 1.4rem;
}
.article-body h3 {
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1.15rem;
}
.article-body p { line-height: 1.75; }
.article-body ul, .article-body ol { line-height: 1.75; }

.toc {
  background: var(--soft);
  border-radius: .5rem;
  padding: 1.25rem;
}
.toc a { color: var(--brand); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

footer {
  background: #0b1f33;
  color: #adb5bd;
  padding: 2rem 0 1.5rem;
}
footer a { color: #ced4da; text-decoration: none; }
footer a:hover { color: #fff; }

.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: none;
  z-index: 999;
}

.article-meta { font-size: .85rem; color: #6c757d; }

@media (max-width: 768px) {
  .hero { padding: 3rem 0 2.5rem; }
}