/*--------------------------------------------------------------
# Video Showcase Block
--------------------------------------------------------------*/

.video-showcase {
	padding: 120px 0px 0px;
}

.video-showcase__inner {
	display: flex;
	flex-direction: column;
}

.video-showcase__heading {
	color: var(--color-white);
	line-height: 66px;
	margin: 0 0 40px;
	text-align: left;
}

/* Video Cards Grid */
.video-showcase__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 640px));
	justify-content: space-between;
	gap: 20px;
	width: 100%;
}

/* Card — desktop target 640×337 (border via inset shadow so it doesn't shrink media) */
.video-showcase__card {
	position: relative;
	width: 640px;
	max-width: 100%;
	aspect-ratio: 640 / 337;
	height: auto;
	border-radius: 24px;
	overflow: hidden;
	background: #02090c;
	box-shadow:
		0 16px 38px rgba(0, 0, 0, 0.45),
		inset 0 0 0 1px rgba(255, 255, 255, 0.03);
	cursor: pointer;
	border: 0;
}

.video-showcase__card--poster-only {
	cursor: default;
}

.video-showcase__card-inner {
	position: relative;
	width: 100%;
	height: 100%;
}

.video-showcase__card video,
.video-showcase__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	opacity: 0;
	pointer-events: none;
	z-index: 1;
	transition: opacity 0.4s ease;
}

/* Overlay */
.video-showcase__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	opacity: 1;
	pointer-events: auto;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-showcase__card.is-playing video,
.video-showcase__card.is-playing .video-showcase__iframe {
	opacity: 1;
	pointer-events: auto;
	z-index: 5;
}

.video-showcase__card.is-playing .video-showcase__overlay,
.video-showcase__card.is-playing .video-showcase__overlay * {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

.video-showcase__thumbnail {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Play button — matches testimonial-video */
.video-showcase__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 49.03px;
	height: 49.03px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #FFFFFF70;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	isolation: isolate;
	z-index: 3;
	transition:
		transform var(--duration-base) var(--ease-standard),
		background-color var(--duration-base) var(--ease-standard);
}

.video-showcase__play::before,
.video-showcase__play::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: rgba(255, 255, 255, 0.28);
	pointer-events: none;
	animation: video-showcase-play-pulse 2.2s ease-out infinite;
}

.video-showcase__play::after {
	animation-delay: 1.1s;
}

.video-showcase__play svg {
	position: relative;
	z-index: 1;
	margin-left: 3px;
}

.video-showcase__card:hover .video-showcase__play,
.video-showcase__play:hover,
.video-showcase__play:focus-visible {
	background-color: #c9c9c9;
}

@keyframes video-showcase-play-pulse {
	0% {
		opacity: 0.65;
		transform: scale(1);
	}

	70%,
	100% {
		opacity: 0;
		transform: scale(1.85);
	}
}

/* Bottom banner */
.video-showcase__banner {
	position: absolute;
	bottom: 8px;
	left: 8px;
	right: 8px;
	min-height: 62px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.video-showcase__banner-text {
	color: var(--color-white);
	margin: 0;
}

.video-showcase__card:hover .video-showcase__banner {
	background: rgba(253, 167, 31, 0.4);
	border: 1px solid rgba(253, 167, 31, 1);
	backdrop-filter: blur(10px);
	box-shadow: 0 12px 32px rgba(253, 167, 31, 0.25);
}

@media (max-width: 1024px) {
	.video-showcase {
		padding: 120px 0px 0px;
	}
}

@media (max-width: 992px) {
	.video-showcase {
		padding: 60px 0 0;
	}
	.video-showcase__banner-text{
		font-size: 16px;
	}

	.video-showcase__heading {
		margin-bottom: 32px;
		line-height: 50px;
	}

	.video-showcase__grid {
		grid-template-columns: 1fr;
		gap: 32px;
		justify-content: stretch;
	}

	.video-showcase__card {
		width: 100%;
		height: auto;
		aspect-ratio: 640 / 337;
	}

	.video-showcase__card video,
	.video-showcase__iframe,
	.video-showcase__overlay,
	.video-showcase__thumbnail {
		width: 100%;
		height: 100%;
	}
}

@media (max-width: 767px) {
	.video-showcase__banner {
		min-height: 52px;
		padding: 10px 16px;
		bottom: 12px;
		left: 12px;
		right: 12px;
		border-radius: 10px;
	}

	.video-showcase__play {
		width: 52px;
		height: 52px;
	}

	.video-showcase__play svg {
		width: 20px;
		height: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.video-showcase__play {
		transition: none;
	}

	.video-showcase__play::before,
	.video-showcase__play::after {
		animation: none;
	}
}
