/* VvE2050 nieuws-kaarten + Elementor posts-widget override */

.v2050nw {
	--nw-groen: #6CA726;
	--nw-groen-donker: #466F1C;
	--nw-oranje: #F6A028;
	--nw-leisteen: #374E53;
	--nw-licht: #F0F6E9;
	--nw-lijn: #E2E8DA;
	--nw-tekst: #2B3638;
	--nw-zacht: #5B686B;
	--nw-cols: 3;

	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 48px 24px 72px;
	box-sizing: border-box;
	font-family: "Open Sans", system-ui, sans-serif;
	color: var(--nw-tekst);
	-webkit-font-smoothing: antialiased;
}

.v2050nw[data-cols="2"] {
	--nw-cols: 2;
}

.v2050nw[data-cols="1"] {
	--nw-cols: 1;
}

.v2050nw *,
.v2050nw *::before,
.v2050nw *::after {
	box-sizing: border-box;
}

.v2050nw__intro {
	margin-bottom: 2rem;
	text-align: center;
}

.v2050nw__heading {
	margin: 0 0 0.5rem;
	font-family: "Merriweather", Georgia, serif;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--nw-leisteen);
}

.v2050nw__lead {
	margin: 0 auto;
	max-width: 42rem;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--nw-zacht);
}

.v2050nw__empty {
	margin: 0;
	color: var(--nw-zacht);
	text-align: center;
}

.v2050nw__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--nw-cols), minmax(0, 1fr));
	gap: 1.5rem;
}

.v2050nw__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--nw-lijn);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.v2050nw__card:hover {
	transform: translateY(-2px);
	border-color: rgba(108, 167, 38, 0.45);
	box-shadow: 0 10px 28px rgba(55, 78, 83, 0.1);
}

.v2050nw__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--nw-licht);
	text-decoration: none;
}

.v2050nw__media img,
.v2050nw__media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.v2050nw__media-placeholder {
	background: linear-gradient(135deg, var(--nw-licht) 0%, #d7e6c4 50%, rgba(246, 160, 40, 0.35) 100%);
}

.v2050nw__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 1.15rem 1.2rem 1.35rem;
	gap: 0.55rem;
}

.v2050nw__date {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--nw-zacht);
}

.v2050nw__title {
	margin: 0;
	font-family: "Merriweather", Georgia, serif;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--nw-leisteen);
}

.v2050nw__title a,
.v2050nw__title a:link,
.v2050nw__title a:visited {
	color: inherit !important;
	text-decoration: none;
}

.v2050nw__title a:hover,
.v2050nw__title a:focus-visible {
	color: var(--nw-groen-donker) !important;
}

.v2050nw__excerpt {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--nw-zacht);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.v2050nw__more,
.v2050nw__more:link,
.v2050nw__more:visited {
	margin-top: auto;
	padding-top: 0.35rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--nw-groen-donker) !important;
	text-decoration: none;
}

.v2050nw__more:hover,
.v2050nw__more:focus-visible {
	color: var(--nw-oranje) !important;
}

@media (max-width: 900px) {
	.v2050nw__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.v2050nw {
		padding: 32px 16px 56px;
	}

	.v2050nw__grid {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
 * Elementor Posts (full_content) → kaart-overzicht
 * Werkt op /nieuws/ zonder shortcode te hoeven plaatsen.
 * ------------------------------------------------------------------------- */

.elementor-widget-posts .elementor-posts-container.elementor-posts--skin-full_content {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	background: #fff;
	border: 1px solid #E2E8DA;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post:hover {
	transform: translateY(-2px);
	border-color: rgba(108, 167, 38, 0.45);
	box-shadow: 0 10px 28px rgba(55, 78, 83, 0.1);
}

.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__thumbnail__link {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #F0F6E9;
}

.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__thumbnail {
	height: 100%;
}

.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__text {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 0.55rem;
	padding: 1.15rem 1.2rem 1.35rem;
	box-sizing: border-box;
}

.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__title {
	margin: 0;
	font-family: "Merriweather", Georgia, serif;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	order: 2;
}

.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__title a,
.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__title a:link,
.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__title a:visited {
	color: #374E53 !important;
	text-decoration: none;
}

.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__title a:hover {
	color: #466F1C !important;
}

.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__meta-data {
	margin: 0;
	order: 1;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #5B686B;
}

.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__text > p {
	order: 3;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #5B686B;
}

/* Alleen eerste alinea als excerpt; rest verbergen */
.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__text > p:first-of-type {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__text > p:not(:first-of-type),
.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__text > ul,
.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__text > ol,
.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__text > blockquote,
.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__text > figure,
.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__text > .wp-block-image {
	display: none !important;
}

.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__text::after {
	content: "Lees meer →";
	order: 4;
	margin-top: auto;
	padding-top: 0.35rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: #466F1C !important;
	pointer-events: none;
}

/* Bezochte kaart mag niet paars worden via thema a:visited */
.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post a,
.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post a:link,
.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post a:visited {
	color: inherit;
}

.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__thumbnail__link,
.elementor-widget-posts .elementor-posts--skin-full_content .elementor-post__thumbnail__link:visited {
	color: transparent !important;
}

@media (max-width: 900px) {
	.elementor-widget-posts .elementor-posts-container.elementor-posts--skin-full_content {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0 16px;
	}
}

@media (max-width: 560px) {
	.elementor-widget-posts .elementor-posts-container.elementor-posts--skin-full_content {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
 * Single nieuwsbericht (detailpagina)
 * ------------------------------------------------------------------------- */

body.vve2050-single-nieuws,
body.single-post {
	background: #fff;
}

body.vve2050-single-nieuws #content,
body.single-post #content,
body.vve2050-single-nieuws .site-content,
body.single-post .site-content,
body.vve2050-single-nieuws #primary,
body.single-post #primary,
body.vve2050-single-nieuws .site-main,
body.single-post .site-main {
	width: 100%;
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
	padding: 40px 24px 72px;
	box-sizing: border-box;
}

body.vve2050-single-nieuws article.post,
body.single-post article.post {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	font-family: "Open Sans", system-ui, sans-serif;
	color: #2B3638;
	-webkit-font-smoothing: antialiased;
}

body.vve2050-single-nieuws .v2050nw-back,
body.single-post .v2050nw-back {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	font-weight: 700;
}

body.vve2050-single-nieuws .v2050nw-back a,
body.single-post .v2050nw-back a {
	color: #466F1C;
	text-decoration: none;
}

body.vve2050-single-nieuws .v2050nw-back a:hover,
body.single-post .v2050nw-back a:hover {
	color: #F6A028;
}

body.vve2050-single-nieuws .entry-header,
body.single-post .entry-header {
	margin: 0 0 1.5rem;
}

body.vve2050-single-nieuws .entry-header::before,
body.single-post .entry-header::before {
	content: none;
}

body.vve2050-single-nieuws .entry-title,
body.single-post .entry-title {
	margin: 0 0 0.75rem;
	font-family: "Merriweather", Georgia, serif;
	font-size: clamp(1.75rem, 3.2vw, 2.35rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: #374E53;
}

body.vve2050-single-nieuws .entry-meta,
body.single-post .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.75rem;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	color: #5B686B;
}

body.vve2050-single-nieuws .entry-meta .byline,
body.single-post .entry-meta .byline {
	display: none !important;
}

body.vve2050-single-nieuws .entry-meta .posted-on,
body.single-post .entry-meta .posted-on {
	font-size: 0;
	color: #5B686B;
}

body.vve2050-single-nieuws .entry-meta .posted-on::before,
body.single-post .entry-meta .posted-on::before {
	content: "Datum bericht: ";
	font-size: 0.875rem;
	font-weight: 600;
	color: #5B686B;
}

body.vve2050-single-nieuws .entry-meta .posted-on a,
body.single-post .entry-meta .posted-on a {
	font-size: 0.875rem;
	font-weight: 600;
	color: #5B686B !important;
	text-decoration: none !important;
	pointer-events: none;
}

body.vve2050-single-nieuws .entry-meta .posted-on time,
body.single-post .entry-meta .posted-on time {
	font-size: 0.875rem;
	font-weight: 600;
	color: #5B686B;
}

body.vve2050-single-nieuws .entry-meta .updated,
body.single-post .entry-meta .updated {
	display: none;
}

body.vve2050-single-nieuws .post-thumbnail,
body.single-post .post-thumbnail {
	display: block;
	margin: 0 0 1.75rem;
	border-radius: 12px;
	overflow: hidden;
	background: #F0F6E9;
}

body.vve2050-single-nieuws .post-thumbnail img,
body.single-post .post-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin: 0;
	border-radius: 12px;
	object-fit: cover;
	aspect-ratio: 16 / 10;
}

body.vve2050-single-nieuws .entry-content,
body.single-post .entry-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #2B3638;
}

body.vve2050-single-nieuws .entry-content > *:first-child,
body.single-post .entry-content > *:first-child {
	margin-top: 0;
}

body.vve2050-single-nieuws .entry-content p,
body.single-post .entry-content p {
	margin: 0 0 1.15em;
}

body.vve2050-single-nieuws .entry-content h2,
body.vve2050-single-nieuws .entry-content h3,
body.vve2050-single-nieuws .entry-content h4,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
	font-family: "Merriweather", Georgia, serif;
	font-weight: 700;
	line-height: 1.3;
	color: #374E53;
	margin: 1.6em 0 0.55em;
}

body.vve2050-single-nieuws .entry-content a,
body.single-post .entry-content a {
	color: #466F1C;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(70, 111, 28, 0.35);
	text-underline-offset: 2px;
}

body.vve2050-single-nieuws .entry-content a:hover,
body.single-post .entry-content a:hover {
	color: #F6A028;
	text-decoration-color: rgba(246, 160, 40, 0.55);
}

body.vve2050-single-nieuws .entry-content ul,
body.vve2050-single-nieuws .entry-content ol,
body.single-post .entry-content ul,
body.single-post .entry-content ol {
	margin: 0 0 1.15em;
	padding-left: 1.25em;
}

body.vve2050-single-nieuws .entry-content li,
body.single-post .entry-content li {
	margin: 0 0 0.4em;
}

body.vve2050-single-nieuws .entry-content img,
body.single-post .entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

body.vve2050-single-nieuws .entry-content blockquote,
body.single-post .entry-content blockquote {
	margin: 1.4em 0;
	padding: 0.85rem 1.1rem;
	border-left: 4px solid #6CA726;
	background: #F0F6E9;
	color: #374E53;
	border-radius: 0 8px 8px 0;
}

body.vve2050-single-nieuws .entry-footer,
body.single-post .entry-footer,
body.vve2050-single-nieuws .cat-links,
body.single-post .cat-links {
	display: none !important;
}

body.vve2050-single-nieuws .post-navigation,
body.single-post .post-navigation {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 24px 64px;
	box-sizing: border-box;
}

body.vve2050-single-nieuws .post-navigation .nav-links,
body.single-post .post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

body.vve2050-single-nieuws .post-navigation .nav-previous,
body.vve2050-single-nieuws .post-navigation .nav-next,
body.single-post .post-navigation .nav-previous,
body.single-post .post-navigation .nav-next {
	min-width: 0;
}

body.vve2050-single-nieuws .post-navigation .nav-next,
body.single-post .post-navigation .nav-next {
	text-align: right;
}

body.vve2050-single-nieuws .post-navigation a,
body.single-post .post-navigation a {
	display: block;
	height: 100%;
	padding: 1rem 1.15rem;
	border: 1px solid #E2E8DA;
	border-radius: 12px;
	background: #fff;
	color: #374E53;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body.vve2050-single-nieuws .post-navigation a:hover,
body.single-post .post-navigation a:hover {
	border-color: rgba(108, 167, 38, 0.45);
	box-shadow: 0 8px 22px rgba(55, 78, 83, 0.08);
	transform: translateY(-1px);
}

body.vve2050-single-nieuws .post-navigation .nav-subtitle,
body.single-post .post-navigation .nav-subtitle {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6CA726;
}

body.vve2050-single-nieuws .post-navigation .nav-previous .nav-subtitle::before,
body.single-post .post-navigation .nav-previous .nav-subtitle::before {
	content: "Vorig bericht";
	font-size: 0.75rem;
}

body.vve2050-single-nieuws .post-navigation .nav-next .nav-subtitle::before,
body.single-post .post-navigation .nav-next .nav-subtitle::before {
	content: "Volgende bericht";
	font-size: 0.75rem;
}

body.vve2050-single-nieuws .post-navigation .nav-title,
body.single-post .post-navigation .nav-title {
	display: block;
	font-family: "Merriweather", Georgia, serif;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	color: #374E53;
}

/* Als er maar één navigatie-link is, volle breedte */
body.vve2050-single-nieuws .post-navigation .nav-links:not(:has(.nav-next)) .nav-previous,
body.vve2050-single-nieuws .post-navigation .nav-links:not(:has(.nav-previous)) .nav-next,
body.single-post .post-navigation .nav-links:not(:has(.nav-next)) .nav-previous,
body.single-post .post-navigation .nav-links:not(:has(.nav-previous)) .nav-next {
	grid-column: 1 / -1;
}

@media (max-width: 700px) {
	body.vve2050-single-nieuws #primary,
	body.single-post #primary,
	body.vve2050-single-nieuws .site-main,
	body.single-post .site-main,
	body.vve2050-single-nieuws .post-navigation,
	body.single-post .post-navigation {
		padding-left: 16px;
		padding-right: 16px;
	}

	body.vve2050-single-nieuws .post-navigation .nav-links,
	body.single-post .post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	body.vve2050-single-nieuws .post-navigation .nav-next,
	body.single-post .post-navigation .nav-next {
		text-align: left;
	}
}
