/*
 * INTERTAX palette on top of the base template styles. Source: brand guideline p.9 — one brand colour, blue #024F9E
 * (C100 M79 Y3 K0 / R2 G79 B158) and its tint ramp. The template's orange/green/blue scales are all remapped to
 * this single blue family (tints = brand + white, shades = brand + black); greys are navy-tinted neutrals.
 * Loaded after the per-page <head> styles (header.php). Reverse logo (white) sits on brand blue per guideline p.8.
 */
:root {
  --brand-color--50: #F0F4F9;
  --brand-color--100: #DCE6F1;
  --brand-color--200: #B3CAE2;
  --brand-color--300: #80A7CE;
  --brand-color--400: #4980B9;
  --brand-color--500: #2064AA;
  --brand-color--600: #024F9E;   /* brand blue */
  --brand-color--700: #023E7B;
  --brand-color--800: #012E5C;
  --brand-color--900: #011E3C;
  /* template's green + blue scales -> same brand family (no teal / facebook-blue leftovers) */
  --green-color--50: var(--brand-color--50);
  --green-color--100: var(--brand-color--100);
  --green-color--200: var(--brand-color--200);
  --green-color--300: var(--brand-color--300);
  --green-color--400: var(--brand-color--400);
  --green-color--500: var(--brand-color--500);
  --green-color--600: var(--brand-color--600);
  --green-color--700: var(--brand-color--700);
  --green-color--800: var(--brand-color--800);
  --green-color--900: var(--brand-color--600);
  --blue-color--50: var(--brand-color--50);
  --blue-color--100: var(--brand-color--100);
  --blue-color--200: var(--brand-color--200);
  --blue-color--300: var(--brand-color--300);
  --blue-color--400: var(--brand-color--400);
  --blue-color--500: var(--brand-color--600);
  --blue-color--600: var(--brand-color--600);
  --blue-color--700: var(--brand-color--700);
  --blue-color--800: var(--brand-color--800);
  --blue-color--900: var(--brand-color--900);
  /* neutrals: clean off-white backgrounds, deep-navy text */
  --grey-color--50: #F5F8FC;
  --grey-color--100: #E5EBF3;
  --grey-color--200: #9AA9BD;
  --grey-color--300: #475A72;
  --grey-color--400: #22344D;
  --grey-color--500: #0E2038;
  --grey-color--600: #0A182B;
  --text-extra-subtle: #5F7188; /* was grey-200 (2.4:1 on white); now ~5:1 */
  --link-color-hover: var(--brand-color--700);
  --button-primary-bg-hover: var(--brand-color--700);
  --button-primary-border-hover: var(--brand-color--700);
  --button-primary-text-hover: #fff;
  --button-secondary-text: var(--brand-color--600);
  --button-secondary-bg: var(--brand-color--100);
  --button-secondary-border: var(--brand-color--100);
  --button-secondary-text-hover: #fff;
  --header-menu-link-color: var(--brand-color--600);
  --footer-bg-color: var(--brand-color--600);
  --footer-border-color: var(--brand-color--400);
  --tab-nav-item-inactive-bg: var(--brand-color--100);
  --slick-arrow-bg-color: var(--brand-color--50);
  --slick-arrow-hover-bg-color: var(--brand-color--600);
  --jplist-button-bg: var(--brand-color--50);
  --custom-scrollbar-thumb: var(--brand-color--600);
}

/* footer + other formerly near-black surfaces -> brand blue */
#footer-wrapper { background: var(--brand-color--600); }
#footer-wrapper .social-link { background-color: rgba(255, 255, 255, .14); }
#footer-wrapper .social-link:hover { background-color: rgba(255, 255, 255, .28); }

@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(2, 79, 158, .6); }
  70% { box-shadow: 0 0 0 4px rgba(2, 79, 158, 0); }
  to { box-shadow: 0 0 0 0 rgba(2, 79, 158, 0); }
}

/* imported content images carry width/height attributes of the original file; with max-width:100% they got squeezed horizontally and stayed full height (stretched) */
#main img[width][height]:not([class]) { height: auto; }

#footer-wrapper .itx-footer-menus { position: relative; }

/* header controls: pill radius like the homepage buttons (search, language switcher, "Liên hệ" CTA) */
#header-wrapper { --button-radius: 999px; }
#header-search-trigger, #header-wrapper .header-locations-trigger, #header-wrapper .header-contact-cta:not(.cta-button-header) { border-radius: 999px; }

/* header search panel: pill input with icon, suggestions (WP REST search) as a card */
#header-search-wrapper .header-search-content-container { max-width: 760px; margin: 0 auto; }
#header-search-field .hs-search-field__input { height: 52px; margin: 0; padding: 0 20px 0 50px; border: 1px solid rgba(2, 79, 158, .18); border-radius: 999px; background: #f5f9fd url(vendor/img/icon-search.svg) no-repeat 20px 50% / 17px; color: #0e2038; font: 400 15px/1.4 "Be Vietnam Pro", Poppins, sans-serif; box-shadow: none; outline: 0; transition: border-color .2s, box-shadow .2s, background-color .2s; }
#header-search-field .hs-search-field__input:focus { background-color: #fff; background-image: url(vendor/img/icon-search.svg); border-color: #024f9e; box-shadow: 0 0 0 4px rgba(2, 79, 158, .12); }
#header-search-field .hs-search-field__input::placeholder { background: none; color: #7d8ca3; font: inherit; }
#header-search-field.hs-search-field--open .hs-search-field__suggestions { top: 8px; max-height: 60vh; overflow: auto; padding: 8px; border: 1px solid rgba(2, 79, 158, .1); border-radius: 16px; box-shadow: 0 18px 40px rgba(1, 35, 80, .16); }
#header-search-field .hs-search-field__suggestions .results-for { padding: 6px 12px 8px; color: #6b7c93; font: 600 11.5px/1.4 "Be Vietnam Pro", Poppins, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
#header-search-field .hs-search-field__suggestions a { padding: 10px 12px; border-radius: 10px; color: #0e2038; font: 500 14px/1.45 "Be Vietnam Pro", Poppins, sans-serif; text-decoration: none; }
#header-search-field .hs-search-field__suggestions a:hover, #header-search-field .hs-search-field__suggestions a:focus { background-color: #eef5fc; color: #024f9e; }
@media (min-width: 1200px) { #header-wrapper .itx-m-only { display: none; } }   /* mobile-only menu items (header-chrome.php) */
@media (min-width: 1200px) {
  #header-search-wrapper { padding: 20px 24px 28px; border: 0; border-top: 1px solid rgba(2, 79, 158, .08); box-shadow: 0 24px 48px rgba(1, 35, 80, .14); }
  #header-search-wrapper > .search-close-button { top: 26px; right: 24px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #f2f6fb; color: #0e2038; font-size: 18px; cursor: pointer; transition: background-color .2s; }
  #header-search-wrapper > .search-close-button:hover { background: #e3edf8; }
}


/* ---------- footer: layered brand-blue surface, small-caps column titles, light-weight links ---------- */
#footer-wrapper { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 28px; color: rgba(255, 255, 255, .8);
  background: radial-gradient(700px 320px at 92% -6%, rgba(128, 167, 206, .42), transparent 70%), radial-gradient(520px 280px at 4% 108%, rgba(2, 62, 123, .75), transparent 70%), linear-gradient(180deg, #0A5BB0 0%, #024F9E 38%, #013A75 100%); }
#footer-wrapper::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
/* column titles (the depth-1 labels) */
#footer-wrapper .footer-main-menu .hs-menu-depth-1 > a { display: block; margin-bottom: 14px; padding-bottom: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9FCBF7; pointer-events: none; position: relative; }
#footer-wrapper .footer-main-menu .hs-menu-depth-1 > a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .15)); }
/* links: regular weight, softer white, nudge on hover */
#footer-wrapper .footer-main-menu .hs-menu-depth-2 > a { display: inline-block; padding: 6px 0; font-size: 15px; font-weight: 400; line-height: 1.5; color: rgba(255, 255, 255, .82); transition: color .25s, transform .3s cubic-bezier(.22, .8, .24, 1); }
#footer-wrapper .footer-main-menu .hs-menu-depth-2 > a:not([href="javascript:;"]):hover { color: #fff; transform: translateX(5px); }
/* contact info (left column): addresses -> Google Maps, phone / email links */
#footer-wrapper .itx-footer-info { display: flex; flex-direction: column; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
#footer-wrapper .itx-footer-info strong { font-weight: 600; color: rgba(255, 255, 255, .88); }
#footer-wrapper .itx-footer-info a { color: inherit; }
#footer-wrapper .itx-footer-info a:hover { color: #fff; }
/* social buttons: round glass chips that fill white on hover */
#footer-wrapper .social-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background-color: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background-color .3s, color .3s, transform .3s cubic-bezier(.22, .8, .24, 1); }
#footer-wrapper .social-link:hover { background-color: #fff; color: #024F9E; transform: translateY(-3px); }
/* MST line (left column, under the social icons) */
#footer-wrapper .itx-footer-tax { margin: 14px 0 0; font-size: 13.5px; font-weight: 400; color: rgba(255, 255, 255, .62); }
/* divider + legal line */
#footer-wrapper .separator { height: 1px; border: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); }
#footer-wrapper .copyright-text, #footer-wrapper .copyright-text p { font-size: 13.5px; font-weight: 400; color: rgba(255, 255, 255, .62); }
#footer-wrapper .footer-main-menu .hs-menu-depth-2 { margin: 0 !important; padding: 0 !important; }
#footer-wrapper .footer-main-menu .hs-menu-depth-2 > a { padding: 5px 0; }
/* tighter rows */
#footer-wrapper .footer-main-menu .hs-menu-depth-2 > a { padding: 2px 0; line-height: 1.4; font-size: 14.5px; }
#footer-wrapper .footer-main-menu .hs-menu-depth-1 > a { margin-bottom: 10px; padding-bottom: 10px; }
#footer-wrapper .footer-main-menu .hs-menu-children-wrapper { display: flex; flex-direction: column; gap: 2px; }
#footer-wrapper .footer-main-menu .hs-menu-depth-2 > a { margin-bottom: 0; }   /* template adds 1rem under every link */
#footer-wrapper .footer-main-menu .hs-menu-children-wrapper { gap: 0; }
#footer-wrapper .footer-main-menu .hs-menu-depth-2 > a { padding: 8px 0; line-height: 1.55; }

/* footer bottom bar: copyright left, DMCA badge + credit right */
#footer-wrapper .copyright-text strong { font-weight: 600; color: rgba(255, 255, 255, .8); }
#footer-wrapper .itx-footer-credit { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
#footer-wrapper .itx-footer-credit p { margin: 0; }
#footer-wrapper .itx-footer-credit a { color: rgba(255, 255, 255, .8); font-weight: 600; }
#footer-wrapper .itx-footer-credit a:hover { color: #fff; }
#footer-wrapper .itx-footer-credit .dmca-badge img { display: block; height: 32px; width: auto; }
@media (min-width: 768px) { #footer-wrapper .itx-footer-credit { align-items: flex-end; text-align: right; margin-top: 0; } }
/* header menu: 5 items (Dịch vụ … Doanh nghiệp FDIs) on one line */
#header-top-container .header-menu-container > ul > li > a { white-space: nowrap; }
#header-wrapper .header-contact-cta { white-space: nowrap; }
@media (max-width: 1199.9px) {   /* below the desktop menu: compact "Liên hệ" pill on the logo row, before the menu button */
  #header-wrapper .header-menu-container .itx-mega > a { display: none; }   /* mobile: the child-trigger button is the row; hide the duplicate parent link */
  #header-wrapper { padding: 12px 0; }   /* same space above and below the logo row */
  #header-top-container .header-contact-cta-container { order: 1; width: auto; margin: 0 10px 0 0; }
  #header-top-container .header-contact-cta-container > .header-contact-cta { width: auto; padding: 7px 14px; font-size: 13px; line-height: 1.2; }
  #header-top-container #mobile-menu-trigger { order: 2; position: relative; width: 38px; height: 38px; border: 1px solid rgba(0, 0, 0, .15); border-radius: 50%; background: #fff; }   /* round button, same height as "Liên hệ" */
  #header-top-container #mobile-menu-trigger span { left: 10px; width: 16px; }
  #header-top-container #mobile-menu-trigger span:first-child { top: 11px; }
  #header-top-container #mobile-menu-trigger span:nth-child(2) { left: auto; right: 10px; top: 17px; width: 12px; }
  #header-top-container #mobile-menu-trigger span:nth-child(3) { top: 23px; }
  #header-top-container #mobile-menu-trigger.open span:first-child { left: 12px; top: 11px; }
  #header-top-container #mobile-menu-trigger.open span:nth-child(2) { width: 0; }
  #header-top-container #mobile-menu-trigger.open span:nth-child(3) { left: 12px; top: 22.5px; width: 16px; }
  #header-top-container .header-menu-wrapper { order: 3; }
}
@media (min-width: 1200px) and (max-width: 1379px) { #header-top-container .header-menu-container > ul { gap: 12px; } #header-top-container .header-menu-container > ul > li > a { font-size: 13.5px; } }

/* floating contact block (Flatsome option "html_scripts_footer", printed on every page): bottom-left (as on the original site), compact.
   #ctadesk prefix beats the option's own inline styles; Flatsome's .button styles are reset for the front page look. */
#ctadesk { color: #22344d; font: 400 14px/1.3 "Be Vietnam Pro", Poppins, sans-serif; }
#ctadesk .call-mobile1, #ctadesk .hotlinefix { left: 16px; right: auto; z-index: 999; }
#ctadesk .call-mobile1 { bottom: 70px; height: auto; line-height: 1; padding: 0; }
#ctadesk .call-mobile1 .button { position: static; max-width: none; vertical-align: baseline; text-align: left; display: inline-flex; align-items: center; min-height: 0; margin: 0; padding: 8px 14px; border: 0; color: #fff; font: 600 11.5px/1.2 "Be Vietnam Pro", Poppins, sans-serif; letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(1, 35, 80, .25); }
#ctadesk .call-mobile1 .button span { display: inline; line-height: inherit; text-align: inherit; }
#ctadesk .hotlinefix { bottom: 16px; height: 44px; }
#ctadesk .hotlinefix .phone { position: static; display: flex; flex-direction: column; justify-content: center; height: 44px; padding: 0 16px 0 50px; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px rgba(1, 35, 80, .22); }
#ctadesk .hotlinefix .phone p { margin: 0; font-size: 13px; line-height: 1.3; }
#ctadesk .hotlinefix .phone p a { color: var(--brand-color--600); font: 700 13px/1.3 "Be Vietnam Pro", Poppins, sans-serif; text-decoration: none; text-shadow: none; }
#ctadesk .circle-hotline { position: absolute; left: 4px; top: 4px; width: 36px; height: 36px; margin: 0; transform: none; background-color: var(--brand-color--600); }   /* brand blue instead of the option's orange */
#ctadesk .circle-hotline::before, #ctadesk .circle-hotline::after { border-color: var(--brand-color--600); }
#ctadesk .circle-hotline span { display: block; margin: 8px; line-height: 0; }
#ctadesk .circle-hotline img { display: block; width: 20px; height: 20px; vertical-align: baseline; }
/* mobile contact bar (.bottom-contact, same option): identical on the front page (template CSS) and Flatsome pages */
@media (max-width: 769px) {
  #footer-wrapper { padding-bottom: 96px; }   /* room for the fixed bar */
  body .bottom-contact { color: #333; font: 400 16px/1.6 "Be Vietnam Pro", Poppins, sans-serif; }
  body .bottom-contact ul { margin: 0; padding: 0; list-style: none; }
  body .bottom-contact ul li { margin: 0 0 8px; padding: 0; line-height: 1.6; }
  body .bottom-contact ul li a { color: #0c4b6d; font-size: 13.5px; line-height: 1.6; }
  body .bottom-contact ul li img { display: inline-block; vertical-align: middle; height: auto; }
}
@media (min-width: 770px) { #footer-wrapper { padding-bottom: 112px; } }   /* last footer row above the floating #ctadesk block (bottom-left) */
/* scroll-to-top button (design/footer-chrome.php): bottom-right, above the mobile contact bar */
#itx-to-top { position: fixed; right: 16px; bottom: 16px; z-index: 999; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #024f9e; color: #fff; box-shadow: 0 8px 20px rgba(1, 35, 80, .28); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, visibility .25s, transform .25s, background-color .2s; }
#itx-to-top.is-visible { opacity: .55; visibility: visible; transform: none; }
#itx-to-top.is-visible:hover, #itx-to-top.is-visible:focus-visible { opacity: 1; background: #013a75; }
@media (max-width: 769px) { #itx-to-top { bottom: 84px; } }

/* "Dịch vụ" mega menu (desktop): full-width panel, every group open as a column */
@media screen and (min-width: 1200px) {
  #header-wrapper .itx-mega > .submenu-container-level-2 { left: 0; right: 0; width: auto; display: flex; justify-content: center; gap: 0 28px; padding: 28px 32px 32px; border: 0; border-top: 1px solid var(--border-color-secondary); background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 22px 40px rgba(1, 35, 80, .12); }
  #header-wrapper .itx-mega .submenu-container-level-2 > li.menu-item-level-2 { flex: 0 1 auto; min-width: 0; padding: 0; }
  #header-wrapper .itx-mega .menu-item-level-2 > a { padding: 0 0 12px; border-bottom: 1px solid var(--border-color-secondary); border-radius: 0; background: none; color: #0e2038; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
  #header-wrapper .itx-mega .menu-item-level-2 > a:hover { background: none; color: var(--link-color); }
  #header-wrapper .itx-mega > a.itx-mega-top { cursor: default; }
  #header-wrapper .itx-mega .menu-item-level-2 > a.itx-mega-head { cursor: default; pointer-events: none; }
  #header-wrapper .itx-mega .menu-item a.itx-no-link, #header-wrapper .itx-mega .submenu-container-level-3 a.itx-no-link { color: #C3CAD5; }   /* items pointing at the placeholder page: greyed out, still clickable */
  #header-wrapper .itx-mega .menu-item-level-2 .menu-item-label::after,
  #header-wrapper .itx-mega .menu-item-level-2 > .child-trigger { display: none; }
  #header-wrapper .itx-mega .submenu-container-level-3 { position: static; opacity: 1; pointer-events: auto; padding: 0; border: 0; background: none; }
  #header-wrapper .itx-mega .submenu-container-level-3 > li { padding: 0; border-bottom: 1px solid var(--border-color-secondary); }
  #header-wrapper .itx-mega .submenu-container-level-3 > li:last-child { border-bottom: 0; }
  #header-wrapper .itx-mega .menu-item-label { white-space: normal; }   /* columns shrink + wrap on narrower desktops */
  #header-wrapper .itx-mega .submenu-container-level-3 a { padding: 11px 0; border-radius: 0; background: none; color: #4b5563; font-size: 14px; }
  #header-wrapper .itx-mega .submenu-container-level-3 a:hover { background: none; color: var(--link-color); }
}

/* footer columns: 4 equal menu columns (chrome.css only has the 3-column grid); desktop: slimmer logo/info column, menus take the rest */
#footer-wrapper .footer-main-menu-4-columns .hs-menu-wrapper > ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1100px) {
  #footer-wrapper .container > .flex-row > .flex-md-3 { flex: 0 0 300px; }
  #footer-wrapper .container > .flex-row > .itx-footer-menus { flex: 1 1 0; min-width: 0; margin-left: 88px; }
}
@media (max-width: 1199.9px) {   /* mobile submenu header: "‹ Quay lại" | title | × with 44px tap targets */
  #header-wrapper .submenu-mobile-title { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  #header-wrapper .submenu-back-button { display: flex; align-items: center; gap: 2px; justify-self: start; width: auto; height: 44px; padding: 0 12px 0 0; color: #024F9E; font-size: 15px; font-weight: 600; }
  #header-wrapper .submenu-close-button { justify-self: end; width: 44px; height: 44px; }
  /* start the submenu panel below the header bar: on iPhone the bar stays on top of a panel anchored at top: 0 and hides its "Quay lại" row */
  #header-wrapper .menu-item-level-1 > .submenu-container-level-2 { top: var(--position-sticky-offset, 0px); height: calc(100vh - var(--position-sticky-offset, 0px)); height: calc(100dvh - var(--position-sticky-offset, 0px)); }
}
