/* ======================================================================
   FXZone Home — shared-header compatibility layer

   The Home page keeps legacy home-only CSS for its hero and sections. Some
   of those older rules also target the former header markup and can force
   the shared navigation into a tall, vertical layout. This final stylesheet
   is loaded after every other FXZone stylesheet and makes the Home header use
   the same stable layout as the inner pages.
   ====================================================================== */

html body.fxz-home-page .fxz-site-header.header-style-two,
html body.fxz-home-page .fxz-site-header.header-style-two .header-lower,
html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header{
  width:100%!important;
  max-width:none!important;
  background:#11141b!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  left:auto!important;
  min-height:82px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower > .outer-container.fxz-site-shell{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  left:auto!important;
  display:block!important;
  width:min(1460px,calc(100% - 56px))!important;
  max-width:none!important;
  min-height:82px!important;
  margin:0 auto!important;
  padding:0!important;
  background:transparent!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower > .outer-container > .outer-box{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  left:auto!important;
  display:grid!important;
  grid-template-columns:180px minmax(0,1fr) auto!important;
  align-items:center!important;
  justify-content:stretch!important;
  gap:18px!important;
  width:100%!important;
  min-width:0!important;
  min-height:82px!important;
  margin:0!important;
  padding:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .logo-box{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  left:auto!important;
  display:block!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .logo-box .logo{
  display:block!important;
  margin:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .logo-box a{
  display:inline-flex!important;
  align-items:center!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .logo-box img{
  display:block!important;
  width:auto!important;
  max-width:168px!important;
  max-height:54px!important;
  object-fit:contain!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .menu-area{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .main-menu{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .main-menu .navbar-collapse,
html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .main-menu .navbar-collapse.show{
  display:block!important;
  width:100%!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .main-menu .navigation{
  position:relative!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  width:100%!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .main-menu .navigation > li{
  position:relative!important;
  display:block!important;
  float:none!important;
  flex:0 0 auto!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .main-menu .navigation > li > a{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-height:46px!important;
  margin:0!important;
  padding:12px 11px!important;
  border-radius:11px!important;
  color:#f5f7fb!important;
  font-size:14px!important;
  line-height:22px!important;
  font-weight:700!important;
  white-space:nowrap!important;
  text-transform:none!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .main-menu .navigation > li.current > a,
html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .main-menu .navigation > li:hover > a{
  background:#fecb07!important;
  color:#11141b!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .main-menu .navigation > li.dropdown > a{
  padding-right:29px!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .main-menu .navigation > li.dropdown > a::before{
  top:50%!important;
  right:11px!important;
  color:currentColor!important;
  transform:translateY(-50%)!important;
}

/* Keep the Resources dropdown identical to inner FXZone pages. */
html body.fxz-home-page .fxz-site-header.header-style-two .main-menu .navigation > li > ul,
html body.fxz-home-page .fxz-site-header.header-style-two .main-menu .navigation > li > ul.runtime-global-submenu{
  position:absolute!important;
  top:calc(100% + 10px)!important;
  right:auto!important;
  left:0!important;
  display:block!important;
  width:auto!important;
  min-width:270px!important;
  height:auto!important;
  margin:0!important;
  padding:10px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:16px!important;
  background:#161b25!important;
  box-shadow:0 24px 70px rgba(0,0,0,.38)!important;
  overflow:hidden!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .main-menu .navigation > li > ul > li{
  position:relative!important;
  display:block!important;
  float:none!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .main-menu .navigation > li > ul > li > a{
  display:block!important;
  width:100%!important;
  padding:12px 14px!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#d9e0e9!important;
  font-size:14px!important;
  line-height:20px!important;
  font-weight:650!important;
  white-space:normal!important;
  text-transform:none!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .main-menu .navigation > li > ul > li.current > a,
html body.fxz-home-page .fxz-site-header.header-style-two .main-menu .navigation > li > ul > li:hover > a{
  padding-left:18px!important;
  background:rgba(254,203,7,.12)!important;
  color:#fecb07!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .menu-right-content{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  width:auto!important;
  min-width:max-content!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .menu-right-content .btn-box{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .runtime-header-actions--fxzone{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  gap:8px!important;
  width:auto!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .menu-right-content .theme-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:84px!important;
  min-height:48px!important;
  margin:0!important;
  padding:11px 15px!important;
  border-radius:11px!important;
  font-size:14px!important;
  line-height:20px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .fxz-language-box{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:138px!important;
  min-width:138px!important;
  max-width:138px!important;
  height:48px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:11px!important;
  background:#191f2a!important;
  overflow:hidden!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .fxz-language-box:empty{
  display:none!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .fxz-language-box .runtime-language-control--fxzone{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0 10px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .fxz-language-box .runtime-language-control--fxzone::after{
  display:none!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .fxz-language-box select{
  display:block!important;
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:46px!important;
  margin:0!important;
  padding:0 20px 0 2px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#f5f7fb!important;
  font-size:13px!important;
  line-height:46px!important;
  font-weight:650!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .mobile-nav-toggler{
  display:none!important;
}

/* Sticky header: same three-column system, without home-only positioning. */
html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header{
  position:fixed!important;
  top:0!important;
  right:0!important;
  left:0!important;
  z-index:9999!important;
  display:block;
  min-height:76px!important;
  padding:0!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 18px 45px rgba(0,0,0,.24)!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header > .outer-container.fxz-site-shell{
  position:relative!important;
  display:block!important;
  width:min(1460px,calc(100% - 56px))!important;
  max-width:none!important;
  min-height:76px!important;
  margin:0 auto!important;
  padding:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .outer-box{
  position:relative!important;
  display:grid!important;
  grid-template-columns:180px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:18px!important;
  width:100%!important;
  min-height:76px!important;
  margin:0!important;
  padding:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .logo-box,
html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .menu-area,
html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .menu-right-content{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  left:auto!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .menu-area{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .menu-right-content{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  width:auto!important;
  min-width:max-content!important;
  margin:0!important;
  padding:0!important;
}

html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .fxz-sticky-nav-toggler{
  display:none!important;
}

/* Compact desktop before switching to the proper mobile menu. */
@media only screen and (max-width:1360px) and (min-width:1241px){
  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower > .outer-container.fxz-site-shell,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header > .outer-container.fxz-site-shell{
    width:calc(100% - 36px)!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower > .outer-container > .outer-box,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .outer-box{
    grid-template-columns:158px minmax(0,1fr) auto!important;
    gap:12px!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .logo-box img,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .logo-box img{
    max-width:150px!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .main-menu .navigation > li > a,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .main-menu .navigation > li > a{
    padding-right:8px!important;
    padding-left:8px!important;
    font-size:13px!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .main-menu .navigation > li.dropdown > a,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .main-menu .navigation > li.dropdown > a{
    padding-right:25px!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .menu-right-content .theme-btn,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .menu-right-content .theme-btn{
    min-width:76px!important;
    padding-right:12px!important;
    padding-left:12px!important;
    font-size:13px!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .fxz-language-box,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .fxz-language-box{
    width:118px!important;
    min-width:118px!important;
    max-width:118px!important;
  }
}

/* Switch cleanly to the supplied mobile drawer before the desktop row crowds. */
@media only screen and (max-width:1240px){
  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower,
  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower > .outer-container.fxz-site-shell{
    min-height:76px!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower > .outer-container.fxz-site-shell,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header > .outer-container.fxz-site-shell{
    display:block!important;
    width:calc(100% - 36px)!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower > .outer-container > .outer-box,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .outer-box{
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:18px!important;
    min-height:76px!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .main-menu,
  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .menu-right-content,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .menu-area,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .menu-right-content{
    display:none!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .menu-area{
    display:flex!important;
    flex:0 0 auto!important;
    width:auto!important;
    margin-left:auto!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .mobile-nav-toggler,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .fxz-sticky-nav-toggler{
    display:flex!important;
    flex:0 0 48px!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    width:48px!important;
    height:48px!important;
    margin:0!important;
    padding:0!important;
    border-radius:11px!important;
    background:#fecb07!important;
    cursor:pointer!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .mobile-nav-toggler .icon-bar,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .fxz-sticky-nav-toggler .icon-bar{
    display:block!important;
    width:21px!important;
    height:2px!important;
    margin:0!important;
    background:#11141b!important;
  }
}

@media only screen and (max-width:991px){
  html body.fxz-home-page .fxz-site-header .fxz-site-topbar{
    display:none!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower > .outer-container.fxz-site-shell,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header > .outer-container.fxz-site-shell{
    width:calc(100% - 30px)!important;
  }
}

@media only screen and (max-width:575px){
  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower .logo-box img,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header .logo-box img{
    max-width:145px!important;
    max-height:48px!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .header-lower > .outer-container.fxz-site-shell,
  html body.fxz-home-page .fxz-site-header.header-style-two .sticky-header > .outer-container.fxz-site-shell{
    width:calc(100% - 22px)!important;
  }
}

/* Preserve the native sticky-header trigger even where legacy Home media
   queries previously forced the sticky header to display:none. */
html body.fxz-home-page header.fxz-site-header.header-style-two .sticky-header{
  display:block!important;
}

html body.fxz-home-page header.fxz-site-header.header-style-two.fixed-header .sticky-header{
  z-index:9999!important;
  opacity:1!important;
  visibility:visible!important;
}

/* Resources mega-menu bridge: the Home header loads this file after the
   shared FXZone stylesheet, so repeat only the richer Resources rules here. */
@media only screen and (min-width:1241px){
  html body.fxz-home-page .fxz-site-header.header-style-two .main-menu .navigation > li.fxz-resources-dropdown > ul.fxz-resources-menu,
  html body.fxz-home-page .fxz-site-header.header-style-two .main-menu .navigation > li.fxz-resources-dropdown > ul.runtime-global-submenu.fxz-resources-menu{
    left:50%!important;
    right:auto!important;
    width:650px!important;
    min-width:650px!important;
    margin-left:-325px!important;
    padding:12px!important;
    column-count:2!important;
    column-gap:8px!important;
    overflow:visible!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .main-menu .navigation > li.fxz-resources-dropdown > ul.fxz-resources-menu > li{
    display:inline-block!important;
    width:100%!important;
    break-inside:avoid!important;
    vertical-align:top!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .main-menu .navigation > li.fxz-resources-dropdown > ul.fxz-resources-menu > li > a{
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    min-height:68px!important;
    margin:0 0 6px!important;
    padding:10px 12px!important;
    border:1px solid transparent!important;
  }

  html body.fxz-home-page .fxz-site-header.header-style-two .main-menu .navigation > li.fxz-resources-dropdown > ul.fxz-resources-menu > li.current > a,
  html body.fxz-home-page .fxz-site-header.header-style-two .main-menu .navigation > li.fxz-resources-dropdown > ul.fxz-resources-menu > li:hover > a{
    padding-left:12px!important;
    border-color:rgba(254,203,7,.18)!important;
  }
}
