/**
 * Figma Testimonial Slider Styles
 * Pixel-perfect alignment with Figma design
 */

.ets-testimonial-slider-container {
	position: relative;
	width: 100%;
	padding: 25px 0 35px 0;
	overflow: hidden;
}

.ets-testimonial-swiper {
	width: 100%;
	overflow: visible !important; /* Allows active shadows and side card peeks without clipping */
	padding: 20px 0;
}

/* Swiper Slide with auto width for Figma-accurate spacing */
.swiper-slide.ets-testimonial-slide {
	width: 680px !important;
	max-width: calc(100vw - 48px) !important;
	height: auto;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0 !important;
	transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
	cursor: pointer;
}

/* Card Container */
.ets-testimonial-card {
	background-color: #ffffff;
	border-radius: 14px;
	padding: 38px 44px;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 36px;
	position: relative;
	transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
	opacity: 0.65;
	transform: scale(0.96);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Active Slide Focus (Elevated with soft multi-layer shadow) */
.swiper-slide-active .ets-testimonial-card {
	opacity: 1 !important;
	transform: scale(1) !important;
	box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.09), 0 2px 10px rgba(0, 0, 0, 0.03) !important;
	z-index: 10;
	cursor: default;
}

/* Avatar Column & Offset Backdrop */
.ets-avatar-col {
	flex-shrink: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	padding-left: 14px; /* Gives room for the left offset backdrop box */
}

.ets-avatar-wrapper {
	position: relative;
	width: 170px !important;
	height: 170px !important;
	min-width: 170px !important;
	min-height: 170px !important;
	max-width: 170px !important;
	max-height: 170px !important;
	flex-shrink: 0 !important;
}

.ets-avatar-backdrop {
	position: absolute;
	top: 14px;
	left: -14px;
	width: 100%;
	height: 100%;
	background-color: #d8dbe0;
	border-radius: 4px;
	z-index: 1;
	transition: transform 0.3s ease;
	pointer-events: none;
}

/* Strict image constraints to prevent theme overrides (like Astra's height:auto) */
.ets-avatar-img {
	position: relative;
	z-index: 2;
	width: 100% !important;
	height: 100% !important;
	min-width: 100% !important;
	min-height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: cover !important;
	object-position: center 20% !important;
	border-radius: 4px;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	box-sizing: border-box !important;
}

/* Content Column */
.ets-content-col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: left;
}

/* Quote Text */
.ets-quote-text {
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #52525b;
	margin: 0 0 16px 0;
	font-style: normal;
	word-wrap: break-word;
}

/* Rating Stars */
.ets-rating-stars {
	display: flex;
	align-items: center;
	font-size: 16px;
	line-height: 1;
	margin: 0 0 14px 0;
	user-select: none;
}

.ets-rating-stars .ets-star {
	margin-right: 3px;
	display: inline-block;
}

.ets-rating-stars .ets-star:last-child {
	margin-right: 0;
}

.ets-rating-stars .ets-star-filled {
	color: #f59e0b;
}

.ets-rating-stars .ets-star-half {
	color: #f59e0b;
}

.ets-rating-stars .ets-star-empty {
	color: #e5e7eb;
}

/* Horizontal Divider Line */
.ets-divider-line {
	width: 175px;
	height: 1px;
	background-color: #e2e4e8;
	margin: 0 0 16px 0;
}

/* Author Name */
.ets-author-name {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 24px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 3px 0;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

/* Author Role / Designation */
.ets-author-role {
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 13.5px;
	font-weight: 400;
	color: #64748b;
	margin: 0;
	line-height: 1.4;
}

/* Swiper Navigation Arrows */
.ets-swiper-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: #ffffff;
	color: #1e293b;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: all 0.25s ease;
}

.ets-swiper-button:hover {
	background-color: #0f172a;
	color: #ffffff;
	transform: translateY(-50%) scale(1.08);
}

.ets-swiper-prev {
	left: 15px;
}

.ets-swiper-next {
	right: 15px;
}

.ets-swiper-button.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* Pagination Dots */
.ets-swiper-pagination {
	position: relative !important;
	bottom: auto !important;
	left: auto !important;
	margin-top: 32px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	z-index: 30;
	pointer-events: auto !important;
}

.ets-swiper-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background-color: #cbd5e1;
	opacity: 1;
	border-radius: 50%;
	margin: 0 !important;
	transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
	cursor: pointer !important;
	pointer-events: auto !important;
	display: inline-block;
	outline: none;
}

.ets-swiper-pagination .swiper-pagination-bullet:hover {
	background-color: #94a3b8;
}

.ets-swiper-pagination .swiper-pagination-bullet-active {
	background-color: #0f172a !important;
	width: 26px !important;
	border-radius: 13px !important;
}

/* Tablet Responsive */
@media (max-width: 991px) {
	.swiper-slide.ets-testimonial-slide {
		width: 580px !important;
	}

	.ets-testimonial-card {
		padding: 32px 36px;
		gap: 28px;
	}

	.ets-avatar-wrapper {
		width: 145px !important;
		height: 145px !important;
		min-width: 145px !important;
		min-height: 145px !important;
		max-width: 145px !important;
		max-height: 145px !important;
	}

	.ets-author-name {
		font-size: 21px;
	}
}

/* Mobile Responsive */
@media (max-width: 767px) {
	.swiper-slide.ets-testimonial-slide {
		width: 100% !important;
		max-width: 100% !important;
	}

	.ets-testimonial-card {
		flex-direction: column;
		text-align: center;
		padding: 28px 22px;
		gap: 22px;
	}

	.ets-avatar-col {
		padding-left: 0;
	}

	.ets-content-col {
		text-align: center;
		align-items: center;
	}

	.ets-rating-stars {
		justify-content: center;
	}

	.ets-divider-line {
		margin-left: auto;
		margin-right: auto;
	}

	.ets-avatar-wrapper {
		width: 135px !important;
		height: 135px !important;
		min-width: 135px !important;
		min-height: 135px !important;
		max-width: 135px !important;
		max-height: 135px !important;
	}

	.ets-avatar-backdrop {
		top: 10px;
		left: -10px;
	}

	.ets-author-name {
		font-size: 20px;
	}

	.ets-quote-text {
		font-size: 14px;
	}

	.ets-swiper-button {
		display: none;
	}
}
