/* ===== Blog styles (extends styles.css) ===== */

/* Header on blog pages gets a solid background right away */
body.blog { padding-top: 72px; }

/* ---- Breadcrumb ---- */
.crumbs { font-size: 0.85rem; color: var(--muted); padding: 28px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.crumbs span { color: var(--border); margin: 0 8px; }

/* ---- Article head ---- */
.post-head { padding: 28px 0 56px; }
.kicker {
  display: inline-block; font-family: 'Oswald', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  color: var(--red); margin-bottom: 14px;
}
.post-head h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; line-height: 1.06;
  margin-bottom: 18px; max-width: 20ch;
}
.post-head .standfirst {
  color: #d4d4d8; font-size: 1.12rem; max-width: 62ch; margin-bottom: 24px;
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  color: var(--muted); font-size: 0.88rem;
  border-top: 1px solid var(--dark-2); padding-top: 18px;
}
.post-meta strong { color: #d4d4d8; font-weight: 600; }

.post-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.post-hero-img { border-radius: 14px; overflow: hidden; border: 1px solid var(--dark-2); }
.post-hero-img img { width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: center top; }

/* ---- Article body ---- */
.post-body { padding-bottom: 40px; }
.post-body > * { max-width: 74ch; }
.post-body h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin: 56px 0 16px;
  padding-left: 18px; border-left: 4px solid var(--red);
}
.post-body h3 { font-size: 1.22rem; margin: 34px 0 10px; color: #fafafa; }
.post-body p { color: #d4d4d8; margin-bottom: 18px; font-size: 1.03rem; }
.post-body a:not(.btn):not(.post-card) { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:not(.btn):not(.post-card):hover { color: #fff; }
/* Knoppen en kaarten binnen de artikeltekst houden hun eigen stijl */
.post-body .btn, .post-body .post-card { text-decoration: none; }
.post-body .btn-red { color: #fff; }
.post-body .btn-red:hover { color: #fff; }
.post-body .btn-white { color: var(--black); }
.post-body .btn-outline { color: var(--text); }
.post-body .btn-outline:hover { color: var(--red); }
.post-body ul, .post-body ol { margin: 0 0 22px 0; padding-left: 0; list-style: none; }
.post-body ol { counter-reset: step; }
.post-body li {
  position: relative; padding-left: 26px; color: #d4d4d8;
  margin-bottom: 10px; font-size: 1.02rem;
}
.post-body ul > li::before { content: '\25B8'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.post-body ol > li { counter-increment: step; }
.post-body ol > li::before {
  content: counter(step) '.'; position: absolute; left: 0;
  color: var(--red); font-weight: 700; font-family: 'Oswald', sans-serif;
}
.post-body strong { color: #fafafa; }

/* ---- Key takeaways ---- */
.takeaways {
  background: var(--dark); border: 1px solid var(--dark-2); border-left: 4px solid var(--red);
  border-radius: 12px; padding: 28px 32px; margin: 0 0 40px;
}
.takeaways h2 {
  font-size: 1.1rem !important; margin: 0 0 14px !important;
  padding: 0 !important; border: 0 !important; letter-spacing: 0.08em;
}
.takeaways ul { margin: 0; }
.takeaways li { font-size: 0.98rem; }

/* ---- Callout ---- */
.callout {
  background: rgba(220, 38, 38, 0.08); border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 12px; padding: 24px 28px; margin: 32px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .callout-label {
  font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.78rem; color: var(--red); display: block; margin-bottom: 8px; font-weight: 600;
}

/* ---- Figures ---- */
.post-body figure { margin: 36px 0; max-width: 100%; }
.post-body figure img { width: 100%; border-radius: 12px; border: 1px solid var(--dark-2); }
.post-body figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }

/* ---- Table ---- */
.table-wrap { overflow-x: auto; margin: 28px 0; max-width: 100%; -webkit-overflow-scrolling: touch; }
.post-body table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.95rem; }
.post-body th, .post-body td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--dark-2);
}
.post-body thead th {
  font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 0.85rem; color: #fafafa; background: var(--dark); border-bottom: 2px solid var(--red);
}
.post-body tbody td { color: #d4d4d8; }
.post-body tbody tr.is-us { background: rgba(220, 38, 38, 0.1); }
.post-body tbody tr.is-us td { color: #fafafa; font-weight: 600; }
.table-note { color: var(--muted); font-size: 0.85rem; margin-top: -14px; }

/* ---- FAQ inside an article ---- */
.post-faq { display: grid; gap: 16px; max-width: 74ch; }
.post-faq .faq-item { padding: 24px 28px; }
.post-faq .faq-item h3 { font-size: 1.08rem; margin-bottom: 8px; }

/* ---- CTA band ---- */
.post-cta {
  background: var(--dark); border: 2px solid var(--red); border-radius: 14px;
  padding: 36px 36px 32px; margin: 56px 0 0; max-width: 74ch;
}
.post-cta h2 { margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; font-size: 1.6rem !important; }
.post-cta p { margin-bottom: 22px; }
.post-cta .btn { margin-right: 12px; margin-bottom: 10px; }

/* ---- Sources ---- */
.sources { margin-top: 56px; border-top: 1px solid var(--dark-2); padding-top: 24px; max-width: 74ch; }
.sources h2 { font-size: 1.05rem !important; margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; }
.sources li, .sources p { color: var(--muted); font-size: 0.86rem; }
.sources a, .post-body .sources a:not(.btn) { color: var(--muted); text-decoration: underline; }
.sources a:hover, .post-body .sources a:not(.btn):hover { color: var(--red); }

/* ---- Author box ---- */
.author-box {
  display: flex; gap: 20px; align-items: center; margin-top: 48px; max-width: 74ch;
  background: var(--dark); border: 1px solid var(--dark-2); border-radius: 12px; padding: 24px 28px;
}
.author-box img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--red); flex-shrink: 0; }
.author-box h3 { font-size: 1.05rem; margin-bottom: 6px; }
.author-box p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---- Post cards (blog index + related) ---- */
.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: var(--dark); border: 1px solid var(--dark-2); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover { border-color: var(--red); transform: translateY(-4px); }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card .kicker { margin-bottom: 10px; }
.post-card h3 { font-size: 1.16rem; line-height: 1.25; margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: 0.93rem; flex: 1; margin-bottom: 18px; }
.post-card .read { color: var(--red); font-weight: 600; font-size: 0.92rem; }

.related { border-top: 1px solid var(--dark-2); padding-top: 56px; margin-top: 64px; }
.related h2 { font-size: 1.5rem; margin-bottom: 28px; }
.related .post-cards { grid-template-columns: repeat(2, 1fr); }

/* ---- Blog index hero ---- */
.blog-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--dark-2); }
.blog-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; margin-bottom: 16px; }
.blog-hero p { color: #d4d4d8; max-width: 62ch; font-size: 1.1rem; }
.blog-list { padding: 56px 0 96px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .post-hero { grid-template-columns: 1fr; gap: 28px; }
  .post-hero-img { order: -1; }
  .post-cards, .related .post-cards { grid-template-columns: 1fr; }
  .post-cta { padding: 28px 24px; }
  .takeaways { padding: 24px; }
  .author-box { flex-direction: column; text-align: center; }
}

/* ---- Guides section on the homepage ---- */
#guides { background: var(--dark); }
#guides .post-card { background: var(--black); }
#guides .post-cards { margin-bottom: 8px; }

/* ---- CTA op de blogindex loopt over de volle containerbreedte ---- */
.blog-list .post-cta { max-width: none; }
