/* Shieldline Video Carousel — frontend (v1.1)
   Theme via CSS variables set on .svc-wrapper:
   --svc-accent, --svc-radius, --svc-gap
   Fonts are inherited from the theme so the carousel matches the site. */

.svc-wrapper {
	--svc-accent: #1f6feb;
	--svc-radius: 10px;
	--svc-gap: 24px;
	position: relative;
	margin: 0 auto;
}

/* Heading with accent underline */
.svc-heading {
	margin: 0 0 1.2em;
	position: relative;
	padding-bottom: 14px;
}

.svc-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	height: 4px;
	border-radius: 2px;
	background: var(--svc-accent);
}

.svc-carousel {
	position: relative;
	outline: none;
}

.svc-carousel:focus-visible {
	box-shadow: 0 0 0 3px var(--svc-accent);
	border-radius: var(--svc-radius);
}

/* Desktop/tablet: side gutters so arrows never cover the videos */
@media (min-width: 768px) {
	.svc-carousel.svc-has-arrows {
		padding: 0 68px;
	}
}

.svc-viewport {
	overflow: hidden;
	/* breathing room so hover shadows aren't clipped */
	padding: 8px 4px 16px;
	margin: -8px -4px -16px;
}

.svc-track {
	display: flex;
	gap: var(--svc-gap);
	transition: transform 0.45s ease;
	will-change: transform;
}

.svc-slide {
	flex: 0 0 auto;
	min-width: 0;
}

/* Poster button — card look */
.svc-poster {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	border-bottom: 4px solid var(--svc-accent);
	background: #15202b;
	border-radius: var(--svc-radius);
	overflow: hidden;
	cursor: pointer;
	aspect-ratio: 16 / 9;
	box-shadow: 0 4px 14px rgba(13, 27, 42, 0.18);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.svc-slide:hover .svc-poster {
	box-shadow: 0 14px 34px rgba(13, 27, 42, 0.28);
	transform: translateY(-4px);
}

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

.svc-poster:hover img,
.svc-poster:focus-visible img {
	transform: scale(1.04);
}

.svc-poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 14, 20, 0.45), rgba(10, 14, 20, 0) 55%);
	pointer-events: none;
}

.svc-poster:focus-visible {
	outline: 3px solid var(--svc-accent);
	outline-offset: 2px;
}

.svc-noposter {
	background: linear-gradient(135deg, #16202b, #223040);
}

/* Play button with white ring */
.svc-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: var(--svc-accent);
	border: 3px solid rgba(255, 255, 255, 0.85);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
	transition: transform 0.25s ease;
}

.svc-play svg {
	margin-left: 3px;
}

.svc-poster:hover .svc-play,
.svc-poster:focus-visible .svc-play {
	transform: translate(-50%, -50%) scale(1.1);
}

.svc-title {
	margin-top: 14px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.35;
	color: #15202b;
}

/* Arrows — sit in the side gutters on desktop */
.svc-arrow {
	position: absolute;
	top: 50%; /* refined per-layout by JS to center on the posters */
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	background: var(--svc-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.svc-prev { left: 0; }
.svc-next { right: 0; }

.svc-arrow:hover {
	transform: translateY(-50%) scale(1.08);
}

.svc-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
	transform: translateY(-50%);
}

/* Dots — active dot becomes an accent pill */
.svc-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.svc-dot {
	width: 9px;
	height: 9px;
	border-radius: 6px;
	border: 0;
	padding: 0;
	background: rgba(120, 130, 140, 0.45);
	cursor: pointer;
	transition: background 0.2s ease, width 0.2s ease;
}

.svc-dot[aria-selected="true"] {
	background: var(--svc-accent);
	width: 26px;
}

/* Lightbox */
.svc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(8, 11, 16, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vmin;
}

.svc-lightbox-inner {
	position: relative;
	width: min(1100px, 100%);
	max-height: 100%;
}

.svc-lightbox video {
	display: block;
	width: 100%;
	max-height: 82vh;
	background: #000;
	border-radius: calc(var(--svc-radius, 10px) * 0.6);
}

.svc-lightbox-title {
	color: #e8edf3;
	margin-top: 12px;
	font-weight: 600;
	font-size: 18px;
	text-align: center;
}

.svc-close {
	position: absolute;
	top: -46px;
	right: 0;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.svc-close:hover,
.svc-close:focus-visible {
	background: var(--svc-accent);
}

body.svc-lightbox-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.svc-track,
	.svc-poster,
	.svc-poster img,
	.svc-play,
	.svc-arrow,
	.svc-dot {
		transition: none;
	}

	.svc-slide:hover .svc-poster {
		transform: none;
	}
}

/* Mobile: arrows overlay the edges as translucent buttons */
@media (max-width: 767px) {
	.svc-arrow {
		width: 40px;
		height: 40px;
		background: rgba(13, 27, 42, 0.55);
		border-color: rgba(255, 255, 255, 0.6);
	}

	.svc-prev { left: 8px; }
	.svc-next { right: 8px; }

	.svc-title {
		font-size: 15px;
		margin-top: 10px;
	}

	.svc-play {
		width: 52px;
		height: 52px;
	}

	.svc-slide:hover .svc-poster {
		transform: none;
	}

	.svc-close { top: -44px; }
}

/* ================= v1.2 — motion & effects ================= */

/* Keep the play button above the glare layer */
.svc-play {
	z-index: 2;
}

/* Cursor-following glare highlight (element added by JS) */
.svc-glare {
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
	background: radial-gradient(
		460px circle at var(--mx, 50%) var(--my, 50%),
		rgba(255, 255, 255, 0.16),
		transparent 46%
	);
}

.svc-poster:hover .svc-glare {
	opacity: 1;
}

/* Fast transform response while tilting; smooth settle on leave */
.svc-poster.svc-tilting {
	transition:
		box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
		transform 0.12s ease-out;
}

/* Slow Ken Burns zoom while hovering */
.svc-poster:hover img,
.svc-poster:focus-visible img {
	transform: scale(1.1);
	transition-duration: 6s;
}

/* Scroll-reveal entrance (classes added by JS; skipped for
   reduced-motion users so content is never hidden from them) */
@media (prefers-reduced-motion: no-preference) {
	.svc-reveal .svc-heading,
	.svc-reveal .svc-slide,
	.svc-reveal .svc-dots {
		opacity: 0;
		transform: translateY(26px);
	}
}

.svc-reveal.svc-in .svc-heading,
.svc-reveal.svc-in .svc-slide,
.svc-reveal.svc-in .svc-dots {
	opacity: 1;
	transform: none;
	transition:
		opacity 0.7s ease,
		transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.svc-reveal.svc-in .svc-slide:nth-child(1) { transition-delay: 0.1s; }
.svc-reveal.svc-in .svc-slide:nth-child(2) { transition-delay: 0.22s; }
.svc-reveal.svc-in .svc-slide:nth-child(3) { transition-delay: 0.34s; }
.svc-reveal.svc-in .svc-slide:nth-child(4) { transition-delay: 0.46s; }
.svc-reveal.svc-in .svc-slide:nth-child(5) { transition-delay: 0.58s; }
.svc-reveal.svc-in .svc-slide:nth-child(n+6) { transition-delay: 0.7s; }
.svc-reveal.svc-in .svc-dots { transition-delay: 0.75s; }

/* Lightbox entrance */
@keyframes svcFade {
	from { opacity: 0; }
}

@keyframes svcPop {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(10px);
	}
}

.svc-lightbox {
	animation: svcFade 0.3s ease;
}

.svc-lightbox-inner {
	animation: svcPop 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
	.svc-lightbox,
	.svc-lightbox-inner {
		animation: none;
	}

	.svc-glare {
		display: none;
	}

	.svc-poster:hover img,
	.svc-poster:focus-visible img {
		transform: none;
	}
}

/* ================= v1.3 — stacked mobile layout ============= */
.svc-carousel.svc-stacked .svc-viewport {
	overflow: visible;
}

.svc-carousel.svc-stacked .svc-track {
	flex-direction: column;
	transform: none !important;
	transition: none;
}

.svc-carousel.svc-stacked .svc-slide {
	width: 100% !important;
}

.svc-carousel.svc-stacked .svc-arrow,
.svc-carousel.svc-stacked .svc-dots {
	display: none;
}
