/* ==========================================================================
   Testimonial Slider — minimal editorial style
   ========================================================================== */

.tst-widget {
	/* ---- theme variables: override in a child theme / custom CSS if needed ---- */
	--tst-bg: #eae6de;
	--tst-text: #262422;
	--tst-label: #8a7d6c;
	--tst-chapter: #71889f;
	--tst-line: #b6afa2;
	--tst-border: #aca594;
	--tst-btn-hover-bg: #1c1b19;
	--tst-btn-hover-text: #ffffff;
	--tst-current: #c98a4b;
	--tst-total: #9a9488;

	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	background: var(--tst-bg);
	color: var(--tst-text);
	padding: 72px 72px 44px;
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	-webkit-font-smoothing: antialiased;
}

.tst-widget *,
.tst-widget *::before,
.tst-widget *::after {
	box-sizing: inherit;
}

/* ---- eyebrow: "· VOICES · CHAPTER 06" ---- */
.tst-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 30px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1;
}

.tst-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--tst-text);
	flex: 0 0 auto;
}

.tst-label {
	color: var(--tst-label);
}

.tst-sep {
	color: var(--tst-border);
}

.tst-chapter {
	color: var(--tst-chapter);
}

/* ---- quote ---- */
.tst-quote {
	margin: 0 0 48px;
	padding: 0;
	max-width: 920px;
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 400;
	font-style: normal;
	font-size: clamp(24px, 3.2vw, 40px);
	line-height: 1.38;
	color: var(--tst-text);
	opacity: 1;
	transform: translateY(0);
}

.tst-quote-mark {
	display: inline-block;
	font-size: 1.15em;
	line-height: 0;
	vertical-align: -0.28em;
	margin-right: 1px;
}

/* ---- footer: person info (left) + nav controls (right) ---- */
.tst-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
}

.tst-person {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.tst-line {
	width: 26px;
	height: 1px;
	background: var(--tst-line);
	flex: 0 0 auto;
}

.tst-person-text {
	min-width: 0;
	opacity: 1;
	transform: translateY(0);
}

.tst-name {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 600;
	font-size: 17px;
	line-height: 1.3;
	color: var(--tst-text);
}

.tst-designation {
	margin-top: 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tst-chapter);
}

/* ---- nav controls ---- */
.tst-nav {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
}

.tst-btn {
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	color: var(--tst-text);
	border: 1px solid var(--tst-border);
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.tst-btn svg {
	width: 16px;
	height: 16px;
	display: block;
}

.tst-btn:hover:not(:disabled),
.tst-btn:focus-visible:not(:disabled) {
	background: var(--tst-btn-hover-bg);
	color: var(--tst-btn-hover-text);
	border-color: var(--tst-btn-hover-bg);
	outline: none;
}

.tst-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.tst-counter {
	min-width: 54px;
	text-align: center;
	font-size: 13px;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.tst-cur {
	color: var(--tst-current);
	font-weight: 700;
}

.tst-slash {
	color: var(--tst-total);
	margin: 0 1px;
}

.tst-tot {
	color: var(--tst-total);
}

/* ---- fade-up animation on slide change ---- */
@keyframes tstFadeUp {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tst-quote.tst-fade-up,
.tst-person-text.tst-fade-up {
	animation: tstFadeUp 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
	.tst-quote.tst-fade-up,
	.tst-person-text.tst-fade-up {
		animation: none;
	}
}

/* ---- responsive ---- */
@media (max-width: 782px) {
	.tst-widget {
		padding: 44px 24px 28px;
	}

	.tst-quote {
		margin-bottom: 34px;
	}

	.tst-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
	}

	.tst-nav {
		width: 100%;
		justify-content: space-between;
	}
}

@media (max-width: 420px) {
	.tst-widget {
		padding: 36px 18px 24px;
	}

	.tst-btn {
		width: 40px;
		height: 40px;
	}

	.tst-name {
		font-size: 16px;
	}
}
