/* =========================================================================
 * X3SALES DV Services — element vhm_thm_svc
 * Khối "Điểm khác biệt + Dịch vụ chính": ảnh nền tối phủ lớp sáng, tiêu đề,
 * 2 ảnh hai bên + danh sách đặc điểm ở giữa, tiêu đề dịch vụ, 4 thẻ dịch vụ,
 * nút CTA + nút CTA nổi. Dựng bằng flex/grid (responsive) thay absolute px.
 * Màu/ảnh đổ qua --thm-svc-*. Scope dưới .thm-svc.
 * ========================================================================= */

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

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

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

.thm-svc__overlay {
	position: absolute;
	inset: 0;
	background-color: #f1f3f4;
	opacity: 0.89;
	pointer-events: none;
}

.thm-svc__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

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

.thm-svc__head-title,
.thm-svc__subtitle {
	margin: 0;
	font-family: "THM Megante", Arial, sans-serif;
	font-weight: bold;
	font-size: 30px;
	line-height: 1.6;
	color: var(--thm-svc-gold, #264b9c);
	text-transform: uppercase;
	text-align: center;
}

.thm-svc__head-title {
	animation: thmFadeInDown 1s ease 0s 1;
}

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

.thm-svc__subtitle {
	margin: 55px 0 35px;
}

/* -------- Điểm khác biệt: ảnh trái + đặc điểm giữa + ảnh phải -------- */
.thm-svc__diff {
	display: flex;
	align-items: stretch;
	gap: 28px;
}

.thm-svc__photo {
	position: relative;
	flex: 0 0 27%;
	max-width: 27%;
	min-height: 480px;
}

.thm-svc__img {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.thm-svc__img-bg {
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

.thm-svc__photo-left .thm-svc__img {
	animation: thmFadeInLeft 1s ease 0s 1;
}

.thm-svc__photo-right .thm-svc__img {
	animation: thmFadeInRight 1s ease 0s 1;
}

.thm-svc__frame {
	position: absolute;
	top: 10px;
	left: 10px;
	right: -8px;
	bottom: -8px;
	border: 1.5px solid var(--thm-svc-frame, #a3854e);
	pointer-events: none;
}

.thm-svc__bracket-v {
	position: absolute;
	top: 16%;
	left: -10px;
	width: 2px;
	height: 60%;
	background-color: #000000;
}

/* Cột đặc điểm (giữa) */
.thm-svc__features {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 26px;
	padding: 30px 24px;
	background-color: #f1f3f4;
}

.thm-svc__feature-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.thm-svc__feature-icon {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
}

.thm-svc__feature-icon-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.thm-svc__feature-title {
	margin: 0;
	font-family: "THM Megante", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #000000;
}

.thm-svc__feature-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #000000;
	text-align: justify;
}

/* -------- Thẻ dịch vụ -------- */
.thm-svc__cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-top: 60px;
}

.thm-svc__card {
	position: relative;
	margin-top: 42px;
	padding: 56px 18px 26px;
	background-color: var(--thm-svc-gold, #264b9c);
	border-radius: 8px;
	box-shadow: 0 15px 20px -15px #000000;
}

.thm-svc__card-circle {
	position: absolute;
	top: -42px;
	left: 50%;
	transform: translateX(-50%);
	width: 84px;
	height: 84px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #ffffff;
	border-radius: 50%;
	overflow: hidden;
}

.thm-svc__card-icon {
	width: 50px;
	height: 50px;
}

.thm-svc__card-icon-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.thm-svc__card-title {
	margin: 0 0 12px;
	font-family: "THM Megante", Arial, sans-serif;
	font-size: 19px;
	line-height: 1.5;
	color: #ffffff;
	text-align: center;
}

.thm-svc__card-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #ffffff;
	text-align: justify;
}

/* -------- Nút CTA -------- */
.thm-svc__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 304px;
	max-width: 100%;
	height: 44px;
	margin: 45px auto 0;
	padding: 0 16px;
	background-color: var(--thm-svc-btn, #e00101);
	color: #ffffff;
	font-size: 14px;
	font-weight: bold;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	border-radius: 2px;
	cursor: pointer;
}

.thm-svc__btn:hover {
	color: #ffffff;
	opacity: 0.92;
}

.thm-svc__btn:active {
	transform: translateY(2px);
	transition: transform 0.2s linear;
}

.thm-svc__btn-fixed {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 5px;
	z-index: 900050;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 300px;
	max-width: calc(100% - 20px);
	height: 40px;
	margin: 0 auto;
	background-color: var(--thm-svc-btn, #e00101);
	color: #ffffff;
	font-size: 14px;
	font-weight: bold;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	border-radius: 2px;
	cursor: pointer;
	animation: thmSvcPulse 1s linear 1s infinite;
}

.thm-svc__btn-fixed:hover {
	color: #ffffff;
}

@keyframes thmSvcPulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.08); }
	100% { transform: scale(1); }
}

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

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

@keyframes thmFadeInRight {
	0% { opacity: 0; transform: translateX(20px); }
	100% { opacity: 1; transform: translateX(0); }
}

/* -------- Tablet (≤ 991px): ẩn 2 ảnh bên, thẻ 2 cột -------- */
@media (max-width: 991px) {
	.thm-svc__head-title,
	.thm-svc__subtitle {
		font-size: 25px;
	}

	.thm-svc__photo {
		display: none;
	}

	.thm-svc__features {
		padding: 24px 16px;
	}

	.thm-svc__cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 50px 24px;
	}
}

/* -------- Mobile (≤ 575px): thẻ 1 cột -------- */
@media (max-width: 575px) {
	.thm-svc__cards {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
 * Chế độ UX Builder ("chip viền builder"): đặc điểm & thẻ dịch vụ hiện thành
 * chip CÓ VIỀN để dễ nhìn/kéo-thả/sửa. Frontend giữ layout thật.
 * ---------------------------------------------------------------------- */
.thm-svc__builder-note {
	margin: 0 0 14px;
	color: #333;
	font-size: 13px;
	font-style: italic;
}

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

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

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

.thm-svc__b-icon {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
}

.thm-svc__b-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

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

.thm-svc__b-title {
	display: block;
	font-weight: 700;
	font-size: 14px;
}

.thm-svc__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;
}
