/*
 * YT Funnel: Testimonials — mobile-first.
 * Full-bleed light band; white quote cards in a snap carousel (1 per view on
 * mobile, 3 across on desktop) with navy circular nav buttons.
 */

.yt-tst {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background: linear-gradient(5deg, #fff 1.93%, #eaecf0 161.46%);
	padding-block: 4rem;
}

.yt-tst__inner {
	position: relative;
	max-width: var(--ytf-max, 144rem);
	margin: 0 auto;
	padding-inline: var(--ytf-pad, 2.2rem);
}

.yt-tst__track {
	display: flex;
	align-items: stretch;
	width: 100%;
	gap: 1.6rem;
	margin: 0;
	padding: 0.4rem 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.yt-tst__track::-webkit-scrollbar {
	display: none;
}

.yt-tst__item {
	display: flex;
	flex: 0 0 100%;
	scroll-snap-align: center;
}

.yt-tst__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
	padding: 2.4rem 3rem;
	background: #fff;
	border: 1px solid #aeb5bc;
	border-radius: 2rem;
	box-shadow: 0 0 1.4rem rgba(0, 0, 0, 0.1);
}

.yt-tst__stars {
	display: flex;
	gap: 0.4rem;
	margin-bottom: 1.6rem;
	color: var(--ytf-orange, #fe6c3b);
}

.yt-tst__star {
	width: 2rem;
	height: 1.9rem;
}

.yt-tst__quote {
	margin: 0;
	font-weight: 500;
	color: var(--ytf-black, #141414);
	font-size: 24px;
    line-height: 34px;
    letter-spacing: -0.72px;
}

/* Buttons float over the track edges. Mobile: centered on the card edge
   (half on the card, half outside). Desktop: 20px outside the cards. */
.yt-tst__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--ytf-navy, #0e2c47);
	color: #fff;
	transition: background-color 200ms ease;
}

.yt-tst__nav--prev {
	left: var(--ytf-pad, 2.2rem);
	transform: translate(-50%, -50%);
}

.yt-tst__nav--next {
	right: var(--ytf-pad, 2.2rem);
	transform: translate(50%, -50%);
}

.yt-tst__nav:hover,
.yt-tst__nav:focus-visible {
	background: #1a3a59;
}

.yt-tst__nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

@media screen and (min-width: 1024px) {
	.yt-tst {
		padding-block: 6.2rem;
	}

	.yt-tst__track {
		gap: 2.6rem;
	}

	.yt-tst__item {
		flex: 0 0 calc((100% - 5.2rem) / 3);
	}

	.yt-tst__card {
		padding: 3.2rem;
		min-height: 27.9rem;
	}

	.yt-tst__quote {
		font-size: 3rem;
		line-height: 4rem;
		letter-spacing: -0.09rem;
	}

	.yt-tst__nav {
		width: 4.5rem;
		height: 4.5rem;
	}

	.yt-tst__nav--prev {
		transform: translate(calc(-100% - 2rem), -50%);
	}

	.yt-tst__nav--next {
		transform: translate(calc(100% + 2rem), -50%);
	}
}
