/* ==========================================================================
   Kaarten nieuws/projecten (.list-post) volgens huisstijl (06-11-2026)
   Gedeeld door de homepage ([list_project]/[list_news]) en de overzichtspagina's
   (archive.php, o.a. /category/nieuws/). Laadt waar glas_uses_cards() waar is (homepage, berichtarchieven, projectenoverzicht); body-klasse glas-cards.
   ========================================================================== */
body.glas-cards .list-post {
	margin-left: -24px;
	margin-right: -24px;
}

body.glas-cards .list-post .item {
	isolation: isolate;
	padding: 0 24px;
	margin-bottom: 32px;
}

body.glas-cards .list-post .item::before {
	content: "";
	position: absolute;
	inset: 0 24px;
	z-index: -1;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 32, 91, 0.06), 0 4px 16px rgba(0, 32, 91, 0.06);
	transition: box-shadow 0.2s ease;
}

body.glas-cards .list-post .item:hover::before {
	box-shadow: 0 2px 4px rgba(0, 32, 91, 0.08), 0 8px 24px rgba(0, 32, 91, 0.12);
}

body.glas-cards .list-post .item a.img {
	display: block;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
}

body.glas-cards .list-post .item a.img img {
	display: block;
	transition: transform 0.4s ease;
}

body.glas-cards .list-post .item:hover a.img img {
	transform: scale(1.03);
}

body.glas-cards .list-post .item:not(.item-full) img.glas-card-img.is-contain,
body.glas-cards .list-post .item:not(.item-full) img.glas-card-img.is-placeholder {
	border: 0;
}

body.glas-cards .list-post .item .info {
	border: 0;
	background: transparent;
	padding: 24px;
}

/* datum: klein boven de titel in plaats van over de foto */
body.glas-cards .list-post .item .info .date {
	position: static;
	transform: none;
	width: auto;
	background: none;
	text-align: left;
	font-size: 14px;
	line-height: 24px;
	color: #274a91;
	margin: 0 0 8px;
}

body.glas-cards .list-post .item .info h3 {
	margin: 0;
}

body.glas-cards .list-post .item .info :is(h2, h3, h4) a,
body.glas-cards .list-post .item .info h3 a {
	display: block;
	font-family: "DIN Pro", sans-serif;
	font-weight: 700;
	text-decoration: none;
	padding: 0;
	margin: 0 0 8px;
	font-size: 19px;
	line-height: 24px;
	color: #00205b;
	transition: color 0.2s ease;
}

body.glas-cards .list-post .item .info :is(h2, h3, h4) a:hover,
body.glas-cards .list-post .item .info h3 a:hover {
	color: #a50034;
}

body.glas-cards .list-post .item .info .excerpt {
	padding: 0;
	margin-bottom: 16px;
	font-size: 15px;
	line-height: 24px;
	color: #545a64;
}

/* "Bekijk dit project" / "Lees verder": tekstlink met pijl erachter, hover in BNL Rood */
body.glas-cards .list-post .item .info a.elementor-button-link.elementor-button,
body.glas-cards .list-post .item .info a.elementor-button-link.elementor-button:hover {
	width: auto;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	color: #00205b;
	font-size: 15px;
	font-weight: 600;
	line-height: 24px;
	justify-content: flex-start;
}

body.glas-cards .list-post .item .info a.elementor-button-link.elementor-button:hover {
	color: #a50034;
}

body.glas-cards .list-post .item .info a.elementor-button-link.elementor-button .elementor-button-content-wrapper {
	flex-direction: row-reverse;
	gap: 8px;
}

body.glas-cards .list-post .item .info a.elementor-button-link.elementor-button .elementor-button-icon {
	margin: 0;
	transition: transform 0.2s ease;
}

body.glas-cards .list-post .item:hover .info a.elementor-button-link.elementor-button .elementor-button-icon {
	transform: translateX(4px);
}

/* tablet: kolomafstand 24, gelijk aan de kolommen */
@media (max-width: 1024px) {
	body.glas-cards .list-post {
		margin-left: -12px;
		margin-right: -12px;
	}

	body.glas-cards .list-post .item {
		padding: 0 12px;
	}

	body.glas-cards .list-post .item::before {
		inset: 0 12px;
	}
}

/* ==========================================================================
   Overzichtspagina (archive.php): kop, ruimte, paginering
   ========================================================================== */
body.archive #primary,
body.archive.glas-has-breadcrumbs:has(h1.glas-archive-title) #primary {
	padding-top: 48px;
	margin: 0;
}

body.archive .glas-breadcrumbs {
	margin: 0 0 16px;
}

body.archive h1.glas-archive-title {
	margin: 0 0 48px;
	font-family: "Montserrat", sans-serif;
	font-size: 40px;
	line-height: 48px;
	font-weight: 700;
	color: #00205b;
}

body.archive .glas-archive-intro {
	margin: 0 0 48px;
	font-size: 16px;
	line-height: 24px;
	color: #545a64;
}

/* gelijke hoogte: knop/link onderaan elke kaart */
body.glas-cards .list-post {
	display: flex;
	flex-wrap: wrap;
}

body.glas-cards .list-post .item {
	display: flex;
	flex-direction: column;
}

body.glas-cards .list-post .item .info {
	flex: 1 1 auto;
	height: auto;
}

/* paginering */
.glas-archive-pagination {
	margin: 16px 0 0; /* + 32 onder de laatste kaart = 48 */
}

.glas-archive-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.glas-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px; /* ruimte tussen pijl en "Vorige"/"Volgende" */
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #c3c9d6;
	border-radius: 4px;
	color: #00205b;
	font-size: 16px;
	line-height: 24px;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.glas-archive-pagination .page-numbers.current {
	background: #00205b;
	border-color: #00205b;
	color: #fff;
}

.glas-archive-pagination .page-numbers.dots {
	border-color: transparent;
}

.glas-archive-pagination a.page-numbers:hover,
.glas-archive-pagination a.page-numbers:focus-visible {
	border-color: #a50034;
	color: #a50034;
}

.glas-archive-pagination a.page-numbers:focus-visible {
	outline: 3px solid #43b02a;
	outline-offset: 2px;
}

@media (max-width: 1024px) {
	/* zelfde zijruimte als de menubalk (24) */
	body.archive #content .ast-container {
		padding-left: 24px;
		padding-right: 24px;
	}

	body.archive #primary,
	body.archive.glas-has-breadcrumbs:has(h1.glas-archive-title) #primary {
		padding-top: 32px;
	}

	body.archive h1.glas-archive-title {
		margin-bottom: 32px;
		font-size: 32px;
		line-height: 40px;
	}

	body.archive .glas-archive-intro {
		margin-bottom: 32px;
	}
}

@media (max-width: 767px) {
	body.archive h1.glas-archive-title {
		font-size: 28px;
		line-height: 36px;
	}
}

/* ==========================================================================
   Projectenoverzicht (Elementor-pagina met [list_projectall])
   ========================================================================== */
body.glas-cards .elementor-widget-wrap > .glas-breadcrumbs {
	margin: 0 0 16px;
}

body.glas-cards .title-line .elementor-heading-title {
	color: #545a64;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding-left: 48px;
}

body.glas-cards .title-line .elementor-heading-title::before {
	background-color: #a50034;
	width: 32px;
}

body.glas-cards .glas-intro,
body.glas-cards .glas-intro p {
	margin-bottom: 0;
	color: #2b2f36;
	font-size: 18px;
	line-height: 28px;
}

body.glas-cards .glas-intro a {
	color: #a50034;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.glas-cards .glas-intro a:hover,
body.glas-cards .glas-intro a:focus-visible {
	color: #00205b;
}

/* (06-11-2026) paginering in het midden (nieuws, projecten) */
.glas-archive-pagination .nav-links {
	justify-content: center;
}
