/* ============================================================
   Video Testimonials — BASE
   Variables · heading · card shell · photo · text overlay
   (carousel / desktop / modal live in their own files)
   ============================================================ */

.evt-section {
	--evt-gap:                20px;
	--evt-radius:             16px;
	--evt-cards-height:       620px;
	--evt-mobile-card-height: min(62vh, 500px);
	--evt-accent:             #1A73E8;
	--evt-inactive-dim:       rgba(0, 0, 0, 0.30);
	--evt-active-shadow:      0 0 0 3px rgba(255,255,255,0.9), 0 6px 22px rgba(0,0,0,0.18);
}

/* ---- Heading ---- */
.evt-heading {
	text-align: center;
	margin-bottom: 2rem;
}

.evt-heading h2 {
	margin: 0 0 0.5rem;
	font-size: 2rem;
	line-height: 1.2;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.evt-subtitle {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--evt-accent);
	margin-bottom: 0.4rem;
}

.evt-description {
	margin: 0.75rem auto 0;
	max-width: 880px;
	font-size: 0.95rem;
	line-height: 1.6;
}

/* ---- Card shell (shared by mobile + desktop) ---- */
.evt-item {
	position: relative; /* anchors .evt-content (absolute) */
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	outline: none;
}

.evt-item:focus-visible {
	outline: 2px solid rgba(255,255,255,0.85);
	outline-offset: -4px;
}

.evt-content {
	position: absolute;
	inset: 0;
	border-radius: var(--evt-radius);
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Agent photo background */
.evt-agent-wrap,
.evt-agent-wrap.evt-agent-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: top center;
	background-repeat: no-repeat;
	background-color: #1a1a1a; /* placeholder until lazy bg loads */
}

/* Text overlay (gradient + testimonial + name) */
.evt-description-wrap {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top,
		rgba(0,0,0,0.92) 0%,
		rgba(0,0,0,0.45) 45%,
		rgba(0,0,0,0.08) 75%,
		transparent 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.25rem 1.25rem 1.5rem;
	opacity: 1;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.evt-description-wrap .evt-testimonial,
.evt-description-wrap .evt-title-block {
	pointer-events: auto;
}

.evt-testimonial {
	font-size: 0.9rem;
	line-height: 1.55;
	color: #fff;
	margin-bottom: 0.85rem;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	line-clamp: 5;
}

.evt-title-block {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.evt-name-block {
	flex: 1;
	min-width: 0;
}

.evt-name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* CTA below the gallery */
.evt-cta {
	text-align: center;
	margin-top: 1.75rem;
}

/* Star rating */
.evt-stars {
	display: flex;
	gap: 2px;
	margin-bottom: 0.3rem;
	line-height: 1;
	pointer-events: none;
}
.evt-star { font-size: 0.78rem; color: rgba(255,255,255,0.25); }
.evt-star.evt-star--on { color: #FFC107; }

/* ---- Inline video player (inside card) ---- */
.evt-inline-player {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 20;
	background: #000;
	border-radius: var(--evt-radius);
}
.evt-item.evt-is-playing .evt-inline-player {
	display: block;
}
.evt-inline-iframe,
.evt-inline-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}
.evt-inline-video {
	display: none;
	background: #000;
	object-fit: cover;
}
.evt-inline-close {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 21;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.5);
	background: rgba(0,0,0,0.6);
	color: #fff;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: background 0.2s ease;
}
.evt-inline-close:hover {
	background: rgba(255,255,255,0.25);
}

