/**
 * Elementor Testimonial Slider
 * Square-edged. No font-family declarations — typography is inherited from the theme.
 */

/* --- Minimal Swiper structure (safe no-op if Elementor's swiper CSS is present) --- */
.ets-slider .swiper,
.ets-slider .swiper-container {
	position: relative;
	overflow: hidden;
	list-style: none;
	padding: 0;
	margin: 0;
	z-index: 1;
}

.ets-slider .swiper-wrapper {
	position: relative;
	display: flex;
	width: 100%;
	height: 100%;
	z-index: 1;
	box-sizing: content-box;
	transition-property: transform;
}

.ets-slider .swiper-slide {
	flex-shrink: 0;
	width: 100%;
	height: 100%;
	position: relative;
	transition-property: transform;
}

.ets-slider .swiper-wrapper,
.ets-slider .swiper-slide {
	border-radius: 0;
}

/* --- Layout --- */
.ets-slider {
	position: relative;
	width: 100%;
}

.ets-slider__viewport {
	width: 100%;
}

.ets-slider--equal-height .swiper-slide {
	height: auto;
	display: flex;
}

.ets-slider--equal-height .ets-card {
	width: 100%;
}

/* --- Card --- */
.ets-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	box-sizing: border-box;
	background-color: #ffffff;
	border: 1px solid #000000;
	border-radius: 0;
	padding: 32px 28px;
	color: #000000;
	height: 100%;
	overflow: hidden;
}

.ets-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background-color: #6aaa10;
	border-radius: 0;
}

.ets-card__rating {
	display: flex;
	align-items: center;
	gap: 2px;
	line-height: 1;
	font-size: 18px;
	margin: 0;
}

.ets-star {
	color: #d5d5d5;
}

.ets-star.is-active {
	color: #6aaa10;
}

.ets-card__text {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	quotes: none;
	color: #000000;
	line-height: 1.6;
	flex-grow: 1;
}

.ets-card__text p {
	margin: 0 0 12px;
}

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

.ets-card__author {
	display: block;
	font-style: normal;
	font-weight: 700;
	color: #000000;
	line-height: 1.3;
	position: relative;
	padding-top: 14px;
}

.ets-card__author::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 32px;
	height: 3px;
	background-color: #6aaa10;
	border-radius: 0;
}

/* --- Arrows --- */
.ets-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background-color: transparent;
	color: #000000;
	border: 2px solid #000000;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ets-arrow:hover,
.ets-arrow:focus-visible {
	background-color: #6aaa10;
	border-color: #6aaa10;
	color: #ffffff;
	outline: none;
}

.ets-arrow--prev {
	left: -22px;
}

.ets-arrow--next {
	right: -22px;
}

.ets-arrow.is-disabled {
	opacity: 0.3;
	pointer-events: none;
}

.ets-arrow.is-hidden {
	display: none;
}

/* Offset the arrows by half the dots block so they stay centred on the cards. */
.ets-slider--has-dots .ets-arrow {
	top: calc(50% - 18px);
}

/* --- Dots --- */
.ets-slider__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
	line-height: 0;
}

.ets-slider__dots .swiper-pagination-bullet {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin: 0;
	background-color: #000000;
	border: 0;
	border-radius: 15px;
	opacity: 0.25;
	cursor: pointer;
	transition: opacity 0.2s ease, background-color 0.2s ease, width 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ets-slider__dots .swiper-pagination-bullet-active {
	background-color: #6aaa10;
	opacity: 1;
}

.ets-slider__dots:empty {
	display: none;
	margin-top: 0;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
	.ets-arrow--prev {
		left: 0;
	}

	.ets-arrow--next {
		right: 0;
	}
}

@media (max-width: 767px) {
	.ets-arrow {
		width: 38px;
		height: 38px;
	}

	.ets-slider__dots {
		margin-top: 20px;
	}
}

/* No-JS / pre-init fallback: show the cards side by side rather than stacked. */
.ets-slider:not(.ets-slider--ready) .swiper-wrapper {
	gap: 24px;
}

.ets-slider:not(.ets-slider--ready) .swiper-slide {
	width: calc(33.333% - 16px);
}

@media (max-width: 1024px) {
	.ets-slider:not(.ets-slider--ready) .swiper-slide {
		width: calc(50% - 12px);
	}
}

@media (max-width: 767px) {
	.ets-slider:not(.ets-slider--ready) .swiper-slide {
		width: 100%;
	}
}
