.hk-testi__head {
	max-width: 666px;
	margin: 0 auto 59px;
	text-align: center;
}

.hk-testi__title {
	margin: 0;
	color: var(--hk-brown);
	font-family: var(--hk-font);
	font-size: clamp(30px, 2.8vw, 40px);
	font-weight: 600;
	line-height: 1.3;
}

.hk-testi__desc {
	margin: 11px 0 0;
	color: #000;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

.hk-testi__slider {
	position: relative;
}

.hk-testi__viewport {
	overflow: hidden;
}

/* Trước khi Swiper khởi tạo: hiển thị dạng hàng ngang, không vỡ layout */
.hk-testi__viewport:not(.swiper-initialized) .swiper-wrapper {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 86px) / 3);
	gap: 43px;
}

.hk-testi__slide {
	height: auto;
}

.hk-testi__card {
	display: flex;
	flex-direction: column;
	gap: 28px;
	height: 100%;
	min-height: 268px;
	margin: 0;
	padding: 18px 24px 28px;
	border-radius: 29px;
	background: var(--hk-cream-2);
}

.hk-testi__top {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.hk-testi__avatar {
	position: relative;
	flex: none;
	width: 96px;
	aspect-ratio: 96 / 93;
	overflow: hidden;
}

.hk-testi__avatar--mask {
	-webkit-mask: url("../../../assets/images/decor/avatar-blob.svg") center / 100% 100% no-repeat;
	mask: url("../../../assets/images/decor/avatar-blob.svg") center / 100% 100% no-repeat;
}

.hk-testi__avatar--rounded {
	border-radius: 50%;
}

.hk-testi__avatar-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.hk-testi__who {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 7px;
}

.hk-testi__name {
	color: var(--hk-brown-2);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.28;
}

.hk-testi__stars {
	display: inline-flex;
	gap: 2px;
	color: var(--hk-orange);
	font-size: 30px;
}

.hk-testi__quote {
	margin: 0;
	padding: 0;
	border: 0;
	color: #000;
	font-size: 16px;
	font-style: italic;
	line-height: 1.375;
}

.hk-testi__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
}

.hk-testi__nav:hover {
	transform: translateY(-50%) scale(1.08);
}

.hk-testi__nav.hk-nav--prev {
	left: -15px;
}

.hk-testi__nav.hk-nav--next {
	right: -15px;
}

.hk-testi__dots.swiper-pagination {
	position: static;
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 24px;
}

.hk-testi__dots.swiper-pagination-lock {
	display: none;
}

.hk-testi__dots .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	margin: 0 !important;
	background: var(--hk-brown-2);
	opacity: .25;
	transition: width .25s var(--hk-ease), opacity .25s;
}

.hk-testi__dots .swiper-pagination-bullet-active {
	width: 26px;
	border-radius: 6px;
	background: var(--hk-orange);
	opacity: 1;
}

@media (max-width: 1024px) {
	.hk-testi__head {
		margin-bottom: 40px;
	}

	.hk-testi__viewport:not(.swiper-initialized) .swiper-wrapper {
		grid-auto-columns: calc((100% - 24px) / 2);
		gap: 24px;
	}
}

@media (max-width: 767px) {
	.hk-testi__viewport:not(.swiper-initialized) .swiper-wrapper {
		grid-auto-columns: 100%;
	}

	.hk-testi__card {
		gap: 20px;
		padding: 18px 18px 24px;
	}

	.hk-testi__avatar {
		width: 72px;
	}

	.hk-testi__stars {
		font-size: 22px;
	}

	.hk-testi__nav.hk-nav--prev {
		left: -8px;
	}

	.hk-testi__nav.hk-nav--next {
		right: -8px;
	}
}
