/* =========================================================
   ICS GLOBAL NAV STANDARDISATION - FINAL
   Load after all page-specific CSS.
   Keeps the header/nav identical across homepage, membership,
   training, advice, shop, directory and member profile pages.
   ========================================================= */

html body .site-header,
html body header.site-header.sticky-top {
  background: rgba(255, 255, 255, .97) !important;
  background-color: rgba(255, 255, 255, .97) !important;
  border-bottom: 1px solid rgba(9, 48, 64, .06) !important;
  box-shadow: 0 2px 18px rgba(9, 48, 64, .11) !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 1040 !important;
}

html body .site-header .navbar {
  background: transparent !important;
  min-height: 0 !important;
}

html body .site-header .nav-wrap {
  min-height: 108px !important;
  padding-top: .75rem !important;
  padding-bottom: .75rem !important;
  overflow: visible !important;
  column-gap: 2.35rem !important;
}

/* Keep logo-only header consistent */
html body .site-header .brand-lockup .brand-name,
html body .site-header .navbar-brand .brand-name {
  display: none !important;
}

html body .site-header .brand-lockup,
html body .site-header .navbar-brand {
  gap: 0 !important;
  overflow: visible !important;
}

/* Desktop logo/content alignment */
@media (min-width: 1200px) {
  html body .site-header .nav-wrap {
    padding-left: clamp(8.75rem, 12vw, 14.25rem) !important;
    padding-right: clamp(4.25rem, 6vw, 7rem) !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  html body .site-header .nav-wrap {
    padding-left: clamp(5.5rem, 8vw, 7.5rem) !important;
    padding-right: clamp(2.5rem, 4vw, 4rem) !important;
  }
}

/* Logo size */
html body .site-header a.brand-lockup > img.brand-logo,
html body .site-header a.navbar-brand > img.brand-logo,
html body .site-header img.brand-logo,
html body .site-header .brand-logo {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  flex: 0 0 96px !important;
  display: block !important;
  transform: none !important;
  object-fit: contain !important;
}

/* Nav text */
html body .site-header .navbar .nav-link,
html body .site-header .navbar-nav .nav-link,
html body .site-header .dropdown-toggle {
  color: #093040 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: .7rem .75rem !important;
  position: relative !important;
  text-decoration: none !important;
}

html body .site-header .navbar .nav-link:hover,
html body .site-header .navbar .nav-link:focus,
html body .site-header .navbar .nav-link.active {
  color: #0FA644 !important;
}

/* One consistent active underline */
html body .site-header .navbar .nav-link.active::after {
  content: "" !important;
  position: absolute !important;
  left: .75rem !important;
  right: .75rem !important;
  bottom: .42rem !important;
  width: auto !important;
  height: 2px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #0FA644 !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Bootstrap dropdown arrows, consistent and small */
html body .site-header .dropdown-toggle::after {
  display: inline-block !important;
  margin-left: .35rem !important;
  vertical-align: .14em !important;
  border-top: .3em solid !important;
  border-right: .3em solid transparent !important;
  border-bottom: 0 !important;
  border-left: .3em solid transparent !important;
}

/* Dropdown panel */
html body .site-header .dropdown-menu,
html body .site-header .shop-dropdown {
  border: 1px solid rgba(9, 48, 64, .08) !important;
  border-radius: 18px !important;
  padding: .6rem !important;
  box-shadow: 0 18px 42px rgba(9, 48, 64, .14) !important;
  background: #ffffff !important;
}

html body .site-header .dropdown-item {
  border-radius: 12px !important;
  color: #093040 !important;
  font-weight: 600 !important;
  padding: .65rem .85rem !important;
}

html body .site-header .dropdown-item:hover,
html body .site-header .dropdown-item:focus {
  background: #eef8f9 !important;
  color: #0FA644 !important;
}

/* Header CTA */
html body .site-header .nav-cta,
html body .site-header a.nav-cta,
html body .site-header .btn.nav-cta {
  background: #0FA644 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 14px !important;
  padding: .95rem 1.45rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  box-shadow: 0 12px 24px rgba(15, 166, 68, .18) !important;
  text-decoration: none !important;
}

html body .site-header .nav-cta:hover,
html body .site-header .nav-cta:focus {
  background: #0c933d !important;
  color: #ffffff !important;
}

/* Mobile/tablet */
@media (max-width: 991.98px) {
  html body .site-header .nav-wrap {
    min-height: 92px !important;
    padding: .7rem 1rem !important;
  }

  html body .site-header a.brand-lockup > img.brand-logo,
  html body .site-header a.navbar-brand > img.brand-logo,
  html body .site-header img.brand-logo,
  html body .site-header .brand-logo {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    flex-basis: 72px !important;
  }

  html body .site-header .navbar-collapse {
    background: #ffffff !important;
    border: 1px solid rgba(9, 48, 64, .08) !important;
    border-radius: 1rem !important;
    box-shadow: 0 18px 38px rgba(9, 48, 64, .12) !important;
    margin-top: .8rem !important;
    padding: .75rem !important;
  }

  html body .site-header .navbar .nav-link.active::after {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  html body .site-header .nav-wrap {
    min-height: 84px !important;
  }

  html body .site-header a.brand-lockup > img.brand-logo,
  html body .site-header a.navbar-brand > img.brand-logo,
  html body .site-header img.brand-logo,
  html body .site-header .brand-logo {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
    flex-basis: 62px !important;
  }
}
