/* Blog archive — landing/posts index
 *
 * Hero heading, category filter buttons, centered grid of post cards,
 * "load more" reveal. Filtering is client-side (assets/js/blog-filter.js).
 */

.bollaert-blog {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--6);
	margin-block: var(--wp--preset--spacing--8);
}

/* --- Head (banner image) --- */

.bollaert-blog__head {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 280px;
	padding: clamp(2rem, 5vw, 4rem);
	border-radius: 20px;
	overflow: hidden;
	background-color: var(--wp--preset--color--brand-dark);
	background-size: cover;
	background-position: center;
	color: #fff;
}

.bollaert-blog__head-inner {
	max-width: 60ch;
}

.bollaert-blog__eyebrow {
	margin: 0 0 var(--wp--preset--spacing--2);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

.bollaert-blog__title {
	margin: 0 0 var(--wp--preset--spacing--3);
	font-size: var(--wp--preset--font-size--3xl);
	color: #fff;
}

.bollaert-blog__lead {
	margin: 0;
	font-size: var(--wp--preset--font-size--lg);
	color: rgba(255, 255, 255, 0.92);
}

/* --- Category tabs (Artikels / Veelgestelde Vragen) --- */

.bollaert-blog__tabs {
	display: inline-flex;
	flex-wrap: wrap;
	align-self: center;
	gap: 4px;
	padding: 5px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	box-shadow: var(--wp--preset--shadow--subtle);
}

.bollaert-blog__tab {
	padding: 0.55em 1.3em;
	border: none;
	border-radius: 999px;
	background: transparent;
	font: inherit;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	color: var(--wp--preset--color--brand-dark);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bollaert-blog__tab:hover {
	color: var(--wp--preset--color--brand);
}

.bollaert-blog__tab.is-active {
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--white);
}

/* --- Subcategory chips (level 2) --- */

.bollaert-blog__subtabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wp--preset--spacing--2);
}

.bollaert-blog__subtabs[hidden] {
	display: none;
}

.bollaert-blog__subtab {
	padding: 0.35em 0.95em;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	font: inherit;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	color: var(--wp--preset--color--brand-dark);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bollaert-blog__subtab[hidden] {
	display: none;
}

.bollaert-blog__subtab:hover {
	border-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand);
}

.bollaert-blog__subtab.is-active {
	background: var(--wp--preset--color--brand-tint);
	border-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand);
}

/* --- Post grid --- */

.bollaert-blog__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: var(--wp--preset--spacing--6);
}

.bollaert-post-card {
	display: flex;
	flex-direction: column;
	max-width: none;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.bollaert-post-card.is-hidden {
	display: none;
}

.bollaert-post-card:hover {
	border-color: #d7e3ec;
	box-shadow: var(--wp--preset--shadow--elevated);
	transform: translateY(-4px);
}

.bollaert-post-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--wp--preset--color--brand-tint);
}

.bollaert-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.bollaert-post-card:hover .bollaert-post-card__media img {
	transform: scale(1.05);
}

.bollaert-post-card__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--wp--preset--color--brand);
}

.bollaert-post-card__cat {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.3em 0.8em;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--wp--preset--color--brand-dark);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	backdrop-filter: blur(2px);
}

.bollaert-post-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2);
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--6) var(--wp--preset--spacing--6);
	flex-grow: 1;
}

.bollaert-post-card__date {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
}

.bollaert-post-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.3;
}

.bollaert-post-card__title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.bollaert-post-card__title a:hover {
	color: var(--wp--preset--color--brand);
}

.bollaert-post-card__excerpt {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
	line-height: 1.55;
}

.bollaert-post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--2);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	color: var(--wp--preset--color--brand);
	text-decoration: none;
}

.bollaert-post-card__more svg {
	transition: transform 0.15s ease;
}

.bollaert-post-card__more:hover svg {
	transform: translateX(3px);
}

/* --- Load more --- */

.bollaert-blog__loadmore {
	display: flex;
	justify-content: center;
	margin-top: var(--wp--preset--spacing--4);
}

.bollaert-blog__loadmore-btn {
	padding: 0.8em 1.8em;
	border: 1px solid var(--wp--preset--color--brand);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--brand);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bollaert-blog__loadmore-btn:hover {
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--white);
}

.bollaert-blog__empty {
	padding: var(--wp--preset--spacing--12) 0;
	text-align: center;
	color: var(--wp--preset--color--muted);
}

/* --- Responsive --- */

@media (max-width: 1024.98px) {
	.bollaert-post-card {
		flex-basis: calc((100% - var(--wp--preset--spacing--6)) / 2);
	}
}

@media (max-width: 640px) {
	.bollaert-post-card {
		flex-basis: 100%;
		max-width: none;
	}
}
