/* =============================================================================
   SIAS Testimonial Slider — testimonial-slider.css
   ============================================================================= */

/* ── Outer wrapper ───────────────────────────────────────────────────────────── */
.sias-ts {
	position: relative;
	width: 100%;
}

/* ── Inner: two columns, both stretch to the same height ─────────────────────── */
.sias-ts__inner {
	display: flex;
	align-items: stretch;
}

/* ── LEFT: photo column ──────────────────────────────────────────────────────── */
.sias-ts__photo-col {
	flex: 0 0 440px;       /* width overridden by Elementor control */
	width: 440px;
	position: relative;
	overflow: hidden;
	/* height stretches to match card via align-items: stretch */
}

/* All photos stacked; fixed height anchored to bottom of column */
.sias-ts .sias-ts__photo-item {
	position: absolute !important;  /* structural — must not be overridden by theme */
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.sias-ts .sias-ts__photo-item.is-active {
	opacity: 1;
}

.sias-ts .sias-ts__photo {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: var(--sias-photo-x, 50%) var(--sias-photo-y, 0%) !important;
	display: block !important;
	max-width: none !important;
	border-radius: 0 !important;
}

/* ── RIGHT: card ─────────────────────────────────────────────────────────────── */
.sias-ts__card {
	flex: 1 1 auto;
	min-height: 735px; /* fallback — overridden by Elementor */
	position: relative;
	background-color: #3d2f8a; /* fallback — overridden by Elementor */
	border-radius: 0 4px 4px 0;
	overflow: hidden;
}

/* ── Content layers: stacked, only .is-active visible ────────────────────────── */
.sias-ts__content-item {
	position: absolute;
	inset: 0;
	padding: 52px 59px 100px; /* bottom padding clears the nav buttons */
	display: flex;
	flex-direction: column;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}

.sias-ts__content-item.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* ── Quote ───────────────────────────────────────────────────────────────────── */
.sias-ts__quote {
	margin: 0;
	padding: 0;
	border: none;
	display: flex;
	flex-direction: column;
}

.sias-ts__quote-headline {
	color: #ffffff;
	font-family: 'Merriweather', Georgia, serif;
	font-style: normal;
	font-weight: 400;
	font-size: 36px;
	line-height: 1.1;
	margin: 0 0 28px;
}

.sias-ts__quote-body {
	color: #ffffff;
	font-family: 'Merriweather', Georgia, serif;
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
}

.sias-ts__quote-body p { margin: 0; }

/* ── Attribution ─────────────────────────────────────────────────────────────── */
.sias-ts__attribution {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 77px; /* fallback — overridden by Elementor */
}

.sias-ts__name {
	color: #ffffff;
	font-family: 'Manrope', sans-serif;
	font-weight: 600;
	font-size: 22px;
	line-height: 1.4;
	margin: 0;
}

.sias-ts__role {
	color: #ffffff;
	font-family: 'Manrope', sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.4;
	margin: 0;
}

/* ── Nav: pinned to bottom-right corner of the card ─────────────────────────── */
.sias-ts__nav {
	position: absolute;
	bottom: 0;
	right: 0;
	display: flex;
	z-index: 2;
}

/* Square buttons — no radius whatsoever */
.sias-ts .sias-ts__btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 77px !important;
	height: 77px !important;
	border: none !important;
	border-radius: 0 !important;
	cursor: pointer !important;
	transition: background-color 0.2s ease !important;
	flex-shrink: 0 !important;
	outline: none !important;
	padding: 0 !important;
	box-shadow: none !important;
}

.sias-ts__btn svg {
	width: 24px;
	height: 24px;
	display: block;
	pointer-events: none;
}

/* Both buttons: semi-transparent default, white on hover.
   No !important on bg/color — Elementor control values must be able to override these. */
.sias-ts .sias-ts__btn--prev,
.sias-ts .sias-ts__btn--next {
	background-color: rgba(255, 255, 255, 0.11);
	color: #ffffff;
}

.sias-ts .sias-ts__btn--prev:hover,
.sias-ts .sias-ts__btn--next:hover {
	background-color: #ffffff;
	color: #333333;
}

.sias-ts__btn:disabled,
.sias-ts__btn.is-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* WCAG 2.4.7 */
.sias-ts__btn:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: -3px;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.sias-ts__photo-col    { flex: 0 0 320px; width: 320px; }
	.sias-ts__content-item { padding: 40px 40px 100px; }
	.sias-ts__quote-headline { font-size: 28px; }
}

@media (max-width: 768px) {
	.sias-ts__inner     { flex-direction: column; }
	.sias-ts__photo-col { flex: none; width: 100%; height: 300px; min-height: 300px; }

	/* Allow nav to overflow upward into the photo */
	.sias-ts__card      { min-height: unset; border-radius: 0 0 4px 4px; overflow: visible; }

	/* Nav: float at the bottom-right corner of the image */
	.sias-ts__nav {
		bottom: auto;
		top: -60px;   /* pull buttons fully up into the last 60 px of the photo */
	}

	/* Content: simple display-switch — no absolute-position height tricks. */
	.sias-ts__content-item {
		position: relative;
		inset: auto;
		padding: 28px 28px 40px;
		display: none;
		opacity: 1;
		pointer-events: auto;
		transition: none;
	}
	.sias-ts__content-item.is-active {
		display: flex;
	}

	.sias-ts__attribution        { margin-top: 32px; }
	.sias-ts__quote-headline     { font-size: 22px; }
	.sias-ts .sias-ts__btn       { width: 60px !important; height: 60px !important; }
}

/* ── Reduced motion — WCAG 2.3.3 ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.sias-ts__photo-item,
	.sias-ts__content-item,
	.sias-ts__btn { transition: none !important; }
}
