.ost-testimonials {
	--ost-primary: #1a56db;
	--ost-accent: #f59e0b;
	--ost-text: #33383d;
	--ost-text-muted: #4a7a8c;
	--ost-quote-mark: #d8dde1;
	--ost-columns: 3;

	position: relative;
	box-sizing: border-box;
	max-width: 1440px;
	margin: 0 auto;
	padding-top: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.ost-testimonials *,
.ost-testimonials *::before,
.ost-testimonials *::after {
	box-sizing: border-box;
}

/* Card */

.ost-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0 24px;
}

.ost-rating {
	margin-bottom: 12px;
}

.ost-star {
	color: var(--ost-quote-mark);
	font-size: 16px;
	letter-spacing: 1px;
}

.ost-star.is-filled {
	color: var(--ost-accent);
}

.ost-quote {
	color: var(--ost-text);
	font-size: 18px;
	line-height: 1.6;
	font-style: italic;
	font-weight: 600;
}

.ost-quote p {
	margin: 0 0 12px;
}

.ost-quote p:last-child {
	margin-bottom: 0;
}

.ost-author {
	margin-top: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ost-avatar,
.ost-avatar img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 10px;
}

.ost-author-line {
	color: var(--ost-text-muted);
	font-size: 14px;
	letter-spacing: 0.2px;
}

/* Grid layout */

.ost-layout-grid .ost-track {
	display: grid;
	grid-template-columns: repeat(var(--ost-columns), 1fr);
	gap: 32px;
}

@media (max-width: 900px) {
	.ost-layout-grid .ost-track {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.ost-layout-grid .ost-track {
		grid-template-columns: 1fr;
	}
}

/* Carousel layout */

.ost-viewport-wrap {
	position: relative;
	padding-left: 48px;
	padding-right: 48px;
}

.ost-viewport {
	overflow: hidden;
	contain: paint;
}

.ost-layout-carousel .ost-track {
	display: flex;
	align-items: flex-start;
	transition: transform 0.4s ease;
	will-change: transform;
}

.ost-layout-carousel .ost-slide {
	flex: 0 0 calc(100% / 3);
	padding: 0 16px;
	overflow: hidden;
}

@media (max-width: 900px) {
	.ost-layout-carousel .ost-slide {
		flex-basis: calc(100% / 2);
	}
}

@media (max-width: 600px) {
	.ost-viewport-wrap {
		padding-left: 36px;
		padding-right: 36px;
	}
	.ost-layout-carousel .ost-slide {
		flex-basis: 100%;
	}
}

.ost-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #b9c0c6;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 8px;
	transition: color 0.2s ease;
	z-index: 2;
}

.ost-nav:hover {
	color: var(--ost-text);
}

.ost-nav:disabled {
	opacity: 0.3;
	cursor: default;
}

.ost-nav.ost-prev {
	left: 0;
}

.ost-nav.ost-next {
	right: 0;
}

@media (max-width: 600px) {
	.ost-nav {
		font-size: 18px;
	}
}

.ost-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}

.ost-dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--ost-quote-mark);
	cursor: pointer;
}

.ost-dots button.is-active {
	background: var(--ost-text-muted);
}
