.ctst-testimonials {
	--ct-accent: #ee6c2b;
	--ct-bg-image: none;
	--ct-overlay: rgba(18, 21, 26, .55);
	--ct-card: #fff;
	--ct-title: #14181d;
	--ct-body: #6b7280;
	--ct-star: #fbbf24;
	--ct-star-off: #e2e4e8;
	--ct-gap: 28px;
	--ct-overhang: 155px;
	--ct-ease: cubic-bezier(.22, 1, .36, 1);

	position: relative;
	padding: 96px 0 70px;
	background: #fff;
	overflow: hidden;
}

/* The inline height set by the script overrides this fallback once the cards
   have been measured. Until then the fixed offset keeps things presentable. */
.ctst-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: var(--ct-overhang);
	background-color: #2a2f36;
	background-image: linear-gradient(var(--ct-overlay), var(--ct-overlay)), var(--ct-bg-image);
	background-size: cover;
	background-position: center;
}

.ctst-inner {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

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

.ctst-eyebrow {
	display: block;
	color: var(--ct-accent);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
	margin-bottom: 14px;
}

.ctst-title {
	margin: 0 0 18px;
	color: #fff;
	font-size: clamp(30px, 4.2vw, 46px);
	line-height: 1.15;
	font-weight: 800;
}

.ctst-title mark {
	background: none;
	color: inherit;
	box-shadow: inset 0 -8px 0 var(--ct-accent);
	padding: 0 2px;
}

.ctst-sub {
	margin: 0 auto;
	max-width: 620px;
	color: rgba(255, 255, 255, .82);
	font-size: 16px;
	line-height: 1.65;
}

.ctst-viewport {
	overflow: hidden;
	padding: 6px 0 12px;
}

.ctst-track {
	display: flex;
	gap: var(--ct-gap);
	transition: transform .65s var(--ct-ease);
	will-change: transform;
	cursor: grab;
}

.ctst-track.is-dragging {
	transition: none;
	cursor: grabbing;
}

.ctst-slide {
	flex: 0 0 calc((100% - var(--ct-gap) * 2) / 3);
	display: flex;
}

.ctst-card {
	background: var(--ct-card);
	border-radius: 14px;
	padding: 34px 32px 30px;
	width: 100%;
	display: flex;
	flex-direction: column;
	box-shadow: 0 14px 34px -18px rgba(16, 20, 26, .35);
	transition: transform .45s var(--ct-ease), box-shadow .45s var(--ct-ease);
}

.ctst-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 48px -20px rgba(16, 20, 26, .42);
}

.ctst-quote {
	margin: 0 0 22px;
	color: var(--ct-body);
	font-size: 15.5px;
	line-height: 1.75;
	flex: 1 1 auto;
}

.ctst-quote p {
	margin: 0 0 12px;
}

.ctst-quote p:last-child {
	margin-bottom: 0;
}

.ctst-stars {
	display: flex;
	gap: 3px;
	font-size: 18px;
	line-height: 1;
	margin-bottom: 22px;
}

.ctst-star {
	position: relative;
	display: block;
	width: 1em;
	height: 1em;
}

.ctst-star::before {
	content: "\2605";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--ct-star-off);
}

.ctst-star.is-full::before {
	color: var(--ct-star);
}

.ctst-star.is-half::after {
	content: "\2605";
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	overflow: hidden;
	color: var(--ct-star);
}

.ctst-person {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ctst-avatar {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	background: #f1efe9;
	color: #8a8578;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .03em;
}

.ctst-avatar[data-initials]::before {
	content: attr(data-initials);
}

.ctst-meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.ctst-name {
	color: var(--ct-title);
	font-size: 16px;
	font-weight: 700;
}

.ctst-role {
	color: #9aa0a8;
	font-size: 13.5px;
}

.ctst-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 34px;
}

.ctst-arrow {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid #e2e4e8;
	background: #fff;
	color: var(--ct-title);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.ctst-arrow:hover {
	background: var(--ct-accent);
	border-color: var(--ct-accent);
	color: #fff;
}

.ctst-arrow:focus-visible {
	outline: 2px solid var(--ct-accent);
	outline-offset: 3px;
}

.ctst-dots {
	display: flex;
	align-items: center;
	gap: 9px;
}

.ctst-dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d6d9de;
	cursor: pointer;
	transition: width .35s var(--ct-ease), background .35s ease;
}

.ctst-dots button[aria-selected="true"] {
	width: 26px;
	border-radius: 6px;
	background: var(--ct-accent);
}

.ctst-dots button:focus-visible {
	outline: 2px solid var(--ct-accent);
	outline-offset: 3px;
}

@media (max-width: 991px) {
	.ctst-testimonials {
		--ct-overhang: 130px;
		padding: 74px 0 56px;
	}
	.ctst-slide {
		flex-basis: calc((100% - var(--ct-gap)) / 2);
	}
}

@media (max-width: 767px) {
	.ctst-testimonials {
		--ct-overhang: 110px;
		--ct-gap: 18px;
		padding: 60px 0 48px;
	}
	.ctst-slide {
		flex-basis: 100%;
	}
	.ctst-card {
		padding: 28px 24px 26px;
	}
	.ctst-head {
		margin-bottom: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ctst-track,
	.ctst-card,
	.ctst-dots button,
	.ctst-arrow {
		transition: none !important;
	}
	.ctst-card:hover {
		transform: none;
	}
}
