/* ─── Blog Header & Hero ────────────────────────────────────── */
.blog-header-section {
  padding: 48px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.blog-main-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 12px 0 10px;
}

.blog-main-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Blog Grid (Home) ─────────────────────────────────────── */
.blog-grid-section { padding: 56px 0 80px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}

.blog-card-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 14px;
}

.blog-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.blog-read-more {
  color: var(--red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── Article Layout ───────────────────────────────────────── */
.article-section { padding: 48px 0 80px; }
.article-container { max-width: 800px; margin: 0 auto; }

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.article-breadcrumb a { color: var(--text-secondary); transition: color 0.14s; }
.article-breadcrumb a:hover { color: var(--text-primary); }

.article-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 12px 0 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.article-meta-item { display: inline-flex; align-items: center; gap: 5px; }

/* ─── Table of Contents (TOC) ──────────────────────────────── */
.toc-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0 36px;
}

.toc-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin-bottom: 8px; font-size: 14px; }
.toc-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.14s;
}
.toc-list a:hover { color: var(--red); text-decoration: underline; }

/* ─── Article Typography & Content ─────────────────────────── */
.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #2d3748;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 44px 0 16px;
  padding-top: 8px;
}

.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 24px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text-primary); }

/* ─── Stat Grid & Callouts ─────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.stat-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label { font-size: 12.5px; color: var(--text-secondary); }

.article-callout {
  background: var(--bg-subtle);
  border-left: 4px solid var(--red);
  padding: 18px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  font-size: 15px;
}
.article-callout p:last-child { margin-bottom: 0; }

/* ─── Comparison Tables ────────────────────────────────────── */
.table-responsive {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  background: #ffffff;
}

.seo-table th, .seo-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.seo-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-primary);
}

.seo-table tr:last-child td { border-bottom: none; }
.table-highlight { background: var(--red-subtle); font-weight: 600; color: var(--red); }

/* ─── FAQ Section ──────────────────────────────────────────── */
.faq-section {
  margin: 48px 0;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.faq-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 14px;
  background: #ffffff;
}

.faq-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-question i { color: var(--red); }
.faq-answer { font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 0; }

/* ─── Article In-content CTA ───────────────────────────────── */
.article-cta-box {
  background: linear-gradient(135deg, #0a0f1e 0%, #1e293b 100%);
  color: #ffffff;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  margin: 48px 0;
  text-align: center;
}

.article-body .article-cta-box h3,
.article-cta-box .article-cta-title,
.article-cta-title {
  color: #ffffff !important;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.article-body .article-cta-box p,
.article-cta-box .article-cta-desc,
.article-cta-desc {
  font-size: 15px;
  color: #cbd5e1 !important;
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ─── Author & Related Articles ────────────────────────────── */
.author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 40px 0;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.author-info h4 { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.author-info p { font-size: 13px; color: var(--text-secondary); margin-bottom: 0; line-height: 1.5; }

@media (max-width: 640px) {
  .article-title { font-size: 26px; }
  .article-cta-box { padding: 28px 20px; }
  .stat-grid { grid-template-columns: 1fr; }
}
