/* ============================================================
   KBC 1911 — Nieuws categorie pagina
   Huisstijl: Schibsted Grotesk / Source Sans 3
   Primair: #3195CF  Donker: #14507a  Achtergrond: #F8F8F8
   Radius: 16px  Shadow: 0 4px 24px rgba(20,50,75,.10)
============================================================ */

/* ── Globale reset voor deze pagina ── */
.kbc-news-page *,
.kbc-news-page *::before,
.kbc-news-page *::after { box-sizing: border-box; }
.kbc-news-page img { max-width: 100%; height: auto; display: block; }

/* ── Pagina wrapper ── */
#kbc-news-main {
  background: #F8F8F8;
  min-height: 60vh;
}

/* ── Container ── */
.kbc-news-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ══════════════════════════════════════
   PAGINA-HEADER
══════════════════════════════════════ */
.kbc-news-header {
  background: #fff;
  padding: 48px 0 28px;
  margin-bottom: 28px;
}
.kbc-news-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Kruimelpad */
.kbc-news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font: 500 13px/1 "Source Sans 3", sans-serif;
  color: #9a9a9a;
}
.kbc-news-breadcrumb a {
  color: #3195CF;
  text-decoration: none;
  transition: color .15s;
}
.kbc-news-breadcrumb a:hover { color: #14507a; }
.kbc-news-breadcrumb span[aria-hidden] { opacity: .45; }

/* Titel */
.kbc-news-header__title {
  font: 800 clamp(28px, 3.5vw, 44px)/1.05 "Schibsted Grotesk", sans-serif;
  color: #14507a;
  margin: 0 0 10px;
  text-shadow: none;
}
.kbc-news-header__desc {
  font: 400 16px/1.55 "Source Sans 3", sans-serif;
  color: #1A1A1A;
  margin: 0 0 8px;
  max-width: 540px;
}
.kbc-news-header__count {
  font: 500 13px/1 "Source Sans 3", sans-serif;
  color: #9a9a9a;
  margin: 0 0 24px;
  letter-spacing: .02em;
}

/* ══════════════════════════════════════
   GRID
══════════════════════════════════════ */
.kbc-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 52px;
  /* Gelijke hoogte via subgrid-achtige truc: align-items: stretch */
  align-items: start;
}

/* ══════════════════════════════════════
   CARD
══════════════════════════════════════ */
.kbc-news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(20,50,75,.06), 0 8px 32px rgba(20,50,75,.07);
  border: 1px solid rgba(49,149,207,.10);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.kbc-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(20,50,75,.11), 0 24px 56px rgba(20,50,75,.12);
}

/* Afbeelding */
.kbc-news-card__image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}
.kbc-news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.kbc-news-card:hover .kbc-news-card__image {
  transform: scale(1.04);
}
.kbc-news-card__image--placeholder {
  background: linear-gradient(135deg, #e8f3fb 0%, #c8dcea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8fa9bb;
}

/* Card body */
.kbc-news-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Categorie badge */
.kbc-news-card__meta {
  margin-bottom: 10px;
}
.kbc-news-card__cat {
  display: inline-block;
  background: rgba(49,149,207,.10);
  color: #3195CF;
  font: 600 11.5px/1 "Source Sans 3", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Titel */
.kbc-news-card__title {
  font: 700 18px/1.25 "Schibsted Grotesk", sans-serif;
  color: #14507a;
  margin: 0 0 8px;
}
.kbc-news-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.kbc-news-card__title a:hover { color: #3195CF; }

/* Datum */
.kbc-news-card__date {
  display: block;
  font: 500 13px/1 "Source Sans 3", sans-serif;
  color: #9a9a9a;
  margin-bottom: 12px;
  letter-spacing: .01em;
}

/* Excerpt */
.kbc-news-card__excerpt {
  font: 400 14.5px/1.6 "Source Sans 3", sans-serif;
  color: #1A1A1A;
  flex: 1;
  margin-bottom: 18px;
  /* Max 3 regels */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kbc-news-card__excerpt p { margin: 0; }

/* Lees meer */
.kbc-news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 14px/1 "Source Sans 3", sans-serif;
  color: #3195CF;
  text-decoration: none;
  padding: 10px 18px;
  background: rgba(49,149,207,.08);
  border-radius: 8px;
  align-self: flex-start;
  transition: background .15s, color .15s;
  margin-top: auto;
}
.kbc-news-card__link:hover {
  background: #3195CF;
  color: #fff;
}

/* ══════════════════════════════════════
   PAGINERING
══════════════════════════════════════ */
.kbc-news-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 60px;
  padding: 0;
}
.kbc-news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font: 600 14px/1 "Source Sans 3", sans-serif;
  color: #14507a;
  background: #fff;
  border: 1px solid rgba(49,149,207,.20);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.kbc-news-pagination .page-numbers:hover,
.kbc-news-pagination .page-numbers.current {
  background: #3195CF;
  color: #fff;
  border-color: #3195CF;
}
.kbc-news-pagination .page-numbers.dots {
  background: transparent;
  border: none;
  cursor: default;
}

/* ══════════════════════════════════════
   LEEG STAAT
══════════════════════════════════════ */
.kbc-news-empty {
  text-align: center;
  padding: 80px 24px;
  color: #8a8a8a;
}
.kbc-news-empty svg {
  margin: 0 auto 20px;
  opacity: .35;
}
.kbc-news-empty h2 {
  font: 700 22px/1.2 "Schibsted Grotesk", sans-serif;
  color: #14507a;
  margin: 0 0 10px;
}
.kbc-news-empty p {
  font-size: 15px;
  margin: 0 0 24px;
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET (max 960px)
══════════════════════════════════════ */
@media (max-width: 960px) {
  .kbc-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .kbc-news-header { padding: 40px 0 36px; }
  .kbc-news-container { padding: 0 20px; }
  .kbc-news-header__inner { padding: 0 20px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBIEL (max 600px)
══════════════════════════════════════ */
@media (max-width: 600px) {
  .kbc-news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .kbc-news-header { padding: 30px 0 28px; margin-bottom: 32px; }
  .kbc-news-header__title { font-size: 28px; }
  .kbc-news-card__body { padding: 16px 18px 18px; }
  .kbc-news-card__title { font-size: 16px; }
}

/* ══════════════════════════════════════
   CORE WEB VITALS — GEEN LAYOUT SHIFT
══════════════════════════════════════ */
.kbc-news-card__image-link {
  /* aspect-ratio zorgt voor reservering voor lazy-loaded img */
  background: linear-gradient(135deg, #e8f3fb 0%, #c8dcea 100%);
}
