/* Video Testimonials — front end
   Inherits the theme's font stack on purpose; only colour, spacing and layout are set here. */

.vtst {
	--vtst-accent: #0b6fb4;
	--vtst-radius: 10px;
	--vtst-gap: 24px;
	--vtst-card-bg: #fff;
	--vtst-border: rgba(0, 0, 0, .08);
	--vtst-muted: #5b6472;
	--vtst-pv: 3;
	position: relative;
	margin: 0 auto;
}

.vtst *,
.vtst *::before,
.vtst *::after {
	box-sizing: border-box;
}

.vtst-heading {
	margin: 0 0 20px;
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	line-height: 1.25;
}

/* ---------- Slider shell ---------- */

.vtst-slider {
	position: relative;
}

.vtst-viewport {
	overflow: hidden;
}

.vtst-track {
	display: flex;
	gap: var(--vtst-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform .45s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.vtst-slide {
	flex: 0 0 calc((100% - (var(--vtst-pv) - 1) * var(--vtst-gap)) / var(--vtst-pv));
	min-width: 0;
	margin: 0;
	list-style: none;
}

.vtst-slider.is-dragging .vtst-track {
	transition: none;
}

/* ---------- Grid ---------- */

.vtst-grid {
	display: grid;
	gap: var(--vtst-gap);
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ---------- Card ---------- */

.vtst-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--vtst-card-bg);
	border: 1px solid var(--vtst-border);
	border-radius: var(--vtst-radius);
}

.vtst-media {
	position: relative;
	background: #000;
}

.vtst-play {
	display: block;
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: #000;
	cursor: pointer;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.vtst-play .vtst-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease, opacity .3s ease;
}

.vtst-play:hover .vtst-thumb,
.vtst-play:focus-visible .vtst-thumb {
	transform: scale(1.03);
	opacity: .9;
}

.vtst-playicon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.vtst-playicon svg {
	display: block;
	width: 100%;
	height: auto;
}

.vtst-playicon-bg {
	fill: rgba(17, 17, 17, .78);
	transition: fill .2s ease;
}

.vtst-play:hover .vtst-playicon-bg,
.vtst-play:focus-visible .vtst-playicon-bg {
	fill: #e0201b;
}

.vtst-play:focus-visible {
	outline: 3px solid var(--vtst-accent);
	outline-offset: -3px;
}

.vtst-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}

.vtst-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.vtst-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
}

.vtst-name {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.35;
}

.vtst-name a {
	color: inherit;
	text-decoration: none;
}

.vtst-name a:hover,
.vtst-name a:focus-visible {
	color: var(--vtst-accent);
	text-decoration: underline;
}

.vtst-sub {
	margin: 0;
	color: var(--vtst-muted);
	font-size: .875rem;
	line-height: 1.4;
}

.vtst-quote {
	margin: 4px 0 0;
	padding: 0 0 0 14px;
	border-left: 3px solid var(--vtst-accent);
	color: inherit;
	font-size: .95rem;
	font-style: normal;
	line-height: 1.55;
}

.vtst-more {
	margin-top: auto;
	padding-top: 10px;
	color: var(--vtst-accent);
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
}

.vtst-more:hover,
.vtst-more:focus-visible {
	text-decoration: underline;
}

/* ---------- Arrows and dots ---------- */

.vtst-nav {
	display: grid;
	position: absolute;
	top: 32%;
	z-index: 3;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	transform: translateY(-50%);
	border: 1px solid var(--vtst-border);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	color: #1a1a1a;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.vtst-nav svg {
	width: 22px;
	height: 22px;
}

.vtst-nav:hover:not([disabled]),
.vtst-nav:focus-visible {
	background: var(--vtst-accent);
	color: #fff;
}

.vtst-nav[disabled] {
	opacity: .35;
	cursor: default;
}

.vtst-nav--prev {
	left: -18px;
}

.vtst-nav--next {
	right: -18px;
}

.vtst-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.vtst-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .22);
	cursor: pointer;
	transition: width .2s ease, background .2s ease;
}

.vtst-dot.is-active {
	width: 24px;
	border-radius: 5px;
	background: var(--vtst-accent);
}

.vtst-viewall {
	margin: 22px 0 0;
	text-align: center;
}

.vtst-viewall a {
	display: inline-block;
	padding: 11px 22px;
	border: 1px solid var(--vtst-accent);
	border-radius: calc(var(--vtst-radius) / 2);
	color: var(--vtst-accent);
	font-weight: 600;
	text-decoration: none;
}

.vtst-viewall a:hover,
.vtst-viewall a:focus-visible {
	background: var(--vtst-accent);
	color: #fff;
}

/* ---------- Archive + single pages ---------- */

.vtst-page {
	padding: 40px 0 60px;
}

.vtst-container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

.vtst-container--narrow {
	max-width: 860px;
}

.vtst-archive-head {
	margin-bottom: 22px;
}

.vtst-archive-title {
	margin: 0 0 10px;
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	line-height: 1.2;
}

.vtst-archive-intro {
	max-width: 70ch;
	margin: 0;
	color: #5b6472;
	line-height: 1.6;
}

.vtst-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.vtst-filter {
	padding: 8px 16px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 999px;
	color: inherit;
	font-size: .9rem;
	text-decoration: none;
}

.vtst-filter:hover,
.vtst-filter:focus-visible,
.vtst-filter.is-active {
	border-color: #0b6fb4;
	background: #0b6fb4;
	color: #fff;
}

.vtst-archive .vtst-grid,
.vtst-single .vtst-grid {
	--vtst-gap: 24px;
}

.vtst-pagination {
	margin-top: 34px;
}

.vtst-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vtst-pagination a,
.vtst-pagination span {
	display: block;
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 6px;
	text-align: center;
	text-decoration: none;
}

.vtst-pagination .current {
	border-color: #0b6fb4;
	background: #0b6fb4;
	color: #fff;
}

.vtst-breadcrumb {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	color: #5b6472;
	font-size: .85rem;
}

.vtst-breadcrumb a {
	color: inherit;
}

.vtst-single-title {
	margin: 0 0 6px;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.2;
}

.vtst-single-sub {
	margin: 0 0 22px;
	color: #5b6472;
}

.vtst-single-player {
	margin-bottom: 24px;
	overflow: hidden;
	border-radius: 10px;
	background: #000;
}

.vtst-single-player .vtst-play,
.vtst-single-player .vtst-embed {
	border-radius: 10px;
}

.vtst-play--large .vtst-playicon {
	width: 88px;
}

.vtst-single-quote {
	margin: 0 0 24px;
	padding: 4px 0 4px 18px;
	border-left: 4px solid #0b6fb4;
	font-size: 1.1rem;
	line-height: 1.6;
}

.vtst-facts {
	display: grid;
	gap: 14px;
	margin: 0 0 26px;
	padding: 18px 20px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 10px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.vtst-facts dt {
	margin-bottom: 2px;
	color: #5b6472;
	font-size: .8rem;
}

.vtst-facts dd {
	margin: 0;
	font-weight: 600;
}

.vtst-single-content {
	margin-bottom: 26px;
	line-height: 1.7;
}

.vtst-terms {
	margin-bottom: 8px;
	font-size: .9rem;
}

.vtst-consent {
	margin: 0 0 40px;
	color: #5b6472;
	font-size: .8rem;
}

.vtst-related {
	padding-top: 28px;
	border-top: 1px solid rgba(0, 0, 0, .08);
}

.vtst-empty,
.vtst-empty-admin {
	padding: 20px 0;
	color: #5b6472;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.vtst {
		--vtst-gap: 18px;
	}

	.vtst-nav--prev {
		left: 2px;
	}

	.vtst-nav--next {
		right: 2px;
	}
}

@media (max-width: 767px) {
	.vtst-nav {
		width: 38px;
		height: 38px;
	}

	.vtst-body {
		padding: 16px;
	}

	.vtst-grid {
		grid-template-columns: 1fr;
	}
}

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

	.vtst-play .vtst-thumb {
		transition: none;
	}
}

/* ---------- Outcome badge + stats ---------- */

.vtst-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 6px 12px;
	border-radius: 999px;
	background: #12833f;
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1;
}

.vtst-badge--overturned {
	background: #b3261e;
}

.vtst-badge--ombudsman {
	background: #1f4f9c;
}

.vtst-badge--partial {
	background: #9a6400;
}

.vtst-badge--ongoing {
	background: #495867;
}

.vtst-badge--inline {
	display: inline-block;
	position: static;
	margin: 0 0 12px;
	font-size: .8rem;
}

.vtst-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	font-size: .9rem;
}

.vtst-stats li {
	margin: 0;
}

.vtst-stats strong {
	font-size: 1.05rem;
}

.vtst-stats span {
	color: var(--vtst-muted);
	font-size: .82rem;
}
