/*
 * Qlaritee - blog
 *
 * Bouwt uitsluitend voort op de bestaande designtokens uit qlaritee-landing.css
 * (--ink, --blue, --orange, --line, --radius, --shadow, --max ...). Er worden
 * hier geen nieuwe kleuren, fonts of vormtaal geintroduceerd: de blog moet
 * aanvoelen als dezelfde site, alleen dan als artikeloverzicht.
 *
 * qlaritee-landing.css wordt op blogpagina's meegeladen voor header, footer,
 * .container, .btn, .section-label, .section-intro en .reveal.
 */

/* ------------------------------------------------------------------ layout */

.container-narrow {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

/* -------------------------------------------------------------- blog hero */

.blog-hero {
  padding: 150px 0 26px;
  background: linear-gradient(180deg, var(--page-strong), var(--page));
  border-bottom: 1px solid var(--line);
}

.blog-hero h1 {
  margin: 6px 0 14px;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.blog-hero h1 span {
  color: var(--orange);
}

.blog-hero .section-intro {
  max-width: 62ch;
}

/* -------------------------------------------------------------- post grid */

.blog-list {
  padding: 54px 0 90px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(7, 31, 69, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.post-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--blue-soft);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.03);
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
}

.post-card h2,
.post-card h3 {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.post-card h2 a,
.post-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
  color: var(--blue);
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
}

.post-card-link svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
}

.post-card-link:hover svg {
  transform: translateX(4px);
}

/* ------------------------------------------------------------- pagination */

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 750;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pagination .page-numbers:hover {
  border-color: var(--line-strong);
  color: var(--blue);
}

.pagination .page-numbers.current {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

/* ----------------------------------------------------------- post: single */

.post-header {
  padding: 150px 0 18px;
  background: linear-gradient(180deg, var(--page-strong), var(--page));
}

.post-header h1 {
  margin: 6px 0 16px;
  font-size: clamp(1.95rem, 3.8vw, 2.9rem);
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.post-hero-media {
  margin: 26px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-hero-media img {
  width: 100%;
  height: auto;
}

.post-body {
  padding: 40px 0 10px;
  font-size: 1.045rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* Verticaal ritme: alles op 0, daarna alleen ruimte TUSSEN blokken. */
.post-body > * {
  margin: 0;
}

.post-body > * + * {
  margin-top: 1.15em;
}

.post-body h2 {
  margin-top: 2em;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.post-body h3 {
  margin-top: 1.7em;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.post-body h4 {
  margin-top: 1.5em;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
}

.post-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.post-body ul,
.post-body ol {
  margin: 0;
  padding-left: 1.15em;
}

.post-body li + li {
  margin-top: 0.5em;
}

.post-body ul li::marker {
  color: var(--orange);
}

.post-body ol li::marker {
  color: var(--blue);
  font-weight: 800;
}

.post-body strong {
  color: var(--ink);
  font-weight: 800;
}

.post-body blockquote {
  margin: 1.6em 0;
  padding: 20px 24px;
  color: var(--ink);
  background: var(--blue-soft);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  font-size: 1.06rem;
}

.post-body blockquote p {
  margin: 0;
}

.post-body img {
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.post-body th,
.post-body td {
  padding: 11px 13px;
  border: 1px solid var(--line);
  text-align: left;
}

.post-body th {
  color: var(--ink);
  background: var(--blue-soft);
  font-weight: 800;
}

.post-body hr {
  height: 1px;
  margin: 2.2em 0;
  border: 0;
  background: var(--line);
}

/* ---------------------------------------------------------- post: cta/rel */

.post-cta {
  padding: 60px 0 0;
}

.post-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 34px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-cta-inner h2 {
  margin: 6px 0 10px;
  max-width: 22ch;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.post-cta-inner .section-intro {
  margin: 0;
  max-width: 52ch;
}

.post-related {
  padding: 70px 0 90px;
}

.post-related > .container > h2 {
  margin: 0 0 22px;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 850;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 760px) {
  .blog-hero,
  .post-header {
    padding-top: 118px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-cta-inner {
    padding: 26px 22px;
  }
}
