/* Sommaire « Overzicht » — single CPT News
 * Mobile + tablette : 1 colonne (ordre du repeater)
 * Desktop (≥1024px) : 2 colonnes, ligne 1 = items 1|2, ligne 2 = 3|4, etc. */

.single-news-overzicht {
	margin: 0 0 2rem;
}

/* Mobile : même typo que les h2 du contenu (style.css — max-width 767px) */
.single-news-overzicht__title {
	margin: 0 0 1rem;
	padding: 0;
	font: normal normal bold 20px/25px "neue-haas-grotesk-text", sans-serif;
	color: #143969;
	letter-spacing: 0;
}

@media screen and (min-width: 768px) {
	.single-news-overzicht__title {
		font-family: "neue-haas-grotesk-display", "neue-haas-grotesk-text", sans-serif;
		font-size: 40px;
		font-weight: 700;
		line-height: 1.1;
		letter-spacing: 0.02em;
	}
}

.single-news-overzicht__card {
	background: #fff;
	border: 1px solid rgba(20, 57, 105, 0.12);
	border-radius: 18px;
	padding: 1.5rem 1.75rem;
	box-sizing: border-box;
}

.single-news-overzicht__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
}

@media screen and (min-width: 1024px) {
	.single-news-overzicht__list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 2.5rem;
		row-gap: 0;
		/* Même hauteur de ligne des deux côtés (utile quand un titre sur 2 lignes) */
		align-items: stretch;
	}
}

.single-news-overzicht__item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(20, 57, 105, 0.1);
}

.single-news-overzicht__item:last-child {
	border-bottom: none;
}

@media screen and (min-width: 1024px) {
	/* Dernière ligne (2 cellules) : pas de trait sous les deux derniers items */
	.single-news-overzicht__item:nth-last-child(-n+2) {
		border-bottom: none;
	}
}

/* Nombre impair d’entrées : 2e colonne plus courte — cellule de remplissage (séparateurs alignés, desktop) */
.single-news-overzicht__item--filler {
	display: none;
}

@media screen and (min-width: 1024px) {
	.single-news-overzicht__item--filler {
		display: list-item;
		list-style: none;
		pointer-events: none;
	}

	/* Occupe toute la hauteur de la ligne (grille stretch) + minimum = une ligne de lien */
	.single-news-overzicht__filler {
		height: 100%;
		min-height: calc(0.9rem + 0.9rem + 1.45 * 0.9375rem);
		box-sizing: border-box;
	}
}

/* 1 ou 2 entrées au total : pas de traits */
.single-news-overzicht__card--no-separators .single-news-overzicht__item {
	border-bottom: none;
}

/* Mobile : aligné sur les paragraphes (style.css — p en max-width 767px : 14px/23px) */
.single-news-overzicht__link {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.9rem 0;
	text-decoration: none;
	color: #143969;
	font: normal normal normal 14px/23px "neue-haas-grotesk-text", sans-serif;
	letter-spacing: 0.28px;
	transition: opacity 0.2s ease;
}

@media screen and (min-width: 768px) {
	.single-news-overzicht__link {
		font-size: 0.9375rem;
		line-height: 1.45;
		letter-spacing: normal;
	}
}

.single-news-overzicht__link:hover,
.single-news-overzicht__link:focus-visible {
	opacity: 0.85;
	text-decoration: none;
	color: #143969;
}

.single-news-overzicht__icon {
	flex-shrink: 0;
	line-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Même picto que le bouton Terug (sky-blue-long-arrow), inversé pour pointer vers la droite */
.single-news-overzicht__arrow-img {
	display: block;
	width: 11px;
	height: auto;
	transform: scaleX(-1);
}

.single-news-overzicht__label {
	flex: 1;
	min-width: 0;
}

/* Ancre : défilement sous header fixe éventuel */
.single-news-section-anchor {
	scroll-margin-top: 6rem;
}

@media screen and (min-width: 1024px) {
	.single-news-section-anchor {
		scroll-margin-top: 7rem;
	}
}
