.elephanta-testimonial {
	position: relative;
	overflow: hidden;
	padding: clamp(56px, 7vw, 110px) 20px;
	color: #16241f;
}

.elephanta-testimonial *,
.elephanta-testimonial *::before,
.elephanta-testimonial *::after {
	box-sizing: border-box;
}

.elephanta-testimonial__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 680px;
	min-width: 0;
	width: 100%;
	margin: 0 auto;
}

.elephanta-testimonial__stage {
	position: relative;
	width: 100%;
	min-width: 0;
	min-height: 430px;
	perspective: 1200px;
}

.elephanta-testimonial__track {
	position: relative;
	width: 100%;
	height: 370px;
	overflow: visible;
}

.elephanta-testimonial__card {
	position: absolute;
	inset: 50% auto auto 50%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 20px;
	width: min(430px, calc(100vw - 44px), 100%);
	min-height: 320px;
	padding: 34px;
	border: 1px solid rgba(22, 36, 31, 0.08);
	border-radius: 8px;
	box-shadow: 0 28px 70px rgba(22, 36, 31, 0.13);
	opacity: 0;
	overflow: hidden;
	transform: translate(-50%, -50%) translateX(58px) scale(0.86) rotateY(-22deg);
	transition: transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 420ms ease, filter 420ms ease;
	will-change: transform, opacity;
}

.elephanta-testimonial__card.is-active,
.elephanta-testimonial:not([data-elephanta-ready]) .elephanta-testimonial__card:first-child {
	z-index: 4;
	opacity: 1;
	filter: none;
	transform: translate(-50%, -50%) translateX(var(--elephanta-tilt-x, 0)) translateY(var(--elephanta-tilt-y, 0)) scale(1) rotateX(var(--elephanta-rotate-x, 0)) rotateY(var(--elephanta-rotate-y, 0));
}

.elephanta-testimonial__card.is-prev {
	z-index: 2;
	opacity: 0.42;
	filter: blur(0.4px);
	transform: translate(-50%, -50%) translateX(-128px) translateY(24px) scale(0.86) rotateY(20deg);
}

.elephanta-testimonial__card.is-next {
	z-index: 3;
	opacity: 0.62;
	transform: translate(-50%, -50%) translateX(128px) translateY(-20px) scale(0.9) rotateY(-20deg);
}

.elephanta-testimonial__shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 28%, rgba(255, 255, 255, 0.75) 50%, transparent 68%);
	transform: translateX(-120%);
	pointer-events: none;
}

.elephanta-testimonial__card.is-active .elephanta-testimonial__shine {
	animation: elephanta-shine 1.2s ease 180ms both;
}

.elephanta-testimonial__quote-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #1c8f6a;
	font-size: 28px;
	line-height: 1;
}

.elephanta-testimonial__quote-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.elephanta-testimonial__rating {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #d7ddd9;
	font-size: 18px;
}

.elephanta-testimonial__rating .is-filled {
	color: #e1a321;
}

.elephanta-testimonial__quote {
	margin: 0;
	color: #34443e;
	font-size: 20px;
	font-weight: 650;
	line-height: 1.55;
}

.elephanta-testimonial__person {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-top: 8px;
}

.elephanta-testimonial__person img {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	border: 3px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 10px 26px rgba(22, 36, 31, 0.14);
}

.elephanta-testimonial__author-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.elephanta-testimonial__name,
.elephanta-testimonial__role {
	display: block;
}

.elephanta-testimonial__name {
	color: #16241f;
	font-size: 16px;
	line-height: 1.35;
}

.elephanta-testimonial__role {
	margin-top: 2px;
	color: #53635d;
	font-size: 14px;
	line-height: 1.45;
}

.elephanta-testimonial__controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
}

.elephanta-testimonial__nav,
.elephanta-testimonial__dot {
	border: 0;
	cursor: pointer;
	transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.elephanta-testimonial__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #16241f;
	color: #fff;
	font-size: 17px;
	padding: 0;
}

.elephanta-testimonial__nav:hover,
.elephanta-testimonial__nav:focus-visible {
	transform: translateY(-2px);
	background: #d45113;
	outline: none;
}

.elephanta-testimonial__dots {
	display: flex;
	gap: 8px;
	align-items: center;
}

.elephanta-testimonial__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border-radius: 999px;
	background: rgba(22, 36, 31, 0.24);
}

.elephanta-testimonial__dot.is-active {
	width: 28px;
	background: #1c8f6a;
}

@keyframes elephanta-shine {
	to {
		transform: translateX(120%);
	}
}

@media (max-width: 900px) {
	.elephanta-testimonial__stage {
		min-height: 400px;
	}

	.elephanta-testimonial__card.is-prev {
		transform: translate(-50%, -50%) translateX(-92px) translateY(24px) scale(0.86) rotateY(20deg);
	}

	.elephanta-testimonial__card.is-next {
		transform: translate(-50%, -50%) translateX(92px) translateY(-20px) scale(0.9) rotateY(-20deg);
	}
}

@media (max-width: 560px) {
	.elephanta-testimonial {
		padding-inline: 14px;
	}

	.elephanta-testimonial__stage {
		min-height: 430px;
	}

	.elephanta-testimonial__track {
		height: clamp(360px, 118vw, 440px);
		overflow: hidden;
	}

	.elephanta-testimonial__card {
		min-height: 330px;
		padding: 26px;
	}

	.elephanta-testimonial__quote {
		font-size: clamp(17px, 5vw, 20px);
	}

	.elephanta-testimonial__person {
		align-items: flex-start;
	}

	.elephanta-testimonial__controls {
		gap: 10px;
		margin-top: 18px;
	}

	.elephanta-testimonial__card.is-prev,
	.elephanta-testimonial__card.is-next {
		opacity: 0;
		pointer-events: none;
		transform: translate(-50%, -50%) translateY(28px) scale(0.86);
	}
}

@media (prefers-reduced-motion: reduce) {
	.elephanta-testimonial__card,
	.elephanta-testimonial__shine {
		animation: none !important;
		transition: none !important;
	}
}


