/* Elementor Scrolling Testimonials Styles */

.est-wrapper {
	--scroll-speed: 30s;
	display: flex;
	gap: 20px;
	height: 700px; /* customizable in elementor */
	overflow: hidden;
	position: relative;
	/* Add slick linear mask on top and bottom so they fade in and out */
	mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
	-webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

/* Pause on hover! */
.est-wrapper:hover .est-track {
	animation-play-state: paused;
}

.est-column {
	display: flex;
	flex-direction: column;
	gap: 20px;
	flex: 1;
	width: 50%;
}

.est-track {
	display: flex;
	flex-direction: column;
	gap: 20px;
	will-change: transform;
}

.est-up .est-track {
	animation: est-scroll-up var(--scroll-speed) linear infinite;
}

.est-down .est-track {
	animation: est-scroll-down var(--scroll-speed) linear infinite;
}

@keyframes est-scroll-up {
	0% {
		transform: translateY(0);
	}
	100% {
		/* -100% of the track's height plus the column gap to seamlessly loop */
		transform: translateY(calc(-100% - 20px)); 
	}
}

@keyframes est-scroll-down {
	0% {
		transform: translateY(calc(-100% - 20px));
	}
	100% {
		transform: translateY(0);
	}
}

/* Testimonial Box Styles mimicking the premium screenshot */
.est-item {
	background-color: #ffffff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* very soft shadow */
	display: flex;
	flex-direction: column;
	gap: 16px;
	border: 1px solid rgba(0, 0, 0, 0.02); /* slight outline */
	flex-shrink: 0; 
}

/* Header: Stars & Quote Icon */
.est-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.est-stars i {
	font-size: 14px;
	margin-right: 2px;
}

.est-quote-icon {
	color: #ffccc3; /* soft pink/orange quote color */
	font-size: 32px;
	font-weight: bold;
	line-height: 1;
	font-family: Arial, serif; /* force serif for nice quote mark */
}

/* Testimonial Text */
.est-item-text {
	color: #666666;
	font-size: 15px;
	line-height: 1.6;
}

/* Footer: Avatar & User Info */
.est-item-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
}

.est-item-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: bold;
	font-size: 16px;
	font-family: inherit;
	background-color: #ffe7e3;
	color: #f25c3b;
}

.est-item-avatar.est-item-avatar-img {
	background-color: transparent;
	padding: 0;
	overflow: hidden; 
}
.est-item-avatar.est-item-avatar-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.est-item-user {
	display: flex;
	flex-direction: column;
}

.est-item-name {
	font-weight: 700;
	color: #111111;
	font-size: 15px;
}

.est-item-location {
	color: #888888;
	font-size: 12px;
}

/* Adjustments for single column on mobile */
@media (max-width: 767px) {
	.est-wrapper {
		flex-direction: column;
		height: auto;
		mask-image: none;
		-webkit-mask-image: none;
	}
	.est-column {
		width: 100%;
	}
	.est-track {
		animation: none !important;
		transform: none !important;
	}
	/* Hide cloned duplicated tracks on mobile to avoid reading things twice */
	.est-track[data-clone="true"] {
		display: none !important;
	}
}
