/* =========================================================================
   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, 1800px);
}

.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--primary {
	height: 36px;
	padding: 0 32px;
	font-size: 15px;
	background: #111827;
	color: #fff;
}

.hm-btn--primary:hover {
	background: #000;
	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 {
	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;
}

/*
 * overflow:hidden tren html/body co the lam sticky header roi khoi viewport.
 * Khi mot overlay dang mo, giu header fixed o phia sau backdrop va bu lai
 * chieu cao trong luong trang de noi dung khong bi nhay.
 */
html.hm-overlay-open .hm-header {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
}

html.hm-overlay-open .hm-site {
	padding-top: var(--hm-header-h, 80px);
}

.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-navbar__brand .hm-logo {
	flex: 0 0 auto;
	width: var(--hm-logo-w, 140px);
}

.hm-navbar__brand .hm-logo__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	max-height: calc(var(--hm-nav-h, 70px) - 12px);
	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 {
	width: var(--hm-logo-w-mobile, 110px);
}

.hm-logo--drawer .hm-logo__img {
	width: 100%;
	height: auto;
	max-width: none;
}

.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, #171717);
	background: linear-gradient(
		90deg,
		var(--hm-footer-bg-outer, #f4f4f4),
		var(--hm-footer-bg-inner, #f4f4f4) 50%,
		var(--hm-footer-bg-outer, #f4f4f4)
	);
}

.hm-footer__grid {
	display: grid;
	grid-template-columns: minmax(280px, 1.25fr) minmax(250px, 1.08fr) minmax(230px, .95fr) minmax(220px, .82fr);
	column-gap: clamp(36px, 5vw, 96px);
	align-items: start;
}

.hm-footer__logo {
	display: inline-flex;
	align-items: center;
	width: var(--hm-footer-logo-h, 160px);
	max-width: 100%;
	margin-bottom: 30px;
}

.hm-footer__logo .hm-logo__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	object-fit: contain;
}

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

.hm-footer__company {
	max-width: 34ch;
	margin: 5px 0 26px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.45;
	color: var(--hm-footer-color, #171717);
	text-transform: uppercase;
}

.hm-footer__intro {
	max-width: 40ch;
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.75;
	color: var(--hm-footer-link, #666);
}

.hm-footer__line {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--hm-footer-link, #666);
}

.hm-footer__line strong {
	color: inherit;
	font-weight: 500;
}

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

.hm-footer__line a:hover {
	color: var(--hm-footer-color, #171717);
}

.hm-footer__title {
	margin: 5px 0 26px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0;
	color: var(--hm-footer-color, #171717);
}

.hm-footer__title--signup {
	margin-top: 0;
	font-size: 18px;
	text-transform: uppercase;
}

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

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

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

.hm-footer__menu a:hover {
	color: var(--hm-footer-color, #171717);
	padding-left: 3px;
}

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

.hm-footer__newsletter-text {
	max-width: 42ch;
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--hm-footer-link, #666);
}

.hm-footer__newsletter {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 400px;
	height: 60px;
	padding: 0 16px 0 20px;
	border: 1px solid #d4d4d4;
}

.hm-footer__newsletter-input,
.hm-footer__newsletter-button {
	font: inherit;
}

.hm-footer__newsletter-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0;
	color: var(--hm-footer-color, #171717);
	background: transparent;
	border: 0;
	outline: 0;
}

.hm-footer__newsletter-input::placeholder {
	color: #8c8c8c;
	opacity: 1;
}

.hm-footer__newsletter-input:focus {
	box-shadow: none;
}

.hm-footer__newsletter-button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 50%;
	cursor: pointer;
	color: #333;
	background: #e2e2e2;
	border: 0;
	transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.hm-footer__newsletter-button:hover {
	color: #fff;
	background: #222;
}

.hm-footer__newsletter-button:focus-visible {
	outline: 2px solid #222;
	outline-offset: 3px;
}

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

.hm-social--footer .hm-social__link {
	width: 40px;
	height: 40px;
	border-radius: 0;
	color: #222;
	background: transparent;
	filter: none;
}

.hm-social--footer {
	gap: 14px;
	margin-top: clamp(46px, 7vw, 20px);
}

.hm-social--footer .hm-social__link:hover {
	background: transparent;
	filter: none;
}

.hm-footer__service-contact {
	margin-top: 0;
}

.hm-footer__service-contact .hm-footer__line {
	overflow-wrap: anywhere;
}

.hm-footer__hours {
	margin-top: 30px;
}

.hm-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 64px;
	padding-top: 0;
	border-top: 0;
}

.hm-footer__bottom p {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--hm-footer-link, #666);
}

/* -------------------------------------------------------------------------
   10. Nut lien he noi
   Toi da ba nut contact va nut cuon len dau trang cung nam trong mot cot ben
   phai. Mau cua moi contact duoc truyen qua bien --hm-c tu Customizer.
   ---------------------------------------------------------------------- */

.hm-float__stack {
	--hm-float-button-size: var(--hm-bubble, 52px);
	position: fixed;
	right: max(18px, env(safe-area-inset-right));
	bottom: max(20px, env(safe-area-inset-bottom));
	z-index: 990;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: calc(var(--hm-float-button-size) + 10px);
}

.hm-float__contact {
	position: relative;
	display: grid;
	place-items: center;
	width: calc(var(--hm-float-button-size) + 10px);
	height: calc(var(--hm-float-button-size) + 10px);
	color: #fff;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.hm-float__circle {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	display: grid;
	place-items: center;
	width: var(--hm-float-button-size);
	height: var(--hm-float-button-size);
	overflow: hidden;
	border: 3px solid rgba(255, 255, 255, .82);
	border-radius: 50%;
	color: #fff;
	background: var(--hm-c, #111);
	box-shadow:
		0 0 0 3px color-mix(in srgb, var(--hm-c, #111) 14%, transparent),
		0 7px 20px rgba(10, 13, 24, .24);
	transition: transform .22s ease, box-shadow .22s ease;
}

.hm-float__pulse {
	position: absolute;
	z-index: 1;
	width: var(--hm-float-button-size);
	height: var(--hm-float-button-size);
	border: 2px solid var(--hm-c, #111);
	border-radius: 50%;
	opacity: .55;
	pointer-events: none;
	animation: hm-float-pulse 2.4s ease-out infinite;
}

.hm-float__circle .hm-icon--zalo {
	width: auto;
	height: auto;
	font-size: clamp(11px, calc(var(--hm-float-button-size) * .24), 14px);
}

.hm-float__circle .hm-icon--media {
	width: 50% !important;
	height: 50% !important;
}

.hm-float__tooltip {
	position: absolute;
	top: 50%;
	right: calc(100% + 10px);
	z-index: 4;
	max-width: 220px;
	padding: 7px 11px;
	border-radius: 8px;
	color: #fff;
	background: rgba(17, 17, 17, .92);
	box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transform: translate(5px, -50%);
	transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
	pointer-events: none;
}

.hm-float__contact:hover .hm-float__circle,
.hm-float__contact:focus-visible .hm-float__circle {
	transform: translateY(-2px) scale(1.08);
	box-shadow:
		0 0 0 5px color-mix(in srgb, var(--hm-c, #111) 17%, transparent),
		0 10px 24px color-mix(in srgb, var(--hm-c, #111) 32%, transparent);
}

.hm-float__contact:hover .hm-float__tooltip,
.hm-float__contact:focus-visible .hm-float__tooltip {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%);
}

.hm-float__contact:focus-visible,
.hm-float__top:focus-visible {
	outline: 3px solid rgba(255, 255, 255, .95);
	outline-offset: 3px;
	border-radius: 50%;
}

.hm-float__top {
	box-sizing: border-box;
	display: grid;
	place-items: center;
	width: var(--hm-float-button-size);
	height: var(--hm-float-button-size);
	margin: 2px 0 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .34);
	border-radius: 50%;
	color: var(--hm-float-top-color, #fff);
	background: var(--hm-float-top-bg, #111);
	box-shadow: 0 7px 20px rgba(10, 13, 24, .24);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px) scale(.88);
	pointer-events: none;
	transition:
		opacity .28s ease,
		visibility .28s ease,
		transform .28s ease,
		box-shadow .2s ease;
	-webkit-tap-highlight-color: transparent;
}

.hm-float__top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.hm-float__top:hover {
	transform: translateY(-3px) scale(1.04);
	box-shadow: 0 10px 25px rgba(10, 13, 24, .3);
}

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

	75%,
	100% {
		transform: scale(1.4);
		opacity: 0;
	}
}

@media (max-width: 768px) {
	.hm-float__stack {
		--hm-float-button-size: min(var(--hm-bubble, 52px), 48px);
		right: max(10px, env(safe-area-inset-right));
		bottom: max(14px, env(safe-area-inset-bottom));
		gap: 9px;
	}

	.hm-float__tooltip {
		display: none;
	}

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

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

	.hm-float__circle,
	.hm-float__top,
	.hm-float__tooltip {
		transition: 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-navbar__brand .hm-logo {
		width: var(--hm-logo-w-mobile, 110px);
	}

	.hm-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"brand menu-primary"
			"menu-policy service";
		gap: 48px 56px;
	}

	.hm-footer__col--brand {
		grid-area: brand;
	}

	.hm-footer__col--menu-primary {
		grid-area: menu-primary;
	}

	.hm-footer__col--menu-policy {
		grid-area: menu-policy;
	}

	.hm-footer__col--service {
		grid-area: service;
	}

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

	.hm-social--footer {
		margin-top: 42px;
	}

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

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

/* Mobile nho: xep doc de noi dung va form khong bi ep ngang. */
@media (max-width: 767px) {
	.hm-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"brand"
			"menu-primary"
			"menu-policy"
			"service";
		gap: 40px;
	}

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

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

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

	.hm-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.hm-footer__newsletter {
		max-width: none;
	}
}

@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);
	color: #272727;
	font-family: "Inter";
}

.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);
	cursor: grab;
	user-select: none;
	/* 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__viewport.is-dragging {
	cursor: grabbing;
}

.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;
	pointer-events: none;
	-webkit-user-drag: none;
}

/* 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;
	z-index: 0;
	opacity: 0;
	transition: opacity var(--hm-hero-speed, 600ms) ease-in-out;
	pointer-events: none;
}

.hm-hero--fade .hm-hero__slide.is-active {
	z-index: 1;
	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;
	}
}


/* =========================================================================
   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;
	}
}
