/**
 * WLRE Theme — Testimonials section.
 *
 * White background, centered heading, auto-rotating cards (no nav arrows).
 * Card layout: stars + quote top, author pinned to bottom via justify-between.
 * Scroll carousel: equal left/right padding via calc(50% - 608px) so exactly
 * 3 cards sit centered on the page with symmetric margins.
 */

/* Override the base wlre-carousel-section padding (16/48) to match the
 * 80px vertical rhythm used in other full sections. */
.wlre-testimonials.wlre-carousel-section {
	padding-block: var(--wlre-space-80);
	background: var(--wlre-color-white);
	overflow: hidden;
}

.wlre-testimonials__heading {
	font-family: var(--wlre-font-heading);
	font-weight: 600;
	font-size: 44px;
	line-height: 1.2;
	text-align: center;
	color: var(--wlre-color-text-900);
	margin: 0 0 var(--wlre-space-40);
	padding-inline: var(--wlre-space-20);
}

@media (min-width: 768px) {
	.wlre-testimonials__heading {
		padding-inline: var(--wlre-space-40);
	}
}

@media (min-width: 1024px) {
	.wlre-testimonials__heading {
		padding-inline: var(--wlre-space-100);
	}
}

/* Center 3 cards (3×392 + 2×20 gap = 1216px) symmetrically.
 * padding = (trackWidth - 1216px) / 2 = 50% - 608px.
 * max() clamps to 20px at narrow viewports where 3 cards overflow. */
.wlre-testimonials .wlre-carousel-track {
	/* 2px block padding prevents the card border from being clipped by the
	 * implicit Y-axis clipping that overflow-x: auto creates on real devices. */
	padding-block: 2px;
	padding-inline: max(var(--wlre-space-20), calc(50% - 608px));
	scroll-padding-inline-start: max(var(--wlre-space-20), calc(50% - 608px));
}

/* === Testimonial card === */
.wlre-testimonial-card {
	width: 392px;
	height: 220px;
	background: var(--wlre-color-white);
	border: 0.5px solid var(--wlre-color-text-900);
	border-radius: var(--wlre-radius-md);
	padding: var(--wlre-space-24);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}

/* Top block: stars + quote stacked, clipped when text overflows. */
.wlre-testimonial-card__top {
	display: flex;
	flex-direction: column;
	gap: var(--wlre-space-12);
	overflow: hidden;
}

.wlre-testimonial-card__stars {
	display: flex;
	gap: 1.3px;
}

.wlre-testimonial-card__star {
	display: inline-flex;
	width: 17px;
	height: 19px;
}

.wlre-testimonial-card__star svg {
	width: 100%;
	height: 100%;
}

.wlre-testimonial-card__quote {
	font-family: var(--wlre-font-heading);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.2;
	color: var(--wlre-color-text-900);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wlre-testimonial-card__author {
	display: flex;
	flex-direction: column;
	gap: var(--wlre-space-8);
}

.wlre-testimonial-card__name {
	font-family: var(--wlre-font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.48;
	color: var(--wlre-color-text-900);
	margin: 0;
}

.wlre-testimonial-card__city {
	font-family: var(--wlre-font-body);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.48;
	color: #666;
	margin: 0;
}

/* === Responsive === */
@media (max-width: 767px) {
	.wlre-testimonials.wlre-carousel-section {
		padding-block: var(--wlre-space-48);
	}

	.wlre-testimonials__heading {
		font-size: 28px;
		margin-bottom: var(--wlre-space-32);
	}

	.wlre-testimonial-card {
		width: 280px;
		height: 200px;
		padding: var(--wlre-space-16);
	}

	.wlre-testimonial-card__quote {
		font-size: 18px;
	}
}
