/*
 * Classic layout styles.
 * Ported from u-design-child for pages that still use legacy HTML structure:
 *   - expertise (10114): columns, team members, blockquote, style elements
 *   - client-cases subpages: summary boxes, half-width images, centered text
 *   - instructies subpages: slide toggles
 */

/* ── Column system ────────────────────────────────────────────────────── */

.kolommen {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.halve-kolom {
	width: 48% !important;
}

.halve-kolom .wp-caption {
	max-width: 100% !important;
}

.derde-kolom {
	width: 31% !important;
}

.tweederde-kolom {
	width: 65.5% !important;
}

/* ── Style element (expertise intro sections) ─────────────────────────── */

.stijlelement1 {
	margin-top: 40px;
	margin-bottom: 40px;
}

.stijlelement1 h2 {
	margin-top: 0;
	font-weight: 700;
	font-size: 1.8em;
	line-height: 1.4;
}

.stijlelement1 p {
	font-size: 20px;
	line-height: 40px;
	padding-top: 0;
}

.stijlelement1 .lees_meer a {
	padding-left: 16px;
	color: #333;
	font-weight: 700;
	font-size: 16px;
}

.stijlelement1 .lees_meer::before {
	content: ">";
	display: inline-block;
}

/* ── Team members (expertise page) ────────────────────────────────────── */

.team_members {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 25px 20px;
}

.team_member {
	flex: 0 1 48%;
	justify-content: space-between;
	display: flex;
	background: #f2f2f2;
}

.team_member_img {
	flex: 0 1 40%;
}

.team_member_img img {
	display: block;
}

.team_member_info {
	flex: 0 1 55%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 10px 0;
}

.team_member_info h5 {
	margin-bottom: 0;
	font-size: 1.5em;
	line-height: 1;
}

.team_member_info p {
	padding: 0;
}

.team_member_info_meta {
	margin-top: auto;
	font-size: .8em;
	line-height: 1.4;
	text-align: center;
}

/* ── Blockquote (expertise page) ──────────────────────────────────────── */

.blockquote {
	background: none;
	margin: 40px 0;
	padding: 0;
	border: none;
}

.blockquote p {
	font-size: 30px;
	line-height: 48px;
	font-style: normal;
	font-weight: 300;
}

.blockquote::before {
	background: none;
}

.blockquote p::before {
	content: "\201C";
}

.blockquote p::after {
	content: "\201D";
}

.blockquote footer {
	font-weight: bold;
	font-size: 16px;
	text-transform: uppercase;
	font-style: normal;
}

.blockquote footer cite {
	font-weight: normal;
	font-size: 16px;
	display: block;
}

/* ── Case study summary boxes (client-cases subpages) ─────────────────── */

.casestudy_intro {
	font-size: 1.2em;
}

.casestudy-intro {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.casestudy_summary {
	width: 220px;
	margin-right: 20px;
	float: left;
	margin-bottom: 1%;
	position: relative;
	border-bottom: 1px solid #444;
	text-align: center;
	font-size: 12px;
	line-height: 1.5;
	padding: 0 0 12px;
}

.casestudy_summary_last {
	clear: right;
	margin-right: 0 !important;
	margin-bottom: 60px;
}

.casestudy_summary strong {
	font-weight: normal;
	color: #999;
}

/* ── Client-case page wrapper ─────────────────────────────────────────── */
/* Replaces the body class .page-template-page-ClientCase from u-design. */

.client-case-page h1,
.client-case-page p {
	text-align: center;
}

.client-case-page h2,
.client-case-page h3 {
	text-align: center;
	margin: 0 auto 10px;
	line-height: 1.1;
}

.client-case-page h4 {
	text-align: center;
}

.client-case-page h2,
.client-case-page h3,
.client-case-page h4,
.client-case-page p {
	clear: both;
}

.client-case-page p {
	margin: 0 auto 60px;
	padding: 0;
}

.client-case-page img {
	display: block;
}

.client-case-page img.size-full {
	width: 100%;
}

/* ── Half / three-quarter images (client-cases subpages) ──────────────── */

img.img-half {
	width: 460px;
	height: auto;
}

img.img-half.alignright,
img.img-driekwart.alignright {
	margin-left: 0;
	clear: both;
	margin-bottom: 60px;
}

img.img-half.alignleft,
img.img-driekwart.alignleft {
	margin-right: 0;
	clear: both;
	margin-bottom: 60px;
}

img.img-driekwart {
	clear: both;
	width: 700px;
	height: auto;
}

img.img-driekwart.alignright.clearnone,
img.img-driekwart.alignleft.clearnone,
img.img-driekwart.clearnone,
img.img-half.alignright.clearnone,
img.img-half.alignleft.clearnone,
img.img-half.clearnone {
	clear: none;
}

/* ── Max-width helpers ────────────────────────────────────────────────── */

.mw710,
.mw720 {
	max-width: 720px;
}

/* ── Slide toggle (instructies subpages) ──────────────────────────────── */

h4.slide_toggle {
	margin: 10px 0;
	padding: 0 0 15px 40px;
	position: relative;
	cursor: pointer;
}

h4.slide_toggle::before {
	content: "\25B6";
	position: absolute;
	left: 10px;
	top: 0;
	font-size: 14px;
	transition: transform 0.2s;
}

h4.slide_toggle a {
	padding-top: 3px;
	display: block;
	text-decoration: none;
	border: 0 none;
	outline: 0 none;
	line-height: 1.1;
}

.slide_toggle_content {
	background: #f5f5f5;
	margin: 0 0 20px 40px;
	padding: 30px;
	clear: both;
	overflow: hidden;
}

/* ── Embed container (responsive video) ───────────────────────────────── */

.embed-container {
	position: relative;
	padding-bottom: 75%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
	margin-bottom: 40px;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ── Responsive breakpoints ───────────────────────────────────────────── */

@media screen and (max-width: 959px) and (min-width: 720px) {
	.casestudy_summary {
		width: 160px;
		margin-right: 20px;
	}

	img.img-half {
		width: 340px;
	}

	img.img-driekwart {
		width: 520px;
	}
}

@media screen and (max-width: 719px) {
	.halve-kolom,
	.derde-kolom {
		width: 100% !important;
	}

	.team_member {
		flex-basis: 100%;
	}

	.casestudy_summary {
		width: 46%;
		margin-right: 2%;
		margin-left: 2%;
	}

	.casestudy_summary_last {
		clear: none;
	}

	img.img-half.alignright,
	img.img-half.alignleft,
	img.img-half {
		width: 220px;
		height: auto;
	}

	img.img-driekwart.alignright,
	img.img-driekwart.alignleft,
	img.img-driekwart {
		width: 340px;
	}
}

@media screen and (min-width: 720px) {
	.team_member_reverse {
		flex-direction: row-reverse;
	}
}

@media screen and (max-width: 480px) {
	.casestudy_summary {
		width: 100%;
		margin-right: 0 !important;
	}

	img.img-half.alignright,
	img.img-half.alignleft,
	img.img-half {
		width: 100%;
		height: auto;
	}
}
