/* Testimonial Slider for Elementor — front-end styles */

/* Elementor flex containers shrink widgets to their content; keep ours full width. */
.elementor-widget-tse-testimonial-slider {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.elementor-widget-tse-testimonial-slider > .elementor-widget-container {
	width: 100%;
}

.tse-render-error {
	padding: 16px 20px;
	border: 1px dashed #c0392b;
	background: #fff5f4;
	color: #8a1f1f;
	font-size: 14px;
}

.tse-slider-wrapper {
	container-type: inline-size;
	--tse-bg-start: #e9f3fb;
	--tse-bg-end: #fbf9e7;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	background: linear-gradient(120deg, var(--tse-bg-start), var(--tse-bg-end));
	overflow: hidden;
}

.tse-slider-wrapper *,
.tse-slider-wrapper *::before,
.tse-slider-wrapper *::after {
	box-sizing: border-box;
}

.tse-heading {
	margin: 0 0 40px;
	text-align: left;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.2;
	color: #111111;
}

.tse-heading-highlight {
	font-style: italic;
	color: #1a3fa0;
}

.tse-slider-track-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.tse-slider-track {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 300px;
}

.tse-slide {
	display: none;
	width: 100%;
}

.tse-slide.is-active {
	display: block;
	animation: tse-fade-in 0.5s ease;
}

@keyframes tse-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tse-slide-inner {
	display: flex;
	align-items: center;
	gap: clamp(32px, 8vw, 120px);
}

.tse-photo-frame {
	flex: 0 0 auto;
	width: 280px;
	height: 280px;
	border: 4px solid #1a3fa0;
	background: #eeeeee;
	overflow: hidden;
}

.tse-photo-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tse-content {
	flex: 1 1 auto;
	min-width: 0;
}

.tse-quote {
	margin: 0 0 28px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.9;
	color: #8a1f1f;
}

.tse-name {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	color: #1a3fa0;
}

.tse-location {
	margin: 4px 0 0;
	font-size: 26px;
	font-weight: 700;
	color: #111111;
}

/* Arrows */
.tse-arrow {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #7a1f1f;
	color: #ffffff;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.tse-arrow:hover {
	transform: scale(1.08);
	opacity: 0.92;
}

.tse-arrow svg {
	display: block;
	width: 1em;
	height: 1em;
}

.tse-arrow-prev {
	margin-right: 28px;
}

.tse-arrow-next {
	margin-left: 28px;
}

/* Dots */
.tse-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 40px;
}

.tse-dot {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 2px solid #2f66f5;
	border-radius: 8px;
	background-color: #ffffff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.tse-dot.is-active {
	background-color: #2f66f5;
}

.tse-arrow:focus-visible,
.tse-dot:focus-visible {
	outline: 3px solid #111111;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.tse-slide.is-active {
		animation: none;
	}

	.tse-arrow {
		transition: none;
	}
}

/* Tablet */
@media (max-width: 1024px) {
	.tse-slide-inner {
		gap: 48px;
	}

	.tse-heading {
		font-size: 36px;
	}

	.tse-quote {
		font-size: 19px;
		line-height: 1.7;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.tse-slide-inner {
		flex-direction: column;
		gap: 24px;
		text-align: center;
	}

	.tse-photo-frame {
		width: 180px;
		height: 180px;
	}

	.tse-heading {
		font-size: 28px;
		text-align: center;
	}

	.tse-quote {
		font-size: 17px;
	}

	.tse-name {
		font-size: 22px;
	}

	.tse-location {
		font-size: 18px;
	}

	.tse-arrow {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}

	.tse-arrow-prev {
		margin-right: 12px;
	}

	.tse-arrow-next {
		margin-left: 12px;
	}

	.tse-dots {
		gap: 10px;
	}

	.tse-dot {
		width: 20px;
		height: 20px;
		border-radius: 5px;
	}
}

/* Narrow widget (any screen): stack photo above the quote */
@container (max-width: 760px) {
	.tse-slide-inner {
		flex-direction: column;
		gap: 24px;
		text-align: center;
	}

	.tse-heading {
		font-size: 30px;
		text-align: center;
	}

	.tse-quote {
		font-size: 18px;
		line-height: 1.7;
	}

	.tse-name {
		font-size: 22px;
	}

	.tse-location {
		font-size: 18px;
	}
}
