/* Vormingspagina's: filterpagina's Ons aanbod en Producten.
   Kleuren en lettertype volgen style.less (@basiccolor, @titelcolor, @color). */

.vorming_overzicht {
	--vf-basis: #1D687C;
	--vf-titel: #294F55;
	--vf-accent: #C74625;
	--vf-grijs: #749098;
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	margin: 20px 0 80px;
}
.vorming_overzicht [hidden] { display: none !important; }

/* Filters */
.vf_filters {
	position: sticky;
	top: 110px;
	background: #fff;
	padding: 24px 22px;
	font-size: 15px;
	line-height: 22px;
}
.vf_toggle { display: none; }
.vf_kop {
	font-weight: 700;
	color: var(--vf-titel);
	font-size: 18px;
	margin: 0 0 14px;
}
.vf_form fieldset {
	border: 0;
	margin: 0 0 20px;
	padding: 0;
}
.vf_form legend {
	font-weight: 700;
	color: var(--vf-titel);
	margin-bottom: 8px;
	padding: 0;
}
.vf_optie {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	padding: 4px 0;
	cursor: pointer;
}
.vf_optie input {
	accent-color: var(--vf-basis);
	width: 17px;
	height: 17px;
	margin: 2px 0 0;
	flex: none;
}
.vf_eigen {
	font-weight: 500;
	color: var(--vf-basis);
}
.vf_wis {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 14px;
	color: var(--vf-accent);
	text-decoration: underline;
	cursor: pointer;
}

/* Lijst: balkjes onder elkaar, foto links */
.vf_items {
	display: grid;
	gap: 20px;
}
.vf_item {
	background: #fff;
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
}
.vf_foto {
	display: block;
	position: relative;
	min-height: 165px;
	background: #e3eaec;
	overflow: hidden;
}
.vf_foto img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.vf_item:hover .vf_foto img { transform: scale(1.03); }
.vf_tekst {
	padding: 18px 22px;
	font-size: 15px;
	line-height: 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.vf_boven {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 6px 20px;
}
.vf_titel {
	font-size: 18px;
	line-height: 26px;
	margin: 0;
}
.vf_titel a {
	color: var(--vf-basis);
	text-decoration: none;
}
.vf_titel a:hover { text-decoration: underline; }
.vf_wanneer {
	flex: none;
	font-size: 14px;
	font-weight: 700;
	color: var(--vf-basis);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.vf_kort p { margin: 0 0 6px; }
.vf_kort p:last-child { margin-bottom: 0; }
.vf_onder {
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 10px 20px;
}
.vf_meta p { margin: 0; }
.vf_org {
	font-weight: 500;
	color: var(--vf-titel);
}
.vf_tags {
	color: var(--vf-grijs);
	font-size: 14px;
	word-break: break-word;
}
.vf_onder .more {
	flex: none;
	margin: 0;
	background: var(--vf-basis);
	border-color: var(--vf-basis);
	color: #fff;
}
.vf_onder .more:hover {
	background: var(--vf-accent);
	border-color: var(--vf-accent);
}
.vf_sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.vf_leeg {
	background: #fff;
	padding: 20px;
	margin: 0;
}

.vorming_extern { margin: 10px 0 30px; }

@media only screen and (max-width: 1100px) {
	.vf_item { grid-template-columns: 160px minmax(0, 1fr); }
	.vf_boven { flex-direction: column; }
}

/* Gsm en tablet: filters boven de lijst, open te klappen */
@media only screen and (max-width: 750px) {
	.vorming_overzicht {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
	.vf_filters {
		position: static;
		padding: 0;
	}
	.vf_toggle {
		display: block;
		width: 100%;
		text-align: left;
		background: #fff;
		border: 0;
		padding: 14px 20px;
		font: inherit;
		font-weight: 700;
		color: var(--vf-titel);
		cursor: pointer;
	}
	.vf_toggle::after {
		content: '+';
		float: right;
	}
	.vf_filters.open .vf_toggle::after { content: '–'; }
	.vf_form {
		display: none;
		padding: 0 20px 10px;
	}
	.vf_filters.open .vf_form { display: block; }
	.vf_kop { display: none; }
	.vf_item { grid-template-columns: minmax(0, 1fr); }
	.vf_foto { min-height: 0; padding-bottom: 50%; }
	.vf_onder { flex-wrap: wrap; }
}
