/*
 * Hưng Gia Investment — Header & Footer CSS
 * Prefix: hg- (tránh conflict với Flatsome)
 * Tông màu: LIGHT — cream/ivory/vàng ấm trên nền trắng
 */

/* ── RESET BỎ HEADER/FOOTER CỦA FLATSOME ── */
.header-wrapper,
#header-outer.flatsome-default-header { display: none !important; }
footer#footer.footer-wrapper .footer-widgets,
footer#footer.footer-wrapper .absolute-footer { display: none !important; }


/* ── CSS VARIABLES ── */
:root {
  --hg-white:        #FDFCF8;
  --hg-black:        #2C1F06;
  --hg-cream:        #F7F2EA;
  --hg-cream-dark:   #EDE5D5;
  --hg-gold:         #B8851E;
  --hg-gold-light:   #D4A030;
  --hg-gold-pale:    #C8992A;
  --hg-gold-deep:    #8A6210;
  --hg-champagne:    #F9F4E8;
  --hg-warm-gray:    #7A6E58;
  --hg-warm-gray-lt: #B5A98A;
  --hg-brown-dark:   #3D2B0A;
  --hg-brown-mid:    #6B4E18;
  --hg-ivory:        #FDFAF3;

  --hg-font-display: 'Playfair Display', Georgia, serif;
  --hg-font-body:    'Manrope', sans-serif;

  --hg-radius-sm:    4px;
  --hg-radius-md:    8px;
  --hg-radius-lg:    16px;
  --hg-shadow-gold:  0 4px 24px rgba(200,153,42,0.25);
  --hg-transition:   0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── CONTAINER ── */
.hg-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ════════════════════════════════════════
   TOP BAR
════════════════════════════════════════ */
.hg-topbar {
  background: linear-gradient(90deg, #F7F0E2 0%, #FDF8EE 50%, #F7F0E2 100%);
  border-bottom: 1px solid rgba(184,133,30,0.25);
  padding: 0.45rem 0;
}
.hg-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hg-topbar__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.hg-topbar__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--hg-font-body);
  font-size: 0.72rem;
  color: rgba(107,78,24,0.75);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s;
}
.hg-topbar__item:hover { color: var(--hg-gold); }
.hg-topbar__item svg {
  width: 13px; height: 13px;
  stroke: var(--hg-gold);
  flex-shrink: 0;
}
.hg-topbar__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.hg-topbar__cert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hg-topbar__cert-badge {
  background: rgba(184,133,30,0.1);
  border: 1px solid rgba(184,133,30,0.3);
  color: var(--hg-brown-mid);
  padding: 0.18rem 0.55rem;
  border-radius: 2rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: var(--hg-font-body);
}
.hg-topbar__lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hg-topbar__lang a,
.hg-topbar__lang li a {
  font-size: 0.7rem !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(107,78,24,0.45) !important;
  transition: color 0.25s;
  padding: 0.2rem 0.4rem;
  text-decoration: none;
  list-style: none;
}
.hg-topbar__lang a.active,
.hg-topbar__lang a:hover,
.hg-topbar__lang li.current-lang a { color: var(--hg-gold) !important; }
.hg-topbar__lang ul { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.hg-topbar__lang ul li::before { content: none; }

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.hg-site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(253,250,243,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(184,133,30,0.2);
  box-shadow: 0 2px 16px rgba(184,133,30,0.08);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
.hg-site-header.is-scrolled {
  background: rgba(253,250,243,0.99);
  box-shadow: 0 4px 30px rgba(184,133,30,0.15);
}
.hg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 2rem;
}

/* LOGO */
.hg-header__logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
  text-decoration: none;
}
.hg-header__logo img { max-height: 52px; width: auto; display: block; }
.hg-header__logo-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hg-header__logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hg-header__logo-name {
  font-family: var(--hg-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--hg-brown-dark);
  letter-spacing: 0.06em;
  line-height: 1;
}
.hg-header__logo-tagline {
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--hg-gold);
  font-weight: 500;
  line-height: 1;
  font-family: var(--hg-font-body);
}

/* NAV */
.hg-header__nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: left;
}
.hg-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* ── Flatsome walker: li thay vì .hg-nav-item ── */
.hg-nav-menu > li {
  position: relative;
  list-style: none;
}
/* Link cấp 1 — áp dụng cho cả custom walker (hg-nav-link) lẫn Flatsome walker */
.hg-nav-menu > li > a,
.hg-nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--hg-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(61,43,10,0.65);
  padding: 0.6rem 0.875rem;
  border-radius: var(--hg-radius-sm);
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
  text-decoration: none;
}
/* Icon arrow của Flatsome (icon-angle-down) */
.hg-nav-menu > li > a [class*="icon-angle"] {
  font-size: 10px;
  opacity: 0.5;
  transition: transform 0.25s;
  margin-left: 2px;
}
.hg-nav-link svg {
  width: 13px; height: 13px;
  transition: transform 0.25s;
  flex-shrink: 0;
  opacity: 0.5;
}
.hg-nav-menu > li:hover > a,
.hg-nav-item:hover > .hg-nav-link {
  color: var(--hg-brown-dark);
  background: rgba(184,133,30,0.08);
}
.hg-nav-menu > li:hover > a [class*="icon-angle"],
.hg-nav-item:hover > .hg-nav-link svg {
  transform: rotate(180deg);
  opacity: 1;
}
/* Active state */
.hg-nav-menu > li.current-menu-item > a,
.hg-nav-menu > li.current-menu-ancestor > a,
.hg-nav-link--active { color: var(--hg-gold) !important; }

/* Legacy custom walker class */
.hg-nav-item {
  position: relative;
  list-style: none;
}

/* DROPDOWN */
.hg-dropdown {
  position: absolute;
  top: 100%;           /* Sát ngay dưới li — không có gap thật */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: linear-gradient(160deg, #FDFAF3 0%, #F9F2E3 100%);
  border: 1px solid rgba(184,133,30,0.2);
  border-radius: var(--hg-radius-md);
  box-shadow: 0 24px 64px rgba(184,133,30,0.15), 0 4px 16px rgba(0,0,0,0.08);
  padding: 0.75rem 0;
  padding-top: calc(0.75rem + 8px); /* Bù lại gap visual để mũi tên caret vẫn đẹp */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Delay khi ẩn: cho chuột có thêm 120ms để di vào dropdown */
  transition: opacity 0.2s 0.12s, transform 0.2s 0.12s, visibility 0s 0.32s;
  z-index: 999;
}
.hg-nav-item:hover > .hg-dropdown,
.hg-dropdown.hg-dd--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
  /* Hiện ngay, không delay */
  transition: opacity 0.2s, transform 0.2s, visibility 0s;
}
/* Bridge vô hình lấp kín khoảng trống giữa nav link và dropdown */
.hg-dropdown::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 0; right: 0;
  height: 12px;
  background: transparent;
}

/* WordPress auto-generates ul.sub-menu inside nav menus */
/* .nav-dropdown = Flatsome walker / .sub-menu = standard WordPress */
.hg-header__nav .nav-dropdown {
  /* Override Flatsome default (left:-99999px, display:table) */
  position: absolute !important;
  left: 50% !important;
  top: 100% !important;                /* Sát ngay dưới li — không gap thật */
  transform: translateX(-50%) translateY(-6px) !important;
  min-width: 220px;
  max-height: none !important;
  background: linear-gradient(160deg, #FDFAF3 0%, #F9F2E3 100%) !important;
  border: 1px solid rgba(184,133,30,0.2) !important;
  border-radius: var(--hg-radius-md) !important;
  box-shadow: 0 24px 64px rgba(184,133,30,0.15), 0 4px 16px rgba(0,0,0,0.08) !important;
  padding: calc(0.75rem + 8px) 0 0.75rem !important; /* padding-top bù gap visual */
  color: rgba(61,43,10,0.65) !important;
  /* Ẩn qua opacity/visibility thay vì left:-99999px */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  /* Delay khi ẩn: 120ms cho chuột di vào dropdown */
  transition: opacity 0.2s 0.12s, transform 0.2s 0.12s, visibility 0s 0.32s !important;
  z-index: 999 !important;
  margin: 0 !important;
  display: block !important;
}
/* Bridge vô hình cho nav-dropdown */
.hg-header__nav .nav-dropdown::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 0; right: 0;
  height: 12px;
  background: transparent;
}

/* Flatsome JS thêm class current-dropdown vào li khi hover (hoverIntent) */
.hg-header__nav li.current-dropdown > .nav-dropdown,
.hg-header__nav li:hover > .nav-dropdown,
.hg-header__nav .nav-dropdown.hg-dd--visible {
  left: 50% !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all;
  transform: translateX(-50%) translateY(0) !important;
  max-height: none !important;
  /* Hiện ngay, không delay */
  transition: opacity 0.2s, transform 0.2s, visibility 0s !important;
}

/* .sub-menu (standard WordPress, không dùng Flatsome walker) */
.hg-nav-menu .sub-menu {
  position: absolute;
  top: 100%;           /* Sát ngay dưới li — không gap thật */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: linear-gradient(160deg, #FDFAF3 0%, #F9F2E3 100%);
  border: 1px solid rgba(184,133,30,0.2);
  border-radius: var(--hg-radius-md);
  box-shadow: 0 24px 64px rgba(184,133,30,0.15), 0 4px 16px rgba(0,0,0,0.08);
  padding: calc(0.75rem + 8px) 0 0.75rem; /* padding-top bù gap visual */
  opacity: 0; visibility: hidden; pointer-events: none;
  /* Delay khi ẩn */
  transition: opacity 0.2s 0.12s, transform 0.2s 0.12s, visibility 0s 0.32s;
  z-index: 999;
  list-style: none;
  margin: 0;
}
/* Bridge vô hình cho sub-menu */
.hg-nav-menu .sub-menu::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 0; right: 0;
  height: 12px;
  background: transparent;
}
.hg-nav-menu > li:hover > .sub-menu,
.hg-nav-item:hover > .sub-menu {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
  /* Hiện ngay */
  transition: opacity 0.2s, transform 0.2s, visibility 0s;
}

/* Style link trong dropdown — base chung */
.hg-header__nav .nav-dropdown li,
.hg-header__nav .sub-menu li,
.hg-nav-menu .sub-menu li { list-style: none; }

.hg-header__nav .nav-dropdown li a,
.hg-header__nav .sub-menu li a,
.hg-nav-menu .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--hg-font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(61,43,10,0.65) !important;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0.02em;
}
.hg-header__nav .nav-dropdown li a:hover,
.hg-header__nav .sub-menu li a:hover,
.hg-nav-menu .sub-menu li a:hover {
  color: var(--hg-brown-dark) !important;
  background: rgba(184,133,30,0.08);
  padding-left: 1.5rem;
}
/* Ẩn icon-angle trong sub-item */
.hg-header__nav .nav-dropdown li a [class*="icon-angle"],
.hg-header__nav .sub-menu li a [class*="icon-angle"] { display: none !important; }

/* ── Walker dropdown items — icon dạng SVG (Tập Đoàn, Dự Án, Nhà Đầu Tư) ── */
.hg-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--hg-font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(61,43,10,0.65);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  white-space: nowrap;
}
.hg-dropdown__item:hover {
  color: var(--hg-brown-dark);
  background: rgba(184,133,30,0.08);
  padding-left: 1.5rem;
}

/* Icon box SVG */
.hg-dropdown__item-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(200,153,42,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.hg-dropdown__item:hover .hg-dropdown__item-icon { background: rgba(200,153,42,0.18); }
.hg-dropdown__item-icon svg { width: 14px; height: 14px; stroke: var(--hg-gold); }

/* ══════════════════════════════════════════════════════════
   MENU LĨNH VỰC — MEGA MENU 4 CỘT NGANG
   JS thêm .hg-dropdown--mega vào .hg-dropdown cha
   JS thêm .hg-item--desc vào từng .hg-dropdown__item có subtitle
   ══════════════════════════════════════════════════════════ */

/* Dropdown cha: mở rộng thành mega panel */
.hg-dropdown.hg-dropdown--mega {
  width: 760px !important;
  min-width: 760px !important;
  padding: 1.5rem !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(-6px) !important;
}
.hg-nav-item:hover > .hg-dropdown.hg-dropdown--mega {
  transform: translateX(-50%) translateY(0) !important;
}

/* Mỗi card chiếm 25% = 4 cột */
.hg-item--desc {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
  padding: 1.125rem 1.125rem !important;
  white-space: normal !important;
  width: 25% !important;
  flex: 0 0 25% !important;
  border-bottom: none !important;
  border-right: 1px solid rgba(184,133,30,0.1) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: rgba(61,43,10,0.78) !important;
  letter-spacing: 0.01em !important;
  line-height: 1.3 !important;
  border-radius: var(--hg-radius-sm) !important;
  transition: color 0.2s, background 0.2s !important;
  position: relative !important;
}
.hg-item--desc:last-child {
  border-right: none !important;
}

/* Icon vàng nhỏ ở trên tên */
.hg-item--desc::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--hg-gold);
  opacity: 0.6;
  border-radius: 2px;
  margin-bottom: 0.25rem;
}

/* Subtitle (nội dung trong icon-div) */
.hg-item--desc .hg-dropdown__item-icon {
  order: 2 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  color: rgba(107,78,24,0.45) !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  flex-shrink: unset !important;
  white-space: normal !important;
}

/* Hover card */
.hg-item--desc:hover {
  padding-left: 1.125rem !important;
  background: rgba(184,133,30,0.07) !important;
  color: var(--hg-brown-dark) !important;
}
.hg-item--desc:hover::before { opacity: 1; }
.hg-item--desc:hover .hg-dropdown__item-icon {
  color: rgba(107,78,24,0.65) !important;
}

.hg-dropdown__divider { height: 1px; background: rgba(200,153,42,0.12); margin: 0.5rem 1.25rem; }

/* HEADER ACTIONS */
.hg-header__actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}
/* Reset Flatsome margin trên mọi button/a trong actions */
.hg-header__actions > * {
  margin: 0 !important;
  vertical-align: middle;
}
.hg-btn-search {
  width: 36px; height: 36px;
  display: flex; align-items: center;
  justify-content: center;
  border-radius: var(--hg-radius-sm);
  color: rgba(107,78,24,0.45);
  cursor: pointer;
  background: none;
  border: none;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center;
  transition: color 0.25s, background 0.25s;
}
.hg-btn-search:hover { color: var(--hg-gold); background: rgba(184,133,30,0.1); }
.hg-btn-search svg { width: 17px; height: 17px; stroke: currentColor; }

.hg-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--hg-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1.375rem;
  background: var(--hg-gold);
  color: var(--hg-brown-dark);
  border-radius: var(--hg-radius-sm);
  transition: var(--hg-transition);
  white-space: nowrap;
  text-decoration: none;
}
.hg-header__cta:hover {
  background: var(--hg-gold-light);
  transform: translateY(-1px);
  box-shadow: var(--hg-shadow-gold);
  color: var(--hg-brown-dark);
}
.hg-header__cta svg { width: 14px; height: 14px; stroke: var(--hg-brown-dark); }

/* HAMBURGER */
.hg-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 12px 4px;
  border-radius: 4px;
  background: none;
  border: none;
  margin: 0 !important;
  align-self: center;
  transition: background 0.2s;
}
.hg-header__hamburger:hover { background: rgba(184,133,30,0.1); }
.hg-header__hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: rgba(61,43,10,0.6);
  transition: var(--hg-transition);
}
.hg-header__hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hg-header__hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hg-header__hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════════════════════════════════
   SEARCH OVERLAY
════════════════════════════════════════ */
.hg-search-overlay {
  position: fixed; inset: 0;
  background: rgba(253,250,243,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1500;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 18vh;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.hg-search-overlay.is-open { opacity: 1; visibility: visible; }
.hg-search-overlay__inner { width: 100%; max-width: 680px; padding: 0 2rem; }
.hg-search-overlay__label {
  font-family: var(--hg-font-body);
  font-size: 0.7rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--hg-gold); margin-bottom: 1.5rem;
}
.hg-search-overlay__form {
  display: flex; align-items: center;
  border-bottom: 2px solid rgba(184,133,30,0.25);
  transition: border-color 0.25s;
}
.hg-search-overlay__form:focus-within { border-color: var(--hg-gold); }
.hg-search-overlay__input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--hg-font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400; color: var(--hg-brown-dark); padding: 0.75rem 0;
}
.hg-search-overlay__input::placeholder { color: rgba(184,133,30,0.3); }
.hg-search-overlay__submit {
  background: none; border: none; cursor: pointer;
  color: rgba(184,133,30,0.5); padding: 0.75rem;
  transition: color 0.2s;
}
.hg-search-overlay__submit:hover { color: var(--hg-gold); }
.hg-search-overlay__submit svg { width: 22px; height: 22px; stroke: currentColor; }
.hg-search-overlay__close {
  position: absolute; top: 2rem; right: 2.5rem;
  color: rgba(184,133,30,0.5); cursor: pointer; padding: 0.5rem;
  background: none; border: none;
  transition: color 0.2s;
}
.hg-search-overlay__close:hover { color: var(--hg-gold); }
.hg-search-overlay__close svg { width: 24px; height: 24px; stroke: currentColor; }
.hg-search-overlay__hints {
  margin-top: 1.5rem; display: flex; align-items: center;
  gap: 0.5rem; flex-wrap: wrap;
}
.hg-search-overlay__hint-label {
  font-family: var(--hg-font-body);
  font-size: 0.72rem; color: rgba(184,133,30,0.45);
}
.hg-search-hint {
  font-family: var(--hg-font-body);
  font-size: 0.72rem; color: rgba(107,78,24,0.6);
  background: rgba(184,133,30,0.07);
  border: 1px solid rgba(184,133,30,0.2);
  padding: 0.3rem 0.75rem; border-radius: 2rem;
  text-decoration: none;
  cursor: pointer; transition: color 0.2s, background 0.2s;
}
.hg-search-hint:hover {
  color: var(--hg-gold); background: rgba(184,133,30,0.14);
  border-color: rgba(184,133,30,0.4);
}

/* ════════════════════════════════════════
   MOBILE NAV
════════════════════════════════════════ */
.hg-mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(200,170,100,0.25);
  z-index: 1099;
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.hg-mobile-overlay.is-open { opacity: 1; pointer-events: all; }

.hg-mobile-nav {
  position: fixed; top: 0; right: -100%;
  width: min(360px, 90vw); height: 100vh;
  background: #FDFAF3;
  z-index: 1100;
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: -4px 0 30px rgba(184,133,30,0.15);
}
.hg-mobile-nav.is-open { right: 0; }

.hg-mobile-nav__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.375rem 1.5rem;
  border-bottom: 1px solid rgba(184,133,30,0.15);
  flex-shrink: 0;
}
.hg-mobile-nav__logo-name {
  font-family: var(--hg-font-display);
  font-size: 1.25rem; font-weight: 700; color: var(--hg-brown-dark);
}
.hg-mobile-nav__logo-tag {
  font-family: var(--hg-font-body);
  font-size: 0.56rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--hg-gold);
  display: block; margin-top: 2px;
}
.hg-mobile-nav__close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer;
  color: rgba(107,78,24,0.5);
  background: rgba(184,133,30,0.06);
  border: 1px solid rgba(184,133,30,0.15);
  transition: color 0.2s, background 0.2s;
  position: relative;
  flex-shrink: 0;
}
.hg-mobile-nav__close:hover {
  color: var(--hg-gold);
  background: rgba(184,133,30,0.14);
  border-color: rgba(184,133,30,0.35);
}
.hg-mobile-nav__close svg { width: 18px; height: 18px; stroke: currentColor; }

/* Dau X luon hien bang CSS — khong phu thuoc SVG inline */
.hg-mobile-nav__close::before,
.hg-mobile-nav__close::after {
  content: '';
  position: absolute;
  width: 14px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.2s;
}
.hg-mobile-nav__close::before { transform: rotate(45deg); }
.hg-mobile-nav__close::after  { transform: rotate(-45deg); }
/* An SVG neu co (tranh double) */
.hg-mobile-nav__close svg { display: none; }

.hg-mobile-nav__body { flex: 1; overflow-y: auto; padding: 1rem 0; }
.hg-mobile-nav__body::-webkit-scrollbar { width: 3px; }
.hg-mobile-nav__body::-webkit-scrollbar-thumb {
  background: rgba(184,133,30,0.15); border-radius: 2px;
}

/* ════════════════════════════════
   MOBILE MENU — Walker + Flatsome
   ════════════════════════════════ */
.hg-mobile-menu { margin: 0; padding: 0; list-style: none; }
.hg-mobile-menu > li { list-style: none; border-bottom: 1px solid rgba(184,133,30,0.1); margin: 0 !important; }

/* Link cap 1 — tat ca */
.hg-mobile-menu > li > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  font-family: var(--hg-font-body);
  font-size: 0.95rem; font-weight: 600;
  color: rgba(61,43,10,0.7);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  letter-spacing: 0.03em;
  /* An SVG do Flatsome inject (neu co) */
}
.hg-mobile-menu > li > a:hover {
  color: var(--hg-brown-dark);
  background: rgba(184,133,30,0.06);
}

/* An tat ca SVG trong link cap 1 (Flatsome inject icon-angle) */
.hg-mobile-menu > li > a svg,
.hg-mobile-menu > li > a [class*="icon-angle"] {
  display: none !important;
}

/* Item CO submenu: them chevron bang CSS */
.hg-mobile-menu > li.menu-item-has-children > a,
.hg-mobile-menu > li.hg-nav-item--has-dropdown > a {
  position: relative;
}
.hg-mobile-menu > li.menu-item-has-children > a::after,
.hg-mobile-menu > li.hg-nav-item--has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid var(--hg-gold);
  border-bottom: 2px solid var(--hg-gold);
  transform: rotate(-45deg);
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-left: auto;
}
/* Khi sub mo: xoay mui ten xuong */
.hg-mobile-menu > li.menu-item-has-children.is-open > a::after,
.hg-mobile-menu > li.hg-nav-item--has-dropdown.is-open > a::after {
  transform: rotate(45deg) translateY(-3px);
}

/* Sub-menu */
.hg-mobile-menu .sub-menu,
.hg-mobile-menu .nav-dropdown {
  display: none;
  background: rgba(184,133,30,0.04);
  padding: 0.25rem 0; margin: 0; list-style: none;
  border-top: 1px solid rgba(184,133,30,0.08);
}
.hg-mobile-menu li.is-open > .sub-menu,
.hg-mobile-menu li.is-open > .nav-dropdown { display: block; }

.hg-mobile-menu .sub-menu li,
.hg-mobile-menu .nav-dropdown li { list-style: none; }

.hg-mobile-menu .sub-menu li a,
.hg-mobile-menu .nav-dropdown li a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1.5rem 0.4rem 2.25rem;
  font-family: var(--hg-font-body);
  font-size: 0.84rem; font-weight: 500;
  color: rgba(107,78,24,0.6);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  border-bottom: 1px solid rgba(184,133,30,0.06);
  white-space: normal;
}
.hg-mobile-menu .sub-menu li:last-child a,
.hg-mobile-menu .nav-dropdown li:last-child a { border-bottom: none; }

/* Dot truoc sub item */
.hg-mobile-menu .sub-menu li a::before,
.hg-mobile-menu .nav-dropdown li a::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--hg-gold);
  border-radius: 50%;
  opacity: 0.5;
  flex-shrink: 0;
}
.hg-mobile-menu .sub-menu li a:hover,
.hg-mobile-menu .nav-dropdown li a:hover {
  color: var(--hg-gold);
  padding-left: 2.75rem;
  background: rgba(184,133,30,0.05);
}
.hg-mobile-menu .sub-menu li a:hover::before,
.hg-mobile-menu .nav-dropdown li a:hover::before { opacity: 1; }

/* An SVG / icon-angle trong sub-item */
.hg-mobile-menu .sub-menu li a svg,
.hg-mobile-menu .sub-menu li a [class*="icon-angle"],
.hg-mobile-menu .nav-dropdown li a svg,
.hg-mobile-menu .nav-dropdown li a [class*="icon-angle"] { display: none !important; }

/* Walker-generated classes (.hg-mobile-menu-item) */
.hg-mobile-menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  font-family: var(--hg-font-body);
  font-size: 0.95rem; font-weight: 600;
  color: rgba(61,43,10,0.7);
  border-bottom: 1px solid rgba(184,133,30,0.1);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
}
.hg-mobile-menu-item:hover {
  color: var(--hg-brown-dark);
  background: rgba(184,133,30,0.06);
}
/* Parent item: chevron bang CSS */
.hg-mobile-menu-item--parent::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid var(--hg-gold);
  border-bottom: 2px solid var(--hg-gold);
  transform: rotate(-45deg);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.hg-mobile-menu-item--parent.is-open::after {
  transform: rotate(45deg) translateY(-3px);
}
/* An SVG cu neu co */
.hg-mobile-menu-item--parent svg { display: none !important; }
.hg-mobile-menu-item--parent.is-open svg { transform: rotate(180deg); }

.hg-mobile-submenu {
  display: none;
  background: rgba(184,133,30,0.04);
  border-bottom: 1px solid rgba(184,133,30,0.08);
}
.hg-mobile-submenu.is-open { display: block; }

.hg-mobile-submenu-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1.5rem 0.7rem 2.5rem;
  font-family: var(--hg-font-body);
  font-size: 0.82rem; font-weight: 500;
  color: rgba(107,78,24,0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,133,30,0.06);
  transition: color 0.2s, padding-left 0.2s;
}
.hg-mobile-submenu-item:hover { color: var(--hg-gold); padding-left: 3rem; }
.hg-mobile-submenu-item svg { width: 14px; height: 14px; stroke: var(--hg-gold); flex-shrink: 0; }

.hg-mobile-nav__section-label {
  font-family: var(--hg-font-body);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(184,133,30,0.4);
  padding: 1.25rem 1.5rem 0.5rem;
}
.hg-mobile-nav__langs {
  display: flex; gap: 0.5rem; padding: 0.75rem 1.5rem;
}
.hg-mobile-nav__langs a,
.hg-mobile-nav__langs li a {
  font-family: var(--hg-font-body);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(107,78,24,0.45);
  padding: 0.35rem 0.875rem;
  border: 1px solid rgba(184,133,30,0.15);
  border-radius: 2rem;
  text-decoration: none;
  list-style: none;
}
.hg-mobile-nav__langs a.current-lang,
.hg-mobile-nav__langs a:hover { color: var(--hg-gold); border-color: rgba(184,133,30,0.4); }
.hg-mobile-nav__langs ul { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

.hg-mobile-nav__footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(184,133,30,0.15);
  flex-shrink: 0;
  background: rgba(184,133,30,0.04);
}
.hg-mobile-nav__cta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.875rem 1.5rem;
  background: var(--hg-gold);
  color: var(--hg-brown-dark);
  font-family: var(--hg-font-body);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--hg-radius-sm);
  text-decoration: none;
  transition: background 0.25s;
}
.hg-mobile-nav__cta:hover { background: var(--hg-gold-light); color: var(--hg-brown-dark); }
.hg-mobile-nav__cta svg { width: 15px; height: 15px; stroke: var(--hg-brown-dark); }
.hg-mobile-nav__contact {
  margin-top: 1rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.hg-mobile-nav__contact-link {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.625rem;
  background: rgba(184,133,30,0.06);
  border: 1px solid rgba(184,133,30,0.18);
  border-radius: var(--hg-radius-sm);
  font-family: var(--hg-font-body);
  font-size: 0.72rem; font-weight: 600;
  color: rgba(107,78,24,0.6);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.hg-mobile-nav__contact-link:hover { color: var(--hg-gold); background: rgba(184,133,30,0.12); }
.hg-mobile-nav__contact-link svg { width: 13px; height: 13px; stroke: currentColor; }

/* ════════════════════════════════════════
   FOOTER — Light Cream Theme
════════════════════════════════════════ */
.hg-site-footer {
  background: #F5EDD8;
  color: var(--hg-brown-dark);
  border-top: 1px solid rgba(184,133,30,0.25);
  font-family: var(--hg-font-body);
}

/* Ticker */
.hg-footer__certs {
  background: #EDE3C8;
  border-bottom: 1px solid rgba(184,133,30,0.2);
  padding: 0.875rem 0;
  overflow: hidden;
}
.hg-footer__certs-inner {
  display: flex; align-items: center;
  white-space: nowrap;
  animation: hgCertScroll 22s linear infinite;
}
@keyframes hgCertScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hg-footer__cert-item {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0 2.5rem;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(107,78,24,0.55); flex-shrink: 0;
}
.hg-footer__cert-item::after {
  content: '';
  display: block; width: 4px; height: 4px;
  border-radius: 50%; background: var(--hg-gold);
  opacity: 0.5; margin-left: 1rem;
}

/* Main grid */
.hg-footer__main { padding: 4rem 0 3rem; }
.hg-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

/* Brand col */
.hg-footer__brand-logo {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem;
}
.hg-footer__brand-logo img,
.hg-footer__brand-logo-img { max-height: 52px; width: auto; }
.hg-footer__brand-logo-hex { width: 40px; height: 40px; flex-shrink: 0; }
.hg-footer__brand-name {
  font-family: var(--hg-font-display);
  font-size: 1.3rem; font-weight: 700;
  color: var(--hg-brown-dark); letter-spacing: 0.05em; line-height: 1;
}
.hg-footer__brand-tagline-txt {
  font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--hg-gold); font-weight: 600; display: block; margin-top: 3px;
}
.hg-footer__brand-desc {
  font-size: 0.84rem; color: rgba(61,43,10,0.6);
  line-height: 1.85; margin-bottom: 1.5rem; max-width: 290px;
}

/* Social icons */
.hg-footer__social { display: flex; gap: 0.625rem; margin-bottom: 1.5rem; }
.hg-footer__social-link {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(184,133,30,0.08);
  border: 1px solid rgba(184,133,30,0.25);
  color: rgba(107,78,24,0.55);
  text-decoration: none;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s;
}
.hg-footer__social-link:hover {
  color: var(--hg-brown-dark);
  background: rgba(184,133,30,0.18);
  border-color: rgba(184,133,30,0.5);
  transform: translateY(-2px);
}
.hg-footer__social-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

/* Award badges */
.hg-footer__awards { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hg-footer__award {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.28rem 0.6rem;
  border: 1px solid rgba(184,133,30,0.35); border-radius: 2rem;
  color: rgba(107,78,24,0.55);
  background: rgba(184,133,30,0.06);
}

/* Footer menu columns */
.hg-footer__col-title {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--hg-gold-deep); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.hg-footer__col-title::before {
  content: ''; display: block; width: 1.5rem; height: 1px;
  background: var(--hg-gold); opacity: 0.5;
}
.hg-footer__links { margin: 0; padding: 0; list-style: none; }
.hg-footer__links li { list-style: none; }
.hg-footer__links li a {
  font-size: 0.8275rem; color: rgba(61,43,10,0.55);
  padding: 0.4rem 0;
  display: flex; align-items: center; gap: 0;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s, padding-left 0.2s;
  border-bottom: 1px solid rgba(184,133,30,0.12);
}
.hg-footer__links li a:hover { color: var(--hg-gold-deep); gap: 0.3rem; }
.hg-footer__links li a::before {
  content: '→'; font-size: 0.7rem; color: var(--hg-gold);
  opacity: 0; transition: opacity 0.2s; flex-shrink: 0;
}
.hg-footer__links li a:hover::before { opacity: 1; margin-right: 0.375rem; }

/* Contact */
.hg-footer__contact-block { display: flex; flex-direction: column; gap: 1rem; }
.hg-footer__contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.hg-footer__contact-icon {
  width: 30px; height: 30px; border-radius: 6px;
  background: rgba(184,133,30,0.1); border: 1px solid rgba(184,133,30,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.hg-footer__contact-icon svg { width: 13px; height: 13px; stroke: var(--hg-gold); }
.hg-footer__contact-label {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(107,78,24,0.45); margin-bottom: 3px;
}
.hg-footer__contact-value {
  font-size: 0.8125rem; color: rgba(61,43,10,0.7); line-height: 1.5;
}
.hg-footer__contact-value a { color: inherit; text-decoration: none; transition: color 0.2s; }
.hg-footer__contact-value a:hover { color: var(--hg-gold); }

/* Newsletter */
.hg-footer__newsletter {
  margin-top: 1.5rem; padding: 1.1rem 1.25rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(184,133,30,0.2);
  border-radius: var(--hg-radius-md);
}
.hg-footer__newsletter-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(107,78,24,0.5); margin-bottom: 0.75rem;
}
.hg-footer__newsletter-form { display: flex; gap: 0.5rem; }
.hg-footer__newsletter-input {
  flex: 1; background: #fff;
  border: 1px solid rgba(184,133,30,0.25); border-radius: var(--hg-radius-sm);
  outline: none; padding: 0.6rem 0.875rem;
  font-family: var(--hg-font-body); font-size: 0.8rem; color: var(--hg-brown-dark);
  transition: border-color 0.25s;
}
.hg-footer__newsletter-input::placeholder { color: rgba(107,78,24,0.35); }
.hg-footer__newsletter-input:focus { border-color: var(--hg-gold); }
.hg-footer__newsletter-btn {
  background: var(--hg-gold); color: var(--hg-brown-dark);
  border: none; border-radius: var(--hg-radius-sm);
  padding: 0.6rem 1rem;
  font-family: var(--hg-font-body);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.25s; white-space: nowrap;
}
.hg-footer__newsletter-btn:hover { background: var(--hg-gold-light); }

/* Bottom bar */
.hg-footer__bottom {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(184,133,30,0.2);
  background: #EDE3C8;
}
.hg-footer__bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.hg-footer__copy { font-size: 0.77rem; color: rgba(61,43,10,0.5); }
.hg-footer__copy strong { color: var(--hg-brown-dark); font-weight: 600; }
.hg-footer__bottom-menu,
.hg-footer__bottom-links { display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.hg-footer__bottom-menu li { list-style: none; }
.hg-footer__bottom-menu li a,
.hg-footer__bottom-link {
  font-size: 0.75rem; font-weight: 500;
  color: rgba(61,43,10,0.45); text-decoration: none;
  transition: color 0.2s;
}
.hg-footer__bottom-menu li a:hover,
.hg-footer__bottom-link:hover { color: var(--hg-gold); }
.hg-footer__bottom-right {
  font-size: 0.72rem; color: rgba(61,43,10,0.35);
  display: flex; align-items: center; gap: 0.375rem;
}
.hg-footer__bottom-powered svg { opacity: 0.4; }


/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hg-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .hg-footer__grid > *:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 900px) {
  .hg-header__nav { display: none; }
  .hg-header__cta { display: none; }
  .hg-header__hamburger { display: flex; }
  .hg-topbar__cert { display: none; }

  /* Logo căn giữa trên mobile */
  .hg-header__inner {
    position: relative;
    justify-content: flex-end; /* hamburger về phải */
  }
  .hg-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 700px) {

  /* Footer grid chuyển thành hàng dọc */
  .hg-footer__grid {  display: flex; flex-direction: column;  gap: 2rem; }

  /* Reset span của child đầu */
  .hg-footer__grid > *:nth-child(1) {
    grid-column: unset;
  }
  /* Bottom footer xuống hàng dọc */
  .hg-footer__bottom-inner {  display: flex;flex-direction: column;align-items: flex-start;gap: 0.75rem; }

  /* Hiện lại phần right nếu muốn */
  .hg-footer__bottom-right { display: block; }
}
@media (max-width: 480px) {
  .hg-topbar { display: none; }
  .hg-container { padding: 0 1.25rem; }
  .hg-footer__grid { grid-template-columns: 1fr; }
  .hg-footer__grid > *:nth-child(1) { grid-column: auto; }
}


/* ════════════════════════════════════════
   MEGA DROPDOWN
════════════════════════════════════════ */
.hg-mega-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 720px;
  background: linear-gradient(160deg, #FDFAF3 0%, #F9F2E3 100%);
  border: 1px solid rgba(184,133,30,0.2);
  border-radius: var(--hg-radius-md);
  box-shadow: 0 24px 64px rgba(184,133,30,0.15), 0 4px 16px rgba(0,0,0,0.08);
  padding: 1.75rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 999;
}
.hg-nav-item--mega:hover > .hg-mega-dropdown {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.hg-mega-dropdown__arrow {
  position: absolute; top: -6px; left: 50%;
  width: 10px; height: 10px;
  background: #FDFAF3;
  border-left: 1px solid rgba(184,133,30,0.2);
  border-top: 1px solid rgba(184,133,30,0.2);
  transform: translateX(-50%) rotate(45deg);
}
.hg-mega-dropdown__header {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--hg-gold);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.625rem;
}
.hg-mega-dropdown__header::after {
  content: ''; flex: 1; height: 1px; background: rgba(200,153,42,0.25);
}
.hg-mega-dropdown__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
}
.hg-mega-card {
  background: rgba(200,153,42,0.05);
  border: 1px solid rgba(200,153,42,0.12);
  border-radius: var(--hg-radius-md);
  padding: 1.125rem 1rem;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer; position: relative; overflow: hidden;
  text-decoration: none; display: block;
}
.hg-mega-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--hg-gold);
  transform: scaleX(0); transition: transform 0.3s ease;
}
.hg-mega-card:hover {
  background: rgba(200,153,42,0.1);
  border-color: rgba(200,153,42,0.35);
  transform: translateY(-2px);
}
.hg-mega-card:hover::before { transform: scaleX(1); }
.hg-mega-card__icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(200,153,42,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}
.hg-mega-card__icon svg { width: 18px; height: 18px; stroke: var(--hg-gold); }
.hg-mega-card__title {
  font-size: 0.8125rem; font-weight: 700; color: var(--hg-brown-dark);
  margin-bottom: 0.3rem; line-height: 1.3;
}
.hg-mega-card__desc { font-size: 0.72rem; color: rgba(107,78,24,0.55); line-height: 1.5; }
.hg-mega-dropdown__footer {
  margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px solid rgba(200,153,42,0.12);
  display: flex; align-items: center; justify-content: space-between;
}
.hg-mega-dropdown__footer-link {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--hg-gold);
  display: flex; align-items: center; gap: 0.4rem;
  text-decoration: none; transition: gap 0.2s;
}
.hg-mega-dropdown__footer-link:hover { gap: 0.7rem; }
.hg-mega-dropdown__footer-link svg { width: 14px; height: 14px; stroke: var(--hg-gold); }
.hg-mega-dropdown__stats { display: flex; align-items: center; gap: 1.5rem; }
.hg-mega-dropdown__stat { text-align: right; }
.hg-mega-dropdown__stat-num {
  font-family: var(--hg-font-display); font-size: 1.25rem;
  font-weight: 700; color: var(--hg-brown-dark); line-height: 1;
}
.hg-mega-dropdown__stat-num span { color: var(--hg-gold); }
.hg-mega-dropdown__stat-label {
  font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(107,78,24,0.45); margin-top: 2px;
}

/* Logo fallback */
.hg-logo-fallback { display: flex; align-items: center; gap: 0.875rem; }
.hg-logo-icon {
  width: 38px; height: 38px; background: var(--hg-gold); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hg-logo-icon svg {
  width: 22px; height: 22px;
  stroke: #fff !important;   /* SVG tren nen vang -> stroke trang */
  fill: none;
}
.hg-logo-text { display: flex; flex-direction: column; gap: 1px; }
.hg-logo-name {
  font-family: var(--hg-font-display); font-size: 1.5rem;
  font-weight: 700; color: var(--hg-brown-dark); letter-spacing: 0.06em; line-height: 1;
}
.hg-logo-tagline {
  font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--hg-gold); font-weight: 500; line-height: 1;
}
.hg-logo-img { max-height: 52px; width: auto; display: block; }

/* Topbar cert badges: light bg */
.hg-topbar__cert-badge {
  background: rgba(184,133,30,0.1); border: 1px solid rgba(184,133,30,0.3);
  color: var(--hg-brown-mid);
}
.hg-topbar__lang a, .hg-topbar__lang li a { color: rgba(107,78,24,0.45) !important; }
.hg-topbar__lang a.active, .hg-topbar__lang a:hover,
.hg-topbar__lang li.current-lang a { color: var(--hg-gold) !important; }

/* Mobile nav body links on light */
.hg-mobile-menu > li > a { color: rgba(61,43,10,0.7); border-bottom-color: rgba(184,133,30,0.1); }
.hg-mobile-menu > li > a:hover { color: var(--hg-brown-dark); background: rgba(184,133,30,0.06); }
.hg-mobile-menu .sub-menu li a { color: rgba(107,78,24,0.6); }
.hg-mobile-menu .sub-menu li a:hover { color: var(--hg-gold); }
.hg-mobile-nav__section-label { color: rgba(184,133,30,0.4); }
.hg-mobile-nav__logo-name { color: var(--hg-brown-dark); }
.hg-mobile-nav__close { background: rgba(184,133,30,0.06); color: rgba(107,78,24,0.5); }
.hg-mobile-nav__langs a { color: rgba(107,78,24,0.45); border-color: rgba(184,133,30,0.15); }
.hg-mobile-nav__langs a.active, .hg-mobile-nav__langs a:hover { color: var(--hg-gold); border-color: rgba(184,133,30,0.4); }
.hg-mobile-nav__contact-link { background: rgba(184,133,30,0.06); border-color: rgba(184,133,30,0.18); color: rgba(107,78,24,0.6); }
.hg-mobile-nav__contact-link:hover { color: var(--hg-gold); background: rgba(184,133,30,0.12); }
.hg-mobile-nav__footer { background: rgba(184,133,30,0.04); border-top-color: rgba(184,133,30,0.15); }
.hg-mobile-menu-item { color: rgba(61,43,10,0.7); border-bottom-color: rgba(184,133,30,0.1); }
.hg-mobile-menu-item:hover { color: var(--hg-brown-dark); background: rgba(184,133,30,0.06); padding-left: 2rem; }
.hg-mobile-submenu { background: rgba(184,133,30,0.04); }
.hg-mobile-submenu-item { color: rgba(107,78,24,0.6); }
.hg-mobile-submenu-item:hover { color: var(--hg-gold); }

/* Footer — light cream tone (khớp với hunggia-header-footer-light.html) */
.hg-site-footer {
  background: linear-gradient(180deg, #F5EDD8 0%, #EDE5D0 100%);
  color: var(--hg-brown-dark);
}
.hg-footer__col-title { color: var(--hg-gold); }
.hg-footer__col-title::before { background: var(--hg-gold); opacity: 0.45; }
.hg-footer__brand-name { color: var(--hg-brown-dark); }
.hg-footer__brand-desc { color: rgba(61,43,10,0.55); }
.hg-footer__links li a { color: rgba(61,43,10,0.55); border-bottom-color: rgba(184,133,30,0.08); }
.hg-footer__links li a:hover { color: var(--hg-gold); }
.hg-footer__links li a::before { color: var(--hg-gold); }
.hg-footer__contact-label { color: rgba(107,78,24,0.4); }
.hg-footer__contact-value { color: rgba(61,43,10,0.65); }
.hg-footer__contact-icon { background: rgba(184,133,30,0.1); border-color: rgba(184,133,30,0.22); }
.hg-footer__newsletter { background: rgba(255,255,255,0.6); border-color: rgba(184,133,30,0.18); }
.hg-footer__newsletter-label { color: rgba(107,78,24,0.55); }
.hg-footer__newsletter-input { background: rgba(255,255,255,0.8); color: var(--hg-brown-dark); }
.hg-footer__newsletter-input::placeholder { color: rgba(107,78,24,0.35); }
.hg-footer__newsletter-input:focus { border-color: var(--hg-gold); }
.hg-footer__newsletter-btn { background: var(--hg-gold); color: var(--hg-brown-dark); }
.hg-footer__newsletter-btn:hover { background: var(--hg-gold-light); }
.hg-footer__cert-item { color: rgba(107,78,24,0.5); }
.hg-footer__social-link { background: rgba(184,133,30,0.08); border-color: rgba(184,133,30,0.2); color: rgba(107,78,24,0.5); }
.hg-footer__social-link:hover { color: var(--hg-gold); background: rgba(184,133,30,0.16); border-color: rgba(184,133,30,0.45); }
.hg-footer__award { border-color: rgba(184,133,30,0.25); color: rgba(107,78,24,0.5); background: rgba(184,133,30,0.06); }
.hg-footer__bottom { background: rgba(184,133,30,0.06); border-top-color: rgba(184,133,30,0.15); }
.hg-footer__copy { color: rgba(61,43,10,0.4); }
.hg-footer__copy strong { color: rgba(61,43,10,0.6); }
.hg-footer__bottom-menu li a,
.hg-footer__bottom-link { color: rgba(61,43,10,0.4); }
.hg-footer__bottom-menu li a:hover,
.hg-footer__bottom-link:hover { color: var(--hg-gold); }
.hg-footer__bottom-right { color: rgba(107,78,24,0.35); }

/* Dropdown arrow fix — light bg */
/* Caret nằm trong padding-top (8px bridge + 0.75rem padding) */
.hg-dropdown::before {
  content: ''; position: absolute; top: 2px; left: 50%;
  width: 10px; height: 10px; background: #FDFAF3;
  border-left: 1px solid rgba(184,133,30,0.2);
  border-top: 1px solid rgba(184,133,30,0.2);
  transform: translateX(-50%) rotate(45deg);
  z-index: 1;
}
/* ════════════════════════════════════════
   MOBILE SUBMENU TOGGLE BUTTON (JS-injected)
   Thay thế CSS ::after trên <a> — cho phép
   click <a> điều hướng, click button toggle accordion
════════════════════════════════════════ */

/* Wrap li cấp 1 thành flex để button nằm bên phải */
.hg-mobile-menu > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 48px; /* chiều cao cố định cho tất cả item */
}

/* Link cấp 1 chiếm hết width còn lại */
.hg-mobile-menu > li > a {
  flex: 1;
  padding-top: 0;
  padding-bottom: 0;
}

/* Ẩn ::after cũ trên <a> (đã có button thay thế) */
.hg-mobile-menu > li.menu-item-has-children > a::after,
.hg-mobile-menu > li.hg-nav-item--has-dropdown > a::after {
  display: none !important;
}

/* Button toggle — chiều cao bằng li */
.hg-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  margin: 0 !important;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--hg-gold);
  padding: 0;
  transition: background 0.2s;
  border-left: 1px solid rgba(184,133,30,0.12);
}
.hg-submenu-toggle:hover {
  background: rgba(184,133,30,0.07);
}
.hg-submenu-toggle svg {
  width: 16px;
  height: 16px;
  stroke: var(--hg-gold);
  transition: transform 0.25s;
  display: block !important; /* override rule ẩn svg cũ */
}

/* Khi open: xoay mũi tên xuống */
.hg-mobile-menu > li.is-open > .hg-submenu-toggle svg {
  transform: rotate(180deg);
}

/* Sub-menu chiếm full width dưới */
.hg-mobile-menu > li > .sub-menu,
.hg-mobile-menu > li > .nav-dropdown {
  width: 100%;
  flex-basis: 100%;
}

/* Reset margin Flatsome inject vào li trong mobile nav */
.hg-mobile-nav .hg-mobile-menu > li,
#hgMobileNav .hg-mobile-menu > li,
.hg-mobile-nav ul.nav-sidebar-ul > li,
#hgMobileNav ul.nav-sidebar-ul > li {
  margin: 0 !important;
  padding: 0 !important;
}

/* Override Flatsome margin inject vào button trong mobile nav */
#hgMobileNav button.hg-submenu-toggle,
.hg-mobile-nav button.hg-submenu-toggle {
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Global reset: Flatsome inject margin vào tất cả button — override hết */
#hgSiteHeader button,
#hgMobileNav button,
.hg-mobile-nav button,
.hg-site-header button {
  margin: 0 !important;
}

/* Flatsome svg:not(:root) override — fix hamburger/search lệch dọc */
#hgSiteHeader .hg-header__actions {
  align-items: center !important;
}
#hgSiteHeader .hg-header__actions > * {
  margin: 0 !important;
  align-self: center !important;
  vertical-align: middle !important;
}

/* ════════════════════════════════════════
   GLOBAL FLATSOME BUTTONS (PREMIUM STYLING)
════════════════════════════════════════ */
.button,
button.button,
input[type="submit"].button,
input[type="button"].button,
.button.primary,
.button.secondary,
.button.success,
.button.alert {
  font-family: var(--hg-font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 0.85rem 2rem !important;
  border-radius: var(--hg-radius-md) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  line-height: 1 !important;
  margin-bottom: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 1 !important;
  border: none !important;
  text-decoration: none !important;
}

/* Fix inner text z-index so it stays above shine effect */
.button > * {
  position: relative !important;
  z-index: 2 !important;
}

/* ── PRIMARY BUTTON ── */
.button.primary,
.button.is-form {
  background: var(--hg-gold) !important;
  color: var(--hg-brown-dark) !important;
  box-shadow: 0 4px 15px rgba(184, 133, 30, 0.15) !important;
}
.button.primary:hover,
.button.is-form:hover {
  background: var(--hg-gold-light) !important;
  color: var(--hg-brown-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(184, 133, 30, 0.25) !important;
}

/* ── PRIMARY OUTLINE BUTTON ── */
.button.primary.is-outline {
  background: transparent !important;
  color: var(--hg-gold) !important;
  border: 1px solid var(--hg-gold) !important;
  box-shadow: none !important;
}
.button.primary.is-outline:hover {
  background: var(--hg-gold) !important;
  color: var(--hg-brown-dark) !important;
  border-color: var(--hg-gold) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(184, 133, 30, 0.2) !important;
}

/* ── SECONDARY BUTTON ── */
.button.secondary {
  background: var(--hg-brown-dark) !important;
  color: var(--hg-gold) !important;
  box-shadow: 0 4px 15px rgba(61, 43, 10, 0.15) !important;
}
.button.secondary:hover {
  background: var(--hg-black) !important;
  color: var(--hg-gold-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(61, 43, 10, 0.25) !important;
}

/* ── SECONDARY OUTLINE BUTTON ── */
.button.secondary.is-outline {
  background: transparent !important;
  color: var(--hg-brown-dark) !important;
  border: 1px solid var(--hg-brown-dark) !important;
  box-shadow: none !important;
}
.button.secondary.is-outline:hover {
  background: var(--hg-brown-dark) !important;
  color: var(--hg-gold) !important;
  border-color: var(--hg-brown-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(61, 43, 10, 0.2) !important;
}

/* ── WHITE OUTLINE BUTTON (Cho nền tối) ── */
.button.white.is-outline {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: none !important;
}
.button.white.is-outline:hover {
  background: #ffffff !important;
  color: var(--hg-brown-dark) !important;
  border-color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15) !important;
}

/* ── SHINE EFFECT (Chỉ áp dụng cho nút nền đặc) ── */
.button:not(.is-outline)::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 50% !important;
  height: 100% !important;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%) !important;
  transform: skewX(-20deg) !important;
  z-index: 1 !important;
  transition: none !important;
}
.button:not(.is-outline):hover::after {
  animation: hgButtonShine 0.75s ease forwards !important;
}
@keyframes hgButtonShine {
  0% { left: -100%; }
  100% { left: 200%; }
}