/* Step In Testimonials — carousel styles
 * Fonts assume the custom "Didot" family added via Elementor Custom Fonts.
 * Override --sti-heading-font if you use a different name.
 */

.sti {
	--sti-accent: #c79a45;
	--sti-heading: #132a3e;
	--sti-text: #5b6570;
	--sti-author: #132a3e;
	--sti-divider: #DCB276;
	--sti-heading-font: "Didot Font", Sans-serif;
	--sti-row-gap: 22px;
	/* gap between vertical lines and the row separator */

	max-width: 1440px;
	margin: 0 auto;
	position: relative;
}

.sti--empty {
	padding: 24px;
	text-align: center;
	color: var(--sti-text);
	border: 1px dashed #DCB276;
	;
}

/* --- Track ---------------------------------------------------------------- */
.sti__swiper {
	overflow: hidden;
}

/* Carousel: negative margin hides the divider on the left-most visible slide. */
.sti__swiper .swiper-wrapper {
	margin-left: -1px;
}

.sti__slide {
	height: auto;
	border-left: 1px solid #DCB276;
	;
}

/* --- Grid: framed cells --------------------------------------------------
 * Each cell draws a left line (::before) and a right line (::after, offset
 * -1px so it overlaps the next cell's left line — no doubled seams).
 * The 1px right padding keeps the outer right line inside the clip area.
 * Vertical lines are inset from the row separator by --sti-row-gap.
 */
.sti--grid .sti__swiper {
	padding-right: 1px;
	box-sizing: border-box;
}

.sti--grid .sti__swiper .swiper-wrapper {
	margin-left: 0;
	margin-top: 0;
}

.sti--grid .sti__slide {
	position: relative;
	border-left: 0;
	border-top: 0;
}

.sti--grid .sti__slide::before,
.sti--grid .sti__slide::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: #DCB276;
	pointer-events: none;
}

.sti--grid .sti__slide::before {
	left: 0;
}

.sti--grid .sti__slide::after {
	right: -1px;
}

/* Row separator: full-width line on top of every row except the first. */
.sti--grid .sti__slide:not(.is-row-first) {
	border-top: 1px solid #DCB276;
}

/* Vertical lines stop short of the separator. */
.sti--grid .sti__slide:not(.is-row-first)::before,
.sti--grid .sti__slide:not(.is-row-first)::after {
	top: var(--sti-row-gap);
}

.sti--grid .sti__slide:not(.is-row-last)::before,
.sti--grid .sti__slide:not(.is-row-last)::after {
	bottom: var(--sti-row-gap);
}

.sti--grid .sti__inner {
	padding-top: 34px;
	padding-bottom: 34px;
}

.sti--grid .sti__slide:not(.is-row-last) .sti__inner {
	padding-bottom: calc(34px + var(--sti-row-gap));
}

.sti--grid .sti__slide:not(.is-row-first) .sti__inner {
	padding-top: calc(34px + var(--sti-row-gap));
}

.sti__inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 8px 40px 12px;
	box-sizing: border-box;
}

/* --- Slide content -------------------------------------------------------- */
.sti__quote-wrap {
	color: var(--sti-accent);
	line-height: 0;
	margin-bottom: 26px;
}

.sti__quote {
	display: block;
}

.sti__heading {
	font-family: var(--sti-heading-font);
	color: var(--sti-heading);
	font-size: 40px;
	line-height: 1.25;
	letter-spacing: 0.30px;
	font-weight: 400;
	margin: 0 0 22px;
}

.swiper-grid .sti__heading {
	font-size: 31px;
}

.sti__body {
	color: var(--sti-text);
	font-size: 15px;
	line-height: 1.65;
	margin: 0 0 28px;
	max-width: 34ch;
}

.sti__body p {
	margin: 0 0 1em;
}

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

.sti__author {
	margin-top: auto;
	color: var(--sti-author);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

/* --- Controls row: prev / progress / next -------------------------------- */
.sti__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	max-width: 520px;
	margin: 40px auto 0;
}

.sti__nav {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	padding: 4px 2px;
	cursor: pointer;
	color: #1C1C1C;
	font-size: 12.4px;
	line-height: 13px;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.sti__nav:hover {
	opacity: 0.7;
	background-color: #DCB276;
}

.sti__nav.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.sti__nav-icon {
	font-size: 18px;
	line-height: 1;
}

.sti__progress {
	position: relative;
	flex: 1;
	height: 2px;
	background: var(--sti-divider);
	border-radius: 2px;
	overflow: hidden;
}

.sti__progress-bar {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: var(--sti-accent);
	border-radius: 2px;
	transition: width 0.35s ease;
}

/* --- Fraction ------------------------------------------------------------- */
.sti__fraction {
	text-align: center;
	margin-top: 16px;
	color: #1C1C1C;
	font-size: 16px;
	line-height: 24px;
}

/* --- CTA button ----------------------------------------------------------- */
.sti__cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 28px auto 0;
	padding: 16px 40px;
	background: linear-gradient(90deg, #DCB276 0%, #FFEED3 100%);
	color: #132a3e;
	font-family: "inter";
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.sti__cta-arrow {
	font-size: 16px;
	line-height: 1;
}

/* Center the button under everything. */
.sti>.sti__cta {
	display: flex;
	width: max-content;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
	.sti__inner {
		padding: 8px 28px 12px;
	}

	.sti__heading {
		font-size: 24px;
	}
}

@media (max-width: 767px) {
	.sti__slide {
		border-left: 0;
	}

	.sti__swiper .swiper-wrapper {
		margin-left: 0;
	}

	.sti__inner {
		padding: 8px 16px 12px;
	}

	.sti__controls {
		gap: 12px;
	}

	.sti__nav-text {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.sti__progress-bar,
	.sti__cta {
		transition: none;
	}
}