/* =========================================================================
 * X3SALES DV About — element vhm_thm_about
 * Khối "Giới thiệu về": tiêu đề trên cùng, bên dưới là ảnh (trái, có khung
 * viền trang trí) + khối mô tả nền tối (phải, chồng nhẹ lên ảnh).
 * Dựng bằng flex (responsive) thay cho absolute px của bản gốc.
 * Màu/ảnh đổ qua --thm-about-* trên thẻ gốc. Scope dưới .thm-about.
 * ========================================================================= */

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

@font-face {
	font-family: "THM YenTu";
	src: url("https://w.ladicdn.com/5dadc2a03bf9ab4ea2cc8ccb/00190-utm-yen-tu-20230906145118-_w8hw.ttf") format("truetype");
	font-display: swap;
}

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

.thm-about {
	position: relative;
	width: 100%;
	padding: 40px 15px 60px;
	background-color: #f1f3f4;
	overflow: hidden;
}

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

/* -------- Tiêu đề -------- */
.thm-about__head {
	position: relative;
	margin-bottom: 40px;
	text-align: center;
}

.thm-about__subtitle {
	margin: 0;
	font-family: "THM YenTu", Arial, sans-serif;
	font-size: 45px;
	line-height: 1.3;
	color: #010101;
	animation: thmFadeInDown 1s ease 0s 1;
}

.thm-about__company {
	margin: 4px 0 0;
	font-family: "THM Megante", Arial, sans-serif;
	font-weight: bold;
	font-size: 30px;
	line-height: 1.4;
	color: var(--thm-about-company, #264b9c);
	text-transform: uppercase;
	animation: thmFadeInDown 1s ease 0s 1;
}

.thm-about__bracket {
	display: block;
	width: 121px;
	height: 2px;
	margin: 14px auto 0;
	background-color: var(--thm-about-company, #264b9c);
}

/* -------- Thân: ảnh + khối mô tả -------- */
.thm-about__body {
	position: relative;
	display: flex;
	align-items: center;
}

/* Ảnh (trái) — nằm TRÊN khối mô tả ở vùng chồng nhau. */
.thm-about__media {
	position: relative;
	z-index: 2;
	flex: 0 0 45%;
	max-width: 45%;
	animation: thmFadeInLeft 1s ease 0s 1;
}

.thm-about__image {
	position: relative;
	width: 100%;
	aspect-ratio: 536 / 357;
	overflow: hidden;
}

.thm-about__image-bg {
	position: absolute;
	inset: 0;
	background-image: var(--thm-about-img, none);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	transform: scale(1.06);
}

/* Khung viền lệch chồng lên ảnh */
.thm-about__frame {
	position: absolute;
	top: 6px;
	left: 10px;
	right: -10px;
	bottom: -6px;
	border: 1.5px solid var(--thm-about-frame, #a3854e);
	pointer-events: none;
}

/* Ngoặc trang trí dọc bên phải ảnh */
.thm-about__bracket2 {
	position: absolute;
	top: 12%;
	right: -12px;
	width: 1.5px;
	height: 74%;
	background-color: #000000;
}

/* Khối mô tả (phải) — chồng nhẹ xuống dưới ảnh. */
.thm-about__textbox {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	min-height: 360px;
	margin-left: -8%;
	display: flex;
	align-items: center;
	padding: 44px 44px 44px 16%;
}

.thm-about__overlay {
	position: absolute;
	inset: 0;
	background-color: var(--thm-about-box, #060606);
	opacity: 0.8;
}

.thm-about__desc {
	position: relative;
	z-index: 1;
}

.thm-about__desc .thm-about__p {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.6;
	color: #ffffff;
	text-align: justify;
	word-break: break-word;
}

.thm-about__desc .thm-about__p:last-child {
	margin-bottom: 0;
}

@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); }
}

/* -------- Mobile / tablet nhỏ (< 992px): xếp dọc -------- */
@media (max-width: 991px) {
	.thm-about__subtitle {
		font-size: 32px;
	}

	.thm-about__company {
		font-size: 25px;
	}

	.thm-about__body {
		flex-direction: column;
		align-items: stretch;
	}

	.thm-about__media {
		flex-basis: auto;
		max-width: 100%;
		margin-bottom: 28px;
	}

	.thm-about__frame {
		right: 8px;
	}

	.thm-about__bracket2 {
		right: 2px;
	}

	.thm-about__textbox {
		min-height: 0;
		margin-left: 0;
		padding: 28px 18px;
	}
}

/* -------------------------------------------------------------------------
 * Chế độ UX Builder ("chip viền builder"): các đoạn mô tả hiện thành chip CÓ
 * VIỀN trong khối mô tả để người dùng dễ nhìn/kéo-thả/sửa. Frontend giữ layout thật.
 * ---------------------------------------------------------------------- */
.thm-about__builder-items {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.thm-about__builder-note {
	margin: 0;
	color: #fff;
	font-size: 13px;
	font-style: italic;
	opacity: 0.85;
}

.thm-about__b-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 12px;
	border: 1px dashed rgba(255, 255, 255, 0.7);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
}

.thm-about__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-about__b-text {
	flex: 1 1 auto;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
