/* =========================================================================
   VOYARA GLOBAL FOOTER OVERLAY  (loaded after the T4 optimize bundle)
   Corrects base-T4 leaks that the compiled scss footer block does not
   override, bringing the footer to 1:1 with pencil/voyara.pen node gBjhy.
   Light + dark. Loaded on every page via index.php addCustomTag.
   ========================================================================= */

/* --- Top row: .pen Top padding [56,48] -> vertical 56/56 (live bundle = 56/40) */
.voy-footer-top { padding: 56px 0 56px; }

/* --- Footer width + column balance: .pen gBjhy Top is fill_container with padding
       [56,48] -> content spans ~1344 (1440-96), NOT the 1140 site container. The five
       columns (Brand | Explore | Company | Resources | Newsletter) are distributed
       space-between. The compiled scss squeezed everything into .container (1140) and
       bunched the 3 nav columns inside a single centre grid track, so the nav block sat
       left with a large void before the newsletter. Span wide + flatten to one even row. */
.voy-footer-inner .voy-footer-top > .container {
  max-width: 1180px;
  padding-left: 20px; padding-right: 20px;
  /* The inner .container inherits a global 32px block padding, which stacks on
     top of .voy-footer-top's 56px → an 88px top/bottom gap, ~double the .pen's
     56. Zero it so the top block reads the pen's 56/56. */
  padding-top: 0; padding-bottom: 0;
}
.voy-footer-grid {
  display: flex; flex-direction: row; flex-wrap: nowrap;
  justify-content: space-between; align-items: flex-start; gap: 48px;
}
.voy-footer-links { display: contents; }   /* promote the 3 nav cols into the flex row */
.voy-footer-brandcol { flex: 0 1 300px; max-width: 300px; }
.voy-footer-col { flex: 0 0 auto; }
.voy-footer-newsletter { flex: 0 0 280px; max-width: 280px; }

@media (max-width: 991px) {
  .voy-footer-inner .voy-footer-top > .container { max-width: 100%; padding-left: 20px; padding-right: 20px; }
  .voy-footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
  .voy-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .voy-footer-brandcol, .voy-footer-newsletter, .voy-footer-col { flex: none; max-width: none; }
}

/* --- Column + newsletter titles: .pen gBjhy has NO underline on any footer
       title. Base T4 .module-title { border-bottom:1px solid #e9ecef } (and the
       dark-mode .module-dark .module-title span border) leak through; zero them
       for every title inside the footer (cols, newsletter, brand). */
#t4-footer .module-title,
#t4-footer .module-title span { border: 0 !important; padding-bottom: 0; }

/* --- Footer menu nav wrapper: mod_menu wraps the links in <nav class="navbar">,
       whose Bootstrap default padding (.5rem 1rem) indents every link 16px to the
       right of the column title → links look pushed inward. Zero it so links sit
       flush-left under the title (matches .pen gBjhy footer columns). */
.voy-footer-col .navbar { padding: 0; margin: 0; min-height: 0; }

/* --- Column links: .pen = Inter 14 / weight normal / NO uppercase, gap 14.
       Base T4 ".t4-footer .nav>li>a{text-transform:uppercase}" + .nav-link
       weight var + scss line-height:2 all deviate. */
.voy-footer-col a,
.voy-footer-col li a,
.voy-footer-col .nav > li > a,
.voy-footer-col .voy-footmenu a {
  text-transform: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  padding: 3px 0;
  white-space: nowrap;   /* .pen links are single-line; col is wide enough */
}

/* --- Active/current footer link must NOT bold or underline: .pen gBjhy has every
       link uniform Inter 14 / weight normal / #8A7E72. mod_menu adds `current active`
       on the item matching the URL and base CSS bolds the span — kill it. */
.voy-footer-col a,
.voy-footer-col .menu-item-title,
.voy-footer-col .current > a,
.voy-footer-col .active > a,
.voy-footer-col .current .menu-item-title,
.voy-footer-col .active .menu-item-title {
  font-weight: 400 !important;
  text-decoration: none !important;
}

/* --- Footer link hover: the T4 base `.t4-footer .nav>li>a:hover` (specificity
       0,3,2) out-weighs our `.voy-footer-col a:hover` (0,2,1), so it wins with
       `color:var(--footer-link-hover-color)` (low-contrast on the dark footer →
       "rất khó nhìn thấy chữ") + a dark `border-bottom:1px solid #212529` (the ugly
       underline). Restore a clean, high-contrast hover: brighten to the primary
       text colour (reads on BOTH the cream light footer and the dark footer),
       smooth transition, no underline. */
.voy-footer-col a,
.voy-footer-col li a,
.voy-footer-col .nav > li > a,
.voy-footer-col .voy-footmenu a {
  transition: color 0.18s ease;
}
.voy-footer-col a:hover,
.voy-footer-col li a:hover,
.voy-footer-col .nav > li > a:hover,
.voy-footer-col .nav > li > a:focus,
.voy-footer-col .voy-footmenu a:hover {
  color: var(--voy-heading) !important;
  border-bottom: 0 !important;
  background: none !important;
  text-decoration: none !important;
}

/* --- Brand col stack gap: .pen Brand Col gap 16 (live 18) */
.acm-footer-brand.style-1 { gap: 16px; }

/* --- Social icons: .pen icon 16x16 (live svg 18) */
.voy-social a svg { width: 16px; height: 16px; }

/* --- Acymailing newsletter form (mod_acym in footer) styled to .pen gBjhy Newsletter (H0GB7e) ---
   .pen layout: Title (module title) / Sub (introtext) / Field = [Input fill | Submit 42x42], gap 8.
   The Acymailing markup splits input (.acym_form) and button (p.acysubbuttons) into separate
   siblings under .acym_module_form, so flexing .acym_form alone leaves the button to wrap below.
   Lay the whole form out as a grid: introtext spans the full row, then input + button share row 2. */
.voy-footer-newsletter .acym_module, .t4-footer .acym_module { max-width: 280px; }
/* Newsletter column title (.pen CUuzF "GET TRAVEL INSPIRATION", Inter 13/700 #1A1512 ls0.5 uppercase, mb14)
   — newsletter now uses JAxhtml chrome (h4.module-title) like the nav columns; mirror their styling. */
.voy-footer-newsletter .module-title {
  font-family: var(--voy-font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--voy-heading); margin: 0 0 14px; border: 0; padding: 0; line-height: 1.3;
}
.voy-footer-newsletter .module-title span { font: inherit; color: inherit; letter-spacing: inherit; border: 0; }
.voy-footer-newsletter .acym_module_form {
  display: grid; grid-template-columns: 1fr 42px; column-gap: 8px; row-gap: 14px; align-items: center;
}
.voy-footer-newsletter .acym_introtext {
  grid-column: 1 / -1;
  color: var(--voy-muted); font-family: var(--voy-font-body); font-size: 14px; line-height: 1.6; margin: 0;
}
.voy-footer-newsletter .acym_form, .t4-footer .acym_form { grid-column: 1 / 2; margin: 0; min-width: 0; }
.voy-footer-newsletter .acym_form .onefield, .t4-footer .acym_form .onefield { margin: 0; min-width: 0; }
.voy-footer-newsletter .acym_form input[type="email"], .t4-footer .acym_form input[type="email"] {
  width: 100%; max-width: 100% !important; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--voy-border);
  background: var(--voy-surface); color: var(--voy-text); font-family: var(--voy-font-body); font-size: 14px;
}
.voy-footer-newsletter .acym_form input[type="email"]::placeholder { color: var(--voy-muted); }
.voy-footer-newsletter .acym_form input[type="email"]:focus { outline: none; border-color: var(--voy-primary); box-shadow: 0 0 0 3px rgba(194,86,47,0.15); }
/* submit button → .pen Submit: 42x42 rounded-square (r8), terracotta, arrow-right */
.voy-footer-newsletter .acysubbuttons { grid-column: 2 / 3; margin: 0; padding: 0; }
.voy-footer-newsletter .acym_module button, .voy-footer-newsletter .acym_module .button,
.voy-footer-newsletter .acym_module input[type="submit"], .t4-footer .acym_module button,
.voy-footer-newsletter .acym_module input[type="button"],
.voy-footer-newsletter .acym_module .subbutton,
.t4-footer .acym_module .subbutton {
  width: 42px !important; height: 42px !important; min-width: 42px; max-width: 42px;
  flex: 0 0 42px; box-sizing: border-box; padding: 0 !important; border: 0; border-radius: 8px;
  background: var(--voy-primary); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-appearance: none; appearance: none; text-indent: 0;
}
.voy-footer-newsletter .acym_module button:hover,
.voy-footer-newsletter .acym_module .subbutton:hover { background: #A6451F; }
/* hide Acymailing's required-field asterisk / extra labels in the compact footer form */
.voy-footer-newsletter .acym_module .acym_label, .voy-footer-newsletter .acym_module .acymailing_required { display: none; }

/* Footer legal/copyright bar sits in a plain Bootstrap .container whose default
   side gutter is 16px, so the copyright row is inset 4px tighter than the
   footer columns and the rest of the site (20px standard). Align it to 20px. */
.voy-footer-legal > .container,
.voy-footer-legal .acm-copyright > .container {
  padding-left: 20px;
  padding-right: 20px;
  /* Same global 32px block padding stacks on the legal bar's 20px → a 52px
     top/bottom band. Zero it so the copyright row reads the pen's 20/20. */
  padding-top: 0;
  padding-bottom: 0;
}
