/* =============================================================
   Video Testimonial Carousel  —  carousel.css  v1.1.1
   ============================================================= */

/* ── Section ─────────────────────────────────────────────────── */

.vtc-section {
	font-family: 'Montserrat', sans-serif;
	background-color: #fdc300;
	padding: 60px 0 52px;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	position: relative;
}

/* ── Heading ─────────────────────────────────────────────────── */

/* Selector is deliberately over-specific (.vtc-section h2.vtc-heading) so it
   outranks theme/page-builder global heading rules such as Elementor's
   `.elementor-kit-6 h2`, which would otherwise win on specificity. */
.vtc-section h2.vtc-heading {
	text-align: center;
	color: #1A1A2E;
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 auto 44px;
	padding: 0 24px;
	max-width: 1000px;
}

/* heading_style="normal" shortcode attribute */
.vtc-section h2.vtc-heading.vtc-heading--normal {
	font-weight: 400;
}

/* When a subheading follows, tighten the heading's own bottom margin —
   the subheading carries the 44px gap before the carousel instead. */
.vtc-section h2.vtc-heading:has( + p.vtc-subheading ) {
	margin-bottom: 12px;
}

/* Optional text shown under .vtc-heading. Independent of heading_style. */
.vtc-section p.vtc-subheading {
	text-align: center;
	color: #1A1A2E;
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.5;
	opacity: 0.75;
	margin: 0 auto 44px;
	padding: 0 24px;
	max-width: 560px;
}

/* ── Carousel wrapper ────────────────────────────────────────── */

.vtc-carousel-wrapper {
	position: relative;
	padding: 0;
	box-sizing: border-box;
}

/* ── Track outer  (clips horizontal overflow to show peek) ───── */

.vtc-track-outer {
	overflow: hidden;
	position: relative;
}

/* ── Track  (flex row that slides via translateX) ────────────── */

.vtc-track {
	display: flex;
	align-items: center;
	/* SLIDE_GAP constant in carousel.js must match this value */
	column-gap: 60px;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}

/* ── Slide  (width set in JS; CSS handles opacity & scale) ────── */

.vtc-slide {
	flex: 0 0 auto;
	opacity: 0.5;
	transform: scale(0.75);
	transition: opacity 0.45s ease, transform 0.45s ease;
	user-select: none;
	-webkit-user-select: none;
}

.vtc-slide.vtc-active {
	opacity: 1;
	transform: scale(1);
}

/* ── Card ────────────────────────────────────────────────────── */

.vtc-card {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background-color: #2a2a40;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
	cursor: pointer;
}

/* ── Play button ─────────────────────────────────────────────── */

.vtc-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background-color: #E63946;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	padding: 0;
	z-index: 2;
	color: #fff;
}

.vtc-play-btn svg {
	width: 38px;
	height: 38px;
	/* Optical centering for the triangle shape */
	margin-left: 6px;
	pointer-events: none;
}

.vtc-play-btn:hover,
.vtc-play-btn:focus-visible {
	transform: translate(-50%, -50%) scale(1.12);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
	outline: none;
}

/* ── Duration badge ──────────────────────────────────────────── */

.vtc-duration {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.68);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1;
	padding: 4px 10px;
	border-radius: 12px;
	z-index: 2;
	letter-spacing: 0.03em;
	font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
}

/* ── Navigation arrows ───────────────────────────────────────── */

.vtc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: #1A1A2E;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
	transition: background-color 0.2s ease, transform 0.2s ease;
	padding: 0;
	color: #fff;
}

.vtc-arrow:hover,
.vtc-arrow:focus-visible {
	background-color: #2d2d55;
	transform: translateY(-50%) scale(1.08);
	outline: none;
}

.vtc-arrow svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	pointer-events: none;
}

/* Centered in the 60 px gap between the peek card and the center card.
   Formula: peek% - gap/2 - button_width/2 = 25% - 30px - 24px = 25% - 54px
   Gives 6 px clearance from each card edge. */
.vtc-arrow-prev { left:  calc(25% - 54px); }
.vtc-arrow-next { right: calc(25% - 54px); }

/* ── Pagination dots ─────────────────────────────────────────── */

.vtc-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 28px;
}

.vtc-dot {
	position: relative;
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 2px solid #1A1A2E;
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.25s ease;
}

/* Expand hit area to minimum 44×44 px without affecting layout */
.vtc-dot::before {
	content: '';
	position: absolute;
	inset: -16px;
}

.vtc-dot.vtc-dot-active {
	background-color: #1A1A2E;
}

.vtc-dot:focus-visible {
	outline: 2px solid #1A1A2E;
	outline-offset: 3px;
}

/* =============================================================
   Modal / Lightbox
   ============================================================= */

.vtc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vtc-modal[hidden] {
	display: none;
}

.vtc-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	cursor: pointer;
}

.vtc-modal-content {
	position: relative;
	z-index: 1;
	width: 90vw;
	max-width: 960px;
}

.vtc-modal-close {
	position: absolute;
	top: -50px;
	right: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 2px solid rgba(255, 255, 255, 0.45);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s ease;
}

.vtc-modal-close:hover,
.vtc-modal-close:focus-visible {
	background: rgba(255, 255, 255, 0.28);
	outline: none;
}

.vtc-modal-close svg {
	width: 18px;
	height: 18px;
	pointer-events: none;
}

/* 16:9 responsive embed container */
.vtc-modal-player {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.vtc-modal-player iframe,
.vtc-modal-player video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 12px;
}

/* =============================================================
   Responsive
   ============================================================= */

@media (max-width: 768px) {
	.vtc-section {
		padding: 44px 0 40px;
	}

	.vtc-section h2.vtc-heading {
		font-size: 1.7rem !important;
		margin-bottom: 32px;
	}

	.vtc-section h2.vtc-heading:has( + p.vtc-subheading ) {
		margin-bottom: 10px;
	}

	.vtc-section p.vtc-subheading {
		font-size: 0.95rem;
		margin-bottom: 32px;
	}

	/* On mobile there is no peek — give arrows dedicated space at the sides */
	.vtc-carousel-wrapper {
		padding: 0 52px;
	}

	.vtc-arrow-prev { left:  0; }
	.vtc-arrow-next { right: 0; }

	/* Mobile: full-width single card, no peek; non-active slides hidden */
	.vtc-slide {
		opacity: 0;
		transform: scale(0.98);
	}

	.vtc-slide.vtc-active {
		opacity: 1;
		transform: scale(1);
	}

	.vtc-play-btn {
		width: 76px;
		height: 76px;
	}

	.vtc-arrow {
		width: 40px;
		height: 40px;
	}

	.vtc-modal-close {
		top: -48px;
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 480px) {
	.vtc-section {
		padding: 36px 0 32px;
	}

	.vtc-section h2.vtc-heading {
		font-size: 1.7rem !important;
		margin-bottom: 24px;
	}

	.vtc-section h2.vtc-heading:has( + p.vtc-subheading ) {
		margin-bottom: 8px;
	}

	.vtc-section p.vtc-subheading {
		font-size: 0.9rem;
		margin-bottom: 24px;
	}

	.vtc-carousel-wrapper {
		padding: 0 46px;
	}

	.vtc-arrow {
		width: 36px;
		height: 36px;
	}
}