/* =========================================================================
 * X3SALES DV Hero — element vhm_thm_hero
 * Hero 2 cột: nội dung (tiêu đề + danh sách + CTA) trái, slider ảnh phải,
 * trên ảnh nền riêng cho PC / tablet / mobile (đổ qua --thm-bg-*).
 * Toàn bộ scope dưới .thm-hero để không ảnh hưởng phần khác của site.
 * ========================================================================= */

@font-face {
	font-family: "THM Megante";
	src: url("https://w.ladicdn.com/5dadc2a03bf9ab4ea2cc8ccb/svn-megante-20231018093528-hgdbo.otf");
	font-display: swap;
}

.thm-hero,
.thm-hero * {
	box-sizing: border-box;
}

.thm-hero {
	position: relative;
	width: 100%;
	padding: 50px 15px;
	/* Ảnh nền PC mặc định; tablet/mobile ghi đè ở media query bên dưới. */
	background-image: var(--thm-bg-pc, none);
	background-size: cover;
	background-position: 50% 0%;
	background-repeat: no-repeat;
	overflow: hidden;
}

.thm-hero__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

/* -------- Cột nội dung -------- */
.thm-hero__content {
	flex: 1 1 auto;
	min-width: 0;
}

.thm-hero__title {
	margin: 0;
	font-family: "THM Megante", Arial, sans-serif;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.6;
	color: #ffffff;
	text-align: left;
	text-transform: uppercase;
	text-shadow: 1px 2px 3px #000000;
}

.thm-hero__title span {
	display: inline;
	font-size: 24px;
}

.thm-hero__list {
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	line-height: 1.6;
	color: #ffffff;
}

.thm-hero__list li {
	position: relative;
	padding-left: 36px;
	padding-bottom: 8px;
}

.thm-hero__list li::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 25px;
	height: 25px;
	background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='69px' height='69px' viewBox='0 0 24 24' fill='rgba(255,255,255,1)'%3E%3Cpath d='M19,19H5V5H15V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V11H19M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z'%3E%3C/path%3E%3C/svg%3E");
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.thm-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 257px;
	height: 49px;
	margin-top: 32px;
	padding: 0 24px;
	border-radius: 500px;
	background-image: url("https://w.ladicdn.com/s257x49/5dadc2a03bf9ab4ea2cc8ccb/mau-vang-dong-20210205051648-20210601151540.jpg");
	background-size: cover;
	background-position: 50% 0%;
	background-repeat: no-repeat;
	color: #000000;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 15px 20px -15px #000000;
	animation: thmPulse 1s linear 1s infinite;
	transition: all 150ms linear;
}

.thm-hero__button:hover {
	background-image: none;
	background-color: #e00101;
	color: #ffffff;
}

.thm-hero__button:active {
	transform: translateY(2px);
}

/* -------- Slider ảnh -------- */
.thm-hero__gallery {
	flex: 0 0 488px;
	max-width: 488px;
	border: 1px solid #ffe3ab;
	border-radius: 25px;
	overflow: hidden;
}

.thm-hero__slider {
	position: relative;
	width: 100%;
	/* Tỉ lệ ~ 488x478 của thiết kế gốc. */
	aspect-ratio: 488 / 478;
	overflow: hidden;
}

.thm-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.02);
	transition: opacity 500ms ease, visibility 500ms ease, transform 500ms ease;
}

.thm-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
	z-index: 2;
}

.thm-hero__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Mũi tên điều hướng */
.thm-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 33px;
	height: 33px;
	padding: 0;
	border: 0;
	background-color: transparent;
	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");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 24px 24px;
	cursor: pointer;
	transform: translateY(-50%);
}

.thm-hero__arrow--prev {
	left: 5px;
	transform: translateY(-50%) rotateY(180deg);
}

.thm-hero__arrow--next {
	right: 5px;
}

@keyframes thmPulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

/* -------- Tablet (768px – 1023px) -------- */
@media (min-width: 768px) and (max-width: 1023px) {
	.thm-hero {
		background-image: var(--thm-bg-tablet, var(--thm-bg-pc, none));
	}

	.thm-hero__title {
		font-size: 28px;
	}

	.thm-hero__gallery {
		flex-basis: 380px;
		max-width: 380px;
	}
}

/* -------- Mobile (< 768px) -------- */
@media (max-width: 767px) {
	.thm-hero {
		padding: 26px 10px;
		background-image: var(--thm-bg-mobile, var(--thm-bg-pc, none));
	}

	.thm-hero__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
	}

	.thm-hero__title {
		font-size: 23px;
		line-height: 1.8;
	}

	.thm-hero__title span {
		font-size: 24px;
	}

	.thm-hero__list {
		margin-top: 18px;
	}

	.thm-hero__button {
		min-width: 208px;
		font-size: 16px;
		background-image: url("https://w.ladicdn.com/s208x49/5dadc2a03bf9ab4ea2cc8ccb/mau-vang-dong-20210205051648-20210601151540.jpg");
	}

	.thm-hero__gallery {
		flex-basis: auto;
		max-width: 100%;
	}
}

/* -------------------------------------------------------------------------
 * Chế độ UX Builder: hiển thị con dạng chip CÓ VIỀN để người dùng dễ nhìn/sửa
 * (bố cục 2 cột thật chỉ áp dụng ở frontend).
 * ---------------------------------------------------------------------- */
.thm-hero--builder .thm-hero__inner--builder {
	display: block;
	max-width: 100%;
}

.thm-hero--builder .thm-hero__builder-note {
	margin: 12px 0;
	padding: 8px 12px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 13px;
	line-height: 1.5;
}

.thm-hero--builder .thm-hero__builder-items {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.thm-hero__b-item {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 6px 12px;
	border: 1px dashed rgba(255, 255, 255, 0.7);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 14px;
}

.thm-hero__b-item--li {
	flex: 1 1 100%;
}

.thm-hero__b-item--slide {
	flex: 0 0 auto;
}

.thm-hero__b-item--slide img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 6px;
}

.thm-hero__b-tag {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--fs-color-primary, #264b9c);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.thm-hero__b-empty {
	opacity: 0.7;
	font-style: italic;
}
