/**
 * COA Centers - Testimonials Slider Styles
 *
 * Styles for the [coa_testimonials] shortcode
 */

.testimonial-slider {
	width: min(100%, 880px);
	background: transparent;
	position: relative;
	margin-inline: auto;
}

.testimonial-slider,
.testimonial-slider * {
	font-family: "Poppins", sans-serif;
}

.slides-viewport {
	overflow: hidden;
	transition: height 280ms ease;
}

.slides {
	display: flex;
	width: 100%;
	align-items: flex-start;
	transition: transform 280ms ease;
}

.slide {
	min-width: 100%;
	padding: 46px 48px 0;
	display: grid;
	align-content: start;
	justify-items: center;
	text-align: center;
	gap: 20px;
}

.quote {
	margin: 0;
	max-width: 780px;
	font-size: 22px;
	font-weight: 400;
	line-height: 150%;
	text-align: center;
	letter-spacing: 0.01em;
}

.author {
	margin: 0;
	font-weight: 700;
	font-size: clamp(14px, 0.7vw, 20px);
	line-height: 1.15;
}

.nav {
	width: 64px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: var(--accent, #ece2ec);
	color: #292929;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
	padding-bottom: 4px;
}

.nav:focus-visible {
	outline: 2px solid #888;
	outline-offset: 2px;
}

.controls {
	margin-top: 30px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
}

.prev {
	justify-self: start;
}

.next {
	justify-self: end;
}

.dots {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	grid-column: 2;
}

.dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--dot, #cfcfcf);
	border: 0;
	padding: 0;
	cursor: pointer;
}

.dot.active {
	background: var(--dot-active, #1f1f1f);
}

@media (max-width: 720px) {
	.slide {
		padding: 32px 22px 0;
	}

	.nav {
		width: 56px;
		height: 36px;
		font-size: 28px;
	}

	.controls {
		margin-top: 22px;
		gap: 12px;
	}
}
