.testimonials {
	padding-top: var(--section-spacing);
}

.testimonials-carousel {
	display: flex;
	align-items: center;
	gap: 16px;
}

.testimonials-viewport {
	flex: 1;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	/* Hide the scrollbar — the arrows/dots are the intended controls,
	   dragging/swiping still works fine underneath. */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.testimonials-viewport::-webkit-scrollbar {
	display: none;
}

.testimonials-track {
	display: flex;
	align-items: flex-start;
	gap: 25px;
}

.testimonial-slide {
	flex: 0 0 calc((100% - 50px) / 3);
	scroll-snap-align: start;
}

.testimonial-card {
	padding: 35px;
	background: var(--white);
	border-radius: var(--corner-radius, var(--radius));
	box-shadow: var(--shadow);
	box-sizing: border-box;
}

.testimonial-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.testimonial-google-icon {
	display: inline-flex;
	flex-shrink: 0;
}

.testimonial-google-icon svg {
	width: 20px;
	height: 20px;
}

.testimonial-rating {
	color: #FBBC04;
	letter-spacing: 3px;
}

.testimonial-quote {
	max-height: 115px;
	overflow: hidden;
	transition: max-height .3s ease;
}

.testimonial-quote.expanded {
	max-height: 1000px;
}

.testimonial-card blockquote {
	margin: 0 0 25px;
	font-size: 1.05rem;
	line-height: 1.7;
}

.testimonial-toggle {
	display: none;
	margin: -10px 0 20px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--primary);
	font-weight: 700;
	cursor: pointer;
}

.testimonial-toggle:hover {
	color: var(--secondary);
}

.testimonial-toggle.is-visible {
	display: inline-block;
}

.testimonial-author {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/*
=========================================
ARROWS
=========================================
*/

.testimonials-arrow {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--white);
	color: var(--primary);
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.testimonials-arrow:hover {
	background: var(--secondary);
	border-color: var(--secondary);
	color: var(--white);
}

.testimonials-arrow svg {
	width: 18px;
	height: 18px;
}

.testimonials-arrow-prev svg {
	transform: rotate(180deg);
}

.testimonials-arrow[disabled] {
	opacity: .35;
	cursor: default;
	pointer-events: none;
}

/*
=========================================
DOTS
=========================================
*/

.testimonials-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
}

.testimonials-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: var(--border);
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.testimonials-dot:hover {
	background: var(--secondary);
}

.testimonials-dot.active {
	background: var(--secondary);
	transform: scale(1.2);
}

@media (max-width: 991px) {

	.testimonial-slide {
		flex: 0 0 calc((100% - 25px) / 2);
	}

}

@media (max-width: 575px) {

	.testimonials-carousel {
		gap: 10px;
	}

	.testimonial-slide {
		flex: 0 0 100%;
	}

	.testimonials-arrow {
		width: 38px;
		height: 38px;
	}

}
