/* ==========================================================================
   GYS LANDING PAGE SYNCHRONIZATION STYLESHEET (v5.0)
   1. Renders the exact Main Website Header (#header + #main-menu) immune to
      LadiPage CSS resets (#style_ladi / body { font-size: 12px }).
   2. Unifies 100% of Landing Page typography to a single clean font: Be Vietnam Pro.
   3. Synchronizes brand colors across all Landing Pages to GYS Logo Green (#77A541).
   ========================================================================== */

:root {
  --gys-logo-green: #77A541;
  --gys-logo-green-dark: #5C872B;
  --gys-logo-green-light: #99C265;
  --gys-logo-green-tint: #EEF6E5;
  --gys-ink: #1F3314;
  --gys-ink-soft: #365224;
  --gys-ink-muted: #5F784D;
  --gys-warm-white: #FAFDF7;
  --gys-cream: #F4F9EE;

  /* Override custom Landing Page CSS variables (1000 GV Bình An, Thứ 6 Mở Nghề, etc.) */
  --green-primary: #77A541 !important;
  --green-dark: #5C872B !important;
  --green-deep: #1F3314 !important;
  --green-forest: #14220C !important;
  --green-accent: #77A541 !important;
  --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  --font-serif: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* 1. UNIFIED SINGLE FONT ACROSS ALL LANDING PAGES: BE VIETNAM PRO */
html body,
body .ladi-wraper,
body .ladi-headline,
body .ladi-paragraph,
body .ladi-list-paragraph,
body .ladi-form,
body .ladi-form-control,
body .ladi-button .ladi-headline,
body h1, body h2, body h3, body h4, body h5, body h6,
body p, body a, body span, body li, body label,
body button, body input, body select, body textarea, body blockquote {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Match horizontal character density of Open Sans/Roboto inside fixed LadiPage boxes so lines never overflow */
body .ladi-wraper .ladi-headline,
body .ladi-wraper .ladi-paragraph {
  letter-spacing: -0.022em !important;
}

/* Ensure all LadiPage CTA buttons & headlines are immediately visible even before scroll animations */
body .ladi-animation-hidden {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Keep LadiPage video containers within normal page stacking so they never overlap sticky #header or modals */
body .ladi-wraper .ladi-video,
body .ladi-wraper [id^="VIDEO"] {
  z-index: 5 !important;
}

@media (min-width: 768px) {
  body[data-gys-lp-slug="gys-yoga-kids"] #HEADLINE573 > .ladi-headline,
  body[data-gys-lp-slug="khoa-hoc-hlv-yoga-kids"] #HEADLINE573 > .ladi-headline {
    white-space: nowrap !important;
    font-size: 16px !important;
  }
}

/* 2. PREVENT INTERNAL SUB-HEADERS FROM COLLIDING WITH MAIN STICKY HEADER */
header:not(#header),
.site-header-sticky-wrapper,
.site-header,
.ladi-wraper > #SECTION57,
.ladi-wraper > #SECTION0 {
  position: relative !important;
  top: auto !important;
}

/* 3. EXACT MAIN WEBSITE HEADER (#header) — SCOPED & PIXEL-ACCURATE */
#header,
#header *,
#header *::before,
#header *::after,
#main-menu,
#main-menu *,
#gys-mobile-overlay {
  box-sizing: border-box !important;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

#header {
  width: 100% !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999999990 !important;
  background: rgba(250, 253, 247, 0.97) !important;
  border-bottom: 1px solid rgba(119, 165, 65, 0.22) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.admin-bar #header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar #header {
    top: 46px !important;
  }
}

#header .header-wrapper {
  width: 100% !important;
  position: relative !important;
  background: rgba(250, 253, 247, 0.97) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  transition: box-shadow 0.25s ease !important;
  overflow: visible !important;
}

#header .header-wrapper.stuck {
  box-shadow: 0 4px 20px rgba(31, 51, 20, 0.08) !important;
}

#header .header-bg-container {
  display: none !important;
}

#header .header-main {
  height: 90px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  z-index: 10 !important;
  overflow: visible !important;
}

#header .header-inner {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 auto !important;
  padding: 0 48px !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  overflow: visible !important;
}

#header #logo {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

#header #logo a {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

#header #logo img {
  max-height: 48px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
}

#header .flex-col {
  max-height: 100% !important;
  overflow: visible !important;
}

#header .flex-grow {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

#header .flex-right {
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

/* Visibility Helpers inside #header */
@media screen and (max-width: 849px) {
  #header .hide-for-medium {
    display: none !important;
  }
  #header .header-main {
    height: 70px !important;
  }
  #header .header-inner {
    padding: 0 14px !important;
    gap: 8px !important;
  }
  #header #logo {
    order: 2 !important;
    margin: 0 auto !important;
  }
  #header #logo img {
    max-height: 40px !important;
  }
  #header .flex-col.show-for-medium.flex-left {
    order: 1 !important;
    flex: 0 0 42px !important;
    display: flex !important;
    align-items: center !important;
  }
  #header .flex-col.show-for-medium.flex-right {
    order: 3 !important;
    flex: 0 0 42px !important;
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
}

@media screen and (min-width: 850px) {
  #header .show-for-medium {
    display: none !important;
  }
}

/* Desktop Navigation List */
#header ul.nav {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}

#header ul.header-nav-main {
  gap: 20px !important;
  justify-content: center !important;
}

#header ul.header-nav-main > li {
  position: relative !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

#header ul.header-nav-main > li > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 10px 0 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
  color: #1F3314 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: color 0.2s ease !important;
}

#header ul.header-nav-main > li > a:hover,
#header ul.header-nav-main > li.active > a,
#header ul.header-nav-main > li.current-menu-item > a {
  color: #77A541 !important;
}

/* Chevron Down Icon */
#header .icon-angle-down {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-style: normal !important;
}
#header .icon-angle-down::before {
  content: "" !important;
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-right: 1.6px solid currentColor !important;
  border-bottom: 1.6px solid currentColor !important;
  transform: rotate(45deg) !important;
  margin-left: 3px !important;
  margin-top: -2px !important;
}

/* Dropdown Sub-menus */
#header ul.header-nav-main .nav-dropdown {
  position: absolute !important;
  top: 100% !important;
  left: -99999px !important;
  min-width: 260px !important;
  background: #ffffff !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  list-style: none !important;
  border: 0 !important;
  border-top: 3px solid #77A541 !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 14px 40px rgba(31, 51, 20, 0.16) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
  z-index: 999999991 !important;
  display: block !important;
}

#header ul.header-nav-main > li.has-dropdown:hover > .nav-dropdown,
#header ul.header-nav-main > li.menu-item-has-children:hover > .nav-dropdown {
  left: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#header ul.header-nav-main .nav-dropdown > li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#header ul.header-nav-main .nav-dropdown > li > a {
  display: block !important;
  padding: 11px 20px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #365224 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

#header ul.header-nav-main .nav-dropdown > li > a:hover {
  color: #5C872B !important;
  background: #EEF6E5 !important;
  padding-left: 25px !important;
}

/* Search Box in Header & Mobile Drawer */
#header .header-search-form-wrapper {
  min-width: 220px !important;
  max-width: 240px !important;
}

#header .searchform .flex-row,
#main-menu .searchform .flex-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  position: relative !important;
  width: 100% !important;
}

#header .searchform .flex-col.flex-grow,
#main-menu .searchform .flex-col.flex-grow {
  flex: 1 1 auto !important;
  width: 100% !important;
}

#header .searchform .search-field,
#main-menu .searchform .search-field {
  width: 100% !important;
  height: 42px !important;
  background: #ffffff !important;
  border: 1px solid rgba(31, 51, 20, 0.12) !important;
  border-radius: 999px !important;
  padding: 0 46px 0 18px !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  line-height: 42px !important;
  color: #1F3314 !important;
  box-shadow: 0 1px 4px rgba(31, 51, 20, 0.06) !important;
  outline: none !important;
}

#header .searchform .search-field::placeholder,
#main-menu .searchform .search-field::placeholder {
  color: #849478 !important;
  opacity: 1 !important;
}

#header .searchform .search-field:focus,
#main-menu .searchform .search-field:focus {
  border-color: #77A541 !important;
  box-shadow: 0 0 0 3px rgba(119, 165, 65, 0.16) !important;
}

#header .searchform .flex-col:last-of-type,
#main-menu .searchform .flex-col:last-of-type {
  display: flex !important;
  align-items: center !important;
  margin-left: -38px !important;
  padding-right: 5px !important;
  z-index: 2 !important;
}

#header .ux-search-submit,
#main-menu .ux-search-submit {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  background: #77A541 !important;
  color: #ffffff !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

#header .ux-search-submit:hover,
#main-menu .ux-search-submit:hover {
  background: #5C872B !important;
}

#header .icon-search::before,
#main-menu .icon-search::before {
  content: "" !important;
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

#header .icon-menu::before {
  content: "" !important;
  display: inline-block !important;
  width: 22px !important;
  height: 22px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F3314' stroke-width='2.2' stroke-linecap='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

#header .mobile-nav .header-search > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #77A541 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Responsive Breakpoints for Desktop Header (850px - 1399px) */
@media (min-width: 850px) and (max-width: 1239px) {
  #header .header-inner {
    padding: 0 20px !important;
    gap: 12px !important;
  }
  #header ul.header-nav-main {
    gap: 11px !important;
  }
  #header ul.header-nav-main > li > a {
    font-size: 11.5px !important;
    letter-spacing: 0.1px !important;
  }
  #header .header-search-form-wrapper {
    min-width: 175px !important;
    max-width: 195px !important;
  }
}

@media (min-width: 1240px) and (max-width: 1399px) {
  #header .header-inner {
    padding: 0 32px !important;
    gap: 16px !important;
  }
  #header ul.header-nav-main {
    gap: 16px !important;
  }
  #header ul.header-nav-main > li > a {
    font-size: 13px !important;
  }
}

/* Live Search Dropdown */
#header .live-search-results,
#main-menu .live-search-results {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  min-width: 280px !important;
  background: #ffffff !important;
  border-top: 3px solid #77A541 !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 14px 40px rgba(31, 51, 20, 0.18) !important;
  display: none !important;
  max-height: 360px !important;
  overflow-y: auto !important;
  z-index: 999999992 !important;
}

#header .live-search-results.is-active,
#main-menu .live-search-results.is-active {
  display: block !important;
}

#header .live-search-item,
#main-menu .live-search-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid rgba(31, 51, 20, 0.06) !important;
  color: #1F3314 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}

#header .live-search-item:hover,
#main-menu .live-search-item:hover {
  background: #F4F9EE !important;
  color: #5C872B !important;
}

#header .live-search-item img,
#main-menu .live-search-item img {
  width: 42px !important;
  height: 42px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  flex-shrink: 0 !important;
}

/* 4. MOBILE OFF-CANVAS MENU DRAWER (#gys-mobile-overlay & #main-menu) */
#gys-mobile-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(20, 34, 12, 0.62) !important;
  z-index: 999999994 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.28s ease !important;
}

#gys-mobile-overlay.is-open {
  opacity: 1 !important;
  visibility: visible !important;
}

#main-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 300px !important;
  max-width: 85vw !important;
  background: #FAFDF7 !important;
  z-index: 999999995 !important;
  transform: translateX(-100%) !important;
  transition: transform 0.28s ease !important;
  padding: 24px 20px !important;
  overflow-y: auto !important;
  box-shadow: 8px 0 32px rgba(20, 34, 12, 0.22) !important;
}

#main-menu.is-open {
  transform: translateX(0) !important;
}

#main-menu .gys-mobile-drawer__close {
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 26px !important;
  line-height: 1 !important;
  color: #5F784D !important;
  padding: 6px !important;
  cursor: pointer !important;
}

#main-menu ul.gys-mobile-nav {
  list-style: none !important;
  padding: 0 !important;
  margin: 20px 0 0 !important;
}

#main-menu ul.gys-mobile-nav > li {
  border-bottom: 1px solid rgba(31, 51, 20, 0.08) !important;
  list-style: none !important;
}

#main-menu ul.gys-mobile-nav > li > a {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 13px 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  color: #1F3314 !important;
  text-decoration: none !important;
}

#main-menu ul.gys-mobile-nav .sub-menu {
  list-style: none !important;
  padding: 0 0 10px 14px !important;
  margin: 0 !important;
}

#main-menu ul.gys-mobile-nav .sub-menu li a {
  display: block !important;
  padding: 8px 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #5F784D !important;
  text-decoration: none !important;
}

#main-menu ul.gys-mobile-nav .sub-menu li a:hover {
  color: #77A541 !important;
}
