/**
 * blog.css — Weltechniek blog-cluster (Elementor-vrij)
 * Geladen op: 404, single post, blog-index (/blog/), categorie/tag/auteur-archieven.
 * Cachebust via filemtime() (geen handmatige Version-bump nodig).
 *
 * Tokens (zie Documenten/design-system.md):
 *   navy #1e3a6d · navy-hover #14284f · groen #00bb00 · groen-hover #008d00
 *   tekst-grijs #4a5868 · border #e1eaf2 · bg-licht #f7f8fa · navy-tint #eef2f9
 */

/* ============================================================
   Herbruikbare blog-knoppen
   ============================================================ */
.wt-blog-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
	cursor: pointer;
}
.wt-blog-btn--primary {
	background: #00bb00;
	color: #fff;
	border-color: #00bb00;
}
.wt-blog-btn--primary:hover {
	background: #008d00;
	border-color: #008d00;
	color: #fff;
}
.wt-blog-btn--ghost {
	background: transparent;
	color: #1e3a6d;
	border-color: #cdd9e8;
}
.wt-blog-btn--ghost:hover {
	background: #eef2f9;
	border-color: #1e3a6d;
	color: #1e3a6d;
}

/* ============================================================
   404
   ============================================================ */
.wt-404 {
	display: flex;
	align-items: center;
	gap: 48px;
	padding: 48px 0 64px;
	max-width: 1000px;
}
.wt-404__text {
	flex: 1 1 auto;
	min-width: 0;
}
.wt-404__title {
	color: #1e3a6d;
	font-size: 32px;
	line-height: 1.2;
	margin: 0 0 18px;
}
.wt-404__intro {
	color: #4a5868;
	font-size: 17px;
	line-height: 1.65;
	margin: 0 0 28px;
	max-width: 48ch;
}
.wt-404__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.wt-404__image {
	flex: 0 0 auto;
	width: 320px;
	max-width: 40%;
}
.wt-404__image img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 768px) {
	.wt-404 {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 28px;
		padding: 32px 0 48px;
	}
	.wt-404__image {
		width: 220px;
		max-width: 60%;
		margin: 0 auto;
	}
	.wt-404__title { font-size: 26px; }
	.wt-404__intro { font-size: 16px; }
	.wt-404__buttons { width: 100%; }
	.wt-404__buttons .wt-blog-btn { flex: 1 1 auto; }
}

/* ============================================================
   Blog-archief (blog-index /blog/ + categorie/tag/auteur)
   ============================================================ */
.wt-blog-archive {
	padding: 8px 0 56px;
}
.wt-blog-archive__header {
	margin-bottom: 36px;
}
.wt-blog-archive__title {
	color: #1e3a6d;
	font-size: 32px;
	line-height: 1.2;
	margin: 0 0 16px;
}
.wt-blog-archive__intro {
	color: #4a5868;
	font-size: 17px;
	line-height: 1.65;
	max-width: 70ch;
}
.wt-blog-archive__intro p { margin: 0 0 12px; }
.wt-blog-archive__intro p:last-child { margin-bottom: 0; }

/* Grid */
.wt-blog-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}
@media (max-width: 1100px) { .wt-blog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .wt-blog-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 540px)  { .wt-blog-grid { grid-template-columns: 1fr; gap: 22px; } }

/* Card — hele kaart klikbaar via stretched link (.wt-blog-card__title a::after) */
.wt-blog-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e1eaf2;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.wt-blog-card:hover {
	box-shadow: 0 8px 24px rgba(30, 58, 109, .10);
	border-color: #cdd9e8;
	transform: translateY(-2px);
}
/* Stretched link: titel-link dekt de hele kaart af */
.wt-blog-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.wt-blog-card__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	background: #eef2f9;
	overflow: hidden;
}
.wt-blog-card__thumb img,
.wt-blog-card__thumb--empty {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wt-blog-card__thumb--empty {
	background: linear-gradient(135deg, #eef2f9, #dfe7f2);
}
.wt-blog-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 18px 18px 20px;
}
.wt-blog-card__title {
	font-size: 18px;
	line-height: 1.3;
	margin: 0 0 10px;
}
.wt-blog-card__title a {
	color: #1e3a6d;
	text-decoration: none;
}
.wt-blog-card__title a:hover { color: #14284f; text-decoration: underline; }
.wt-blog-card__excerpt {
	color: #4a5868;
	font-size: 14.5px;
	line-height: 1.6;
	margin: 0 0 16px;
}
.wt-blog-card__more {
	margin-top: auto;
	align-self: flex-start;
	padding: 9px 16px;
	font-size: 14px;
	pointer-events: none; /* decoratief; de stretched titel-link vangt de klik */
}
/* Geen aparte hover op "Bekijk artikel": de hele kaart heeft al een hover-effect
   (lift + shadow). De knop blijft een rustige, statische label. */

/* ============================================================
   Paginatie — KANONIEK herbruikbaar component (.wt-pagination)
   Markup: <nav.wt-pagination><ul><li><a|span.page-numbers>…
   ============================================================ */
.wt-pagination {
	margin-top: 44px;
}
.wt-pagination ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.wt-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #e1eaf2;
	border-radius: 6px;
	color: #1e3a6d;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	background: #fff;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.wt-pagination a.page-numbers:hover {
	background: #eef2f9;
	border-color: #cdd9e8;
}
.wt-pagination .page-numbers.current {
	background: #1e3a6d;
	border-color: #1e3a6d;
	color: #fff;
}
.wt-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}
.wt-pagination .page-numbers.prev,
.wt-pagination .page-numbers.next {
	font-weight: 700;
}
@media (max-width: 540px) {
	.wt-pagination .page-numbers { min-width: 38px; height: 38px; font-size: 14px; }
}

/* ============================================================
   Single blogpost
   ============================================================ */
.wt-single {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 48px;
	align-items: start;
	padding: 8px 0 56px;
}
.wt-single__main { min-width: 0; }

.wt-single__title {
	color: #1e3a6d;
	font-size: 32px;
	line-height: 1.2;
	margin: 0 0 16px;
}
.wt-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	color: #4a5868;
	font-size: 15px;
	margin: 0 0 24px;
}
.wt-single__meta-sep {
	width: 1px;
	height: 14px;
	background: #cdd9e8;
}
.wt-single__meta-cat {
	color: #1e3a6d;
	font-weight: 600;
	text-decoration: none;
}
.wt-single__meta-cat:hover { text-decoration: underline; }

.wt-single__featured {
	margin: 0 0 32px;
}
.wt-single__featured img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

/* Inhoudsopgave */
.wt-toc {
	background: #eef2f9;
	border-radius: 8px;
	padding: 20px 24px;
	margin: 0 0 32px;
}
.wt-toc__title {
	margin: 0 0 10px;
	font-weight: 700;
	color: #1e3a6d;
	font-size: 16px;
}
.wt-toc__list {
	margin: 0;
	padding-left: 20px;
	color: #1e3a6d;
}
.wt-toc__list li { margin: 4px 0; }
.wt-toc__list a {
	color: #1e3a6d;
	text-decoration: none;
}
.wt-toc__list a:hover { text-decoration: underline; color: #14284f; }

/* Content */
.wt-single__content {
	font-size: 16.5px;
	line-height: 1.7;
	color: #2b3340;
}
.wt-single__content > *:first-child { margin-top: 0; }
.wt-single__content h2,
.wt-single__content h3 {
	color: #1e3a6d;
	line-height: 1.25;
	scroll-margin-top: 24px;
}
.wt-single__content h2 { font-size: 24px; margin: 36px 0 14px; }
.wt-single__content h3 { font-size: 20px; margin: 28px 0 12px; }
.wt-single__content p { margin: 0 0 18px; }
.wt-single__content ul,
.wt-single__content ol { margin: 0 0 18px; padding-left: 22px; }
.wt-single__content li { margin: 6px 0; }
.wt-single__content img { height: auto; border-radius: 8px; }
.wt-single__content a { color: #00bb00; }
.wt-single__content a:hover { color: #008d00; }

/* Author-box */
.wt-author {
	display: flex;
	gap: 22px;
	align-items: center;
	background: #eef2f9;
	border-radius: 10px;
	padding: 24px 26px;
	margin: 40px 0 0;
}
.wt-author__avatar {
	flex: 0 0 auto;
}
.wt-author__img {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.wt-author__name {
	margin: 0 0 6px;
	font-weight: 700;
	font-size: 18px;
	color: #1e3a6d;
}
.wt-author__bio {
	margin: 0;
	color: #4a5868;
	font-size: 14.5px;
	line-height: 1.6;
}
.wt-author__cta {
	margin-top: 14px;
	padding: 8px 16px;
	font-size: 14px;
	background: #fff;
}

/* Share-rij */
.wt-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin: 32px 0 0;
	padding: 28px 0; /* gelijke ruimte boven én onder de rij (tussen beide scheidingslijnen) */
	border-top: 1px solid #e1eaf2;
}
.wt-share__label {
	font-weight: 700;
	color: #1e3a6d;
	font-size: 16px;
	line-height: 1;
}
.wt-share__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.wt-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #e1eaf2;
	background: #fff;
	color: #1e3a6d;
	cursor: pointer;
	padding: 0;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.wt-share__btn svg { width: 19px; height: 19px; display: block; }
.wt-share__btn:hover {
	background: #1e3a6d;
	border-color: #1e3a6d;
	color: #fff;
}
.wt-share__copy { position: relative; }
.wt-share__copy.is-copied {
	background: #00bb00;
	border-color: #00bb00;
	color: #fff;
}
.wt-share__copy-label:not(:empty) {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	background: #1e3a6d;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 4px;
}

/* Gerelateerde artikelen */
.wt-related {
	margin-top: 0; /* .wt-share levert de 28px onder de share-rij tot deze scheidingslijn */
	padding-top: 40px;
	border-top: 1px solid #e1eaf2;
}
.wt-related__title {
	color: #1e3a6d;
	font-size: 24px;
	margin: 0 0 24px;
}
.wt-blog-grid--related { grid-template-columns: repeat(3, 1fr); }
/* Eerder naar 2 koloms: op de single knijpt de sidebar de hoofdkolom tussen ~820-900px,
   waardoor 3 cards te smal worden. Onder 1024px dus 2 koloms, onder 600px 1 kolom. */
@media (max-width: 1024px) { .wt-blog-grid--related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .wt-blog-grid--related { grid-template-columns: 1fr; } }

/* Sidebar */
.wt-single__aside {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.wt-usp-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 14px;
	color: #2b3340;
}
.wt-usp-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}
.wt-usp-list svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}
.wt-usp-list strong { color: #1e3a6d; }
.wt-blog-aside__cta {
	background: #eef2f9;
	border-radius: 10px;
	padding: 22px 24px;
}
.wt-blog-aside__cta-title {
	color: #1e3a6d;
	font-size: 19px;
	margin: 0 0 10px;
}
.wt-blog-aside__cta p {
	color: #4a5868;
	font-size: 14.5px;
	line-height: 1.6;
	margin: 0 0 16px;
}
.wt-blog-aside__cta .wt-blog-btn { width: 100%; }

/* Single responsive: sidebar onder de content */
@media (max-width: 900px) {
	.wt-single {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.wt-single__aside {
		position: static;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}
}
@media (max-width: 600px) {
	.wt-single__title { font-size: 26px; }
	.wt-single__aside { grid-template-columns: 1fr; }
	.wt-single__content { font-size: 16px; }
}
