/*
 * Hairtec Behandelingen widget.
 * Opmaakwaarden (kleuren, maten, typografie, responsive gedrag) komen uit het Elementor-paneel.
 * Dit bestand bevat alleen structuur en veilige terugvalwaarden.
 */
.behandelingen {
	display: grid;
	grid-template-columns: var(--hb-head-w, 460px) minmax(0, 1fr);
	gap: 48px;
	align-items: stretch;
	box-sizing: border-box;
	min-width: 0;
	padding: 56px 0 56px max(var(--hb-edge, 0px), calc((100% - var(--hb-content, 1440px)) / 2));
	background-color: var(--e-global-color-secondary, #eeeff2);
	color: var(--e-global-color-text, #5c5c5c);
	font-family: var(--e-global-typography-text-font-family, inherit);
	text-align: left;
}
.behandelingen *,
.behandelingen *::before,
.behandelingen *::after {
	box-sizing: border-box;
}

/* ---- Tekstblok ---- */
.behandelingen_head {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}
.behandelingen_title {
	margin: 0;
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-size: 28px;
	font-weight: 700;
	line-height: 32px;
	color: var(--e-global-color-primary, #223558);
}
.behandelingen_title_light {
	font-weight: 400;
}
.behandelingen_intro {
	font-size: 15px;
	line-height: 23px;
}
.behandelingen_intro p {
	margin: 0 0 12px;
	text-wrap: pretty;
}
.behandelingen_intro p:last-child {
	margin: 0;
}
.behandelingen .behandelingen_intro a {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.behandelingen_actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 4px;
}
.behandelingen_actions .elementor-button {
	display: block;
	padding: 16px 20px;
	outline: 1px solid transparent;
	outline-offset: -1px;
	text-align: center;
}
.behandelingen_actions .elementor-button-content-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.behandelingen_actions .elementor-button:focus-visible {
	outline: 2px solid var(--e-global-color-primary, #223558);
	outline-offset: 4px;
}
.behandelingen_arrow {
	display: block;
	flex: none;
}
.behandelingen_btn_secondary .elementor-button {
	background-color: var(--e-global-color-text, #5c5c5c);
}
.behandelingen_btn_secondary .elementor-button:hover,
.behandelingen_btn_secondary .elementor-button:focus {
	background-color: var(--e-global-color-primary, #223558);
}

/* ---- Carousel ---- */
.behandelingen_slider {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.behandelingen_rail {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-wrap: nowrap;
	gap: var(--hb-gap, 16px);
	align-items: stretch;
	overflow: auto;
	padding: 14px var(--hb-edge, 0px) 14px 0;
	margin-block: -14px;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overflow-anchor: none;
}
.behandelingen_rail::-webkit-scrollbar {
	display: none;
}
.behandelingen_rail::after {
	content: "";
	flex: 0 0 calc(100% - var(--hb-card-w, 300px) - var(--hb-gap, 16px));
}
.behandelingen_rail:focus-visible {
	outline: 2px solid var(--e-global-color-primary, #223558);
	outline-offset: -2px;
}
.elementor-editor-active .behandelingen_rail {
	scrollbar-width: auto;
}

/* ---- Kaart ---- */
.behandeling_card {
	position: relative;
	display: flex;
	flex: 0 0 var(--hb-card-w, 300px);
	flex-direction: column;
	min-width: 0;
	padding: 6.5px;
	border: 1.5px solid transparent;
	border-radius: 16px;
	background-color: #fff;
	scroll-snap-align: start;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
@media (hover: hover) {
	.behandeling_card:hover {
		transform: translateY(-2px);
	}
}
.behandeling_card.is_current,
.behandeling_card:hover,
.behandeling_card:focus-within {
	border-color: #d7d7d7;
}
.behandeling_card_media {
	position: relative;
	flex: 1 1 150px;
	min-height: 150px;
}
.behandeling_card_media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 10px;
}
.behandeling_card_body {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 14px 8px 4px;
	overflow-wrap: break-word;
}
.behandeling_card_nr {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 1px;
	color: #6b7385;
}
.behandeling_card_title {
	margin: 0;
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	color: var(--e-global-color-primary, #223558);
	text-wrap: balance;
}
.behandeling_card_text {
	flex: 1 1 auto;
	font-size: 14px;
	line-height: 22px;
	color: var(--e-global-color-text, #5c5c5c);
}
.behandeling_card_text p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}
.behandelingen .behandeling_card_link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	padding: 12px 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 20px;
	text-align: left;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	color: var(--e-global-color-primary, #223558);
	transition: text-decoration-color 0.2s;
}
.behandelingen .behandeling_card_link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.behandelingen .behandeling_card:hover .behandeling_card_link,
.behandelingen .behandeling_card_link:focus-visible {
	text-decoration-color: currentColor;
}
.behandelingen .behandeling_card_link:focus-visible {
	outline: 2px solid var(--e-global-color-primary, #223558);
	outline-offset: 4px;
}

/* ---- Cijfers ---- */
.behandelingen_foot {
	display: flex;
	align-items: center;
	margin-top: 16px;
	padding-right: var(--hb-edge, 0px);
}
.behandelingen_nav {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	gap: 14px;
	width: fit-content;
}
.behandelingen_nav::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 22px;
	left: 22px;
	height: 1px;
	background-color: #cfd3db;
}
.behandelingen .behandelingen_nav button.behandelingen_pill {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	margin: 0;
	padding: 0 4px;
	border: 2px solid transparent;
	border-radius: 100px;
	background-color: var(--e-global-color-secondary, #eeeff2);
	box-shadow: none;
	color: var(--e-global-color-primary, #223558);
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.2s, color 0.2s;
}
.behandelingen .behandelingen_nav button.behandelingen_pill:hover {
	background-color: #fff;
	color: var(--e-global-color-primary, #223558);
}
.behandelingen .behandelingen_nav button.behandelingen_pill.is_on,
.behandelingen .behandelingen_nav button.behandelingen_pill.is_on:hover {
	background-color: var(--e-global-color-primary, #223558);
	color: #fff;
}
.behandelingen .behandelingen_nav button.behandelingen_pill:focus-visible {
	outline: 2px solid var(--e-global-color-primary, #223558);
	outline-offset: 3px;
}

@media (forced-colors: active) {
	.behandelingen_nav button {
		border-color: ButtonText;
	}
	.behandelingen_nav button.is_on {
		border-width: 4px;
		border-color: Highlight;
	}
	.behandeling_card.is_current {
		border-width: 3px;
		border-color: Highlight;
	}
}
@media (prefers-reduced-motion: reduce) {
	.behandeling_card,
	.behandeling_card_link,
	.behandelingen_nav button {
		transition: none;
	}
	.behandeling_card:hover {
		transform: none;
	}
}
