/**
 * Testimonial Video Slider styles — overlapping coverflow.
 *
 * Section is full width. The ACTIVE card is 80% of the width, centred, capped
 * at 400px tall and on top. The two neighbouring cards sit UNDER it (lower
 * z-index), shorter, peeking on each side to fill the remaining width.
 * Inside each card: media 60% / content 40%.
 *
 * Responsive: ≤1024px shows 2 slides, ≤767px shows 1 slide. Both use a
 * smooth translating flex track (the row slides horizontally via transform)
 * and keep media at 16:9 so it is never cropped. Arrows show on desktop and
 * tablet, hidden on mobile (dots drive navigation there).
 *
 * Uses Elementor's native global design tokens (--e-global-*). Editable Style
 * controls feed CSS variables (--ftvs-*) via Elementor selectors.
 */
.ftvs{
	--ftvs-accent: var(--e-global-color-primary, #6EC1E4);
	--ftvs-ink: var(--e-global-color-2890e26, #021127);
	--ftvs-soft: var(--e-global-color-0df3eba, #F4F4F8);
	--ftvs-muted: var(--e-global-color-text, #7A7A7A);
	--ftvs-side-op: .9;
	--ftvs-stage-h: clamp(300px, 50vh, 400px);
	position: relative;
	width: 100%;
	box-sizing: border-box;
	padding: clamp(2rem, 5vh, 4rem) 0;
}
.ftvs *{ box-sizing: border-box; }

.ftvs__viewport{ position: relative; width: 100%; overflow: hidden; }
.ftvs__track{
	position: relative;
	width: 100%;
	height: var(--ftvs-stage-h);
	transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

/* Coverflow cards. Active = 80% width, centred, full height (max 400px), on
   top (z 3). Neighbours are shorter, peek on each side, sit UNDER it (z 1).
   Inside the card: media column 60%, content column 40% (3fr / 2fr). */
.ftvs__card{
	position: absolute;
	top: 0;
	left: 10%;
	width: 80%;
	height: 100%;
	max-height: 400px;
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: clamp(1rem, 2.5vw, 2.5rem);
	align-items: stretch;
	background: var(--ftvs-card-bg, #ffffff);
	border-radius: var(--ftvs-card-radius, 24px);
	padding: clamp(1rem, 2vw, 1.75rem);
	box-shadow: 0 30px 70px -45px var(--ftvs-shadow, rgba(2, 17, 39, .45));
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	z-index: 0;
	transition: left .55s cubic-bezier(.4, 0, .2, 1), top .55s ease, height .55s ease, opacity .55s ease;
}
.ftvs__card.is-active{ left: 10%; top: 0; width: 80%; height: 100%; opacity: 1; visibility: visible; z-index: 3; }
.ftvs__card.is-prev{ left: -66%; top: 8%; height: 84%; opacity: var(--ftvs-side-op, .9); visibility: visible; z-index: 1; }
.ftvs__card.is-next{ left: 86%; top: 8%; height: 84%; opacity: var(--ftvs-side-op, .9); visibility: visible; z-index: 1; }

.ftvs__media{
	position: relative;
	height: 100%;
	min-height: 0;
	border-radius: 16px;
	overflow: hidden;
	background: var(--ftvs-soft);
}
.ftvs__media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.ftvs__media iframe,
.ftvs__media video{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: var(--ftvs-ink); }
.ftvs__play{
	position: absolute;
	inset: 0;
	margin: auto;
	width: 70px;
	height: 50px;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.ftvs__content{ padding: clamp(.5rem, 1.5vw, 1.5rem); min-width: 0; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.ftvs__name{
	font-family: var(--e-global-typography-83102b5-font-family, "Font Spring", sans-serif);
	font-size: var(--e-global-typography-83102b5-font-size, 28px);
	font-weight: 700;
	color: var(--ftvs-name-color, var(--ftvs-ink));
	margin: 0 0 .25rem;
	text-align: left;
}
.ftvs__role{
	display: block;
	font-family: var(--e-global-typography-e3368c3-font-family, "Inter", sans-serif);
	font-size: var(--e-global-typography-e3368c3-font-size, 16px);
	color: var(--ftvs-role-color, var(--ftvs-muted));
	margin: 0 0 clamp(1rem, 3vh, 2rem);
	text-align: left;
}
.ftvs__quote{
	font-family: var(--e-global-typography-6337102-font-family, "Font Spring", sans-serif);
	font-size: var(--e-global-typography-6337102-font-size, 20px);
	line-height: 1.5;
	margin: 0;
	padding: 0;
	border: 0;
	color: inherit;
	background: none;
	-webkit-background-clip: border-box;
	background-clip: border-box;
	-webkit-text-fill-color: currentColor;
	overflow: hidden;
	text-align: left;
}
.ftvs__quote strong{ font-weight: 700; }

/* Arrows (above the cards) */
.ftvs__nav{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ftvs-nav-bg, #ffffff);
	border: 1px solid var(--ftvs-nav-border, rgba(2, 17, 39, .06));
	box-shadow: 0 12px 30px -12px var(--ftvs-shadow, rgba(2, 17, 39, .35));
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--ftvs-nav-icon, var(--ftvs-accent));
	transition: box-shadow .2s ease, transform .2s ease;
}
.ftvs__nav:hover{ box-shadow: 0 16px 36px -12px var(--ftvs-shadow, rgba(2, 17, 39, .45)); }
.ftvs__nav:disabled{ opacity: .35; cursor: default; box-shadow: none; }
.ftvs__nav--prev{ left: clamp(.25rem, 2vw, 2rem); }
.ftvs__nav--next{ right: clamp(.25rem, 2vw, 2rem); }
.ftvs__nav svg{ width: 22px; height: 22px; }

/* Dots */
.ftvs__dots{
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
	margin-top: clamp(1.5rem, 4vh, 2.5rem);
}
.ftvs__dot{
	width: var(--ftvs-dot-size, 8px);
	height: var(--ftvs-dot-size, 8px);
	padding: 0;
	border: 0;
	border-radius: 99px;
	cursor: pointer;
	background: var(--ftvs-dot, rgba(2, 17, 39, .18));
	transition: width .3s ease, background .3s ease;
}
.ftvs__dot.is-active{
	width: calc(var(--ftvs-dot-size, 8px) * 3.5);
	background: var(--ftvs-dot-active, var(--ftvs-accent));
}

/* ------------------------------------------------------------------ */
/* Tablet (≤1024px): 2 slides in a smooth translating flex track.      */
/* All cards stay rendered (no display:none) so the row slides         */
/* horizontally via transform — no pop. Media kept at 16:9.            */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px){
	.ftvs__track{
		display: flex;
		flex-wrap: nowrap;
		height: auto;
		gap: var(--ftvs-gap, 24px);
		align-items: stretch;
	}

	.ftvs__card{
		position: static;
		left: auto;
		top: auto;
		width: auto;
		height: auto;
		max-height: none;
		flex: 0 0 calc((100% - var(--ftvs-gap, 24px)) / 2);
		grid-template-columns: 1fr;
		gap: clamp(1rem, 3vw, 1.75rem);
		opacity: 1;
		visibility: visible;
		z-index: auto;
		transition: none;
	}
	.ftvs__card.is-active,
	.ftvs__card.is-prev,
	.ftvs__card.is-next{
		opacity: 1;
		visibility: visible;
	}

	.ftvs__media{
		height: auto;
		width: 100%;
		aspect-ratio: 16 / 9;
	}
	.ftvs__content{ justify-content: flex-start; }
}

/* ------------------------------------------------------------------ */
/* Mobile (≤767px): a single slide. Arrows hidden — dots navigate.      */
/* ------------------------------------------------------------------ */
@media (max-width: 767px){
	.ftvs__nav{ display: none; }
	.ftvs__track{ gap: 0; }
	.ftvs__card{
		flex-basis: 100%;
		padding: clamp(.85rem, 4vw, 1.25rem);
	}
}
