/*
 * Testimonial Video Slider
 *
 * All breakpoints: one centered card with left/right peeks (via tiny-slider).
 * <1024: vertical card — tile padding 0, content padding 30px
 * ≥1024: horizontal card — tile padding 30px
 */

.testimonial_video_slider {
	--tvs-ink: #202020;
	--tvs-muted: #000;
	--tvs-white: #ffffff;
	--tvs-grey: #f8f8f8;
	--tvs-radius: 10px;
	--tvs-stage: 79.5rem;
	--tvs-tile-pad: 30px;
	--tvs-media-ratio: 16 / 9;
	--tvs-arrow: #0f24dc;
	--tvs-peek-ratio: 0.82;
	--faculty-color: #cf451f;
	--faculty-color-light: #f16c47;
	box-sizing: border-box;
	width: 100%;
	color: var(--tvs-ink);
	overflow: hidden;
}

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

.testimonial_video_slider--bg-white {
	background-color: var(--tvs-white);
}

.testimonial_video_slider--bg-grey {
	background-color: var(--tvs-grey);
}

.testimonial_video_slider--pt-none {
	padding-top: 0;
}

.testimonial_video_slider--pt-small {
	padding-top: 2.5rem;
}

.testimonial_video_slider--pt-large {
	padding-top: 5rem;
}

.testimonial_video_slider--pb-none {
	padding-bottom: 0;
}

.testimonial_video_slider--pb-small {
	padding-bottom: 2.5rem;
}

.testimonial_video_slider--pb-large {
	padding-bottom: 5rem;
}

.testimonial_video_slider .faculty-theme--acap,
.testimonial_video_slider .faculty-theme--primary {
	--faculty-color: #0a0a96;
	--faculty-color-light: #0f24dc;
}

.testimonial_video_slider .faculty-theme--applied-psychology,
.testimonial_video_slider .faculty-theme--psychology {
	--faculty-color: #cf451f;
	--faculty-color-light: #f16c47;
}

.testimonial_video_slider .faculty-theme--law-justice {
	--faculty-color: #88733d;
	--faculty-color-light: #a8925a;
}

.testimonial_video_slider .faculty-theme--management {
	--faculty-color: #000000;
	--faculty-color-light: #6f7783;
}

.testimonial_video_slider .tvs__container {
	width: 100%;
	max-width: var(--tvs-stage);
	margin-inline: auto;
	padding-inline: 1rem;
}

.testimonial_video_slider .tvs__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.testimonial_video_slider .tvs__intro {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 40rem;
}

.testimonial_video_slider .tvs__heading {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 2.5vw, 2.5rem);
	line-height: 1.15;
	color: var(--tvs-ink);
}

.testimonial_video_slider .tvs__description {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--tvs-muted);
}

.testimonial_video_slider .tvs__controls {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	min-height: 44px;
	margin-left: auto;
}

.testimonial_video_slider .tvs__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	min-width: 60px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: var(--tvs-arrow);
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.testimonial_video_slider .tvs__nav:hover,
.testimonial_video_slider .tvs__nav:focus-visible {
	opacity: 0.75;
	outline: none;
}

.testimonial_video_slider .tvs__nav-icon {
	width: 40px;
	height: auto;
	display: block;
	fill: currentColor;
}

/* Pre-init only: one centered peek-width card (avoid hiding peeks during rebuild) */
.testimonial_video_slider:not(.is-tvs-ready) .tvs__slider {
	display: flex;
	justify-content: center;
	gap: 12px;
	overflow: hidden;
}

.testimonial_video_slider:not(.is-tvs-ready) .tvs__slider > .tvs__tile {
	flex: 0 0 calc(100% * var(--tvs-peek-ratio));
	max-width: calc(100% * var(--tvs-peek-ratio));
}

.testimonial_video_slider:not(.is-tvs-ready) .tvs__slider > .tvs__tile:not(:first-child) {
	display: none;
}

/* Live slider: keep slides from stretching full-row when tns is active */
.testimonial_video_slider .tns-outer .tvs__tile {
	width: 100%;
	max-width: 100%;
}

.testimonial_video_slider .tns-outer {
	position: relative;
}

.testimonial_video_slider .tns-ovh {
	overflow: hidden;
}

.testimonial_video_slider .tns-nav {
	display: none;
}

/* Slide shell — tns gutter (padding-right) lives here, outside the visual card */
.testimonial_video_slider .tvs__tile {
	width: 100%;
	padding: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

/* Card — vertical (≤1023): media top / content bottom */
.testimonial_video_slider .tvs__card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	height: 100%;
	padding: 0;
	background: var(--tvs-white);
	border: 1px solid #E5E5E5;
	border-radius: var(--tvs-radius);
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.08);
	gap: 0;
	overflow: hidden; 
}

.testimonial_video_slider .tvs__media {
	position: relative;
	width: 100%;
	flex: 0 0 auto;
}

.testimonial_video_slider .tvs__tag {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	left: auto;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: calc(100% - 1.5rem);
	padding: 8px 12px 5px 12px;
	/* border-radius: 4px; */
	background-color: var(--faculty-color, #cf451f);
	color: var(--tvs-white);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.testimonial_video_slider .tvs__media-frame {
	position: relative;
	width: 100%;
	aspect-ratio: var(--tvs-media-ratio);
	overflow: hidden;
	background: #111;
}

.testimonial_video_slider .tvs__poster,
.testimonial_video_slider .tvs__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.testimonial_video_slider .tvs__video {
	opacity: 0;
	pointer-events: none;
	z-index: 1;
}

.testimonial_video_slider .tvs__tile.is-playing .tvs__video {
	opacity: 1;
	pointer-events: auto;
	z-index: 2;
}

.testimonial_video_slider .tvs__tile.is-playing .tvs__poster,
.testimonial_video_slider .tvs__tile.is-playing .tvs__play {
	opacity: 0;
	pointer-events: none;
}

.testimonial_video_slider .tvs__play {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.testimonial_video_slider .tvs__play-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	color: #080808;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s ease;
}

.testimonial_video_slider .tvs__play:hover .tvs__play-icon,
.testimonial_video_slider .tvs__play:focus-visible .tvs__play-icon {
	transform: scale(1.06);
}

.testimonial_video_slider .tvs__content {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 16px;
	flex: 1 1 auto;
	min-width: 0;
}

.testimonial_video_slider .tvs__tile-headline {
	margin: 0;
	color: #202020;
	font-family: 'Founders Grotesk Medium', 'Founders Grotesk Medium Fallback', sans-serif;
	font-size: 20px;
	font-style: normal;
	font-weight: 500;
	line-height: 121.362%;
}

.testimonial_video_slider .tvs__meta {
	margin: 0;
	font-family: 'Founders Grotesk Medium', 'Founders Grotesk Medium Fallback', sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 18px;
	color: var(--faculty-color-light, var(--tvs-arrow));
}

.testimonial_video_slider .tvs__name,
.testimonial_video_slider .tvs__role,
.testimonial_video_slider .tvs__meta-sep {
	color: inherit;
}

.testimonial_video_slider .tvs__quote {
	margin: 0;
}

.testimonial_video_slider .tvs__quote p {
	margin: 0;
	color: #000;
	font-family: 'Founders Grotesk Regular', 'Founders Grotesk Regular Fallback', sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 121.362%;
}

@media (min-width: 768px) {
	.testimonial_video_slider {
		--tvs-peek-ratio: 0.78;
	}

	.testimonial_video_slider:not(.is-tvs-ready) .tvs__slider {
		gap: 16px;
	}

	.testimonial_video_slider .tvs__container {
		padding-inline: 1.5rem;
	}

	.testimonial_video_slider .tvs__header {
		margin-bottom: 2rem;
	}

	.testimonial_video_slider .tvs__tile-headline {
		font-size: 24px;
	}
	.testimonial_video_slider .tvs__content { 
		padding: 24px; 
	}
}

/* Desktop (≥1024): horizontal media | content, aligned side-by-side */
@media (min-width: 1024px) {
	.testimonial_video_slider {
		--tvs-peek-ratio: 0.72;
	}

	.testimonial_video_slider:not(.is-tvs-ready) .tvs__slider {
		gap: 36px;
	}

	.testimonial_video_slider .tvs__card {
		flex-direction: row;
		align-items: center;
		gap: 24px;
		padding: var(--tvs-tile-pad);
		overflow: visible;
	}

	.testimonial_video_slider .tvs__media {
		flex: 0 0 auto;
		width: min(52%, 28rem);
		max-width: 52%;
		align-self: flex-start;
	}

	.testimonial_video_slider .tvs__media-frame {
		width: 100%;
		aspect-ratio: var(--tvs-media-ratio);
		height: auto; 
	}

	.testimonial_video_slider .tvs__content {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		justify-content: center;
		align-self: center;
		gap: 1rem;
		padding: 0;
	} 
}

@media (min-width: 1024px) and (max-width: 1279px) {
	.testimonial_video_slider .tvs__media {
		width: min(48%, 24rem);
		max-width: 48%;
	}
}

@media (min-width: 1440px) {
	.testimonial_video_slider .tvs__container {
		padding-inline: 0;
	}
}
