/*
 * Elementor Testimonial Slider - Frontend Styles
 * Premium "glassmorphism" visual language: translucent blurred cards,
 * gradient accent bar, gradient-ring avatar, gradient quote badge,
 * floating shadows and soft hover motion. All selectors are scoped
 * under .ets-wrapper. User-configurable values (colors/spacing) come
 * from Elementor's {{WRAPPER}} controls in
 * includes/widgets/class-ets-testimonial-widget.php and, where a
 * control is left unset, fall back to the defaults below.
 */

.ets-wrapper {
	box-sizing: border-box;
	position: relative;
	--ets-gradient: linear-gradient(135deg, #6c5dd3 0%, #ff6fd8 55%, #ffa36c 100%);
}

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

/* Soft ambient glow blobs behind the widget for extra depth. Purely
   decorative, low-opacity, and non-interactive so they never clash
   with surrounding page content. */
.ets-wrapper::before,
.ets-wrapper::after {
	content: '';
	position: absolute;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.12;
	pointer-events: none;
	z-index: 0;
}

.ets-wrapper::before {
	background: #6c5dd3;
	top: -60px;
	left: -60px;
}

.ets-wrapper::after {
	background: #ff6fd8;
	bottom: -60px;
	right: -60px;
}

.ets-wrapper > * {
	position: relative;
	z-index: 1;
}

/* ---------- Card ---------- */

.ets-card {
	position: relative;
	background: rgba(255, 255, 255, 0.78);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.5);
	padding: 36px 32px 32px;
	border-radius: 20px;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
	overflow: hidden;
	box-shadow: 0 12px 36px -14px rgba(76, 55, 168, 0.28), 0 2px 8px rgba(20, 10, 60, 0.04);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ets-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--ets-gradient);
}

.ets-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 48px -16px rgba(76, 55, 168, 0.38), 0 4px 12px rgba(20, 10, 60, 0.06);
}

/* Gradient quote badge (replaces a plain text glyph) */

.ets-quote-badge {
	width: 42px;
	height: 42px;
	min-width: 42px;
	border-radius: 50%;
	background: var(--ets-gradient);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	font-family: Georgia, 'Times New Roman', serif;
	box-shadow: 0 6px 16px -4px rgba(108, 93, 211, 0.55);
}

.ets-testimonial-text {
	font-size: 16px;
	line-height: 1.7;
	color: #4a4a4a;
	flex-grow: 1;
}

.ets-client {
	display: flex;
	align-items: center;
	gap: 14px;
}

/* Gradient-ring avatar */

.ets-client-image {
	display: inline-flex;
	flex: 0 0 auto;
	padding: 3px;
	border-radius: 50%;
	background: var(--ets-gradient);
	line-height: 0;
	transition: transform 0.3s ease;
}

.ets-card:hover .ets-client-image {
	transform: scale(1.08);
}

.ets-no-hover .ets-card:hover .ets-client-image {
	transform: none;
}

.ets-client-image img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 3px solid #ffffff;
}

.ets-client-name {
	font-weight: 600;
	font-size: 16px;
	color: #1a1a1a;
	line-height: 1.3;
}

.ets-client-title {
	font-size: 14px;
	color: #8a8a8a;
	line-height: 1.3;
}

/* Company logo pill */

.ets-company-logo {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 7px 16px;
	border-radius: 999px;
	background: rgba(108, 93, 211, 0.08);
}

.ets-company-logo img {
	max-height: 26px;
	width: auto;
	display: block;
}

/* ---------- Star rating ---------- */

.ets-rating {
	display: inline-flex;
	gap: 3px;
	font-size: 19px;
	line-height: 1;
}

.ets-star {
	color: #e3e0f2;
	position: relative;
	display: inline-block;
}

.ets-star.filled {
	color: #f5a623;
	filter: drop-shadow(0 2px 4px rgba(245, 166, 35, 0.35));
}

.ets-star.half {
	color: #e3e0f2;
}

.ets-star.half::before {
	content: '\2605';
	position: absolute;
	left: 0;
	top: 0;
	width: 50%;
	overflow: hidden;
	color: #f5a623;
}

/* ---------- Single card layout ---------- */

.ets-single-card {
	max-width: 640px;
	margin: 0 auto;
}

.ets-full-width .ets-single-card {
	max-width: 100%;
}

/* ---------- Hover animation toggle ---------- */
/* When the "Hover Animation" style control is switched off, cancel the
   lift/shadow-deepen transition on cards and the scale/shadow on arrows,
   while everything else stays exactly the same. */

.ets-no-hover .ets-card {
	transition: none;
}

.ets-no-hover .ets-card:hover {
	transform: none;
	box-shadow: 0 12px 36px -14px rgba(76, 55, 168, 0.28), 0 2px 8px rgba(20, 10, 60, 0.04);
}

.ets-no-hover .ets-arrow {
	transition: none;
}

.ets-no-hover .ets-arrow:hover {
	transform: translateY(-50%);
	box-shadow: 0 8px 22px -6px rgba(108, 93, 211, 0.55);
}

/* ---------- Grid layout ---------- */

.ets-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: stretch;
}

@media (max-width: 1024px) {
	.ets-layout-grid .ets-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	.ets-layout-grid .ets-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ---------- Masonry layout ---------- */

.ets-masonry {
	column-count: 3;
	column-gap: 24px;
}

.ets-masonry .ets-card {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	margin-bottom: 24px;
	display: inline-flex;
	width: 100%;
}

@media (max-width: 1024px) {
	.ets-layout-masonry .ets-masonry {
		column-count: 2 !important;
	}
}

@media (max-width: 600px) {
	.ets-layout-masonry .ets-masonry {
		column-count: 1 !important;
	}
}

/* ---------- List (horizontal) layout ---------- */

.ets-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ets-list-card {
	flex-direction: row;
	align-items: center;
	gap: 26px;
}

.ets-list-image {
	flex: 0 0 auto;
	padding: 3px;
	border-radius: 16px;
	background: var(--ets-gradient);
	line-height: 0;
}

.ets-list-image img {
	width: 100px;
	height: 100px;
	border-radius: 13px;
	object-fit: cover;
	display: block;
	border: 3px solid #ffffff;
}

.ets-list-content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.ets-list-content .ets-quote-badge {
	width: 34px;
	height: 34px;
	min-width: 34px;
	font-size: 18px;
}

@media (max-width: 600px) {
	.ets-list-card {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- Carousel layout ---------- */

.ets-carousel {
	position: relative;
	padding: 0 8px;
}

.ets-carousel-viewport {
	overflow: hidden;
	padding: 4px 2px 8px;
}

.ets-carousel-track {
	display: flex;
	gap: 24px;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.ets-carousel-slide {
	flex: 0 0 calc((100% / var(--ets-columns, 3)) - (24px * (var(--ets-columns, 3) - 1) / var(--ets-columns, 3)));
	min-width: 0;
}

@media (max-width: 1024px) {
	.ets-carousel-slide {
		flex: 0 0 calc((100% / 2) - 12px);
	}
}

@media (max-width: 600px) {
	.ets-carousel-slide {
		flex: 0 0 100%;
	}
}

.ets-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--ets-gradient);
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	line-height: 1;
	box-shadow: 0 8px 22px -6px rgba(108, 93, 211, 0.55);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	z-index: 2;
}

.ets-arrow:hover {
	transform: translateY(-50%) scale(1.08);
	box-shadow: 0 10px 26px -6px rgba(108, 93, 211, 0.7);
}

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

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

.ets-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
	transform: translateY(-50%);
	box-shadow: none;
}

.ets-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
}

.ets-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: none;
	background: #ddd8f5;
	cursor: pointer;
	padding: 0;
	transition: width 0.25s ease, border-radius 0.25s ease, background-color 0.25s ease;
}

.ets-dot.active {
	width: 28px;
	border-radius: 5px;
	background: #6c5dd3;
}

@media (max-width: 480px) {
	.ets-arrow-prev {
		left: 0;
	}

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