/* ============================================================
   Testimonial Slider for Elementor – testimonial-slider.css
   ============================================================ */

/* Wrapper */
.tse-slider-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

/* Section header */
.tse-section-header {
	text-align: center;
	margin-bottom: 48px;
	padding: 0 20px;
}

.tse-section-header h2 {
	font-size: 42px;
	color: #1a1a1a;
	margin: 0 0 10px;
	line-height: 1.2;
}

.tse-section-header p {
	font-size: 16px;
	color: #888;
	font-weight: 400;
	margin: 0;
}

/* Slider section */
.tse-slider-section {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--tse-rows-gap, 20px);
}

/* Rows */
.tse-row-right,
.tse-row-left {
	overflow: hidden;
}

/* Tracks */
.tse-slider-track {
	display: flex;
	gap: var(--tse-cards-gap, 20px);
	width: max-content;
	will-change: transform;
}

.tse-row-right .tse-slider-track {
	animation: tse-scroll-right var(--tse-speed, 35s) linear infinite;
}

.tse-row-right.tse-pause-hover:hover .tse-slider-track {
	animation-play-state: paused;
}

.tse-row-left .tse-slider-track {
	animation: tse-scroll-left var(--tse-speed, 35s) linear infinite;
}

.tse-row-left.tse-pause-hover:hover .tse-slider-track {
	animation-play-state: paused;
}

@keyframes tse-scroll-right {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

@keyframes tse-scroll-left {
	0%   { transform: translateX(-50%); }
	100% { transform: translateX(0); }
}

/* Card */
.tse-card {
	width: var(--tse-card-width, 320px);
	flex-shrink: 0;
	background: #ffffff;
	border-radius: 20px;
	padding: 28px 28px 24px;
	border: 1px solid #ece9e3;
	position: relative;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tse-card:hover {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
	transform: translateY(-2px);
}

/* Quote icon */
.tse-quote-icon {
	display: block;
	margin-bottom: 8px;
	user-select: none;
	line-height: 1;
}

.tse-quote-icon i {
	font-size: 36px;
	color: #e0ddd7;
}

.tse-quote-icon svg {
	width: 36px;
	height: 36px;
	fill: #e0ddd7;
}

/* Quote text */
.tse-card p {
	font-size: 14.5px;
	line-height: 1.75;
	color: #3d3d3d;
	margin: 0 0 20px;
	font-weight: 400;
}

/* Card footer */
.tse-card-footer {
	border-top: 1px solid #f0ede8;
	padding-top: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Avatar */
.tse-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	flex-shrink: 0;
}

/* Author meta */
.tse-card-author strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.4;
}

.tse-card-author span {
	font-size: 12.5px;
	color: #999;
	font-weight: 400;
}

/* Fade edges */
.tse-slider-wrapper::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 120px;
	background: linear-gradient(to right, #f8f7f4, transparent);
	z-index: 2;
	pointer-events: none;
}

.tse-slider-wrapper::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 120px;
	background: linear-gradient(to left, #f8f7f4, transparent);
	z-index: 2;
	pointer-events: none;
}

.tse-no-fade::before,
.tse-no-fade::after {
	display: none;
}
