/* SeaHome 3.1.6 | SAFE investor banner skin + global compact native Flatsome menu.
 * Critical fix: the homepage hero skin never styles .section/.banner dimensions,
 * backgrounds, overlays, section-content, banner-layers, text-box, desktop rows or
 * neighboring sections. This prevents the hero background from bleeding into “VỀ CHÚNG TÔI”.
 */
body.shbds-premium {
  --shbds-display-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shbds-ease: cubic-bezier(.22,1,.36,1);
  --shbds-blue: #1999ce;
  --shbds-blue-rgb: 25,153,206;
  --shbds-ink: #13749d;
  --shbds-deep: #0f5c7d;
  --shbds-gold: #c8962b;
  --shbds-gold-rgb: 200,150,43;
  --shbds-gold-light: #e1c589;
  --shbds-navy: #102f46;
}

/* Heading only — zero effect on section geometry. */
body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-title {
  position: relative;
  display: block;
  box-sizing: border-box;
  font-family: var(--shbds-display-font) !important;
  font-weight: 720 !important;
  font-style: normal !important;
  line-height: 1.18 !important;
  letter-spacing: -.026em !important;
  color: #fff !important;
  text-align: center !important;
  text-wrap: balance;
  text-shadow: 0 3px 20px rgba(0,24,42,.24);
}
body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-title :is(span,strong,b,em) {
  font: inherit !important;
  color: inherit !important;
  letter-spacing: inherit !important;
}
body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin: 12px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg,var(--shbds-gold),var(--shbds-gold-light));
  box-shadow: 0 2px 10px rgba(var(--shbds-gold-rgb),.2);
}

/* Decorate only the existing icon box. Do not set its wrapper width on desktop. */
body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-tile {
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 17px;
  background: linear-gradient(145deg,rgba(255,255,255,.115),rgba(255,255,255,.045));
  box-shadow: 0 8px 24px rgba(0,18,36,.07), inset 0 1px 0 rgba(255,255,255,.12);
  color: #fff;
  text-align: center !important;
  transition: transform 300ms var(--shbds-ease), border-color 240ms ease, background-color 240ms ease, box-shadow 300ms ease;
}
body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-tile .icon-box-img {
  margin-left: auto !important;
  margin-right: auto !important;
}
body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-tile .icon-box-text,
body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-tile .icon-box-text :is(p,a,span,h3,h4,h5,strong,b) {
  color: #fff !important;
  font-family: var(--shbds-display-font) !important;
  text-align: center !important;
}
body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-tile .icon-box-text :is(p,h3,h4,h5) { margin-bottom: 0 !important; }

@media (min-width:850px) {
  body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-title {
    font-size: clamp(30px,2.35vw,43px) !important;
    margin-bottom: clamp(20px,2vw,28px) !important;
  }
  body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-tile {
    padding: 16px 10px 14px !important;
  }
  body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-tile .icon-box-img {
    width: 42px !important;
    max-width: 42px !important;
  }
  body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-tile .icon-box-text {
    margin-top: 8px !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
  }
}
@media (min-width:850px) and (hover:hover) and (pointer:fine) {
  body.shbds-premium.shbds-motion.shbds-investor-banner-enabled .shbds-hero-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--shbds-gold-rgb),.82);
    background-color: rgba(var(--shbds-blue-rgb),.12);
    box-shadow: 0 14px 30px rgba(0,18,36,.14), inset 0 1px 0 rgba(255,255,255,.2);
  }
}

/* Mobile hero: same premium visual language, presented as a compact swipe rail.
 * Only the already-existing tile row is allowed to scroll; section geometry/background stays native.
 */
@media (max-width:849px) {
  body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-title {
    width: auto;
    max-width: calc(100% - 28px);
    margin: 0 auto 16px !important;
    padding: 0 4px !important;
    font-size: clamp(22px,6vw,29px) !important;
    line-height: 1.22 !important;
    letter-spacing: -.02em !important;
  }
  body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-title::after {
    width: 48px;
    margin-top: 10px;
  }
  body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-mobile-rail {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 3px 14px 12px !important;
    gap: 9px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 14px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-mobile-rail::-webkit-scrollbar { display:none; }
  body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-mobile-rail > .shbds-hero-tile-col {
    flex: 0 0 clamp(136px,42vw,172px) !important;
    width: clamp(136px,42vw,172px) !important;
    max-width: clamp(136px,42vw,172px) !important;
    padding: 0 !important;
    scroll-snap-align: start;
  }
  body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-tile-col > .col-inner { height:100%; }
  body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-tile {
    height: 100%;
    min-height: 104px;
    padding: 14px 8px 12px !important;
    border-radius: 15px;
    background: linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.055));
    box-shadow: 0 8px 20px rgba(0,18,36,.10), inset 0 1px 0 rgba(255,255,255,.14);
  }
  body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-tile .icon-box-img {
    width: 38px !important;
    max-width: 38px !important;
  }
  body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-tile .icon-box-text {
    margin-top: 7px !important;
    font-size: 13.5px !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
  }
}
@media (max-width:389px) {
  body.shbds-premium.shbds-investor-banner-enabled .shbds-hero-mobile-rail > .shbds-hero-tile-col {
    flex-basis: 140px !important;
    width: 140px !important;
    max-width: 140px !important;
  }
}

body.shbds-premium.shbds-motion-off .shbds-hero-tile { transition:none !important; animation:none !important; }
@media (prefers-reduced-motion:reduce) {
  body.shbds-premium .shbds-hero-tile { transition:none !important; animation:none !important; }
  body.shbds-premium.shbds-motion .shbds-hero-tile:hover { transform:none !important; }
}

/* Native menu, compact card. Scoped to #main-menu so cart/login lightboxes
 * never inherit these dimensions. Flatsome retains open/close and submenu logic.
 */
body.shbds-premium.shbds-compact-menu-enabled :is(.shbds-menu-dialog, .mfp-wrap:has(#main-menu)) .mfp-content {
  position: fixed;
  top: max(12px, env(safe-area-inset-top,0px));
  bottom: auto !important;
  left: max(12px,env(safe-area-inset-left,0px));
  right: auto;
  box-sizing: border-box;
  width: min(80vw,320px) !important;
  max-width: calc(100vw - 24px);
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100vh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
  max-height: calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
  margin: 0 !important;
  padding: 0 !important;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--shbds-gold-rgb),.55) transparent;
  -webkit-overflow-scrolling: touch;
  vertical-align: top;
  background: #fff;
  border: 1px solid rgba(var(--shbds-gold-rgb),.4);
  border-radius: 17px;
  box-shadow: 0 22px 70px rgba(0,19,34,.32), 0 2px 6px rgba(0,19,34,.08);
  transition: transform 320ms var(--shbds-ease), opacity 200ms ease;
}
body.shbds-premium.shbds-compact-menu-enabled :is(.shbds-menu-dialog, .mfp-wrap:has(#main-menu)).off-canvas-right .mfp-content {
  left: auto;
  right: max(12px,env(safe-area-inset-right,0px));
}
body.shbds-premium.shbds-compact-menu-enabled .shbds-menu-dialog[data-shbds-menu-position="center"] .mfp-content {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
body.shbds-premium.shbds-compact-menu-enabled.shbds-mobile-nav-open .mfp-bg.main-menu-overlay {
  background: #081d2e;
  opacity: .58;
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu {
  height: auto !important;
  min-height: 0 !important;
  max-width: 100%;
  margin: 0;
  padding: 0 !important;
  color: var(--shbds-navy);
  background: #fff;
  text-align: left;
  font-family: var(--shbds-display-font);
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .shbds-mobile-brand {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  box-sizing: border-box;
  padding: 8px 8px 8px 14px;
  background: linear-gradient(115deg,var(--shbds-navy),var(--shbds-deep));
  border-bottom: 2px solid var(--shbds-gold);
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .shbds-menu-brand-label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0;
  color: var(--shbds-gold-light);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .16em;
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .shbds-menu-brand-label::before {
  content: "";
  display: block;
  width: 3px;
  height: 21px;
  margin-right: 9px;
  border-radius: 99px;
  background: linear-gradient(180deg,var(--shbds-gold-light),var(--shbds-gold));
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .shbds-mobile-close {
  display: none; /* native close remains until the bridge is successfully bound */
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.08);
  box-shadow: none;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease;
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .shbds-mobile-close[data-shbds-bound="1"] { display: inline-flex; }
body.shbds-premium.shbds-compact-menu-enabled .shbds-menu-dialog.shbds-menu-bridge-ready .mfp-close { display: none; }
body.shbds-premium.shbds-compact-menu-enabled #main-menu .sidebar-menu {
  padding: 8px !important;
  margin: 0;
  background: #fff;
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar {
  width: 100%;
  padding: 0;
  margin: 0;
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar > li.menu-item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  min-height: 0;
  margin: 0 0 3px;
  padding: 0;
  border: 0 !important;
  background: transparent;
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar > li.menu-item:last-child { margin-bottom: 0; }
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar > li.menu-item > a {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 100%;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 8px 9px !important;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--shbds-navy) !important;
  font-family: var(--shbds-display-font) !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  letter-spacing: .005em !important;
  text-align: left;
  text-transform: none !important;
  white-space: normal;
  overflow-wrap: break-word;
  transition: background-color 180ms ease, color 180ms ease;
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar > li.menu-item-has-children > a,
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar > li.has-child > a { padding-right: 47px !important; }
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar > li.menu-item > a::after { display: none; }
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar > li:is(.current-menu-item,.current-menu-ancestor,.active) > a {
  color: var(--shbds-ink) !important;
  background: linear-gradient(100deg,rgba(var(--shbds-blue-rgb),.085),rgba(var(--shbds-gold-rgb),.06));
  box-shadow: inset 3px 0 0 var(--shbds-gold);
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .shbds-menu-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(var(--shbds-gold-rgb),.21);
  border-radius: 7px;
  background: linear-gradient(135deg,rgba(var(--shbds-blue-rgb),.035),rgba(var(--shbds-gold-rgb),.075));
  color: var(--shbds-ink);
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .shbds-menu-icon svg { width: 16px; height: 16px; margin: 0; }
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar li > .toggle {
  position: absolute;
  top: 1px;
  right: 2px;
  left: auto;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
  background: transparent;
  color: var(--shbds-ink);
  opacity: 1;
  line-height: 1;
  transform: none;
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar li > .toggle > i { font-size: 16px; line-height: 1; }
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar li > .toggle[data-shbds-caret] > i { display: none; }
body.shbds-premium.shbds-compact-menu-enabled #main-menu .shbds-menu-chevron {
  width: 16px;
  height: 16px;
  transform: rotate(0);
  transition: transform 230ms var(--shbds-ease);
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu:not(.mobile-sidebar-slide) li.active > .toggle .shbds-menu-chevron { transform: rotate(180deg); }
body.shbds-premium.shbds-compact-menu-enabled #main-menu.mobile-sidebar-slide .shbds-menu-chevron { transform: rotate(-90deg); }
/* Do not override display/height/position: Flatsome owns accordion and slide. */
body.shbds-premium.shbds-compact-menu-enabled #main-menu:not(.mobile-sidebar-slide) .nav-sidebar .children {
  flex-basis: calc(100% - 38px);
  width: calc(100% - 38px);
  margin: 2px 6px 7px 32px;
  padding: 3px 0 3px 9px;
  border-left: 1px solid rgba(var(--shbds-gold-rgb),.45);
  border-top: 0;
  border-bottom: 0;
  border-radius: 0 8px 8px 0;
  background: rgba(var(--shbds-blue-rgb),.025);
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar .children > li { position: relative; border: 0; margin: 0; }
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar .children > li > a {
  display: flex;
  align-items: center;
  min-height: 40px;
  max-width: 100%;
  padding: 8px 10px !important;
  margin: 0;
  border-radius: 7px;
  border: 0;
  font-family: var(--shbds-display-font) !important;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--shbds-navy);
  white-space: normal;
  overflow-wrap: anywhere;
  text-transform: none !important;
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar .children > li.menu-item-has-children > a { padding-right: 48px !important; min-height: 44px; }
body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar .children > li.current-menu-item > a { color: var(--shbds-ink); font-weight: 650; }
body.shbds-premium.shbds-compact-menu-enabled #main-menu :is(a,button):focus-visible {
  outline: 2px solid var(--shbds-gold);
  outline-offset: -2px;
}
body.shbds-premium.shbds-compact-menu-enabled #main-menu .shbds-mobile-close:hover { background-color: rgba(255,255,255,.16); }
@media (hover:hover) {
  body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar li > a:hover { background-color: rgba(var(--shbds-blue-rgb),.055); }
}
@media (max-width:359px) {
  body.shbds-premium.shbds-compact-menu-enabled #main-menu .shbds-mobile-close { margin-left: auto; }
  body.shbds-premium.shbds-compact-menu-enabled #main-menu .sidebar-menu { padding: 8px !important; }
  body.shbds-premium.shbds-compact-menu-enabled #main-menu .nav-sidebar > li.menu-item > a { font-size: 13.5px !important; gap: 8px; }
}
body.shbds-premium.shbds-motion-off :is(.shbds-menu-dialog, .mfp-wrap:has(#main-menu)) .mfp-content,
body.shbds-premium.shbds-motion-off #main-menu :is(a,button,.shbds-menu-chevron) { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion:reduce) {
  body.shbds-premium :is(.shbds-menu-dialog, .mfp-wrap:has(#main-menu)) .mfp-content,
  body.shbds-premium #main-menu :is(a,button,.shbds-menu-chevron) { transition: none !important; animation: none !important; }
}
@media print {
  body.shbds-premium #main-menu .shbds-mobile-brand { display: none; }
}
