/* =========================================================================
 * X3SALES DV Feedback — element vhm_thm_fb
 * Khối "Feedback khách hàng": tiêu đề + carousel thẻ feedback (ngoặc kép trang
 * trí, nội dung, avatar tròn, tên, địa điểm). Track ngang (translateX) responsive
 * 2 thẻ/màn desktop → 1 thẻ mobile. Màu/ảnh đổ qua --thm-fb-*. Scope dưới .thm-fb.
 * ========================================================================= */

@font-face {
	font-family: "THM Megante";
	src: url("https://w.ladicdn.com/5dadc2a03bf9ab4ea2cc8ccb/svn-megante-20231018093528-hgdbo.otf");
	font-display: swap;
}

.thm-fb,
.thm-fb * {
	box-sizing: border-box;
}

.thm-fb {
	position: relative;
	width: 100%;
	padding: 40px 15px 50px;
	background-image: var(--thm-fb-bg, none);
	background-size: cover;
	background-position: 50% 0%;
	background-repeat: no-repeat;
	overflow: hidden;
}

.thm-fb__inner {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

/* -------- Tiêu đề -------- */
.thm-fb__head {
	margin-bottom: 28px;
	text-align: center;
}

.thm-fb__title {
	margin: 0;
	font-family: "THM Megante", Arial, sans-serif;
	font-weight: bold;
	font-size: 30px;
	line-height: 1.6;
	color: var(--thm-fb-gold, #264b9c);
	text-transform: uppercase;
	text-align: center;
	animation: thmFadeInDown 1s ease 0s 1;
}

.thm-fb__bracket {
	display: block;
	width: 121px;
	height: 2px;
	margin: 10px auto 0;
	background-color: var(--thm-fb-gold, #264b9c);
}

/* -------- Carousel -------- */
.thm-fb__carousel {
	position: relative;
}

.thm-fb__viewport {
	overflow: hidden;
}

.thm-fb__track {
	display: flex;
	gap: 40px;
	transition: transform 350ms ease-in-out;
}

/* 2 thẻ / màn hình (desktop). */
.thm-fb__item {
	flex: 0 0 calc((100% - 40px) / 2);
	max-width: calc((100% - 40px) / 2);
}

.thm-fb__card {
	position: relative;
	height: 100%;
	min-height: 280px;
	padding: 70px 27px 24px;
	background-color: var(--thm-fb-card, #dad0be);
	overflow: hidden;
}

.thm-fb__quote {
	position: absolute;
	top: -8px;
	left: 24px;
	z-index: 0;
	width: 170px;
	height: 170px;
}

.thm-fb__quote-svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: var(--thm-fb-quote, #f1f3f4);
}

.thm-fb__text {
	position: relative;
	z-index: 1;
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.6;
	color: #000000;
	text-align: left;
}

.thm-fb__person {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 16px;
}

.thm-fb__avatar {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	background-color: rgba(0, 0, 0, 0.06);
}

.thm-fb__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thm-fb__meta {
	min-width: 0;
}

.thm-fb__name {
	margin: 0;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.4;
	color: #000000;
	text-transform: uppercase;
}

.thm-fb__loc {
	margin: 2px 0 0;
	font-family: Mulish, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: #737373;
}

/* -------- Mũi tên -------- */
.thm-fb__arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 33px;
	height: 33px;
	background-repeat: no-repeat;
	background-position: center center;
	background-image: url("data:image/svg+xml;utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='%23000'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.00015 0.585938L18.4144 12.0002L7.00015 23.4144L5.58594 22.0002L15.5859 12.0002L5.58594 2.00015L7.00015 0.585938Z'%3E%3C/path%3E%3C/svg%3E");
	cursor: pointer;
	transform: translateY(-50%);
}

.thm-fb__arrow--left {
	left: -6px;
	transform: translateY(-50%) rotateY(180deg);
}

.thm-fb__arrow--right {
	right: -6px;
}

@keyframes thmFadeInDown {
	0% { opacity: 0; transform: translateY(-20px); }
	100% { opacity: 1; transform: translateY(0); }
}

/* -------- Mobile (≤ 767px): 1 thẻ / màn hình -------- */
@media (max-width: 767px) {
	.thm-fb__title {
		font-size: 25px;
	}

	.thm-fb__track {
		gap: 16px;
	}

	.thm-fb__item {
		flex-basis: 100%;
		max-width: 100%;
	}

	.thm-fb__arrow--left {
		left: 2px;
	}

	.thm-fb__arrow--right {
		right: 2px;
	}
}

/* -------------------------------------------------------------------------
 * Chế độ UX Builder ("chip viền builder"): feedback hiện thành chip CÓ VIỀN
 * (avatar + tên + trích nội dung) để dễ nhìn/kéo-thả/sửa. Frontend giữ carousel.
 * ---------------------------------------------------------------------- */
.thm-fb__builder-note {
	margin: 0 0 14px;
	color: #fff;
	font-size: 13px;
	font-style: italic;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.thm-fb__builder-items {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.thm-fb__b-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px dashed rgba(0, 0, 0, 0.4);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
}

.thm-fb__b-tag {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--thm-fb-gold, #264b9c);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.thm-fb__b-avatar {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #e7e9ea;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

.thm-fb__b-body {
	flex: 1 1 auto;
	min-width: 0;
}

.thm-fb__b-name {
	display: block;
	font-weight: 700;
	font-size: 14px;
}

.thm-fb__b-text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.5;
	opacity: 0.85;
}
