/* ── Video Testimonial ────────────────────────────────────────────────────── */

.cf-video-testimonial {
	position: relative;
}

/* ── Video area ───────────────────────────────────────────────────────────── */

.cf-vt__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	overflow: hidden;
	background: #111;
	cursor: pointer;
}

/* Hover overlay — sits above thumbnail, below play button */
.cf-vt__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	transition: background 0.25s ease;
	z-index: 1;
	pointer-events: none;
	border-radius: inherit;
}

.cf-vt__media:hover::after {
	background: rgba(0, 0, 0, 0.18);
}

.cf-vt__thumbnail {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.cf-vt__media:hover .cf-vt__thumbnail {
	transform: scale(1.03);
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */

.cf-vt-lightbox {
	display: flex;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cf-vt-lightbox.is-open {
	visibility: visible;
	opacity: 1;
}

.cf-vt-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
}

.cf-vt-lightbox__inner {
	position: relative;
	width: min(90vw, 960px);
	z-index: 1;
	transform: scale(0.95);
	transition: transform 0.25s ease;
}

.cf-vt-lightbox.is-open .cf-vt-lightbox__inner {
	transform: scale(1);
}

.cf-vt-lightbox__close {
	position: absolute;
	top: -3rem;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 0.375rem;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.75;
	transition: opacity 0.15s;
}

.cf-vt-lightbox__close:hover {
	opacity: 1;
}

.cf-vt-lightbox__close svg {
	width: 1.75rem;
	height: 1.75rem;
	display: block;
}

.cf-vt-lightbox__ratio {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
}

.cf-vt-lightbox__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

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

.cf-vt__play {
	position: absolute;
	bottom: 1.5rem;
	right: 1.5rem;
	width: 3.75rem;
	height: 3.75rem;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--vt-play-a, #2050ce) 0%, var(--vt-play-b, #40ffd3) 100%);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	z-index: 2;
	flex-shrink: 0;
	box-shadow: 0 4px 16px rgba(24, 16, 117, 0.35);
}

.cf-vt__play svg {
	width: 1.5rem;
	height: 1.5rem;
	display: block;
	margin-left: 0.15rem; /* optical centering of triangle */
}

.cf-vt__play:hover,
.cf-vt__media:hover .cf-vt__play {
	transform: scale(1.12);
	box-shadow: 0 6px 24px rgba(24, 16, 117, 0.5);
}

/* ── Quote card ───────────────────────────────────────────────────────────── */

.cf-vt__quote-card {
	position: relative;
	margin-top: -30%;    /* pull card up to overlap bottom of video */
	margin-left: -1.5rem;
	width: 44%;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.13);
	padding: 1.5rem 1.75rem;
	z-index: 3;
}

.cf-vt__quote {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.55;
	color: #181075;
	margin: 0 0 1.125rem;
}

/* ── Attribution ──────────────────────────────────────────────────────────── */

.cf-vt__attribution {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.cf-vt__logo {
	height: 2rem;
	width: 2rem;
	object-fit: contain;
	object-position: center;
	flex-shrink: 0;
}

.cf-vt__person {
	display: flex;
	flex-direction: column;
	font-size: 0.875rem;
	line-height: 1.4;
}

.cf-vt__person-name {
	font-weight: 600;
	color: #1a1a2e;
}

.cf-vt__person-sub {
	color: #777;
}

/* ── Elementor editor: keep card visible ─────────────────────────────────── */

.elementor-editor-active .cf-video-testimonial {
	overflow: visible;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
	.cf-video-testimonial {
		padding: 0 1.25rem;
	}

	.cf-vt__quote-card {
		position: static;
		margin-top: 1rem;
		margin-left: 0;
		width: 100% !important;
	}

	.cf-vt__play {
		width: 3rem;
		height: 3rem;
		bottom: 1rem;
		right: 1rem;
	}
}
