/**
 * ByClinic - Carrusel
 *
 * Kleuren/spacing GESCHAT uit de screenshot. Pas de tokens hieronder aan
 * zodra je de echte merkwaarden hebt. Alles draait op deze variabelen.
 */

.byc-carrusel {
	/* --- Aanpasbare tokens (geschat) --- */
	--byc-bg: #d4ebe7;            /* lichte teal achtergrond van het blok */
	--byc-btn-bg: #2f9e92;        /* knop groen/teal */
	--byc-btn-bg-hover: #268377;  /* knop hover, iets donkerder */
	--byc-btn-text: #ffffff;
	--byc-title: #1a1a1a;
	--byc-subtitle: #1a1a1a;
	--byc-radius: 24px;           /* afronding van het hele blok */
	--byc-media-radius: 16px;     /* afronding van de witte image-kaart */
	--byc-max-width: 1280px;
	--byc-pad-y: 56px;
	--byc-pad-x: 56px;
	--byc-gap: 40px;
	--byc-accent: #2f9e92;        /* kleur dots, pijlen */
	--byc-img-max-h: 350px;       /* max hoogte afbeelding */
	/* ----------------------------------- */

	position: relative;
	max-width: var(--byc-max-width);
	margin: 0 auto;
}

.byc-carrusel__track {
	position: relative;
}

/* Alle slides absoluut over elkaar. De track krijgt zijn hoogte via JS
 * (hoogste slide), zodat er nooit twee slides tegelijk ruimte claimen. */
.byc-carrusel__slide {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--byc-gap);
	background: var(--byc-bg);
	border-radius: var(--byc-radius);
	padding: var(--byc-pad-y) var(--byc-pad-x);

	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.byc-carrusel__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

/* Voor JS de hoogte berekend is: eerste slide bepaalt de track-hoogte.
 * Zodra JS draait wordt dit overschreven door een inline height op de track. */
.byc-carrusel__track:not([style*="height"]) .byc-carrusel__slide:first-child {
	position: relative;
	opacity: 1;
	visibility: visible;
}

.byc-carrusel__content {
	flex: 1 1 50%;
	max-width: 50%;
	/* ruimte rechts zodat de prev-pijl nooit over de tekst valt */
	padding-left: 24px;
}

.byc-carrusel__title {
	color: var(--byc-title);
	font-size: 2.5rem;
	line-height: 1.1;
	font-weight: 700;
	margin: 0 0 0.5em;
}

.byc-carrusel__subtitle {
	color: var(--byc-subtitle);
	font-size: 1.4rem;
	line-height: 1.3;
	font-weight: 600;
	margin: 0 0 1.5em;
}

.byc-carrusel__btn {
	display: inline-block;
	background: var(--byc-btn-bg);
	color: var(--byc-btn-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	padding: 14px 28px;
	border-radius: 10px;
	transition: background 0.2s ease;
}

.byc-carrusel__btn:hover,
.byc-carrusel__btn:focus {
	background: var(--byc-btn-bg-hover);
	color: var(--byc-btn-text);
}

.byc-carrusel__media {
	flex: 1 1 45%;
	max-width: 45%;
}

.byc-carrusel__media img {
	display: block;
	width: 100%;
	max-height: var(--byc-img-max-h);
	height: auto;
	object-fit: contain;
	border-radius: var(--byc-media-radius);
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* --- Navigatie: pijlen --- */
.byc-carrusel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px !important;
	height: 44px !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.85) !important;
	color: var(--byc-accent) !important;
	font-size: 20px !important;
	line-height: 1 !important;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	display: flex !important;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.byc-carrusel__arrow:hover {
	background: #ffffff !important;
	transform: translateY(-50%) scale(1.08);
}

.byc-carrusel__arrow--prev {
	left: 24px;
}

.byc-carrusel__arrow--next {
	right: 24px;
}

/* --- Navigatie: dots ---
 * !important nodig omdat Elementor/theme button-styling overschrijft
 * (zelfde patroon als de input-velden in Mi cuenta). */
.byc-carrusel__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 10px;
	z-index: 3;
}

.byc-carrusel__dot {
	width: 12px !important;
	height: 12px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 2px solid var(--byc-accent) !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background 0.2s ease;
	flex: 0 0 auto;
}

.byc-carrusel__dot.is-active {
	background: var(--byc-accent) !important;
}

/* --- Mobiel --- */
@media (max-width: 768px) {
	.byc-carrusel {
		--byc-pad-y: 32px;
		--byc-pad-x: 24px;
		--byc-img-max-h: 260px;
	}

	.byc-carrusel__slide {
		flex-direction: column-reverse;
		text-align: center;
	}

	.byc-carrusel__content,
	.byc-carrusel__media {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.byc-carrusel__title {
		font-size: 1.9rem;
	}

	.byc-carrusel__subtitle {
		font-size: 1.2rem;
	}

	.byc-carrusel__dots {
		bottom: 12px;
	}

	/* Pijlen kleiner en dichter op de rand op mobiel */
	.byc-carrusel__arrow {
		width: 36px !important;
		height: 36px !important;
		font-size: 16px !important;
	}

	.byc-carrusel__arrow--prev {
		left: 8px;
	}

	.byc-carrusel__arrow--next {
		right: 8px;
	}
}