/* Hero bản D — "Bento sáng 3D" (25/11/2026).
   Mọi bộ chọn mở đầu bằng .hx-d (hero) hoặc body.hx-d (thanh menu). Không @import, không URL ngoài, không nesting. */

/* ===== 0. Thanh menu (nền sáng, phẳng, liền một mặt với hero) ===== */
body.hx-d { background: #F5F8FC; }
body.hx-d .cvm-header:not(.is-stuck) { background: #F5F8FC !important; box-shadow: none !important; border: 0 !important; }
body.hx-d .cvm-header a.custom-logo-link::after { display: none !important; }
body.hx-d .cvm-header__cta .wp-element-button {
	border-radius: 999px !important; background: #0150AC !important; color: #fff !important;
	box-shadow: 0 1px 2px rgba(1, 36, 111, .18), 0 10px 20px -14px rgba(1, 80, 172, .7) !important;
	transition: background-color .25s, transform .35s cubic-bezier(.2, .8, .2, 1) !important;
}
body.hx-d .cvm-header__cta .wp-element-button:hover { background: #01429A !important; transform: translateY(-1px); }

/* ===== 1. Khung ===== */
.hx-d.hx {
	--d-navy: #071B4D; --d-xanh: #0150AC; --d-sang: #0A84FF; --d-than: #3A4A68;
	--d-em: cubic-bezier(.2, .8, .2, 1);
	position: relative; margin-block: 0 !important; min-height: 0;
	padding: 12px var(--cvm-gutter, 24px) calc(var(--hm-lap, 32px) + 28px);
	background: #F5F8FC; color: var(--d-navy); overflow-x: clip;
}
.hx-d__luoi { display: grid; gap: 16px; max-width: var(--cvm-content, 1320px); margin: 0 auto; }
.hx-d .hx-d__vong { list-style: none; margin: 0; padding: 0; }
.hx-d .hx-d__o { list-style: none; margin: 0; padding: 0; }

/* ===== 2. Ô chữ ===== */
.hx-d__chu {
	position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0;
	animation: hx-d-vao .95s var(--d-em) backwards;
}
.hx-d .hx-d__h1 {
	margin: 0; color: var(--d-navy);
	font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 800; font-size: 38px; line-height: 1.08; letter-spacing: -.035em;
}
.hx-d .hx-d__h1 mark {
	padding: 0; background: linear-gradient(92deg, #0150AC 0%, #0A6FE6 55%, #0A84FF 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.hx-d .hx-d__dan { margin: 16px 0 0; max-width: 62ch; color: var(--d-than); font-size: 16px; line-height: 1.6; }
.hx-d .hx-d__nut { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.hx-d .hx-d__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px;
	border-radius: 999px; border: 1px solid transparent; text-decoration: none; white-space: nowrap;
	font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
	transition: transform .4s var(--d-em), background-color .25s, border-color .25s;
}
.hx-d .hx-d__btn--goi { background: var(--d-xanh); color: #fff; box-shadow: 0 1px 2px rgba(1, 36, 111, .2), 0 14px 24px -16px rgba(1, 80, 172, .75); }
.hx-d .hx-d__btn--goi:hover { background: #01429A; transform: translateY(-2px); }
.hx-d .hx-d__btn--zalo { background: #fff; color: var(--d-navy); border-color: #D3DEEF; box-shadow: 0 1px 2px rgba(7, 27, 77, .05); }
.hx-d .hx-d__btn--zalo:hover { border-color: var(--d-xanh); transform: translateY(-2px); }
.hx-d .hx-d__btn img { width: 24px; height: 24px; border-radius: 7px; }
.hx-d .hx-d__btn:focus-visible, .hx-d .hx-d__loi a:focus-visible { outline: 3px solid #0A84FF; outline-offset: 3px; }

/* ===== 3. Ô dịch vụ — phần chung ===== */
.hx-d__o { position: relative; min-width: 0; min-height: 0; animation: hx-d-vao .95s var(--d-em) backwards; }
.hx-d__o--1 { animation-delay: .08s; --nen: linear-gradient(140deg, #F4F8FF 0%, #DCEAFF 100%); --chu-o: #071B4D; --so-nen: #fff; --so-chu: #0150AC; --vien: #0A84FF; }
.hx-d__o--2 { animation-delay: .16s; --nen: linear-gradient(155deg, #0A84FF 0%, #0150AC 62%, #01429A 100%); --chu-o: #fff; --so-nen: rgba(255, 255, 255, .18); --so-chu: #fff; --vien: #9BD3FF; }
.hx-d__o--3 { animation-delay: .24s; --nen: linear-gradient(165deg, #01246F 0%, #03174A 100%); --chu-o: #fff; --so-nen: rgba(255, 255, 255, .14); --so-chu: #fff; --vien: #4FB0FF; }
.hx-d__o--4 { animation-delay: .32s; --nen: linear-gradient(150deg, #E9F7FF 0%, #C9EBFF 100%); --chu-o: #071B4D; --so-nen: #fff; --so-chu: #0150AC; --vien: #0A84FF; }
.hx-d__o--5 { animation-delay: .40s; --nen: linear-gradient(150deg, #FFFFFF 0%, #E9F0FF 100%); --chu-o: #071B4D; --so-nen: #EAF2FF; --so-chu: #0150AC; --vien: #0A84FF; }

.hx-d__mat {
	position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 24px; overflow: hidden; isolation: isolate;
	background: var(--nen); color: var(--chu-o);
	box-shadow: 0 0 0 1px rgba(7, 27, 77, .05), 0 1px 2px rgba(7, 27, 77, .05), 0 18px 36px -24px rgba(7, 27, 77, .28);
}
.hx-d__canh { position: relative; order: 2; height: 216px; overflow: hidden; }
.hx-d__canh img { display: block; max-width: none; height: auto; }
.hx-d .hx-d__chon {
	order: 1; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%;
	margin: 0; padding: 20px 20px 12px; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; text-align: left; cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.hx-d .hx-d__so {
	display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 42px; padding: 0 11px; border-radius: 999px;
	background: var(--so-nen); color: var(--so-chu); font: 700 14px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .02em;
	transition: background-color .4s, color .4s;
}
.hx-d .hx-d__ten { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.hx-d .hx-d__chon:focus-visible { outline: none; }
.hx-d .hx-d__chon:focus-visible .hx-d__ten { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hx-d__o.is-active .hx-d__so { background: #0150AC; color: #fff; }
.hx-d__o--2.is-active .hx-d__so, .hx-d__o--3.is-active .hx-d__so { background: #fff; color: #0150AC; }

.hx-d__loi { order: 3; position: relative; z-index: 3; padding: 14px 20px 22px; }
.hx-d .hx-d__loi p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: inherit; opacity: .92; }
.hx-d .hx-d__loi a { display: inline; color: inherit; font-weight: 600; font-size: 15px; line-height: 1.35; text-decoration: none; }
.hx-d .hx-d__lien { white-space: nowrap; }
.hx-d .hx-d__loi a svg { display: inline-block; vertical-align: -3px; margin-left: 2px; transition: transform .35s var(--d-em); }
.hx-d .hx-d__loi a:hover svg { transform: translateX(4px); }
.hx-d__o--1 .hx-d__loi a, .hx-d__o--4 .hx-d__loi a, .hx-d__o--5 .hx-d__loi a { color: #0150AC; }
.hx-d__dem { position: absolute; left: 20px; right: 20px; bottom: 10px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0; transform: scaleX(0); transform-origin: 0 50%; }
.hx-d__o.is-active .hx-d__dem { animation: hx-d-dem 5.2s linear both; }
.hx-d__loa { display: none; }

.hx-d .hx-d__kho { position: absolute; z-index: 2; margin: 0; pointer-events: none; display: none; }
.hx-d .hx-d__moc {
	margin-top: -2px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
	color: #BFE2FF; font: 600 13px/1.2 Inter, sans-serif; white-space: nowrap;
}

/* ===== 4. Cảnh trong từng ô ===== */
/* 01 — bức tường mẫu web nghiêng, trôi chậm */
.hx-d__o--1 .hx-d__canh { perspective: 1300px; }
.hx-d__tuong {
	position: absolute; left: 50%; top: 50%; display: flex; gap: 14px; width: 874px; height: 1500px; margin: -750px 0 0 -437px;
	transform: rotateX(48deg) rotateZ(-26deg) scale(var(--tuong-s, .8));
}
.hx-d__cot { flex: 0 0 208px; display: flex; flex-direction: column; gap: 14px; animation: hx-d-troi 90s linear infinite; will-change: transform; }
.hx-d__cot:nth-child(even) { animation-direction: reverse; }
.hx-d__cot img { width: 208px; border-radius: 10px; filter: drop-shadow(0 10px 14px rgba(7, 27, 77, .22)); }
/* 02 — web khách thật trên thiết bị */
.hx-d__o--2 .hx-d__canh img { position: absolute; right: -10px; top: 12px; width: 420px; animation: hx-d-noi 7s ease-in-out infinite alternate; }
/* 03 — CVM Helm */
.hx-d__o--3 .hx-d__canh img { position: absolute; left: 20px; top: 8px; width: 520px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 40px -18px rgba(0, 0, 0, .6); animation: hx-d-noi 9s ease-in-out infinite alternate; }
/* 04 — CVM Sentinel */
.hx-d__o--4 .hx-d__canh img { position: absolute; left: 20px; top: 8px; width: 470px; border-radius: 12px; box-shadow: 0 22px 36px -18px rgba(7, 27, 77, .5); animation: hx-d-noi 11s ease-in-out infinite alternate-reverse; }
/* 05 — phiếu chẩn đoán */
.hx-d__o--5 .hx-d__canh img { position: absolute; left: 22px; top: 10px; width: 330px; border-radius: 10px; transform: rotate(-3deg); box-shadow: 0 0 0 1px rgba(7, 27, 77, .06), 0 20px 34px -18px rgba(7, 27, 77, .4); animation: hx-d-giay 8s ease-in-out infinite alternate; }

/* ===== 5. Điện thoại: băng vuốt ngang ===== */
.hx-d__tien { display: flex; justify-content: flex-start; gap: 6px; margin-top: 2px; }
.hx-d__tien i { display: block; width: 18px; height: 4px; border-radius: 4px; background: #C9D6EA; transition: background-color .3s, transform .4s var(--d-em); transform-origin: 0 50%; }
.hx-d__tien i.is-active { background: #0150AC; }

@media (max-width: 759px) {
	.hx-d.hx { padding-top: 8px; padding-bottom: calc(var(--hm-lap, 24px) + 28px); }
	.hx-d__luoi { gap: 20px; }
	.hx-d .hx-d__nut { flex-direction: column; gap: 10px; margin-top: 20px; }
	.hx-d .hx-d__btn { width: 100%; min-height: 54px; }
	.hx-d .hx-d__vong {
		display: flex; gap: 12px; margin-inline: calc(-1 * var(--cvm-gutter, 20px)); padding: 4px var(--cvm-gutter, 20px) 14px;
		overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--cvm-gutter, 20px); scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.hx-d .hx-d__vong::-webkit-scrollbar { display: none; }
	.hx-d__o { flex: 0 0 84%; scroll-snap-align: start; }
	.hx-d__o--1 { --tuong-s: .78; }
	.hx-d__o--1 .hx-d__canh { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
	.hx-d .hx-d__kho { display: flex; position: relative; order: 1; align-items: baseline; gap: 8px; margin: -4px 20px 0; }
	.hx-d .hx-d__kho strong { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.03em; color: #0150AC; font-variant-numeric: tabular-nums; }
	.hx-d .hx-d__kho span { font-size: 15px; font-weight: 600; color: #3A4A68; }
}

/* ===== 6. Từ 760px: ô là "cảnh" 3D, lời dẫn hiện theo lượt ===== */
@media (min-width: 760px) {
	.hx-d__tien { display: none; }
	.hx-d__luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hx-d .hx-d__vong { display: contents; }
	.hx-d__chu { grid-column: 1 / -1; padding: 40px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px rgba(7, 27, 77, .05), 0 1px 2px rgba(7, 27, 77, .05), 0 18px 36px -24px rgba(7, 27, 77, .28); }
	.hx-d .hx-d__h1 { font-size: 52px; }
	.hx-d .hx-d__dan { font-size: 17px; }
	.hx-d__o { height: 380px; }
	.hx-d__o--1 { grid-column: 1 / -1; height: 360px; }
	.hx-d__o--4, .hx-d__o--5 { height: 280px; }

	.hx-d__o::before {
		content: ""; position: absolute; inset: 16px 14px 0; border-radius: 28px; pointer-events: none;
		box-shadow: 0 34px 54px -18px rgba(1, 36, 111, .5); opacity: 0; transition: opacity .5s;
	}
	.hx-d__o.is-active::before, .hx-d__o.is-tro::before { opacity: 1; }
	.hx-d__mat {
		position: absolute; inset: 0; display: block; height: auto; border-radius: 28px;
		transform: perspective(1100px) translate3d(0, var(--ny, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
		transition: transform .7s var(--d-em); will-change: transform;
	}
	.hx-d__o.is-active .hx-d__mat { --ny: -6px; }
	.hx-d__o.is-tro .hx-d__mat { --ny: -6px; transition-duration: .18s; transition-timing-function: linear; }
	.hx-d__mat::after {
		content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none;
		box-shadow: inset 0 0 0 2px var(--vien); opacity: 0; transition: opacity .45s;
	}
	.hx-d__o.is-active .hx-d__mat::after { opacity: 1; }
	.hx-d__mat::before {
		content: ""; position: absolute; inset: -10% -40%; z-index: 4; pointer-events: none; opacity: 0;
		background: linear-gradient(104deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .42) 50%, rgba(255, 255, 255, 0) 58%);
		transform: translateX(-70%);
	}
	.hx-d__o.is-active .hx-d__mat::before { animation: hx-d-vet 1.25s .12s var(--d-em) both; }

	.hx-d__canh { position: absolute; inset: 0; height: auto; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform .7s var(--d-em); }
	.hx-d__o.is-tro .hx-d__canh { transition-duration: .18s; transition-timing-function: linear; }
	.hx-d .hx-d__chon { position: absolute; inset: 0; width: auto; padding: 24px; border-radius: 28px; }
	.hx-d .hx-d__ten { font-size: clamp(21px, 1.5vw, 27px); }
	.hx-d__loi {
		position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 16px 18px 22px; border-radius: 20px; background: #fff; color: #33425F;
		box-shadow: 0 0 0 1px rgba(7, 27, 77, .05), 0 16px 28px -14px rgba(1, 36, 111, .4);
		opacity: 0; visibility: hidden; transform: translateY(18px);
		transition: opacity .4s, transform .6s var(--d-em), visibility 0s .4s;
	}
	.hx-d__o.is-active .hx-d__loi { opacity: 1; visibility: visible; transform: none; transition: opacity .45s .12s, transform .7s .12s var(--d-em), visibility 0s 0s; }
	.hx-d .hx-d__loi p { margin-bottom: 8px; opacity: 1; }
	.hx-d .hx-d__loi a { color: #0150AC; }
	.hx-d__dem { left: 18px; right: 18px; bottom: 10px; background: #0A84FF; opacity: 1; }
	.hx-d__loi::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 10px; height: 2px; border-radius: 2px; background: #E4ECF8; z-index: -1; }

	.hx-d__loa {
		display: block; position: absolute; z-index: 4; left: 0; top: 0; width: 440px; height: 440px; margin: -220px 0 0 -220px; border-radius: 50%; pointer-events: none;
		background: radial-gradient(closest-side, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0)); opacity: 0;
		transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0); transition: opacity .4s;
	}
	.hx-d__o.is-tro .hx-d__loa { opacity: 1; }


	/* cảnh */
	.hx-d__o--1 { --tuong-s: 1; }
	.hx-d__o--1 .hx-d__loi { right: auto; width: min(66%, 344px); }
	.hx-d__o--1 .hx-d__canh { -webkit-mask-image: linear-gradient(96deg, transparent 40%, #000 53%); mask-image: linear-gradient(96deg, transparent 40%, #000 53%); }
	.hx-d__tuong { left: 72%; }
	.hx-d__o--1 .hx-d__mat { container-type: size; }
	.hx-d .hx-d__kho { display: block; left: 24px; top: 27cqh; transform: translate3d(0, calc(73cqh - 100% - 22px), 0); transition: transform .8s var(--d-em); }
	.hx-d__o--1.is-active .hx-d__kho { transform: none; }
	.hx-d .hx-d__kho strong { display: block; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 800; font-size: clamp(50px, 16.5cqh, 96px); line-height: .95; letter-spacing: -.045em; font-variant-numeric: tabular-nums; background: linear-gradient(92deg, #01246F, #0150AC 55%, #0A84FF); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
	.hx-d .hx-d__kho span { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; color: #3A4A68; }
	.hx-d__o--2 .hx-d__canh img { right: -12px; top: auto; bottom: 26px; width: 118%; }
	.hx-d__o--3 .hx-d__canh img { left: 24px; top: 150px; width: 150%; }
	.hx-d__o--4 .hx-d__canh img { left: 24px; top: 96px; width: 112%; }
	.hx-d__o--5 .hx-d__canh img { left: 24px; top: 96px; width: 108%; }
}

/* ===== 7. Máy tính: lưới bento 24 cột trong một màn hình ===== */
@media (min-width: 1100px) {
	.hx-d__luoi {
		grid-template-columns: repeat(24, minmax(0, 1fr)); grid-template-rows: 372fr 76fr 264fr;
		height: clamp(600px, calc(100svh - 84px - 12px - var(--hm-lap, 32px) - 28px), 900px);
	}
	.hx-d__chu { grid-column: 1 / 15; grid-row: 1 / 3; padding: 0 44px; container-type: size; }
	.hx-d .hx-d__h1 { font-size: clamp(44px, min(9.3cqw, 14cqh), 88px); }
	.hx-d .hx-d__dan { margin-top: clamp(14px, 4cqh, 24px); font-size: clamp(16px, 2.7cqw, 21px); }
	.hx-d .hx-d__nut { margin-top: clamp(20px, 6cqh, 36px); }
	.hx-d .hx-d__o { height: auto; }
	.hx-d__o--1 { grid-column: 15 / 25; grid-row: 1; }
	.hx-d__o--2 { grid-column: 20 / 25; grid-row: 2 / 4; }
	.hx-d__o--3 { grid-column: 15 / 20; grid-row: 2 / 4; }
	.hx-d__o--4 { grid-column: 7 / 15; grid-row: 3; }
	.hx-d__o--5 { grid-column: 1 / 7; grid-row: 3; }
	.hx-d__o--2 .hx-d__ten, .hx-d__o--3 .hx-d__ten { font-size: clamp(18px, 1.32vw, 26px); }
	.hx-d__o--4 .hx-d__loi { left: auto; width: min(64%, 300px); }
	.hx-d__o--2 .hx-d__canh img { width: 152%; }
	.hx-d__o--3 .hx-d__canh img { top: clamp(150px, 46%, 200px); width: 205%; }
	.hx-d__o--4 .hx-d__canh img { width: 112%; top: 108px; }
	.hx-d__o--5 .hx-d__canh img { top: 108px; }

	/* khớp nối: mũi tên nhỏ nằm giữa khe, sáng lên khi vòng đi qua */
	.hx-d__o::after, .hx-d__chu::after {
		content: ""; position: absolute; z-index: 6; width: 30px; height: 30px; border-radius: 50%; pointer-events: none;
		background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'%3E%3Cpath d='M10 15h10M16 11l4 4-4 4' stroke='%230150AC' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px no-repeat;
		box-shadow: 0 0 0 1px rgba(7, 27, 77, .08), 0 4px 10px -4px rgba(7, 27, 77, .35);
		transition: transform .5s var(--d-em);
	}
	.hx-d__o.is-noi::after, .hx-d__chu.is-noi::after {
		background-color: #0150AC;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'%3E%3Cpath d='M10 15h10M16 11l4 4-4 4' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	}
	.hx-d__chu::after { right: -23px; top: 36%; }
	.hx-d__chu.is-noi::after { transform: scale(1.18); }
	.hx-d__o--1::after { bottom: -23px; left: 74%; margin-left: -15px; transform: rotate(90deg); }
	.hx-d__o--1.is-noi::after { transform: rotate(90deg) scale(1.18); }
	.hx-d__o--2::after { left: -23px; top: 50%; margin-top: -15px; transform: rotate(180deg); }
	.hx-d__o--3::after { left: -23px; top: 66%; margin-top: -15px; transform: rotate(180deg); }
	.hx-d__o--4::after { left: -23px; top: 50%; margin-top: -15px; transform: rotate(180deg); }
	.hx-d__o--2.is-noi::after, .hx-d__o--3.is-noi::after, .hx-d__o--4.is-noi::after { transform: rotate(180deg) scale(1.18); }
	.hx-d__o--5::after { top: -23px; left: 50%; margin-left: -15px; transform: rotate(-90deg); }
	.hx-d__o--5.is-noi::after { transform: rotate(-90deg) scale(1.18); }
}

/* ===== 8. Tạm dừng / giảm chuyển động ===== */
@media (hover: hover) {
	.hx-d__vong:hover .hx-d__dem { animation-play-state: paused; }
}
.hx-d__vong:has(:focus-visible) .hx-d__dem { animation-play-state: paused; }
.hx-d.hx.is-ngoai .hx-d__cot, .hx-d.hx.is-ngoai .hx-d__canh img, .hx-d.hx.is-ngoai .hx-d__dem { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
	.hx-d__chu, .hx-d__o, .hx-d__cot, .hx-d .hx-d__canh img, .hx-d__o.is-active .hx-d__dem, .hx-d__o.is-active .hx-d__mat::before { animation: none; }
	.hx-d__mat, .hx-d__loi, .hx-d .hx-d__kho { transition: none; }
}

@keyframes hx-d-vao { from { opacity: 0; transform: perspective(1200px) translate3d(0, 36px, 0) rotateX(10deg) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes hx-d-troi { to { transform: translate3d(0, calc(-50% - 7px), 0); } }
@keyframes hx-d-noi { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-10px, -8px, 0); } }
@keyframes hx-d-giay { from { transform: rotate(-3deg) translate3d(0, 0, 0); } to { transform: rotate(-1.5deg) translate3d(0, -8px, 0); } }
@keyframes hx-d-dem { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hx-d-vet { from { opacity: 1; transform: translateX(-70%); } to { opacity: 1; transform: translateX(70%); } }
body.hx-d .cvm-header:not(.is-stuck) .cvm-header__inner { background: transparent !important; box-shadow: none !important; border-color: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

@media (min-width: 1700px) {
	.hx-d .hx-d__btn { min-height: 62px; padding: 0 34px; font-size: 18px; }
	.hx-d .hx-d__loi p, .hx-d .hx-d__loi a { font-size: 16px; }
	.hx-d .hx-d__so { height: 30px; font-size: 15px; }
	.hx-d .hx-d__moc { font-size: 14px; }
	.hx-d .hx-d__chon { padding: 28px; }
	.hx-d .hx-d__kho { left: 28px; }
	.hx-d .hx-d__kho span { font-size: 18px; }
}

/* ===== 28/11/2026 chủ site: ô 02–05 (thẻ 02, 03 rộng 280px; 04 rộng 440px; 05 rộng 360px) đổi sang hình vẽ thao tác (minh-hoa/mh-2…5.webp, ảnh có viền trong suốt 22px trái / 18px trên,
   khung thẻ rộng 320px (02, 03) / 440px (04, 05) ở cỡ 1x). Thẻ chiếm gần trọn bề ngang ô, cách mép trái 16px. ===== */
.hx-d .hx-d__o--2 .hx-d__canh img,
.hx-d .hx-d__o--3 .hx-d__canh img { left: calc(16px - (100% - 32px) * 22 / 280); right: auto; bottom: auto; top: 0; width: calc((100% - 32px) * 324 / 280); border-radius: 0; box-shadow: none; transform: none; animation: hx-d-noi2 8s ease-in-out infinite alternate; }
.hx-d .hx-d__o--4 .hx-d__canh img { left: calc(16px - (100% - 32px) * 22 / 440); right: auto; bottom: auto; top: 0; width: calc((100% - 32px) * 484 / 440); border-radius: 0; box-shadow: none; transform: none; animation: hx-d-noi2 10s ease-in-out infinite alternate-reverse; }
.hx-d .hx-d__o--5 .hx-d__canh img { left: calc(16px - (100% - 32px) * 22 / 360); right: auto; bottom: auto; top: 0; width: calc((100% - 32px) * 404 / 360); border-radius: 0; box-shadow: none; transform: none; animation: hx-d-noi2 10s ease-in-out infinite alternate-reverse; }
@media (min-width: 760px) {
	.hx-d .hx-d__o--2 .hx-d__canh img, .hx-d .hx-d__o--4 .hx-d__canh img, .hx-d .hx-d__o--5 .hx-d__canh img { top: 92px; }
	.hx-d .hx-d__o--3 .hx-d__canh img { top: 136px; }
}
@keyframes hx-d-noi2 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -6px, 0); } }
@media (prefers-reduced-motion: reduce) { .hx-d .hx-d__o .hx-d__canh img { animation: none; } }

/* ===== 28/11/2026 tiêu đề động (hero-d.js gắn .is-dong + bọc span): chữ thường hiện từng chữ, phần <mark> gõ từng ký tự ===== */
.hx-d .hx-d__h1.is-dong .hx-d__w { display: inline-block; opacity: 0; filter: blur(8px); transform: translate3d(0, .32em, 0); animation: hx-d-tu .7s var(--d-em) forwards; animation-delay: calc(var(--hd-bd) + var(--i) * var(--hd-tu)); }
.hx-d .hx-d__h1.is-dong .hx-d__tg { white-space: nowrap; }
.hx-d .hx-d__h1.is-dong .hx-d__k { visibility: hidden; animation: hx-d-go 1ms linear forwards; animation-delay: calc(var(--hd-gt) + var(--i) * var(--hd-go)); }
/* con trỏ: vạch xanh ngay sau ký tự vừa gõ — mỗi ký tự giữ vạch trong đúng một nhịp gõ */
.hx-d .hx-d__h1.is-dong .hx-d__k::after { content: ""; visibility: visible; position: absolute; width: .06em; height: .9em; margin: .12em 0 0 .02em; background: #0A84FF; border-radius: 2px; opacity: 0; animation: hx-d-vach calc(var(--hd-go) * 2) steps(1, end) forwards; animation-delay: calc(var(--hd-gt) + var(--i) * var(--hd-go)); }
/* con trỏ cuối: nháy 4 nhịp sau khi gõ xong rồi tắt */
.hx-d .hx-d__h1 .hx-d__con { display: none; }
.hx-d .hx-d__h1.is-dong .hx-d__con { display: inline-block; width: .06em; height: .9em; margin-left: .04em; vertical-align: -.08em; border-radius: 2px; background: #0A84FF; -webkit-text-fill-color: initial; opacity: 0; animation: hx-d-nhay 2.8s steps(1, end) forwards; animation-delay: var(--hd-xong); }
/* vệt sáng lướt chậm trên phần chữ xanh (bắt đầu sau khi gõ xong, lặp mỗi ~7 giây) */
.hx-d .hx-d__h1.is-dong mark { background-image: linear-gradient(100deg, #0150AC 0%, #0A6FE6 35%, #6FC3FF 48%, #0A84FF 56%, #0A6FE6 70%, #0150AC 100%); background-size: 240% 100%; background-position: 100% 0; animation: hx-d-sang 7s ease-in-out infinite; animation-delay: var(--hd-xong); }
@keyframes hx-d-tu { to { opacity: 1; filter: none; transform: none; } }
@keyframes hx-d-go { to { visibility: visible; } }
@keyframes hx-d-vach { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hx-d-nhay { 0%, 36%, 72% { opacity: 1; } 18%, 54%, 90%, 100% { opacity: 0; } }
@keyframes hx-d-sang { 0% { background-position: 100% 0; } 30%, 100% { background-position: 0 0; } }
.hx-d .hx-d__h1.is-dong .hx-d__k { position: relative; }
@media (prefers-reduced-motion: reduce) { .hx-d .hx-d__h1 .hx-d__w, .hx-d .hx-d__h1 .hx-d__k, .hx-d .hx-d__h1 mark { animation: none; opacity: 1; visibility: visible; filter: none; transform: none; } }
