/* =========================================================================
   Hoang Minh Logistics — theme.css
   Bien CSS (--hm-*) duoc sinh tu Customizer, xem inc/template-tags.php.
   ====================================================================== */

/* -------------------------------------------------------------------------
   1. Reset / base
   ---------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--hm-font-body, system-ui, sans-serif);
	font-size: var(--hm-base-font, 16px);
	line-height: 1.65;
	color: #4a5068;
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: #1b2a6b;
	text-decoration: none;
}

a:hover {
	color: #ee3524;
}

button {
	font: inherit;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	color: #1b2a6b;
	line-height: 1.3;
	font-weight: 700;
}

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

:target {
	scroll-margin-top: calc(var(--hm-header-h, 115px) + 20px);
}

/* -------------------------------------------------------------------------
   2. Tien ich
   ---------------------------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	padding: 12px 20px;
	background: #fff;
	color: #1b2a6b;
	font-weight: 700;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(16, 19, 34, .2);
}

.hm-container {
	width: 100%;
	max-width: var(--hm-content, 1200px);
	margin-inline: auto;
	padding-inline: var(--hm-gutter, 12px);
}

.hm-container--header {
	max-width: var(--hm-header-width, 1920px);
}

.hm-container--footer {
	max-width: var(--hm-footer-width, 1200px);
}

.hm-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.hm-main {
	flex: 1 0 auto;
}

@media (max-width: 480px) {
	.hm-container {
	padding-inline: 14px;
}
}

/* -------------------------------------------------------------------------
   3. Nut
   ---------------------------------------------------------------------- */
.hm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 6px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hm-btn:active {
	transform: translateY(1px);
}

.hm-btn--cta {
	height: 36px;
	padding: 0 20px;
	font-size: 13px;
	letter-spacing: .02em;
	text-transform: uppercase;
	background: var(--hm-cta-bg, #ee3524);
	color: var(--hm-cta-color, #fff);
}

.hm-btn--cta:hover {
	background: var(--hm-cta-hover-bg, #c9291b);
	color: var(--hm-cta-color, #fff);
}

.hm-btn--recruit {
	height: 36px;
	padding: 0 32px;
	font-size: 15px;
	background: var(--hm-recruit-bg, #121B3B);
	color: var(--hm-recruit-color, #fff);
}

.hm-btn--recruit:hover {
	background: var(--hm-recruit-hover-bg, #2A3E86);
	color: var(--hm-recruit-color, #fff);
}

/* -------------------------------------------------------------------------
   4. Mang xa hoi
   ---------------------------------------------------------------------- */
.hm-social {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hm-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: #fff;
	background: var(--hm-c, #1877f2);
	transition: transform .2s ease, filter .2s ease;
}

.hm-social__link:hover {
	color: #fff;
	transform: translateY(-2px);
	filter: brightness(1.1);
}

/* Mau thuong hieu — cung mot bien --hm-c dung cho ca nut lien he noi */
.hm-social__link--facebook  { --hm-c: #1877f2; }
.hm-social__link--youtube   { --hm-c: #ff0000; }
.hm-social__link--messenger { --hm-c: #0084ff; }
.hm-social__link--tiktok    { --hm-c: #0d0d0d; }
.hm-social__link--zalo      { --hm-c: #0068ff; }

.hm-icon--zalo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .01em;
}

/* Icon do người dùng tải lên (SVG nhúng inline hoặc ảnh) */
.hm-icon--media {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 0;
}

.hm-icon--media > svg,
.hm-icon--media > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Nút không nền — dùng khi file tải lên đã là icon tròn hoàn chỉnh */
.hm-social__link.is-plain,
.hm-float__bubble.is-plain {
	background: none;
	box-shadow: none;
}

.hm-social--footer .hm-social__link {
	width: 32px;
	height: 32px;
}

.hm-social--footer {
	gap: 10px;
	margin-top: 26px;
}

/* -------------------------------------------------------------------------
   5. Header — khung chung
   ---------------------------------------------------------------------- */
.hm-header {
	position: relative;
	z-index: 900;
	background: var(--hm-nav-bg, #fff);
}

body.hm-has-sticky-header .hm-header {
	position: sticky;
	top: 0;
}

.hm-header--shadow {
	box-shadow: 0 1px 0 rgba(16, 19, 34, .07);
}

.hm-header--shadow.is-scrolled {
	box-shadow: 0 4px 18px rgba(16, 19, 34, .12);
}

/* -------------------------------------------------------------------------
   6. Header — thanh tren
   ---------------------------------------------------------------------- */
.hm-topbar {
	background: var(--hm-topbar-bg, #1b2a6b);
	color: var(--hm-topbar-color, #fff);
}

.hm-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--hm-topbar-h, 45px);
}

.hm-topbar__left,
.hm-topbar__right {
	display: flex;
	align-items: center;
	min-width: 0;
}

.hm-topbar__left  { gap: 26px; }
.hm-topbar__right { gap: 16px; }

.hm-topbar__profile {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: opacity .2s ease;
}

.hm-topbar__profile:hover {
	color: inherit;
	opacity: .78;
}

/* Tim kiem */
.hm-search {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 255px;
	max-width: 100%;
	height: 36px;
	padding: 0 5px 0 18px;
	background: #fff;
	border-radius: 999px;
}

.hm-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #101322;
	font-size: 14px;
	outline: none;
}

.hm-search__input::placeholder {
	color: #9aa0b4;
}

.hm-search__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--hm-topbar-bg, #1b2a6b);
	cursor: pointer;
	transition: opacity .2s ease;
}

.hm-search__submit:hover {
	opacity: .7;
}

/* -------------------------------------------------------------------------
   7. Header — thanh dieu huong
   ---------------------------------------------------------------------- */
.hm-navbar {
	background: var(--hm-nav-bg, #fff);
}

.hm-navbar__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	height: var(--hm-nav-h, 70px);
}

.hm-navbar__brand {
	flex: 0 1 auto;
	display: flex;
	align-items: center;
	min-width: 0;
	margin-right: 18px;
}

.hm-logo {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-width: 0;
}

.hm-logo__img {
	display: block;
	width: auto;
	height: var(--hm-logo-h, 44px);
	max-width: 100%;
	object-fit: contain;
}

.hm-logo__text {
	font-size: clamp(15px, 1.4vw, 22px);
	font-weight: 800;
	line-height: 1.2;
	color: var(--hm-nav-color, #1b2a6b);
	text-transform: uppercase;
	letter-spacing: .02em;
	overflow-wrap: anywhere;
}

.hm-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.hm-navbar__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
	margin-left: auto;
}

/* Menu ngang */
.hm-menu {
	display: flex;
	align-items: center;
	gap: var(--hm-nav-gap, 38px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hm-menu__item {
	position: relative;
}

.hm-menu__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: var(--hm-nav-h, 70px);
	color: var(--hm-nav-color, #1b2a6b);
	font-size: var(--hm-nav-font, 16px);
	font-weight: 500;
	white-space: nowrap;
	transition: color .2s ease;
}

.hm-menu__link:hover,
.hm-menu__item.current-menu-item > .hm-menu__link,
.hm-menu__item.current-menu-ancestor > .hm-menu__link {
	color: var(--hm-nav-hover, #ee3524);
}

.hm-menu__caret {
	display: inline-flex;
	align-items: center;
	transition: transform .22s ease;
}

.hm-menu__item--parent:hover > .hm-menu__link .hm-menu__caret {
	transform: rotate(180deg);
}

/* Dropdown */
.hm-submenu {
	position: absolute;
	top: 100%;
	left: -18px;
	z-index: 60;
	min-width: 246px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(16, 19, 34, .16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.hm-menu__item--parent:hover > .hm-submenu,
.hm-menu__item--parent:focus-within > .hm-submenu,
.hm-menu__item--parent.is-open > .hm-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.hm-submenu .hm-menu__link {
	display: flex;
	justify-content: space-between;
	width: 100%;
	height: auto;
	padding: 10px 20px;
	font-size: 15px;
	white-space: normal;
}

.hm-submenu .hm-menu__link:hover {
	background: #f5f6fa;
}

/* Cap 3 */
.hm-submenu .hm-submenu {
	top: 0;
	left: 100%;
	transform: translateX(10px);
}

.hm-submenu .hm-menu__item--parent:hover > .hm-submenu,
.hm-submenu .hm-menu__item--parent:focus-within > .hm-submenu {
	transform: translateX(0);
}

.hm-submenu .hm-menu__caret {
	transform: rotate(-90deg);
}

/* Nut mo submenu — chi dung tren mobile */
.hm-submenu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--hm-nav-color, #1b2a6b);
	cursor: pointer;
	transition: transform .22s ease;
}

.hm-menu__item.is-open > .hm-submenu-toggle {
	transform: rotate(180deg);
}

/* Chuyen ngu */
.hm-lang {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.hm-lang__item {
	display: flex;
	align-items: center;
}

.hm-lang__item + .hm-lang__item::before {
	content: "|";
	margin: 0 9px;
	color: #c9cddd;
}

.hm-lang__item a {
	color: #8a90a6;
	font-weight: 500;
	transition: color .2s ease;
}

.hm-lang__item a:hover {
	color: var(--hm-nav-hover, #ee3524);
}

.hm-lang__item.is-active a {
	color: var(--hm-nav-color, #1b2a6b);
	font-weight: 700;
}

/* Chuyen ngu — ban do plugin GTranslate sinh ra.
   Plugin in ra .gtranslate_wrapper roi JS chen vao cac the
   <a class="glink nturl notranslate">EN</a>, the dang chon them
   .gt-current-lang. Doan duoi keo ve dung dang CN | EN | VI. */
.hm-lang--gt .gtranslate_wrapper {
	display: flex;
	align-items: center;
	line-height: 1;
}

/* Khung an cua Google, khong duoc chiem cho trong hang. */
.hm-lang--gt #google_translate_element2,
.hm-lang--gt .skiptranslate {
	display: none !important;
}

.hm-lang--gt a.glink {
	display: inline-flex;
	align-items: center;
	color: #8a90a6;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	text-transform: uppercase;
	transition: color .2s ease;
}

.hm-lang--gt a.glink + a.glink::before {
	content: "|";
	margin: 0 9px;
	color: #c9cddd;
	font-weight: 400;
}

.hm-lang--gt a.glink:hover,
.hm-lang--gt a.glink:focus-visible {
	color: var(--hm-nav-hover, #ee3524);
}

.hm-lang--gt a.glink.gt-current-lang {
	color: var(--hm-nav-color, #1b2a6b);
	font-weight: 700;
}

/* Mau chu cua dau gach van giu nguyen khi ngon ngu do dang duoc chon. */
.hm-lang--gt a.glink.gt-current-lang::before {
	color: #c9cddd;
	font-weight: 400;
}

/* Plugin hay nhet co quoc gia; section nay chi dung chu. */
.hm-lang--gt a.glink img {
	display: none;
}

.hm-lang--gt-missing a {
	color: #ee3524;
	font-size: 12px;
	text-decoration: underline;
}

/* Nut chi hien tren mobile */
.hm-burger,
.hm-search-toggle {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--hm-nav-color, #1b2a6b);
	cursor: pointer;
}

.hm-mobile-search {
	background: var(--hm-nav-bg, #fff);
	border-top: 1px solid #eceef5;
	padding: 12px 0;
}

.hm-mobile-search .hm-search {
	width: 100%;
	background: #f2f4f9;
}

/* -------------------------------------------------------------------------
   8. Menu mobile (off-canvas)
   ---------------------------------------------------------------------- */
.hm-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	visibility: hidden;
}

.hm-drawer.is-open {
	visibility: visible;
}

.hm-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 19, 34, .5);
	opacity: 0;
	transition: opacity .3s ease;
}

.hm-drawer.is-open .hm-drawer__backdrop {
	opacity: 1;
}

.hm-drawer__panel {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: min(90%, 400px);
	height: 100%;
	padding: 16px 24px 28px;
	background: #fff;
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(-100%);
	transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}

.hm-drawer.is-open .hm-drawer__panel {
	transform: translateX(0);
}

.hm-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 48px;
}

.hm-logo--drawer .hm-logo__img {
	height: var(--hm-logo-h-mobile, 34px);
}

.hm-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #1b2a6b;
	cursor: pointer;
}

.hm-drawer__nav {
	margin-top: 26px;
	flex: 1 0 auto;
}

.hm-menu--drawer {
	display: block;
	gap: 0;
}

.hm-menu--drawer .hm-menu__item {
	position: static;
}

.hm-menu--drawer .hm-menu__item--depth-0 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.hm-menu--drawer .hm-menu__link {
	flex: 0 1 auto;
	height: auto;
	padding: 10px 0;
	font-size: 16px;
	white-space: normal;
}

.hm-menu--drawer .hm-menu__caret {
	display: none;
}

.hm-menu--drawer .hm-submenu-toggle {
	display: inline-flex;
	width: 30px;
	height: 30px;
	margin-left: 4px;
}

.hm-menu--drawer .hm-submenu {
	position: static;
	flex: 0 0 100%;
	min-width: 0;
	padding: 0 0 8px 14px;
	border-radius: 0;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
	display: none;
}

.hm-menu--drawer .hm-menu__item.is-open > .hm-submenu {
	display: block;
}

.hm-menu--drawer .hm-submenu .hm-menu__link {
	padding: 8px 0;
	font-size: 15px;
}

.hm-menu--drawer .hm-submenu .hm-menu__link:hover {
	background: transparent;
}

.hm-drawer__foot {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #eceef5;
}

.hm-social--drawer .hm-social__link {
	width: 32px;
	height: 32px;
}

/* -------------------------------------------------------------------------
   9. Footer
   ---------------------------------------------------------------------- */
.hm-footer {
	position: relative;
	padding: var(--hm-footer-pt, 64px) 0 var(--hm-footer-pb, 40px);
	color: var(--hm-footer-color, #fff);
	background-color: var(--hm-footer-bg-outer, #131c4e);
	background-image: linear-gradient(
		180deg,
		var(--hm-footer-bg-inner, #202E64) 23.59%,
		var(--hm-footer-bg-outer, #0D1328) 100%
	);
}

.hm-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
}

.hm-footer__logo {
	display: inline-flex;
	align-items: center;
	margin-bottom: 22px;
}

.hm-footer__logo .hm-logo__img {
	height: var(--hm-footer-logo-h, 52px);
}

.hm-footer__logo--text {
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 800;
	color: var(--hm-footer-color, #fff);
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.hm-footer__company {
	max-width: 46ch;
	margin: 0 0 18px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--hm-footer-color, #fff);
	text-transform: uppercase;
}

.hm-footer__contact {
	max-width: 46ch;
}

.hm-footer__line {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.6;
	color: #dfe3f5;
}

.hm-footer__line strong {
	color: var(--hm-footer-color, #fff);
	font-weight: 700;
}

.hm-footer__line a {
	color: #dfe3f5;
	transition: color .2s ease;
}

.hm-footer__line a:hover {
	color: #fff;
}

.hm-footer__title {
	margin: 32px 0 24px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--hm-footer-color, #fff);
}

.hm-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hm-footer__menu li {
	margin-bottom: 14px;
}

.hm-footer__menu a {
	font-size: 15px;
	color: var(--hm-footer-link, #c3c9e6);
	transition: color .2s ease, padding-left .2s ease;
}

.hm-footer__menu a:hover {
	color: #fff;
}

.hm-footer__hint {
	font-size: 13px;
	color: #9aa3cd;
}

.hm-footer__bottom {
	margin-top: 46px;
	text-align: center;
}

.hm-footer__bottom p {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, .72);
}

/* -------------------------------------------------------------------------
   10. Nut lien he noi
   Mau chu dao cua tung nut lay tu bien --hm-c (dat theo class hoac inline
   tu Customizer), moi vien/bong/vong sang deu suy ra tu mau do bang color-mix.
   ---------------------------------------------------------------------- */

/* ===== Cot trai: len dau trang / Messenger / Zalo ===== */
.hm-float__left {
	position: fixed;
	left: 20px;
	bottom: 25px;
	z-index: 990;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	width: calc(var(--hm-bubble, 52px) + 10px);
}

.hm-float__top {
	display: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--hm-float-bg, #ee3524);
	cursor: pointer;
	transition: transform .2s ease;
}

.hm-float__top.is-visible {
	display: inline-flex;
}

.hm-float__top:hover {
	transform: translateY(-3px);
}

/* Vung bam rong hon vong tron mot chut */
.hm-float__bubble {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc(var(--hm-bubble, 52px) + 10px);
	height: calc(var(--hm-bubble, 52px) + 10px);
	-webkit-tap-highlight-color: transparent;
}

.hm-float__bubble--messenger { --hm-c: #0084ff; }
.hm-float__bubble--zalo      { --hm-c: #0068ff; }

/* Vong tron chinh */
.hm-float__circle {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--hm-bubble, 52px);
	height: var(--hm-bubble, 52px);
	border-radius: 50%;
	color: #fff;
	background: var(--hm-c, #0084ff);
	border: 5px solid rgba(255, 255, 255, .5);
	border: 5px solid color-mix(in srgb, var(--hm-c, #0084ff) 45%, #fff);
	box-shadow: 0 4px 15px rgba(16, 19, 34, .3);
	box-shadow:
		0 0 0 4px color-mix(in srgb, var(--hm-c, #0084ff) 12%, transparent),
		0 4px 15px color-mix(in srgb, var(--hm-c, #0084ff) 35%, transparent);
	transition: transform .25s ease, box-shadow .25s ease;
	animation: hm-float-shake 4s infinite;
}

/* Vong toa sang lan ra */
.hm-float__pulse {
	position: absolute;
	z-index: 1;
	width: var(--hm-bubble, 52px);
	height: var(--hm-bubble, 52px);
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .5);
	border: 2px solid color-mix(in srgb, var(--hm-c, #0084ff) 65%, transparent);
	animation: hm-float-pulse 2s infinite;
	pointer-events: none;
}

/*
 * Hover phai tat han animation chu khong chi pause: animation dang chay
 * (ke ca da pause) van ghi de transform cua khai bao thuong.
 */
.hm-float__bubble:hover .hm-float__circle,
.hm-float__bubble:focus-visible .hm-float__circle {
	animation: none;
	transform: scale(1.12);
	box-shadow:
		0 0 12px color-mix(in srgb, var(--hm-c, #0084ff) 70%, transparent),
		0 0 26px color-mix(in srgb, var(--hm-c, #0084ff) 45%, transparent);
}

/* Anh tai len da la icon tron hoan chinh -> bo nen/vien */
.hm-float__bubble.is-plain .hm-float__circle {
	background: none;
	border: 0;
	box-shadow: none;
}

/* ===== Cot phai: hotline ===== */
.hm-float__right {
	position: fixed;
	right: 20px;
	bottom: 25px;
	z-index: 990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.hm-float__phones {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hm-float__phone {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	width: 260px;
	min-height: 58px;
	padding: 5px 18px 5px 5px;
	border: 1px solid rgba(217, 35, 25, .25);
	border: 1px solid color-mix(in srgb, var(--hm-float-bg, #ee3524) 25%, transparent);
	border-radius: 40px;
	background: var(--hm-float-row-bg, #fff);
	box-shadow:
		0 4px 12px rgba(0, 0, 0, .1),
		inset 0 0 0 1px rgba(255, 255, 255, .75);
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	transition:
		transform .25s ease,
		box-shadow .25s ease,
		border-color .25s ease;
}

@media (hover: hover) {
	.hm-float__phone:hover {
		transform: translateX(4px);
		border-color: color-mix(in srgb, var(--hm-float-bg, #ee3524) 50%, transparent);
		box-shadow: 0 7px 18px rgba(0, 0, 0, .15);
	}
}

/* Nut tron do co icon dien thoai */
.hm-float__phone-icon {
	position: relative;
	flex: 0 0 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	color: var(--hm-float-color, #fff);
	background: var(--hm-float-bg, #ee3524);
	background: linear-gradient(
		145deg,
		color-mix(in srgb, var(--hm-float-bg, #ee3524) 80%, #fff) 0%,
		var(--hm-float-bg, #ee3524) 48%,
		color-mix(in srgb, var(--hm-float-bg, #ee3524) 85%, #000) 100%
	);
	box-shadow:
		0 4px 9px rgba(199, 31, 20, .32),
		inset 0 2px 2px rgba(255, 255, 255, .25),
		inset 0 -2px 3px rgba(120, 0, 0, .15);
	transform-origin: center;
	animation: hm-phone-shake .52s linear infinite;
}

/* Vong sang nhe quanh icon */
.hm-float__phone-icon::before {
	content: "";
	position: absolute;
	inset: -3px;
	border: 1px solid rgba(239, 50, 36, .28);
	border: 1px solid color-mix(in srgb, var(--hm-float-bg, #ee3524) 28%, transparent);
	border-radius: 50%;
	animation: hm-phone-ring 1.5s ease-out infinite;
	pointer-events: none;
}

.hm-float__phone-icon .hm-icon {
	position: relative;
	z-index: 2;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2));
}

/* Vach dung ngan cach */
.hm-float__phone-divider {
	flex: 0 0 2px;
	width: 2px;
	height: 28px;
	margin: 0 12px;
	border-radius: 5px;
	background: var(--hm-float-bg, #ee3524);
	opacity: .8;
}

.hm-float__phone-text {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
	color: var(--hm-float-bg, #ee3524);
}

.hm-float__phone-label {
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

.hm-float__phone-number {
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .15px;
}

/* Nut mo danh sach hotline (chi hien tren mobile) */
.hm-float__phone-toggle {
	position: relative;
	display: none;
	align-items: center;
	justify-content: center;
	width: calc(var(--hm-bubble, 52px) + 6px);
	height: calc(var(--hm-bubble, 52px) + 6px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.hm-float__toggle-icon {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--hm-bubble, 52px);
	height: var(--hm-bubble, 52px);
	border-radius: 50%;
	color: var(--hm-float-color, #fff);
	background: var(--hm-float-bg, #ee3524);
	border: 4px solid rgba(255, 255, 255, .55);
	border: 4px solid color-mix(in srgb, var(--hm-float-bg, #ee3524) 40%, #fff);
	box-shadow: 0 4px 15px rgba(220, 20, 45, .38);
	box-shadow: 0 4px 15px color-mix(in srgb, var(--hm-float-bg, #ee3524) 38%, transparent);
	transition: transform .3s ease;
}

.hm-float__right.is-open .hm-float__toggle-icon {
	transform: rotate(135deg);
}

.hm-float__toggle-pulse {
	position: absolute;
	z-index: 1;
	width: var(--hm-bubble, 52px);
	height: var(--hm-bubble, 52px);
	border-radius: 50%;
	border: 2px solid rgba(239, 38, 62, .65);
	border: 2px solid color-mix(in srgb, var(--hm-float-bg, #ee3524) 65%, transparent);
	animation: hm-float-pulse 1.8s infinite;
	pointer-events: none;
}

/* ===== Keyframes ===== */
@keyframes hm-float-shake {
	0%,
	88%,
	100% { transform: rotate(0deg); }
	90%  { transform: rotate(-8deg); }
	92%  { transform: rotate(8deg); }
	94%  { transform: rotate(-6deg); }
	96%  { transform: rotate(6deg); }
	98%  { transform: rotate(-3deg); }
}

@keyframes hm-float-pulse {
	0% {
		transform: scale(.9);
		opacity: .8;
	}

	70%,
	100% {
		transform: scale(1.45);
		opacity: 0;
	}
}

@keyframes hm-phone-shake {
	0%   { transform: rotate(0deg); }
	10%  { transform: rotate(-12deg); }
	20%  { transform: rotate(12deg); }
	30%  { transform: rotate(-10deg); }
	40%  { transform: rotate(10deg); }
	50%  { transform: rotate(-8deg); }
	60%  { transform: rotate(8deg); }
	70%  { transform: rotate(-6deg); }
	80%  { transform: rotate(6deg); }
	90%  { transform: rotate(-3deg); }
	100% { transform: rotate(0deg); }
}

@keyframes hm-phone-ring {
	0% {
		transform: scale(.9);
		opacity: .7;
	}

	80%,
	100% {
		transform: scale(1.35);
		opacity: 0;
	}
}

/* ===== Mobile: thu gon hotline vao mot nut ===== */
@media (max-width: 768px) {
	.hm-float__left {
		left: 12px;
		bottom: 18px;
		gap: 13px;
	}

	.hm-float__right {
		right: 12px;
		bottom: 18px;
	}

	.hm-float__phone-toggle {
		display: flex;
	}

	.hm-float__phones {
		position: absolute;
		right: 0;
		bottom: 70px;
		gap: 9px;
		pointer-events: none;
	}

	.hm-float__phone {
		width: 270px;
		min-height: 54px;
		padding: 4px 14px 4px 4px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(20px) scale(.85);
		transform-origin: bottom right;
		transition:
			opacity .25s ease,
			visibility .25s ease,
			transform .3s cubic-bezier(.34, 1.56, .64, 1);
	}

	/* Dong lai: hang duoi bay ve truoc */
	.hm-float__phones li:nth-child(1) .hm-float__phone { transition-delay: .1s; }
	.hm-float__phones li:nth-child(2) .hm-float__phone { transition-delay: .05s; }

	.hm-float__right.is-open .hm-float__phones {
		pointer-events: auto;
	}

	.hm-float__right.is-open .hm-float__phone {
		opacity: 1;
		visibility: visible;
		transform: translateY(0) scale(1);
	}

	/* Mo ra: hang tren xuat hien truoc */
	.hm-float__right.is-open .hm-float__phones li:nth-child(1) .hm-float__phone { transition-delay: 0s; }
	.hm-float__right.is-open .hm-float__phones li:nth-child(2) .hm-float__phone { transition-delay: .06s; }

	.hm-float__phone-icon {
		flex-basis: 46px;
		width: 46px;
		height: 46px;
	}

	.hm-float__phone-divider {
		height: 26px;
		margin: 0 10px;
	}

	.hm-float__phone-label  { font-size: 14px; }
	.hm-float__phone-number { font-size: 15px; }

	.hm-float__bubble {
		width: 55px;
		height: 55px;
	}

	.hm-float__circle,
	.hm-float__pulse {
		width: 47px;
		height: 47px;
	}

	.hm-float__circle {
		border-width: 4px;
	}

	.hm-float__top {
		width: 46px;
		height: 34px;
	}
}

@media (max-width: 380px) {
	.hm-float__left {
		left: 8px;
	}

	.hm-float__right {
		right: 8px;
		bottom: 12px;
	}

	.hm-float__bubble {
		width: 52px;
		height: 52px;
	}

	.hm-float__circle,
	.hm-float__pulse {
		width: 44px;
		height: 44px;
	}

	.hm-float__toggle-icon,
	.hm-float__toggle-pulse {
		width: 50px;
		height: 50px;
	}

	.hm-float__phones {
		bottom: 65px;
	}

	.hm-float__phone {
		width: 250px;
		min-height: 50px;
		padding: 3px 11px 3px 3px;
	}

	.hm-float__phone-icon {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}

	.hm-float__phone-divider {
		height: 24px;
		margin: 0 9px;
	}

	.hm-float__phone-label  { font-size: 13px; }
	.hm-float__phone-number { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.hm-float__circle,
	.hm-float__phone-icon,
	.hm-float__phone-icon::before {
		animation: none;
	}

	.hm-float__pulse,
	.hm-float__toggle-pulse {
		display: none;
	}
}

/* -------------------------------------------------------------------------
   11. Noi dung (co ban — se hoan thien o buoc sau)
   ---------------------------------------------------------------------- */
.hm-page {
	padding: 48px 0 72px;
}

.entry-content > *,
.hm-content-area > * {
	max-width: var(--hm-content, 1200px);
	margin-inline: auto;
}

.entry-content .alignwide {
	max-width: 1400px;
}

.entry-content .alignfull {
	max-width: none;
	width: 100%;
}

/* -------------------------------------------------------------------------
   12. Responsive
   ---------------------------------------------------------------------- */

/* Duoi 1400px: bo bot khoang cach de menu khong bi tran */
@media (max-width: 1400px) {
	.hm-menu {
		gap: clamp(18px, 2vw, var(--hm-nav-gap, 38px));
	}

	.hm-navbar__actions {
		gap: 18px;
	}
}

/* Tablet + mobile */
@media (max-width: 1024px) {
	.hm-topbar {
		display: none;
	}

	.hm-nav,
	.hm-navbar__actions {
		display: none;
	}

	.hm-burger,
	.hm-search-toggle {
		display: inline-flex;
	}

	.hm-navbar__inner {
		height: 60px;
		gap: 8px;
		padding-inline: 12px;
	}

	.hm-navbar__brand {
		flex: 1 1 auto;
		justify-content: center;
		margin-right: 0;
	}

	.hm-logo__img {
		height: var(--hm-logo-h-mobile, 34px);
	}

	.hm-footer__grid {
		grid-template-columns: 1fr;
		gap: 30px;
		text-align: center;
	}

	/* Cho cac phan tu cua cot thuong hieu tro thanh grid item de sap xep lai
	   thu tu: thong tin -> 2 cot link -> mang xa hoi (giong ban mobile). */
	.hm-footer__col--brand {
		display: contents;
	}

	.hm-footer__col--brand > * {
		grid-column: 1 / -1;
		order: -1;
	}

	.hm-footer__logo {
		justify-content: center;
		margin-bottom: 18px;
	}

	.hm-footer__company,
	.hm-footer__contact {
		max-width: 100%;
		margin-inline: auto;
	}

	.hm-social--footer {
		order: 1;
		justify-content: center;
		margin-top: 4px;
	}

	.hm-footer__bottom {
		margin-top: 32px;
	}

	.hm-footer {
		padding-bottom: 90px;
	}
}

/* Mobile nho: 2 cot link canh nhau nhu thiet ke */
@media (max-width: 767px) {
	.hm-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 16px;
	}

	.hm-footer__col--links {
		grid-column: auto;
		text-align: left;
	}

	.hm-footer__title {
		font-size: 13px;
	}

	.hm-footer__menu a {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		/* Thiếu dòng này thì animation lặp vô hạn sẽ nhấp nháy cực nhanh */
		animation-iteration-count: 1 !important;
	}
}

/* -------------------------------------------------------------------------
   13. Danh sach bai viet / trang tin (tam thoi)
   ---------------------------------------------------------------------- */
.hm-page__head {
	margin-bottom: 32px;
}

.hm-page__title {
	margin: 0;
	font-size: clamp(26px, 3vw, 38px);
}

.hm-entry__title {
	font-size: clamp(24px, 2.6vw, 34px);
}

.hm-entry__meta,
.hm-card__meta {
	margin: 0 0 14px;
	font-size: 14px;
	color: #8a90a6;
}

.hm-entry__thumb {
	margin: 0 0 28px;
}

.hm-entry__thumb img {
	width: 100%;
	border-radius: 10px;
}

.hm-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

.hm-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eceef5;
	border-radius: 10px;
	transition: box-shadow .25s ease, transform .25s ease;
}

.hm-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(16, 19, 34, .1);
}

.hm-card__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.hm-card__body {
	padding: 20px 22px 24px;
}

.hm-card__title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.4;
}

.hm-card__excerpt {
	font-size: 15px;
}

.hm-card__excerpt p:last-child {
	margin-bottom: 0;
}

.hm-search--inline {
	background: #f2f4f9;
	max-width: 360px;
}

.hm-none {
	padding: 40px 0;
}

.hm-404 {
	padding: 60px 0 80px;
	text-align: center;
}

.wp-block-post-title,
.hm-page .navigation.pagination {
	margin-top: 40px;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #dfe2ec;
	border-radius: 6px;
	color: #1b2a6b;
	font-weight: 600;
}

.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
	background: #1b2a6b;
	border-color: #1b2a6b;
	color: #fff;
}

/* =========================================================================
   14. TRANG CHỦ — Section 1: slider banner
   ====================================================================== */
.hm-hero {
	position: relative;
	overflow: hidden;
	background: #0f1636;
}

/*
 * Tràn hết chiều rộng màn hình.
 * KHÔNG dùng 100vw / calc(50% - 50vw): 100vw tính cả bề rộng thanh cuộn dọc,
 * nên trang sẽ rộng hơn khung nhìn ~15px và sinh thanh cuộn ngang.
 * Các thẻ cha (.hm-main, .hm-home, #hm-section-hero) đều đã full width nên
 * chỉ cần 100% là đủ.
 */
.hm-hero--full {
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
}

.hm-hero:not(.hm-hero--full) .hm-hero__inner {
	max-width: var(--hm-header-width, 1920px);
	margin-inline: auto;
}

.hm-hero__inner {
	position: relative;
}

.hm-hero__viewport {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--hm-hero-ratio, 1920 / 800);
	/* Nhường cử chỉ vuốt ngang cho slider, vẫn cuộn dọc bình thường */
	touch-action: pan-y;
}

.hm-hero__track {
	display: flex;
	width: 100%;
	height: 100%;
	will-change: transform;
	transition: transform var(--hm-hero-speed, 600ms) cubic-bezier(.4, 0, .2, 1);
}

.hm-hero__slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
}

.hm-hero__link {
	display: block;
	width: 100%;
	height: 100%;
}

.hm-hero__picture {
	display: block;
	width: 100%;
	height: 100%;
}

.hm-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: var(--hm-hero-fit, cover);
	object-position: center;
}

/* Hiệu ứng mờ dần: xếp chồng thay vì trượt ngang */
.hm-hero--fade .hm-hero__track {
	display: block;
	transition: none;
	transform: none !important;
}

.hm-hero--fade .hm-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--hm-hero-speed, 600ms) ease;
	pointer-events: none;
}

.hm-hero--fade .hm-hero__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* Mũi tên */
.hm-hero__nav {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--hm-hero-arrow, #fff);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color .2s ease, opacity .2s ease;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}

.hm-hero__nav:hover {
	background: rgba(255, 255, 255, .18);
}

.hm-hero__nav:disabled {
	opacity: .35;
	cursor: default;
}

.hm-hero__nav--prev { left: 10px; }
.hm-hero__nav--next { right: 10px; }

/* Chấm chỉ số */
.hm-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 18px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 8px;
	/* Canh chấm theo mép phải của cột nội dung, nhưng không bao giờ rộng hơn màn hình */
	width: min(var(--hm-content, 1200px), 100% - var(--hm-gutter, 24px) * 2);
	justify-content: end;
	transform: translateX(-50%);
}

.hm-hero__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: var(--hm-hero-dot, #fff);
	opacity: .5;
	cursor: pointer;
	transition: width .25s ease, opacity .25s ease;
}

.hm-hero__dot:hover {
	opacity: .8;
}

.hm-hero__dot.is-active {
	width: 26px;
	opacity: 1;
}

/* Thông báo cho admin khi chưa có ảnh */
.hm-hero--empty {
	padding: 60px 0;
	background: #f5f6fa;
	text-align: center;
	color: #4a5068;
}

.hm-hero--empty p {
	margin-bottom: 16px;
}

@media (max-width: 767px) {
	.hm-hero__viewport {
		aspect-ratio: var(--hm-hero-ratio-m, 1000 / 1100);
	}

	.hm-hero__nav {
		width: 40px;
		height: 40px;
	}

	.hm-hero__nav svg {
		width: 24px;
		height: 24px;
	}

	.hm-hero__nav--prev { left: 2px; }
	.hm-hero__nav--next { right: 2px; }

	.hm-hero__dots {
		bottom: 12px;
		width: unset;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-hero__track,
	.hm-hero--fade .hm-hero__slide {
		transition: none;
	}
}

/* =========================================================================
   15. TRANG CHỦ — Section 2: con số nổi bật
   ====================================================================== */
.hm-stats {
	padding: var(--hm-stats-pt, 70px) 0 var(--hm-stats-pb, 62px);
	background: var(--hm-stats-bg, #fff);
}

.hm-stats__head {
	margin-bottom: 26px;
	text-align: center;
}

.hm-stats__title {
	margin: 0 0 6px;
	color: var(--hm-stats-title, #1b2a6b);
	font-size: var(--hm-stats-title-size, 38px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .01em;
}

.hm-stats__subtitle {
	margin: 0;
	color: var(--hm-stats-subtitle, #4a5068);
	font-size: 15px;
}

.hm-stats__grid {
	display: grid;
	grid-template-columns: repeat(var(--hm-stats-cols, 3), minmax(0, 1fr));
	grid-auto-rows: var(--hm-stats-row, 132px);
	gap: var(--hm-stats-gap, 18px);
}

.hm-stat {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: var(--hm-stats-radius, 10px);
	background: #1b2a6b;
	text-align: center;
}

.hm-stat--tall {
	grid-row: span 2;
}

.hm-stat__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hm-stat__overlay {
	position: absolute;
	inset: 0;
	background: var(--hm-stats-overlay, rgba(19, 28, 78, .78));
}

.hm-stat__body {
	position: relative;
	z-index: 1;
	max-width: 100%;
	padding: 14px 16px;
}

.hm-stat__value {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 1px;
	margin: 0 0 4px;
	color: var(--hm-stats-num, #fff);
	font-size: var(--hm-stats-num-size, 42px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.01em;
	/* Giữ bề rộng ổn định khi số đang đếm, tránh nhảy layout */
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

.hm-stat__label {
	margin: 0;
	color: var(--hm-stats-label, #fff);
	font-size: var(--hm-stats-label-size, 14px);
	font-weight: 400;
	line-height: 1.4;
}

.hm-stats__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 26px 0 0;
	color: var(--hm-stats-note, #22a447);
	font-size: 15px;
	font-style: italic;
}

.hm-stats__note .hm-icon {
	flex: 0 0 auto;
}

@media (max-width: 1024px) {
	.hm-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hm-stats__title {
		font-size: clamp(24px, 4vw, var(--hm-stats-title-size, 38px));
	}
}

@media (max-width: 767px) {
	.hm-stats__grid {
		grid-template-columns: repeat(var(--hm-stats-cols-m, 2), minmax(0, 1fr));
		grid-auto-rows: minmax(112px, auto);
	}

	/* Trên điện thoại mọi ô cao bằng nhau cho gọn */
	.hm-stat--tall {
		grid-row: auto;
	}

	/* Ô cuối nếu đứng lẻ một mình thì cho chiếm hết hàng */
	.hm-stats--last-full .hm-stat:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.hm-stat__value {
		font-size: clamp(22px, 7vw, var(--hm-stats-num-size, 38px));
	}

	.hm-stat__label {
		font-size: clamp(11px, 3vw, var(--hm-stats-label-size, 14px));
	}

	.hm-stat__body {
		padding: 12px 10px;
	}

	.hm-stats__note {
		font-size: 14px;
		text-align: center;
	}
}

/* =========================================================================
   16. Hiệu ứng nút lấp lánh (.shiny-btn2)
   Gắn vào nút CTA của header qua Customizer, hoặc thêm class thủ công
   cho bất kỳ nút nào khác.
   ====================================================================== */
.shiny-btn2 {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	transition:
		transform .25s ease,
		box-shadow .25s ease,
		filter .25s ease;
	animation: hm-shiny-float 1.8s ease-in-out infinite;
}

.shiny-btn2:hover,
.shiny-btn2:focus-visible {
	/*
	 * Phải tắt hẳn animation chứ không chỉ pause: khi animation còn chạy
	 * (kể cả đang pause) thì giá trị transform của nó vẫn thắng khai báo
	 * thường, khiến hiệu ứng hover không có tác dụng.
	 */
	animation: none;
	transform: translateY(-3px);
	box-shadow:
		0 8px 25px rgba(0, 0, 0, .4),
		0 0 18px rgba(255, 255, 255, .35);
	filter: brightness(1.12);
	color: #fff;
}

.shiny-btn2:hover * {
	color: #fff;
}

.shiny-btn2:active {
	animation: none;
	transform: translateY(1px) scale(.98);
}

/* Vệt sáng quét ngang */
.shiny-btn2::before {
	content: "";
	position: absolute;
	top: -20%;
	left: -100%;
	width: 45%;
	height: 140%;
	background: linear-gradient(
		to right,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, .35) 25%,
		rgba(255, 255, 255, .95) 50%,
		rgba(255, 255, 255, .35) 75%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: skewX(-25deg);
	animation: hm-shine 2.1s ease-in-out infinite;
	pointer-events: none;
}

/* Lớp loé sáng nhẹ quanh nút */
.shiny-btn2::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow:
		inset 0 0 12px rgba(255, 255, 255, .18),
		0 0 0 rgba(255, 255, 255, 0);
	animation: hm-shiny-glow 1.8s ease-in-out infinite;
	pointer-events: none;
}

@keyframes hm-shine {
	0% {
		left: -100%;
		opacity: 0;
	}

	8% {
		opacity: 1;
	}

	32% {
		left: 180%;
		opacity: 1;
	}

	40%,
	100% {
		left: 180%;
		opacity: 0;
	}
}

@keyframes hm-shiny-float {
	0%,
	100% {
		transform: translateX(0) scale(1);
		filter: brightness(1);
	}

	12% {
		transform: translateX(-2px) scale(1.06);
		filter: brightness(1.15);
	}

	24% {
		transform: translateX(2px) scale(1.015);
		filter: brightness(1.03);
	}

	36% {
		transform: translateX(-1px) scale(1.075);
		filter: brightness(1.2);
	}

	48% {
		transform: translateX(1px) scale(1.02);
		filter: brightness(1.05);
	}

	65% {
		transform: translateX(0) scale(1);
		filter: brightness(1);
	}
}

@keyframes hm-shiny-glow {
	0%,
	100% {
		box-shadow:
			inset 0 0 8px rgba(255, 255, 255, .12),
			0 0 0 rgba(255, 255, 255, 0);
	}

	35% {
		box-shadow:
			inset 0 0 16px rgba(255, 255, 255, .28),
			0 0 18px rgba(255, 255, 255, .25);
	}
}

/* Người dùng chọn giảm chuyển động: tắt hẳn phần nhấp nháy */
@media (prefers-reduced-motion: reduce) {
	.shiny-btn2,
	.shiny-btn2::before,
	.shiny-btn2::after {
		animation: none;
	}

	.shiny-btn2::before {
		display: none;
	}
}

/* =========================================================================
   17. TRANG CHỦ — Section 3: giải pháp (slider chữ + ảnh)
   Section tràn hết chiều rộng, nội dung giới hạn theo --hm-content.
   ====================================================================== */
.hm-sol {
	position: relative;
	overflow: hidden;
	padding: var(--hm-sol-pt, 76px) 0 var(--hm-sol-pb, 76px);
	background: var(--hm-sol-bg, #22307a);
	color: var(--hm-sol-text, #fff);
}

.hm-sol__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hm-sol__overlay {
	position: absolute;
	inset: 0;
	background: var(--hm-sol-overlay, rgba(27, 42, 107, .88));
}

.hm-sol__inner {
	position: relative;
	z-index: 1;
}

/* ---- Tiêu đề ---- */
.hm-sol__head {
	max-width: var(--hm-sol-head-w, 46%);
	margin-bottom: 34px;
}

.hm-sol__title {
	margin: 0;
	color: var(--hm-sol-title, #fff);
	font-size: var(--hm-sol-title-size, 32px);
	font-weight: 700;
	line-height: 1.35;
}

.hm-sol__divider {
	display: block;
	height: 1px;
	margin-top: 18px;
	background: rgba(255, 255, 255, .38);
	width: 70%;
}

/* ---- Khung slider ---- */
.hm-sol__slider {
	position: relative;
	padding-inline: 34px;
}

.hm-sol__viewport {
	overflow: hidden;
	/*
	 * Cho phép cuộn dọc nhưng nhường cử chỉ ngang cho slider.
	 * Thiếu dòng này thì trình duyệt coi mọi thao tác chạm là cuộn trang,
	 * huỷ luôn pointer event nên vuốt đổi slide không ăn.
	 */
	touch-action: pan-y;
}

.hm-sol__track {
	display: flex;
	will-change: transform;
	transition: transform var(--hm-hero-speed, 600ms) cubic-bezier(.4, 0, .2, 1);
}

.hm-sol__slide {
	flex: 0 0 100%;
	display: grid;
	grid-template-columns: minmax(0, var(--hm-sol-text-col, 39fr)) minmax(0, var(--hm-sol-media-col, 61fr));
	align-items: center;
	gap: 38px;
	padding: 0 8px;
}

/* Slide chưa có ảnh: chữ trải hết chiều rộng thay vì để trống nửa khung */
.hm-sol__slide--no-media {
	grid-template-columns: minmax(0, 1fr);
}

/* Hiệu ứng mờ dần */
.hm-sol--fade .hm-sol__viewport {
	position: relative;
}

.hm-sol--fade .hm-sol__track {
	display: block;
	transition: none;
	transform: none !important;
}

.hm-sol--fade .hm-sol__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--hm-hero-speed, 600ms) ease;
	pointer-events: none;
}

.hm-sol--fade .hm-sol__slide:first-child {
	position: relative;
}

.hm-sol--fade .hm-sol__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* ---- Cột chữ ---- */
.hm-sol__badge {
	display: inline-block;
	margin-bottom: 22px;
	padding: 10px 26px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--hm-sol-badge-bg, #3b52c4) 0%, #1C2A56 100%);
	color: var(--hm-sol-badge-color, #fff);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
}

.hm-sol__list {
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.hm-sol__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--hm-sol-text, #fff);
}

.hm-sol__item .hm-icon {
	flex: 0 0 auto;
	margin-top: 3px;
	color: var(--hm-sol-check, #ee3524);
}

.hm-sol__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 36px;
	padding: 0 30px;
	border-radius: 999px;
	background: var(--hm-sol-btn-bg, #ee3524);
	color: var(--hm-sol-btn-color, #fff);
	font-size: 15px;
	font-weight: 700;
	transition: transform .2s ease, filter .2s ease;
}

.hm-sol__btn:hover {
	color: var(--hm-sol-btn-color, #fff);
	transform: translateY(-2px);
	filter: brightness(1.08);
}

.hm-sol__btn-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--hm-sol-btn-color, #fff);
	color: var(--hm-sol-btn-bg, #ee3524);
}

/* ---- Cột ảnh ---- */
.hm-sol__media {
	overflow: hidden;
	border-radius: var(--hm-sol-radius, 10px);
	border: 1px solid rgba(255, 255, 255, .35);
}

.hm-sol__img {
	display: block;
	width: 100%;
	aspect-ratio: var(--hm-sol-ratio, 16 / 9);
	object-fit: cover;
	object-position: center;
}

/* Chặn kéo-thả ảnh mặc định của trình duyệt để thao tác vuốt không bị huỷ */
.hm-sol__img,
.hm-hero__img,
.hm-sol__slide,
.hm-hero__slide {
	-webkit-user-drag: none;
	user-select: none;
}

/* ---- Mũi tên ---- */
.hm-sol__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--hm-sol-text, #fff);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color .2s ease, opacity .2s ease;
}

.hm-sol__nav:hover {
	background: rgba(255, 255, 255, .16);
}

.hm-sol__nav:disabled {
	opacity: .3;
	cursor: default;
}

.hm-sol__nav--prev { left: 0; }
.hm-sol__nav--next { right: 0; }

/* ---- Thanh tiến trình ---- */
/* Thanh tiến trình: bấm hoặc kéo để nhảy slide.
   Vạch nhìn thấy mảnh, nhưng vùng chạm cao 20px cho dễ trúng. */
.hm-sol__progress {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 420px;
	height: 20px;
	margin: 26px auto 0;
	cursor: pointer;
	touch-action: none;
}

.hm-sol__progress::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .22);
	transform: translateY(-50%);
	pointer-events: none;
}

/* Căn dọc bằng top chứ không bằng translateY: JS ghi transform: translateX()
   lên chính phần tử này nên translateY sẽ bị xoá mất. */
.hm-sol__progress-bar {
	position: absolute;
	left: 0;
	top: 8px;
	width: 50%;
	height: 4px;
	border-radius: 999px;
	background: #fff;
	transition: transform .35s ease, width .35s ease;
	pointer-events: none;
}

/* Mỗi đoạn là một nút vô hình ứng với một slide */
.hm-sol__progress-step {
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.hm-sol__progress-step:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
	border-radius: 999px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.hm-sol__head {
		max-width: 100%;
	}

	.hm-sol__slide {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	/* Chữ nằm trên, ảnh nằm dưới như bản mobile */
	.hm-sol__text  { order: 1; }
	.hm-sol__media { order: 2; }
}

@media (max-width: 767px) {
	.hm-sol__slider {
		padding-inline: 26px;
	}

	.hm-sol__title {
		font-size: clamp(19px, 5vw, var(--hm-sol-title-size, 24px));
	}

	.hm-sol__badge {
		padding: 9px 22px;
		font-size: 16px;
	}

	.hm-sol__item {
		font-size: 14px;
	}

	.hm-sol__nav {
		width: 28px;
		height: 28px;
	}

	.hm-sol__nav svg {
		width: 22px;
		height: 22px;
	}

	.hm-sol__nav--prev { left: -6px; }
	.hm-sol__nav--next { right: -6px; }

	.hm-sol__progress {
		margin-top: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-sol__track,
	.hm-sol--fade .hm-sol__slide,
	.hm-sol__progress-bar {
		transition: none;
	}
}

/* =========================================================================
   18. TRANG CHỦ — Section 4: banner kêu gọi hành động
   Section tràn hết chiều rộng, thẻ banner giới hạn theo --hm-content.
   ====================================================================== */
.hm-ctab {
	padding: var(--hm-ctab-pt, 56px) 0 var(--hm-ctab-pb, 56px);
	background: var(--hm-ctab-section-bg, #fff);
}

.hm-ctab__card {
	position: relative;
	overflow: hidden;
	min-height: var(--hm-ctab-min-h, 208px);
	border-radius: var(--hm-ctab-radius, 18px);
	background: var(--hm-ctab-bg, #4a1712);
}

.hm-ctab__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hm-ctab__overlay {
	position: absolute;
	inset: 0;
	background: var(--hm-ctab-overlay, rgba(90, 26, 16, .82));
}

.hm-ctab__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: var(--hm-ctab-min-h, 208px);
	padding: 32px var(--hm-ctab-pad-x, 48px);
}

.hm-ctab__title {
	margin: 0 0 12px;
	color: var(--hm-ctab-title, #fff);
	font-size: var(--hm-ctab-title-size, 24px);
	font-weight: 700;
	line-height: 1.35;
}

/* Dòng nhấn màu luôn xuống dòng riêng */
.hm-ctab__accent {
	display: block;
	color: var(--hm-ctab-accent, #ee3524);
}

.hm-ctab__desc {
	max-width: var(--hm-ctab-desc-w, 405px);
	margin: 0;
	color: var(--hm-ctab-desc, #f1e3e0);
	font-size: var(--hm-ctab-desc-size, 14px);
	line-height: 1.7;
}

.hm-ctab__btn {
	flex: 0 0 auto;
}

@media (max-width: 767px) {
	.hm-ctab__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		padding: 30px 24px;
	}

	.hm-ctab__title {
		font-size: 20px;
		text-align: center;
	}

	.hm-ctab__desc {
		max-width: 100%;
		text-align: center;
	}

	.hm-ctab__btn {
		align-self: stretch;
		margin: 0 auto;
	}
}

/* =========================================================================
   19. TRANG CHỦ — Section 5: quy trình hợp tác
   Nền ảnh + lớp phủ trắng, lưới thẻ có số thứ tự đè lên mép trên.
   ====================================================================== */
.hm-proc {
	position: relative;
	padding: var(--hm-proc-pt, 70px) 0 var(--hm-proc-pb, 76px);
	background: var(--hm-proc-bg, #eef1fb);
}

.hm-proc__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hm-proc__overlay {
	position: absolute;
	inset: 0;
	background: var(--hm-proc-overlay, rgba(255, 255, 255, .72));
}

.hm-proc__inner {
	position: relative;
	z-index: 1;
}

.hm-proc__head {
	margin-bottom: 46px;
}

.hm-proc__title {
	margin: 0 0 6px;
	color: var(--hm-proc-title, #1b2a6b);
	font-size: var(--hm-proc-title-size, 28px);
	font-weight: 700;
	line-height: 1.3;
}

.hm-proc__subtitle {
	margin: 0;
	color: var(--hm-proc-subtitle, #3a4160);
	font-size: 13px;
}

.hm-proc__grid {
	display: grid;
	grid-template-columns: repeat(var(--hm-proc-cols, 3), minmax(0, 1fr));
	gap: var(--hm-proc-gap, 56px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hm-proc__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--hm-proc-card-min-h, 134px);
	padding: var(--hm-proc-card-pad, 24px);
	border-radius: var(--hm-proc-card-radius, 12px);
	background: var(--hm-proc-card-bg, #fff);
	box-shadow: -3px 3px 10.4px -1px #E5EBFF;
	transition: transform .25s ease, box-shadow .25s ease;
}

.hm-proc__item:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(27, 42, 107, .14);
}

/* Số thứ tự nằm vắt lên mép trên của thẻ */
.hm-proc__badge {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--hm-proc-badge, 46px);
	height: var(--hm-proc-badge, 46px);
	border-radius: 50%;
	background: var(--hm-proc-badge-1, #ee3524);
	color: var(--hm-proc-badge-color, #fff);
	font-size: calc(var(--hm-proc-badge, 46px) * .37);
	font-weight: 700;
	line-height: 1;
	transform: translate(-50%, -50%);
	border: 1px solid #fff;
	box-shadow: 0px 4px 4px 0px #00000040;
}

.hm-proc__badge--alt {
	background: var(--hm-proc-badge-2, #1b2a6b);
}

.hm-proc__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--hm-proc-icon, 48px);
	height: var(--hm-proc-icon, 48px);
	color: var(--hm-proc-text, #1b2a6b);
}

.hm-proc__text {
	margin: 0;
	color: var(--hm-proc-text, #1b2a6b);
	font-size: var(--hm-proc-text-size, 15px);
	font-weight: 500;
	line-height: 1.5;
}

@media (max-width: 1024px) {
	.hm-proc__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(34px, 5vw, var(--hm-proc-gap, 56px));
	}

	.hm-proc__title {
		font-size: clamp(24px, 3.4vw, var(--hm-proc-title-size, 28px));
	}

	.hm-proc__subtitle {
		font-size: 15px;
	}
}

@media (max-width: 767px) {
	.hm-proc__grid {
		grid-template-columns: repeat(var(--hm-proc-cols-m, 1), minmax(0, 1fr));
		gap: 30px 20px;
	}

	.hm-proc__head {
		margin-bottom: 38px;
	}

	.hm-proc__item {
		min-height: 0;
		padding: 32px 16px 20px;
		flex-direction: column;
		justify-content: center;
	}

	.hm-proc__icon {
		width: calc(var(--hm-proc-icon, 48px) * .85);
		height: calc(var(--hm-proc-icon, 48px) * .85);
	}

	.hm-proc__text {
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-proc__item {
		transition: none;
	}
}

/* =========================================================================
   20. TRANG CHỦ — Section 6: tại sao nên chọn
   Lưới thẻ ngang: ảnh trái, nội dung phải. Nút dùng component .button-ui.
   ====================================================================== */
.hm-why {
	padding: var(--hm-why-pt, 64px) 0 var(--hm-why-pb, 70px);
	background: var(--hm-why-bg, #fff);
}

.hm-why__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 26px;
}

.hm-why__title {
	margin: 0 0 6px;
	color: var(--hm-why-title, #1b2a6b);
	font-size: var(--hm-why-title-size, 25px);
	font-weight: 700;
	line-height: 1.3;
}

/* Phần nhấn nằm cùng dòng với tiêu đề */
.hm-why__accent {
	color: var(--hm-why-accent, #ee3524);
}

.hm-why__subtitle {
	margin: 0;
	max-width: 70ch;
	color: var(--hm-why-subtitle, #5a6180);
	font-size: 13px;
	line-height: 1.6;
}

.hm-why__link {
	flex: 0 0 auto;
	margin-top: 6px;
	color: var(--hm-why-link, #5a6180);
	font-size: 13px;
	white-space: nowrap;
	transition: color .2s ease;
}

.hm-why__link::after {
	content: " ›";
	font-weight: 700;
}

.hm-why__link:hover {
	color: var(--hm-why-accent, #ee3524);
}

.hm-why__grid {
	display: grid;
	grid-template-columns: repeat(var(--hm-why-cols, 2), minmax(0, 1fr));
	gap: var(--hm-why-gap, 28px);
}

.hm-why__card {
	display: flex;
	overflow: hidden;
	min-height: var(--hm-why-card-min-h, 292px);
	border-radius: var(--hm-why-card-radius, 12px);
	background: #fff;
	box-shadow: 0 4px 16px rgba(27, 42, 107, .08);
	transition: transform .25s ease, box-shadow .25s ease;
}

.hm-why__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(27, 42, 107, .14);
}

.hm-why__media {
	flex: 0 0 var(--hm-why-media-w, 46%);
	overflow: hidden;
}

.hm-why__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hm-why__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: var(--hm-why-card-pad, 26px);
}

/* Thẻ chưa có ảnh thì nội dung trải hết chiều rộng */
.hm-why__card--no-media {
	min-height: 0;
}

.hm-why__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--hm-why-icon-box, 30px);
	height: var(--hm-why-icon-box, 30px);
	margin-bottom: 16px;
	border-radius: var(--hm-why-icon-radius, 8px);
	color: var(--hm-why-icon-color, #1b2a6b);
}

.hm-why__card-title {
	margin: 0 0 10px;
	color: var(--hm-why-item-title, #1b2a6b);
	font-size: var(--hm-why-item-size, 17px);
	font-weight: 700;
	line-height: 1.4;
}

.hm-why__desc {
	margin: 0;
	color: var(--hm-why-desc, #5a6180);
	font-size: var(--hm-why-desc-size, 14px);
	line-height: 1.65;
}

.hm-why__cta {
	display: flex;
	justify-content: center;
	margin-top: 46px;
}

@media (max-width: 1024px) {
	.hm-why__title {
		font-size: clamp(20px, 3.2vw, var(--hm-why-title-size, 25px));
	}

	.hm-why__card {
		min-height: 0;
	}
}

@media (max-width: 767px) {
	.hm-why__head {
		flex-direction: column;
		gap: 10px;
	}

	.hm-why__link {
		margin-top: 0;
	}

	.hm-why__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.hm-why__subtitle {
		font-size: 14px;
	}

	/* Thẻ hẹp quá thì xếp dọc: ảnh trên, chữ dưới */
	.hm-why__card {
		flex-direction: column;
	}

	.hm-why__media {
		flex: 0 0 auto;
		height: 190px;
	}

	.hm-why__body {
		padding: 20px;
	}

	.hm-why__cta {
		margin-top: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-why__card {
		transition: none;
	}
}

/* =========================================================================
   21. TRANG CHỦ — Section 7: ngành hàng nhập khẩu
   Nền ảnh tối + lớp phủ, lưới thẻ ảnh nhỏ trên nền kính mờ.
   ====================================================================== */
.hm-ind {
	position: relative;
	overflow: hidden;
	padding: var(--hm-ind-pt, 66px) 0 var(--hm-ind-pb, 70px);
	background: var(--hm-ind-bg, #12161f);
}

.hm-ind__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hm-ind__overlay {
	position: absolute;
	inset: 0;
	background: var(--hm-ind-overlay, rgba(11, 14, 22, .34));
}

.hm-ind__inner {
	position: relative;
	z-index: 1;
}

.hm-ind__head {
	margin-bottom: 30px;
}

.hm-ind__title {
	margin: 0 0 10px;
	color: var(--hm-ind-title, #fff);
	font-size: var(--hm-ind-title-size, 26px);
	font-weight: 700;
	line-height: 1.3;
}

.hm-ind__subtitle {
	max-width: var(--hm-ind-subtitle-w, 760px);
	margin: 0;
	color: var(--hm-ind-subtitle, #dfe3ee);
	font-size: 14px;
	line-height: 1.65;
}

.hm-ind__grid {
	display: grid;
	grid-template-columns: repeat(var(--hm-ind-cols, 5), minmax(0, 1fr));
	gap: var(--hm-ind-gap-y, 18px) var(--hm-ind-gap-x, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hm-ind__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: var(--hm-ind-card-radius, 12px);
	color: var(--hm-ind-text, #fff);
	transition: transform .25s ease, box-shadow .25s ease;
	background: rgba(50, 50, 60, 0.6); 
  	backdrop-filter: blur(12px);
  	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  	transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	padding: 8px 8px 12px 8px;
}

.hm-ind__item:hover {
	color: var(--hm-ind-text, #fff);
	transform: translateY(-4px);
  	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hm-ind__media {
	display: block;
	flex: 0 0 auto;
	height: var(--hm-ind-img-h, 166px);
	overflow: hidden;
}

.hm-ind__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 8px;
}

.hm-ind__text {
	flex: 1 1 auto;
	display: block;
	padding-top: var(--hm-ind-card-pad, 12px);
	color: var(--hm-ind-text, #fff);
	font-size: var(--hm-ind-text-size, 13px);
	line-height: 1.5;
}

.hm-ind__cta {
	display: flex;
	justify-content: center;
	margin-top: 44px;
}

@media (max-width: 1024px) {
	.hm-ind__grid {
		grid-template-columns: repeat(var(--hm-ind-cols-t, 3), minmax(0, 1fr));
		gap: 18px;
	}

	.hm-ind__title {
		font-size: clamp(20px, 3.2vw, var(--hm-ind-title-size, 26px));
	}
}

@media (max-width: 767px) {
	.hm-ind__grid {
		grid-template-columns: repeat(var(--hm-ind-cols-m, 2), minmax(0, 1fr));
		gap: 14px;
	}

	.hm-ind__media {
		height: calc(var(--hm-ind-img-h, 166px) * .72);
	}

	.hm-ind__text {
		font-size: calc(var(--hm-ind-text-size, 13px) - 1px);
		padding: 10px;
	}

	.hm-ind__cta {
		margin-top: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-ind__card {
		transition: none;
	}
}

/* =========================================================================
   22. Banner trên footer (hiện ở mọi trang)
   Nền ảnh thiết kế sẵn, chữ + nút đặt lên trên ở nửa trái.
   ====================================================================== */
.hm-pfb {
	position: relative;
	overflow: hidden;
	background: var(--hm-pfb-bg, #101a44);
}

.hm-pfb__picture,
.hm-pfb__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hm-pfb__bg {
	object-fit: cover;
	object-position: center;
}

@media (max-width: 480px) {
	.hm-pfb__bg {
		object-fit: cover;
		object-position: left;
	}
}

.hm-pfb__overlay {
	position: absolute;
	inset: 0;
	background: var(--hm-pfb-overlay, transparent);
}

.hm-pfb__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	min-height: var(--hm-pfb-min-h, 378px);
	padding-block: 32px;
}

.hm-pfb__text {
	width: var(--hm-pfb-text-w, 50%);
	max-width: 100%;
}

.hm-pfb__line {
	margin: 0 0 6px;
	color: var(--hm-pfb-line, #fff);
	font-size: var(--hm-pfb-line-size, 29px);
	font-weight: 700;
	line-height: 1.25;
}

.hm-pfb__accent {
	margin: 0 0 6px;
	color: var(--hm-pfb-accent, #ee3524);
	font-size: var(--hm-pfb-accent-size, 34px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .01em;
}

.hm-pfb--italic .hm-pfb__accent {
	font-style: italic;
}

.hm-pfb__cta {
	margin-top: var(--hm-pfb-gap, 22px);
}

@media (max-width: 1024px) {
	.hm-pfb__text {
		width: 62%;
	}

	.hm-pfb__line {
		font-size: clamp(19px, 2.6vw, var(--hm-pfb-line-size, 29px));
	}

	.hm-pfb__accent {
		font-size: clamp(22px, 3.2vw, var(--hm-pfb-accent-size, 34px));
	}
}

@media (max-width: 767px) {
	.hm-pfb__inner {
		min-height: 0;
		padding-block: 40px;
	}

	/* Màn hẹp thì chữ chiếm hết bề ngang, không còn chỗ cho ảnh bên phải */
	.hm-pfb__text {
		width: 100%;
	}

	.hm-pfb__line {
		font-size: clamp(18px, 5.4vw, var(--hm-pfb-line-size, 29px));
	}

	.hm-pfb__accent {
		font-size: clamp(20px, 6.4vw, var(--hm-pfb-accent-size, 34px));
	}
}

/* =========================================================================
   23. TRANG CHỦ — Section 8: dự án tiêu biểu
   Slider nhiều thẻ. Mỗi thẻ là một ảnh bo góc, tên nằm góc trên,
   các thẻ thông tin (hàng hoá / tuyến / ngày) nằm góc dưới.
   ====================================================================== */
.hm-prj {
	padding: var(--hm-prj-pt, 60px) 0 var(--hm-prj-pb, 66px);
	background: var(--hm-prj-bg, #fff);
}

.hm-prj__title {
	margin: 0 0 24px;
	color: var(--hm-prj-title, #1b2a6b);
	font-size: var(--hm-prj-title-size, 26px);
	font-weight: 700;
	line-height: 1.3;
}

.hm-prj__viewport {
	overflow: hidden;

	/* Cho phép cuộn dọc trang khi vuốt, chỉ giữ lại cử chỉ ngang. */
	touch-action: pan-y;
}

.hm-prj__track {
	display: flex;
	gap: var(--hm-prj-gap, 24px);
	transition: transform .55s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.hm-prj__slide {
	/*
	 * Bề rộng một thẻ = (100% - tổng khoảng cách) / số thẻ mỗi màn.
	 * JS đo lại bề rộng thật nên đổi số thẻ là slider tự khớp.
	 */
	flex: 0 0 calc(
		(100% - var(--hm-prj-gap, 24px) * (var(--hm-prj-per, 2) - 1)) / var(--hm-prj-per, 2)
	);
	min-width: 0;
}

.hm-prj__card {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: var(--hm-prj-ratio, 6 / 5);
	border-radius: var(--hm-prj-radius, 14px);
	background: #dfe3ec;
	color: inherit;
	text-decoration: none;
}

.hm-prj__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform .5s ease;

	/* Chặn kéo-thả ảnh, nếu không cử chỉ vuốt sẽ bị huỷ giữa chừng. */
	-webkit-user-drag: none;
	user-select: none;
}

.hm-prj__card:hover .hm-prj__img,
.hm-prj__card:focus-visible .hm-prj__img {
	transform: scale(1.04);
}

.hm-prj__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, var(--hm-prj-scrim, rgba(13, 22, 55, .3)) 0%, rgba(0, 0, 0, 0) 42%),
		linear-gradient(0deg, var(--hm-prj-scrim, rgba(13, 22, 55, .3)) 0%, rgba(0, 0, 0, 0) 46%);
}

.hm-prj__top {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 18px 0;
}

.hm-prj__name {
	display: -webkit-box;
	overflow: hidden;
	color: var(--hm-prj-name, #fff);
	font-size: var(--hm-prj-name-size, 19px);
	font-weight: 700;
	line-height: 1.35;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.hm-prj__go {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: var(--hm-prj-badge-size, 38px);
	height: var(--hm-prj-badge-size, 38px);
	border-radius: 50%;
	background: var(--hm-prj-badge-bg, #fff);
	color: var(--hm-prj-badge, #1b2a6b);
	transition: transform .25s ease;
}

.hm-prj__go svg {
	width: 45%;
	height: 45%;
}

.hm-prj__card:hover .hm-prj__go,
.hm-prj__card:focus-visible .hm-prj__go {
	transform: rotate(45deg);
}

.hm-prj__meta {
	position: absolute;
	right: 18px;
	bottom: 16px;
	left: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hm-prj__pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--hm-prj-pill-bg, rgba(47, 71, 168, .78));
	color: var(--hm-prj-pill, #fff);
	font-size: var(--hm-prj-pill-size, 13px);
	font-weight: 500;
	line-height: 1.4;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.hm-prj__sep {
	flex: 0 0 auto;
	opacity: .8;
	transform: rotate(-90deg);
}

.hm-prj__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px 22px;
	margin-top: 26px;
}

.hm-prj__dots {
	display: flex;
	align-items: center;
	gap: 9px;
}

.hm-prj__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hm-prj-dot, #d3d7e2);
	cursor: pointer;
	transition: background-color .25s ease, width .25s ease;
}

.hm-prj__dot.is-active {
	width: 26px;
	border-radius: 999px;
	background: var(--hm-prj-dot-active, #ee3524);
}

.hm-prj__all {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 11px 24px;
	border-radius: 999px;
	background: var(--hm-prj-all-bg, #ee3524);
	color: var(--hm-prj-all, #fff);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: filter .25s ease, transform .25s ease;
}

.hm-prj__all:hover,
.hm-prj__all:focus-visible {
	color: var(--hm-prj-all, #fff);
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.hm-prj__all-arrow {
	display: inline-flex;
	align-items: center;
}

.hm-prj--empty {
	padding: 30px 0;
	border-top: 1px dashed #d5d9e3;
	border-bottom: 1px dashed #d5d9e3;
	background: #f7f8fb;
	color: #4a5468;
	font-size: 14px;
}

@media (max-width: 782px) {
	.hm-prj__slide {
		flex-basis: calc(
			(100% - var(--hm-prj-gap, 24px) * (var(--hm-prj-per-m, 1) - 1)) / var(--hm-prj-per-m, 1)
		);
	}

	.hm-prj__top {
		padding: 14px 14px 0;
	}

	.hm-prj__meta {
		right: 14px;
		bottom: 12px;
		left: 14px;
		gap: 6px;
	}

	.hm-prj__foot {
		flex-direction: column;
	}
}

/* =========================================================================
   24. TRANG CHỦ — Section 9: đối tác
   Hai hàng logo chạy liên tục ngược chiều nhau. Track gồm nhiều bản sao
   giống hệt nhau, dịch đúng bề rộng một bản rồi lặp lại nên nhìn liền mạch.
   ====================================================================== */
.hm-ptn {
	padding: var(--hm-ptn-pt, 56px) 0 var(--hm-ptn-pb, 60px);
	background: var(--hm-ptn-bg, #fff);
}

.hm-ptn__title {
	margin: 0 0 24px;
	color: var(--hm-ptn-title, #1b2a6b);
	font-size: var(--hm-ptn-title-size, 26px);
	font-weight: 700;
	line-height: 1.3;
}

.hm-ptn__rows {
	display: flex;
	flex-direction: column;
	gap: var(--hm-ptn-row-gap, 14px);
}

.hm-ptn__row {
	overflow: hidden;

	/* Mờ dần hai mép để logo không bị cắt cụt đột ngột. */
	-webkit-mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 var(--hm-ptn-fade, 90px),
		#000 calc(100% - var(--hm-ptn-fade, 90px)),
		transparent 100%
	);
	mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 var(--hm-ptn-fade, 90px),
		#000 calc(100% - var(--hm-ptn-fade, 90px)),
		transparent 100%
	);
}

.hm-ptn__track {
	display: flex;
	width: max-content;

	/*
	 * --hm-ptn-shift và --hm-ptn-dur do JS đặt sau khi đo bề rộng thật của
	 * một bản sao, nhờ vậy tốc độ luôn bằng nhau dù mỗi hàng có bao nhiêu logo.
	 */
	animation: hm-ptn-scroll var(--hm-ptn-dur, 30s) linear infinite;
	will-change: transform;
}

.hm-ptn__row--reverse .hm-ptn__track {
	animation-direction: reverse;
}

@keyframes hm-ptn-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(calc(-1 * var(--hm-ptn-shift, 0px)));
	}
}

/* Rê chuột vào một logo -> dừng hàng đó lại. */
.hm-ptn__row:hover .hm-ptn__track,
.hm-ptn__row:focus-within .hm-ptn__track {
	animation-play-state: paused;
}

/* Tuỳ chọn: dừng cả hai hàng. */
.hm-ptn--pause-all:hover .hm-ptn__track,
.hm-ptn--pause-all:focus-within .hm-ptn__track {
	animation-play-state: paused;
}

.hm-ptn__group {
	display: flex;
	flex: 0 0 auto;
	gap: var(--hm-ptn-gap, 14px);

	/* Khoảng cách sang bản sao kế tiếp phải bằng khoảng cách bên trong. */
	padding-right: var(--hm-ptn-gap, 14px);
}

.hm-ptn__item {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--hm-ptn-card-w, 130px);
	height: var(--hm-ptn-card-h, 64px);
	padding: var(--hm-ptn-card-pad, 10px);
	border: 1px solid var(--hm-ptn-card-border, #eef0f5);
	border-radius: var(--hm-ptn-card-radius, 6px);
	background: var(--hm-ptn-card-bg, #fff);
	box-shadow: var(--hm-ptn-shadow, 0 2px 10px rgba(20, 30, 70, .07));
	transition: box-shadow .25s ease, transform .25s ease;
}

a.hm-ptn__item:hover,
a.hm-ptn__item:focus-visible {
	box-shadow: 0 6px 18px rgba(20, 30, 70, .14);
	transform: translateY(-2px);
}

.hm-ptn__logo {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: var(--hm-ptn-gray, none);
	transition: filter .25s ease;

	/* Chặn kéo-thả ảnh cho gọn thao tác chuột. */
	-webkit-user-drag: none;
	user-select: none;
}

.hm-ptn__item:hover .hm-ptn__logo {
	filter: none;
}

.hm-ptn--empty {
	padding: 30px 0;
	border-top: 1px dashed #d5d9e3;
	border-bottom: 1px dashed #d5d9e3;
	background: #f7f8fb;
	color: #4a5468;
	font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
	.hm-ptn__track {
		animation: none;
	}

	/* Không chạy nữa thì cho cuộn tay để vẫn xem được hết logo. */
	.hm-ptn__row {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

@media (max-width: 782px) {
	.hm-ptn__item {
		width: calc(var(--hm-ptn-card-w, 130px) * .82);
		height: calc(var(--hm-ptn-card-h, 64px) * .82);
	}
}

/* =========================================================================
   25. TRANG CHỦ — Section 10: khách hàng nói gì về chúng tôi
   Hai hàng thẻ đánh giá chạy ngược chiều nhau. Dùng lại keyframes
   hm-ptn-scroll và biến --hm-ptn-shift/--hm-ptn-dur do JS marquee đặt.
   ====================================================================== */
.hm-rev {
	padding: var(--hm-rev-pt, 56px) 0 var(--hm-rev-pb, 60px);
	background: var(--hm-rev-bg, #f5f7fd);
}

.hm-rev__title {
	margin: 0 0 24px;
	color: var(--hm-rev-title, #1b2a6b);
	font-size: var(--hm-rev-title-size, 26px);
	font-weight: 700;
	line-height: 1.3;
}

.hm-rev__rows {
	display: flex;
	flex-direction: column;
	gap: var(--hm-rev-row-gap, 24px);
}

.hm-rev__row {
	overflow: hidden;

	/* Chừa chỗ cho bóng đổ khỏi bị cắt cụt. */
	margin: -8px 0;
	padding: 8px 0;
	-webkit-mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 var(--hm-rev-fade, 90px),
		#000 calc(100% - var(--hm-rev-fade, 90px)),
		transparent 100%
	);
	mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 var(--hm-rev-fade, 90px),
		#000 calc(100% - var(--hm-rev-fade, 90px)),
		transparent 100%
	);
}

.hm-rev__track {
	display: flex;
	align-items: stretch;
	width: max-content;
	animation: hm-ptn-scroll var(--hm-ptn-dur, 30s) linear infinite;
	will-change: transform;
}

.hm-rev__row--reverse .hm-rev__track {
	animation-direction: reverse;
}

/* Rê chuột vào một thẻ -> dừng hàng đó lại. */
.hm-rev__row:hover .hm-rev__track,
.hm-rev__row:focus-within .hm-rev__track {
	animation-play-state: paused;
}

/* Tuỳ chọn: dừng cả hai hàng. */
.hm-rev--pause-all:hover .hm-rev__track,
.hm-rev--pause-all:focus-within .hm-rev__track {
	animation-play-state: paused;
}

.hm-rev__group {
	display: flex;
	flex: 0 0 auto;
	align-items: stretch;
	gap: var(--hm-rev-gap, 24px);
	padding-right: var(--hm-rev-gap, 24px);
}

.hm-rev__card {
	display: flex;
	flex: 0 0 auto;
	gap: 12px;
	box-sizing: border-box;
	width: var(--hm-rev-card-w, 300px);
	padding: var(--hm-rev-card-pad, 18px);
	border-radius: var(--hm-rev-card-radius, 10px);
	background: var(--hm-rev-card-bg, #fff);
	box-shadow: var(--hm-rev-shadow, 0 4px 16px rgba(24, 36, 84, .07));
}

.hm-rev__logo {
	display: flex;
	flex: 0 0 var(--hm-rev-logo-w, 70px);
	align-items: center;
	justify-content: center;
	width: var(--hm-rev-logo-w, 70px);
}

.hm-rev__logo-img {
	max-width: 100%;
	max-height: calc(var(--hm-rev-logo-w, 70px) * 1.1);
	width: auto;
	height: auto;
	object-fit: contain;
	-webkit-user-drag: none;
	user-select: none;
}

.hm-rev__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.hm-rev__stars {
	display: flex;
	gap: 1px;
	margin-bottom: 6px;
	color: var(--hm-rev-star, #f5a623);
}

.hm-rev__stars svg {
	width: var(--hm-rev-star-size, 11px);
	height: var(--hm-rev-star-size, 11px);
}

.hm-rev__text {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 12px;
	color: var(--hm-rev-text, #3f4756);
	font-size: var(--hm-rev-text-size, 12px);
	line-height: 1.6;
	-webkit-line-clamp: var(--hm-rev-clamp, 4);
	-webkit-box-orient: vertical;
}

.hm-rev__who {
	display: flex;
	align-items: center;
	gap: 8px;

	/* Luôn nằm dưới cùng thẻ dù đoạn trích dài ngắn khác nhau. */
	margin-top: auto;
}

.hm-rev__avatar {
	flex: 0 0 auto;
	width: var(--hm-rev-avatar, 26px);
	height: var(--hm-rev-avatar, 26px);
	border-radius: 50%;
	object-fit: cover;
	-webkit-user-drag: none;
	user-select: none;
}

.hm-rev__who-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hm-rev__name {
	color: var(--hm-rev-name, #1b2a6b);
	font-size: var(--hm-rev-name-size, 12px);
	font-weight: 700;
	line-height: 1.35;
}

.hm-rev__role {
	color: var(--hm-rev-role, #8a93a6);
	font-size: var(--hm-rev-role-size, 11px);
	line-height: 1.35;
}

.hm-rev--empty {
	padding: 30px 0;
	border-top: 1px dashed #d5d9e3;
	border-bottom: 1px dashed #d5d9e3;
	background: #f7f8fb;
	color: #4a5468;
	font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
	.hm-rev__track {
		animation: none;
	}

	.hm-rev__row {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

@media (max-width: 782px) {
	.hm-rev__card {
		width: min(var(--hm-rev-card-w, 300px), 78vw);
	}
}

/* =========================================================================
   26. TRANG CHỦ — Section 11: video hoạt động tiêu biểu
   Dải ảnh dọc (Shorts) + popup phát video. Slider dùng chung engine
   [data-hm-slider] ở chế độ carousel, data-step="1" để dịch từng thẻ.
   ====================================================================== */
.hm-vid {
	padding: var(--hm-vid-pt, 56px) 0 var(--hm-vid-pb, 60px);
	background: var(--hm-vid-bg, #fff);
}

.hm-vid__title {
	margin: 0 0 24px;
	color: var(--hm-vid-title, #1b2a6b);
	font-size: var(--hm-vid-title-size, 26px);
	font-weight: 700;
	line-height: 1.3;
}

.hm-vid__accent {
	color: var(--hm-vid-accent, #ee3524);
}

.hm-vid__stage {
	position: relative;
}

.hm-vid__viewport {
	overflow: hidden;

	/* Cho phép cuộn dọc trang khi vuốt, chỉ giữ lại cử chỉ ngang. */
	touch-action: pan-y;
}

.hm-vid__track {
	display: flex;
	gap: var(--hm-vid-gap, 14px);
	transition: transform .5s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.hm-vid__slide {
	flex: 0 0 calc(
		(100% - var(--hm-vid-gap, 14px) * (var(--hm-vid-per, 4) - 1)) / var(--hm-vid-per, 4)
	);
	min-width: 0;
}

.hm-vid__card {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: var(--hm-vid-ratio, 9 / 16);
	border-radius: var(--hm-vid-radius, 6px);
	background: #10141d;
	color: inherit;
	text-decoration: none;
}

.hm-vid__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform .5s ease;

	/* Chặn kéo-thả ảnh, nếu không cử chỉ vuốt sẽ bị huỷ giữa chừng. */
	-webkit-user-drag: none;
	user-select: none;
}

.hm-vid__img--blank {
	display: block;
	background: linear-gradient(160deg, #232c40 0%, #10141d 100%);
}

.hm-vid__card:hover .hm-vid__img,
.hm-vid__card:focus-visible .hm-vid__img {
	transform: scale(1.04);
}

.hm-vid__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--hm-vid-play, 74px);
	height: var(--hm-vid-play, 74px);
	border: 2px solid var(--hm-vid-play-color, rgba(255, 255, 255, .92));
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: transform .25s ease, background-color .25s ease;
}

.hm-vid__play-tri {
	width: 0;
	height: 0;

	/* Tam giác phát bằng viền, không cần thêm ảnh. */
	margin-left: 4px;
	border-top: calc(var(--hm-vid-play, 74px) * .13) solid transparent;
	border-bottom: calc(var(--hm-vid-play, 74px) * .13) solid transparent;
	border-left: calc(var(--hm-vid-play, 74px) * .2) solid var(--hm-vid-play-color, rgba(255, 255, 255, .92));
}

.hm-vid__card:hover .hm-vid__play,
.hm-vid__card:focus-visible .hm-vid__play {
	background: rgba(255, 255, 255, .16);
	transform: translate(-50%, -50%) scale(1.08);
}

/* ---- Mũi tên hai bên ---- */
.hm-vid__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc(var(--hm-vid-arrow-size, 26px) * 1.7);
	height: calc(var(--hm-vid-arrow-size, 26px) * 1.7);
	padding: 0;
	border: 0;
	background: none;
	color: var(--hm-vid-arrow, #fff);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity .25s ease;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}

.hm-vid__nav--prev {
	left: 6px;
}

.hm-vid__nav--next {
	right: 6px;
}

.hm-vid__nav svg {
	width: var(--hm-vid-arrow-size, 26px);
	height: var(--hm-vid-arrow-size, 26px);
}

.hm-vid__nav:hover {
	opacity: .75;
}

.hm-vid__nav[disabled] {
	cursor: default;
	opacity: .3;
}

/* ---- Chấm chỉ số ---- */
.hm-vid__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 18px;
}

.hm-vid__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hm-vid-dot, #d3d7e2);
	cursor: pointer;
	transition: background-color .25s ease, width .25s ease;
}

.hm-vid__dot.is-active {
	width: 22px;
	border-radius: 999px;
	background: var(--hm-vid-dot-active, #ee3524);
}

/* ---- Popup phát video ---- */
.hm-vid__lb[hidden] {
	display: none;
}

.hm-vid__lb {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hm-vid__lb-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: var(--hm-vid-lb-bg, rgba(0, 0, 0, .92));
	cursor: pointer;
}

.hm-vid__lb-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 100%;
	padding: 56px 16px;
	box-sizing: border-box;
}

.hm-vid__lb-frame {
	/* Khung dọc 9:16, cao tối đa bằng màn hình trừ chỗ cho nút. */
	width: min(calc((100vh - 112px) * 9 / 16), calc(100vw - 140px));
	max-width: 520px;
	aspect-ratio: 9 / 16;
	background: #000;
}

.hm-vid__lb-iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.hm-vid__lb-count {
	position: absolute;
	top: 18px;
	left: 20px;
	margin: 0;
	color: rgba(255, 255, 255, .85);
	font-size: 14px;
	line-height: 1;
}

.hm-vid__lb-close {
	position: absolute;
	top: 12px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease;
}

.hm-vid__lb-close:hover,
.hm-vid__lb-close:focus-visible {
	background: rgba(255, 255, 255, .14);
}

.hm-vid__lb-nav {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease;
}

.hm-vid__lb-nav[hidden] {
	display: none;
}

.hm-vid__lb-nav:hover,
.hm-vid__lb-nav:focus-visible {
	background: rgba(255, 255, 255, .14);
}


.hm-vid--empty {
	padding: 30px 0;
	border-top: 1px dashed #d5d9e3;
	border-bottom: 1px dashed #d5d9e3;
	background: #f7f8fb;
	color: #4a5468;
	font-size: 14px;
}

@media (max-width: 782px) {
	.hm-vid__slide {
		flex-basis: calc(
			(100% - var(--hm-vid-gap, 14px) * (var(--hm-vid-per-m, 2) - 1)) / var(--hm-vid-per-m, 2)
		);
	}

	.hm-vid__play {
		width: calc(var(--hm-vid-play, 74px) * .62);
		height: calc(var(--hm-vid-play, 74px) * .62);
	}

	.hm-vid__lb-inner {
		flex-wrap: wrap;
		padding: 56px 8px 76px;
	}

	.hm-vid__lb-frame {
		order: -1;
		width: min(calc((100vh - 150px) * 9 / 16), calc(100vw - 24px));
	}

	.hm-vid__lb-nav {
		position: absolute;
		bottom: 18px;
	}

	.hm-vid__lb-nav--prev {
		left: 24%;
	}

	.hm-vid__lb-nav--next {
		right: 24%;
	}
}
