/**
 * News overview — prototype 1
 * Alleen geladen op /nieuws/ (zie functions.php, is_category('nieuws')).
 * Gebruikt bestaande thema-variabelen (--color-grey-80, --color-white, --color-primary).
 */

/* ---------- Page wrapper override ---------- */
/* Standaard heeft .newsArchive een padding-top van 120px met grijze bg;
   op deze pagina willen we dat de newsletter-bar direct onder het menu aansluit
   (padding verplaatsen naar de bar zelf). */
.newsArchive {
	padding-top: 0 !important;
	background: var(--color-white, #ffffff);
}
.filterBox.filterBox--news {
	background-color: var(--color-white, #ffffff) !important;
}

/* ---------- Hero (gecentreerd, groot — stijl Contact pagina) ---------- */
.newsArchive .newsArchive__hero {
	padding: 148px 20px 56px;
	text-align: center;
}
.newsArchive__heroInner {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}
.newsArchive__eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-grey-medium, #6b6b6b);
	margin: 0 0 28px;
}
.newsArchive .newsArchive__title {
	font-size: clamp(56px, 9vw, 128px);
	line-height: 1;
	letter-spacing: -0.04em;
	font-weight: 400;
	margin: 0 0 28px;
	color: var(--color-dark-90, #0a0a0a);
	text-align: center;
}
.newsArchive .newsArchive__intro {
	max-width: 640px;
	margin: 0 auto 32px;
	font-size: 18px;
	line-height: 1.5;
	color: var(--color-grey-medium, #6b6b6b);
	text-align: center;
}
.newsArchive .newsArchive__intro p:last-child { margin-bottom: 0; }

/* ---------- Newsletter trigger (uses .button.button-outline.button-arrow) ---------- */
button.news-newsletter-trigger.button {
	cursor: pointer;
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
	line-height: 1.2;
}
button.news-newsletter-trigger.button::-moz-focus-inner {
	border: 0;
	padding: 0;
}

/* ---------- Newsletter modal ---------- */
.news-newsletter-modal {
	border: 0;
	padding: 0;
	border-radius: 16px;
	max-width: 520px;
	width: calc(100% - 32px);
	max-height: calc(100vh - 32px);
	margin: auto;
	position: fixed;
	inset: 0;
	background: var(--color-white, #fff);
	color: var(--color-dark-90, #0a0a0a);
	box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
	overflow: auto;
	overscroll-behavior: contain;
}
.news-newsletter-modal:not([open]) {
	display: none;
}
.news-newsletter-modal::backdrop {
	background: rgba(10, 10, 10, 0.55);
	backdrop-filter: blur(2px);
}
.news-newsletter-modal__inner {
	position: relative;
	padding: 40px 32px 32px;
	text-align: left;
}
.news-newsletter-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: var(--color-grey-medium, #6b6b6b);
	cursor: pointer;
	padding: 4px 10px;
	border-radius: 8px;
}
.news-newsletter-modal__close:hover {
	color: var(--color-dark-90, #0a0a0a);
	background: var(--color-grey-80, #f2f2f2);
}
.news-newsletter-modal h2 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.news-newsletter-modal p {
	margin: 0 0 20px;
	color: var(--color-grey-medium, #6b6b6b);
	font-size: 15px;
}
.news-newsletter-modal__form .gform_wrapper,
.news-newsletter-modal__form form { margin: 0; }
.news-newsletter-modal__form .gform_fields { gap: 12px !important; }
.news-newsletter-modal__form .gfield input[type="email"],
.news-newsletter-modal__form .gfield input[type="text"] {
	background: var(--color-white, #fff);
	border: 1px solid var(--color-grey-30, #e5e5e5);
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 15px;
	color: var(--color-dark-90, #0a0a0a);
	width: 100%;
	outline: none;
	transition: border-color 0.15s;
	font-family: inherit;
}
.news-newsletter-modal__form .gfield input:focus {
	border-color: var(--color-dark-90, #0a0a0a);
}
.news-newsletter-modal__form .gform_footer,
.news-newsletter-modal__form .gform-footer {
	padding: 0 !important;
	margin: 16px 0 0 !important;
}
body.news-newsletter-open {
	overflow: hidden;
}

/* ---------- Filter chips ---------- */
.news-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding: 56px 0 28px;
	border-bottom: 1px solid var(--color-grey-30, #eeedeb);
	margin: 0 auto 40px;
	max-width: 1200px;
}
.news-filters__chip {
	background: var(--color-grey-80, #f2f2f2);
	border: 1px solid transparent;
	color: var(--color-grey-medium, #555);
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
	line-height: 1.2;
	font-family: inherit;
}
.news-filters__chip:hover {
	border-color: var(--color-dark-90, #111);
	color: var(--color-dark-90, #111);
}
.news-filters__chip.is-active {
	background: var(--color-primary, #ea5d3c);
	border-color: var(--color-primary, #ea5d3c);
	color: var(--color-white, #fff);
}

/* ---------- Grid: 3 columns, equal photo height ---------- */
.filterBox--news .filter-list.news-card-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 32px;
}

/* ---------- News card ---------- */
.filterBox--news .news-card {
	position: relative;
	background: transparent;
	box-shadow: none;
	padding: 0 0 20px;
	border-radius: 0;
}
.filterBox--news .news-card::before,
.filterBox--news .news-card::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	height: 1px;
	pointer-events: none;
}
.filterBox--news .news-card::before {
	right: 0;
	background: var(--color-grey-30, #e5e5e5);
}
.filterBox--news .news-card::after {
	width: 0;
	background: var(--color-primary, #ea5d3c);
	transition: width 0.5s ease;
	z-index: 1;
}
.filterBox--news .news-card:hover::after {
	width: 100%;
}
.filterBox--news .news-card .items {
	display: flex;
	flex-direction: column;
	background: transparent;
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
	height: 100%;
	transition: transform 0.25s ease;
}
.filterBox--news .news-card:hover .items {
	transform: none;
	box-shadow: none;
}

/* Media: fixed-height wrapper — alle foto's altijd gelijke hoogte */
.filterBox--news .news-card .image {
	position: relative;
	height: 244px !important;
	overflow: hidden;
	background: var(--color-grey-80, #f2f2f2);
	border-radius: 12px;
}
.filterBox--news .news-card .image picture {
	display: block;
	width: 100%;
	height: 100%;
}
.filterBox--news .news-card .image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	display: block;
}
.filterBox--news .news-card:hover .image img {
	transform: scale(1.04);
}

/* Content */
.filterBox--news .news-card__content {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
	padding: 18px 0 0;
}
.filterBox--news .news-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: var(--color-grey-medium, #555);
	margin: 0;
}
.filterBox--news .news-card__category {
	background: var(--color-grey-80, #f2f2f2);
	color: var(--color-dark-90, #111);
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
}
.filterBox--news .news-card__date {
	color: var(--color-grey-medium, #888);
	font-size: 13px;
}

.filterBox--news .news-card__title {
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -0.01em;
	font-weight: 600;
	margin: 0;
	color: var(--color-dark-90, #111);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.filterBox--news .news-card__title a,
.filterBox--news .news-card__title a:hover,
.filterBox--news .news-card__title a:focus {
	color: inherit;
	text-decoration: none;
}
.filterBox--news .news-card:hover .news-card__title a {
	text-decoration: none;
}

.filterBox--news .news-card__excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--color-grey-medium, #555);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.filterBox--news .news-card__actions {
	margin-top: auto;
}
.filterBox--news .news-card__cta {
	color: var(--color-primary, #ea5d3c);
	font-weight: 600;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Hidden state for JS filter */
.filterBox--news .news-card.is-hidden {
	display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.filterBox--news .filter-list.news-card-list {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 720px) {
	.newsArchive .newsArchive__hero {
		padding-top: 110px;
		padding-bottom: 40px;
	}
	.newsArchive .newsArchive__intro {
		font-size: 16px;
	}
	.news-filters {
		padding-top: 40px;
	}
}
@media (max-width: 640px) {
	.filterBox--news .filter-list.news-card-list {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.filterBox--news .news-card .image { height: 190px !important; }
	.filterBox--news .news-card__title { font-size: 18px; }
}
