﻿/* from TestimonialVideoStories.module.css */
[data-tp="home-TestimonialVideoStories"] {
.section {
	padding: 56px 0 52px;
	background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
	overflow: hidden;
}

.container {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
}

.head {
	text-align: center;
	margin-bottom: 28px;
}

.title {
	margin: 0;
	font-size: var(--tp-section-title-fs);
	font-weight: var(--tp-section-title-weight);
	line-height: var(--tp-section-title-lh);
	color: #fff;
	font-family: var(--heading-font-family, inherit);
}

.kicker {
	margin: 10px 0 0;
	color: var(--tp-brand);
	font-size: var(--tp-section-kicker-fs);
	font-weight: var(--tp-section-kicker-weight);
	letter-spacing: var(--tp-section-kicker-tracking);
	text-transform: uppercase;
}

.carousel {
	position: relative;
}

.viewport {
	overflow: hidden;
	width: 100%;
	padding: 8px 4px 12px;
}

.track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	will-change: transform;
}

.trackCentered {
	justify-content: center;
	width: 100%;
	transform: none !important;
}

.reel {
	position: relative;
	flex: 0 0 220px;
	width: 220px;
	aspect-ratio: 9 / 16;
	border: 0;
	padding: 0;
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;
	background: #0b1738;
	border: 1px solid rgba(148, 163, 184, 0.22);
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.reel:hover {
	transform: translateY(-6px) scale(1.02);
	border-color: color-mix(in srgb, var(--tp-brand) 55%, transparent);
}

.thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.videoFrame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	pointer-events: none;
}

.shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(15, 23, 42, 0.05) 0%,
		rgba(15, 23, 42, 0.2) 45%,
		rgba(15, 23, 42, 0.82) 100%
	);
	pointer-events: none;
}

.badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	pointer-events: none;
}

.badge i {
	color: #ff4444;
}

.caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 14px 14px 16px;
	text-align: left;
	pointer-events: none;
}

.caption strong {
	display: block;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
}

.caption span {
	display: block;
	margin-top: 4px;
	color: rgba(226, 232, 240, 0.88);
	font-size: 12px;
	line-height: 1.35;
}

.arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	color: #1f2937;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(0, 0, 0, 0.06);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 4;
	transition: background 0.2s, color 0.2s, transform 0.2s;
	font-size: 16px;
}

.arrow:hover {
	background: var(--tp-hover-surface);
	color: var(--tp-brand);
	transform: translateY(-50%) scale(1.05);
}

.arrowLeft {
	left: -6px;
}

.arrowRight {
	right: -6px;
}

/* Modal */
.modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(15, 23, 42, 0.88);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	animation: tpReelFadeIn 0.2s ease;
}

.modalBox {
	position: relative;
	width: min(420px, 100%);
	max-height: calc(100vh - 48px);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.modalClose {
	position: absolute;
	top: -12px;
	right: -12px;
	z-index: 3;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #1f2937;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	transition: background 0.15s, color 0.15s;
}

.modalClose:hover {
	background: var(--tp-brand);
	color: #fff;
}

.modalFrame {
	width: 100%;
	aspect-ratio: 9 / 16;
	border-radius: 18px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.modalFrame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.modalMeta {
	text-align: center;
	color: #fff;
}

.modalMeta strong {
	display: block;
	font-size: 16px;
	font-weight: 800;
}

.modalMeta span {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: rgba(226, 232, 240, 0.85);
}



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

	.reel {
		flex-basis: 148px;
		width: 148px;
		aspect-ratio: 9 / 14;
	}

	.arrowLeft {
		left: 2px;
	}

	.arrowRight {
		right: 2px;
	}
}

@media (max-width: 575.98px) {
	.reel {
		flex-basis: min(42vw, 156px);
		width: min(42vw, 156px);
		aspect-ratio: 9 / 14;
	}
}

}
@keyframes tpReelFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

