/* Elementor Testimonial Slider — structural / base styles.
   Colors, spacing, typography etc. are set per-widget-instance
   by Elementor's Style tab controls (inline CSS with higher specificity). */

.ect-testimonial-wrapper * {
	box-sizing: border-box;
}

.ect-testimonial-wrapper img,
.ect-testimonial-wrapper svg {
	display: block;
	max-width: 100%;
}

/* ---------- Grid mode ---------- */
.ect-testimonial-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

@media (max-width: 900px) {
	.ect-testimonial-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Card ---------- */
.ect-t-card {
	background: #f7f5ef;
	border: 1px solid rgba(30, 36, 32, 0.14);
	border-radius: 4px;
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100%;
}

.ect-t-stars {
	display: flex;
	align-items: center;
	gap: 3px;
	color: #c6641f;
}

.ect-t-stars svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.ect-star-empty {
	opacity: 0.25;
}

.ect-t-quote {
	font-size: 15px;
	line-height: 1.6;
	color: #1e2420;
	--ect-quote-mark-display: none;
}

.ect-t-quote::before {
	content: '\201C';
	display: var(--ect-quote-mark-display);
}

.ect-t-quote::after {
	content: '\201D';
	display: var(--ect-quote-mark-display);
}

.ect-t-person {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.ect-t-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #7c8c6b;
	color: #f7f5ef;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "IBM Plex Mono", monospace;
	font-size: 13px;
	font-weight: 600;
	flex-shrink: 0;
	overflow: hidden;
}

.ect-t-avatar-image {
	background-size: cover;
	background-position: center;
	text-indent: -9999px;
}

.ect-t-person-text {
	min-width: 0;
}

.ect-t-name {
	font-size: 14px;
	font-weight: 600;
	color: #1e2420;
}

.ect-t-meta {
	font-size: 12px;
	color: #6b6b63;
	font-family: "IBM Plex Mono", monospace;
}

/* ---------- Slider mode ---------- */
.ect-mode-slider {
	position: relative;
}

.ect-slider-viewport {
	overflow: hidden;
}

.ect-slider-track {
	display: flex;
	will-change: transform;
	transition: transform 500ms ease;
}

.ect-slide {
	flex-shrink: 0;
	display: flex;
}

.ect-slide .ect-t-card {
	width: 100%;
}

.ect-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(30, 36, 32, 0.14);
	background: #f7f5ef;
	color: #1e2420;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	padding: 0;
}

.ect-slider-arrow svg {
	width: 40%;
	height: 40%;
}

.ect-arrow-prev {
	left: -20px;
}

.ect-arrow-next {
	right: -20px;
}

.ect-slider-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

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

.ect-slider-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(30, 36, 32, 0.18);
	border: none;
	padding: 0;
	cursor: pointer;
}

.ect-slider-dot.is-active {
	background: #c6641f;
}

@media (max-width: 767px) {
	.ect-slider-arrow {
		display: none;
	}
}
