@import "../../base/colors.css";
@import "../../base/fonts.css";

.c-header {
  background-color: var(--bg-color);
  position: relative;
  z-index: 499;
  transition: all 0.3s ease;
}

/* Hide mobile-only elements on desktop */
.c-header__mobile-toggle-wrapper,
.c-header__nav-item--mobile-lang,
.c-header__nav-item--mobile-cta {
  display: none !important;
}

/* Standalone nav component — disables sticky and removes top-bar padding */
.c-header--nav-component {
  border-bottom: 1px solid var(--border-color);
}

/* Sticky Header styling */
.c-header--sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 499 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  background-color: var(--bg-color) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.c-header--slide-down {
  animation: headerSlideDown 0.4s ease forwards !important;
}

.c-header--slide-up {
  animation: headerSlideUp 0.3s ease forwards !important;
}

.c-header--sticky .c-header__top-bar {
  display: none !important;
}

.c-header--sticky .c-header__main-bar {
  padding: 8px 0 !important;
  transition: padding 0.3s ease !important;
}

.c-header--sticky .c-header__nav {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hide nav menu when sticky search box is focused */
.c-header--sticky:has(.c-search-box-sticky:focus-within) .c-header__nav {
  max-width: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  margin: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.c-header--sticky .c-header__nav-item {
  display: none !important;
}

.c-header--sticky .c-header__nav-item--type-products,
.c-header--sticky .c-header__nav-item--type-customers {
  display: block !important;
}

.c-header--sticky .c-header__cta .button {
  background-color: transparent !important;
  border: 1px solid #003865 !important;
  color: #003865 !important;
  font-weight: 600 !important;
  width: 380px !important;
  transition: unset !important;
}

.c-header--sticky .c-header__cta .button:hover {
  background-color: #003865 !important;
  color: #ffffff !important;
}

@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes headerSlideUp {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-100%);
  }
}

.c-header .layout-container {
  position: relative;
  /* Relative anchor for mega menus */
}

.c-header__top-bar {
  padding: 8px 0;
  background-color: var(--bg-color);
}

.c-header__top-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
}

.c-header__search {
  position: relative;
  height: 42px;
  width: 350px;
}

/* Search Box Container */
.c-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* Search Box Icon Badge */
.c-search-box__icon {
  background: linear-gradient(135deg, #00b341 0%, #009be3 100%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.c-search-box:focus-within .c-search-box__icon {
  transform: translateY(-50%) scale(1.05);
}

.c-search-box__icon svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 3px;
}

/* Search Box Input */
.c-search-box__input {
  font-size: 14px;
  color: #001f37;
  outline: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 24px;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  width: 100% !important;
  padding: 0 16px 0 46px;
  /* offset for icon */
  height: 100%;
  box-sizing: border-box;
  text-transform: inherit;
  background: #ffffff;
}

.c-search-box__input:focus {
  border-color: #00ac41;
  box-shadow: 0 0 0 3px rgba(0, 172, 65, 0.1);
  background-color: #ffffff;
}

.c-search-box__input::placeholder {
  font-size: 14px;
  color: #001f37;
  font-weight: 400;
  opacity: 1;
}

/* TOP RIGHT UTILITY ROW */
.c-header__top-right {
  display: flex;
  /* Force row layout */
  align-items: center;
  gap: 30px;
  /* 30px space as requested */
}

/* Language Switcher */
.c-header__language-wrapper {
  position: relative;
  cursor: pointer;
  padding: 5px 0;
}

.c-header__language {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.c-header__language-icon {
  color: var(--secondary-color);
  display: flex;
  align-items: center;
}

.c-header__language-icon svg {
  width: 18px;
  height: 18px;
}

.c-header__language-arrow {
  font-size: 8px;
  color: var(--primary-color);
  margin-top: 1px;
}

.c-header__language-dropdown {
  position: absolute;
  top: 42px;
  left: 0;
  width: 180px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px var(--shadow-color);
  border-radius: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1002;
}

.c-header__language-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 82px;
  transform: rotate(45deg);
  width: 16px;
  height: 16px;
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  z-index: 1003;
}

.c-header__language-wrapper:hover .c-header__language-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.c-header__language-option {
  padding: 6px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s;
}

.c-header__language-option:hover {
  background-color: var(--light-bg);
  color: var(--secondary-color);
}

.c-header__language-option img {
  border-radius: 50%;
  width: 18px;
  height: 18px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Phone Number */
.c-header__phone {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 18px;
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--primary-color);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.c-header__phone-icon {
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

/* Main Bar */
.c-header__main-bar {
  padding: 15px 0;
  position: relative;
}

.c-header__main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c-header__logo {
  max-width: 220px;
  height: 50px;
  width: auto;
  display: block;
}

/* Navigation */
.c-header__nav {
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    margin 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 1000px;
  opacity: 1;
  visibility: visible;

  @media (min-width: 1200px) {
    margin-left: 120px;
  }
}

.c-header__nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
}

.c-header__nav-item {
  position: static;
}

.c-header__nav-link {
  position: relative;
  cursor: pointer;
  color: var(--customers-nav-link-color);
  text-transform: uppercase;
  font-size: 14px;
  line-height: 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  transition: all 0.2s;
}

.c-header__nav-link .c-header__nav-arrow {
  font-size: 8px;
}

.c-header__nav-item:hover .c-header__nav-link::before {
  content: "";
  position: absolute;
  height: 1px;
  width: 100%;
  top: 10px;
  left: 0;
  background-color: var(--secondary-color);
  right: 0;
  margin: auto;
}

/* Triangle arrow — bordered caret at top of mega-menu panel */
.c-header__nav-item.has-dropdown:hover .c-header__nav-link::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #ffffff;
  z-index: 1001;
  display: block;
  background: none;
  /* drop-shadow traces the triangle silhouette, giving a 1px grey border */
  filter: drop-shadow(0 -1px 0 var(--border-color));
}

/* Mega Menu Container */
.c-header__mega-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-color);
  visibility: hidden;
  opacity: 0;
  z-index: 999;
  border-radius: 5px;
  border-top: none;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.c-header__nav-item:hover .c-header__mega-menu-container {
  visibility: visible;
  opacity: 1;
}

/* Customers Dropdown Positioning Override */
.c-header__nav-item:has(.c-mega-menu--customers) {
  position: relative;
  /* Position dropdown relative to the nav item */
}

.c-header__nav-item:has(.c-mega-menu--customers)
  .c-header__mega-menu-container {
  width: 650px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  /* Center dropdown exactly under nav item */
}

.c-header__nav-item:has(.c-mega-menu--customers):hover
  .c-header__mega-menu-container {
  transform: translateX(-50%) translateY(0);
}

/* CTA Button */
.c-header__cta .button {
  cursor: pointer;
  width: 200px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  background-color: var(--secondary-color);
  border-radius: 6px;
  font-size: 14px;
  text-transform: uppercase;
  font-family: var(--font-family);
  text-decoration: none;
  letter-spacing: 1px;
  color: var(--bg-color);
  border: none;
  padding: 0;
}

/* Left Group Wrapper */
.c-header__left-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Hide Sticky Header Elements by Default */
.c-header__categories,
.c-header__search-sticky {
  display: none !important;
}

/* Show when header is sticky */
.c-header--sticky .c-header__logo-wrapper {
  display: block !important;
}

.c-header--sticky .c-header__categories {
  display: block !important;
}

.c-header--sticky .c-header__search-sticky {
  display: block !important;
}

/* Categories Trigger Button */
.c-categories-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  outline: none;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  color: #001f37;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.c-categories-btn:hover {
  opacity: 0.8;
}

.c-categories-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-categories-btn__icon--mobile {
  display: none !important;
}

/* Categories Dropdown Container */
.c-header__categories {
  position: relative;
}

.c-categories-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 15px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  width: fit-content;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.c-header__categories:hover .c-categories-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown Arrow */
.c-categories-dropdown__arrow {
  position: absolute;
  top: -6px;
  left: 30px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1;
}

/* List & Items */
.c-categories-dropdown__list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

.c-categories-dropdown__item {
  margin: 0;
}

.c-categories-dropdown__item:first-child .c-categories-dropdown__link {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.c-categories-dropdown__item:last-child .c-categories-dropdown__link {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.c-categories-dropdown__link {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.c-categories-dropdown__link-text {
  width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #868d95;
  font-size: 16px;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  padding-left: 10px;
  line-height: 35px;
  transition: color 0.2s ease;
}

.c-categories-dropdown__link:hover {
  background: linear-gradient(45deg, #009de0, #00ac41);
}

.c-categories-dropdown__link:hover .c-categories-dropdown__link-text {
  color: #fff;
}

.c-categories-dropdown__link-icon {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  margin-right: unset !important;
}

.c-categories-dropdown__link:hover .c-categories-dropdown__link-icon {
  transform: scale(1.1);
}

/* Sticky Search Box Container */
.c-search-box-sticky {
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border: 1.5px solid #dcdfe6;
  border-radius: 20px;
  padding: 4px 12px 4px 6px;
  width: 280px;
  height: 38px;
  box-sizing: border-box;
  transition:
    width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.c-search-box-sticky:focus-within {
  width: 480px;
  /* Expands dynamically */
  border-color: #00ac41;
  /* Green border */
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 172, 65, 0.1);
}

/* Sticky Search Icon Badge */
.c-search-box-sticky__icon {
  background: linear-gradient(135deg, #00b4db, #00ac41);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.c-search-box-sticky:focus-within .c-search-box-sticky__icon {
  transform: scale(1.05);
}

/* Sticky Search Input */
.c-search-box-sticky__input {
  border: none;
  background: transparent;
  outline: none;
  margin-left: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  width: 100%;
  color: #001f37;
}

.c-search-box-sticky__input::placeholder {
  font-size: 14px;
  color: #001f37;
  font-weight: 400;
  opacity: 1;
  /* Override browser defaults */
}

/* Mobile responsive layout */
@media (max-width: 1200px) {
  /* Use grid layout on header to put search box below main logo bar */
  .c-header {
    display: grid !important;
    grid-template-columns: 100% !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "main-bar"
      "top-bar" !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--border-color) !important;
  }

  .c-header__main-bar {
    grid-area: main-bar !important;
    padding: 12px 15px !important;
    background-color: #ffffff !important;
  }

  .c-header__logo {
    width: 170px !important;
    height: 50px !important;
    max-width: none !important;
  }

  .c-header__logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .c-header__top-bar {
    grid-area: top-bar !important;
    background-color: transparent !important;
    border-bottom: none !important;
    padding: 0 15px 15px !important;
    /* Spacing below the main bar */
  }

  /* In mobile view, hide the utility links (language switcher and phone link) in top-bar */
  .c-header__top-right {
    display: none !important;
  }

  /* Align search box full width under logo */
  .c-header__search {
    width: 100% !important;
    height: auto !important;
  }

  .c-search-box {
    width: 100% !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .c-search-box__icon {
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00b341 0%, #009be3 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    z-index: 10 !important;
    pointer-events: none !important;
    transition: transform 0.3s ease !important;
  }

  .c-search-box:focus-within .c-search-box__icon {
    transform: translateY(-50%) scale(1.05) !important;
  }

  .c-search-box__icon svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #ffffff !important;
    stroke-width: 3px !important;
  }

  .c-search-box__input {
    position: static !important;
    width: 100% !important;
    height: 48px !important;
    line-height: 48px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 24px !important;
    padding: 0 20px 0 54px !important;
    font-size: 16px !important;
    color: #0c2b5c !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    outline: none !important;
    margin-left: 0 !important;
    box-shadow: none !important;
    transition:
      border-color 0.3s ease,
      box-shadow 0.3s ease !important;
  }

  .c-search-box__input:focus {
    border-color: #00ac41 !important;
    box-shadow: 0 0 0 3px rgba(0, 172, 65, 0.1) !important;
  }

  .c-search-box__input::placeholder {
    font-size: 14px !important;
    color: #001f37 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
  }

  /* Hamburger Menu and Close Menu button */
  .c-header__mobile-toggle-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
  }

  /* Mobile Phone Link styles */
  .c-header__mobile-phone {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0c2b5c !important;
    /* Solid navy color from screenshot */
    text-decoration: none !important;
  }

  .c-header__mobile-phone svg {
    width: 22px !important;
    height: 22px !important;
  }

  /* Hamburger/Close Button styles */
  .c-header__menu-toggle {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
    position: relative !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Hamburger lines */
  .c-header__menu-toggle-icon {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background-color: #000000 !important;
    position: relative !important;
    transition: background-color 0.2s ease !important;
  }

  .c-header__menu-toggle-icon::before,
  .c-header__menu-toggle-icon::after {
    content: "" !important;
    position: absolute !important;
    width: 22px !important;
    height: 2px !important;
    background-color: #000000 !important;
    left: 0 !important;
    transition:
      transform 0.2s ease,
      top 0.2s ease,
      bottom 0.2s ease !important;
  }

  .c-header__menu-toggle-icon::before {
    top: -7px !important;
  }

  .c-header__menu-toggle-icon::after {
    bottom: -7px !important;
  }

  /* Transform to "X" Close Icon when menu is open */
  .c-header.menu-open .c-header__menu-toggle-icon {
    background-color: transparent !important;
  }

  .c-header.menu-open .c-header__menu-toggle-icon::before {
    top: 0 !important;
    transform: rotate(45deg) !important;
  }

  .c-header.menu-open .c-header__menu-toggle-icon::after {
    bottom: 0 !important;
    transform: rotate(-45deg) !important;
  }

  /* Hide desktop CTA button on mobile */
  .c-header__cta {
    display: none !important;
  }

  /* Mobile menu drawer styling (floating card with border on all sides matching second screenshot) */
  .c-header__nav,
  .c-header--sticky .c-header__nav {
    position: absolute !important;
    top: 100% !important;
    left: 15px !important;
    right: 15px !important;
    width: calc(100% - 30px) !important;
    margin: 0 !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    border: 1px solid #dcdfe6 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1000 !important;
    padding: 0 !important;
    /* No padding on the card itself so divider lines touch edges */
    box-sizing: border-box !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
  }

  /* Show menu when open */
  .c-header.menu-open .c-header__nav,
  .c-header.menu-open.c-header--sticky .c-header__nav {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .c-header__nav-list {
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
  }

  /* Navigation row styles */
  .c-header__nav-item,
  .c-header__nav-item:has(.c-mega-menu--customers) {
    border-bottom: 1px solid #e2e8f0 !important;
    /* Thin gray border line between rows */
    width: 100% !important;
    position: relative !important;
  }

  .c-header__nav-item--mobile-cta {
    border-bottom: none !important;
    padding: 16px !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .c-header__nav-item--mobile-lang {
    display: block !important;
  }

  .c-header__nav-link {
    padding: 15px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #001f37 !important;
    line-height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    text-transform: capitalize !important;
    box-sizing: border-box !important;
  }

  .c-header__nav-link::before,
  .c-header__nav-link::after {
    display: none !important;
    content: none !important;
    /* Disable hover underline and border carets from desktop on mobile */
  }

  .c-header__nav-arrow {
    font-size: 10px !important;
    color: #001f37 !important;
    margin-left: 2px !important;
    transition: transform 0.2s ease !important;
  }

  .c-header__nav-item.is-expanded .c-header__nav-arrow {
    transform: rotate(180deg) !important;
  }

  .c-header__mega-menu-container {
    position: static !important;
    display: none !important;
    /* Controlled via JS when parent is-expanded */
    box-shadow: none !important;
    padding: 12px 15px 24px 15px !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    transform: none !important;
    border-top: none !important;
  }

  .c-header__nav-item.is-expanded .c-header__nav-link {
    padding-bottom: 6px !important;
  }

  .c-header__nav-item--customers.is-expanded .c-header__nav-link {
    padding-bottom: 15px !important;
  }

  .c-header__nav-item.is-expanded .c-header__mega-menu-container {
    display: block !important;
    padding-top: 0 !important;
    max-height: calc(100vh - 250px) !important;
    overflow-y: auto !important;
  }

  /* Style Mega Menu within mobile accordion */
  .c-mega-menu {
    border-top: none !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .c-mega-menu--products .c-mega-menu__content,
  .c-mega-menu--resources .c-mega-menu__content,
  .c-mega-menu--customers .c-mega-menu__content,
  .c-mega-menu__content {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .c-mega-menu--products .c-mega-menu__column,
  .c-mega-menu--resources .c-mega-menu__column,
  .c-mega-menu--customers .c-mega-menu__column,
  .c-mega-menu__column {
    width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    border-right: none !important;
    border-bottom: none !important;
    background: transparent !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .c-mega-menu__column:not(:last-child) {
    border-bottom: 1px solid var(--border-light) !important;
    padding-bottom: 20px !important;
  }

  .c-mega-menu--customers .c-mega-menu__column {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .c-mega-menu--resources .c-mega-menu__column,
  .c-mega-menu--resources .c-mega-menu__column:nth-child(even),
  .c-mega-menu--resources .c-mega-menu__column:nth-child(odd) {
    background: transparent !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .c-mega-menu--resources .c-mega-menu__column--resources-library {
    order: 1 !important;
  }

  .c-mega-menu--resources .c-mega-menu__column--guides--blogs {
    order: 2 !important;
  }

  .c-mega-menu--resources .c-mega-menu__column--competency-library {
    order: 3 !important;
    border-bottom: 1px solid var(--border-light) !important;
    padding-bottom: 20px !important;
  }

  .c-mega-menu--resources .c-mega-menu__column--glossary {
    order: 4 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .c-mega-menu--resources
    .c-mega-menu__column--guides--blogs
    .c-mega-menu__column-header,
  .c-mega-menu--resources
    .c-mega-menu__column--glossary
    .c-mega-menu__column-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .c-mega-menu--resources .c-mega-menu__feature {
    order: 5 !important;
  }

  .c-mega-menu--resources .c-mega-menu__column-desc {
    display: block !important;
    font-weight: 300 !important;
    font-size: 10px !important;
    line-height: 13px !important;
    letter-spacing: 0 !important;
    color: #2c3e50 !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    text-transform: none !important;
  }

  .c-mega-menu--resources .c-mega-menu__title {
    text-transform: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #333 !important;
  }

  .c-mega-menu--resources .c-mega-menu__header {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .c-mega-menu--resources .c-mega-menu__label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #333 !important;
    line-height: 20px !important;
  }

  .c-mega-menu--resources .c-mega-menu__items {
    padding-left: 30px !important;
    gap: 10px !important;
  }

  .c-mega-menu__column--consumers {
    display: none !important;
  }

  .c-mega-menu--customers .c-mega-menu__item-l2 {
    border-top: 1px solid var(--customers-item-border) !important;
    padding: 20px 0 0 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .c-mega-menu--customers .c-mega-menu__item-l2:first-child {
    border-top: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
  }

  .c-mega-menu__column-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .c-mega-menu__column-header .c-mega-menu__icon {
    margin-top: 4px !important;
  }

  .c-mega-menu__title {
    color: #003865 !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: 0.5px !important;
    line-height: 1.3 !important;
  }

  .c-mega-menu__column-desc {
    display: none !important;
    /* Hide column desc on mobile to save space */
  }

  .c-mega-menu__items {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
  }

  .c-mega-menu__item-l2 {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Level 2 Sub-group Header styling */
  .c-mega-menu__header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
  }

  .c-mega-menu__icon {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .c-mega-menu__icon img,
  .c-mega-menu__icon svg {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
  }

  .c-mega-menu__column-header .c-mega-menu__icon,
  .c-mega-menu__column-header .c-mega-menu__icon img,
  .c-mega-menu__column-header .c-mega-menu__icon svg,
  .c-customer-feature__title-icon,
  .c-customer-feature__title-icon img {
    width: 20px !important;
    height: 20px !important;
  }

  .c-mega-menu__item-text {
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  .c-mega-menu__label {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #001f37 !important;
    line-height: 1.3 !important;
  }

  .c-mega-menu__description {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #4f5e6b !important;
    line-height: 1.4 !important;
    display: block !important;
  }

  /* Level 3 sub-links list styling */
  .c-mega-menu__subtree {
    padding-left: 32px !important;
    /* Indent L3 links under L2 title (icon: 20px + gap: 12px = 32px) */
    margin: 8px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .c-mega-menu__item-l3 {
    margin: 0 !important;
  }

  .c-mega-menu__link {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #001f37 !important;
    padding: 4px 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    background: transparent !important;
  }

  /* Test Library green link styling */
  .c-mega-menu__link--action {
    color: #00ac41 !important;
    /* Keep green action link color */
    font-weight: 700 !important;
  }

  .c-mega-menu__link:not(.c-mega-menu__link--action):hover {
    background-color: transparent !important;
    /* Disable desktop hover backgrounds on mobile */
    color: #00ac41 !important;
  }

  .c-mega-menu__feature,
  .c-mega-menu--customers .c-mega-menu__feature {
    display: none !important;
    /* Hide featured columns on mobile */
  }

  .c-mega-menu--resources .c-mega-menu__feature {
    display: block !important;
    width: 100% !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border-left: none !important;
  }

  .c-mega-menu--resources .c-mega-menu__feature > div {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .c-mega-menu--resources .c-customer-feature__image {
    display: none !important;
  }

  .c-mega-menu--resources .c-customer-feature {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .c-mega-menu--resources .c-customer-feature__content {
    padding: 0 !important;
  }

  .c-mega-menu--resources .c-customer-feature__content h3 {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #333 !important;
    text-transform: none !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
  }

  .c-mega-menu--resources .c-customer-feature__title-icon {
    width: 20px !important;
    height: 20px !important;
    margin-top: 0 !important;
  }

  .c-mega-menu--resources .c-customer-feature__body p:first-of-type,
  .c-mega-menu--resources .c-customer-feature__body div > p:first-of-type {
    font-size: 16px !important;
    line-height: 22px !important;
    font-weight: 700 !important;
    color: #003865 !important;
    margin: 0 0 8px 0 !important;
  }

  .c-mega-menu--resources .c-customer-feature__body p:nth-of-type(2),
  .c-mega-menu--resources .c-customer-feature__body div > p:nth-of-type(2) {
    font-weight: 300 !important;
    font-size: 10px !important;
    line-height: 13px !important;
    letter-spacing: 0 !important;
    color: #2c3e50 !important;
    margin: 0 !important;
  }

  .c-mega-menu--resources .c-customer-feature__link {
    font-size: 13px !important;
  }

  /* Mobile language switcher trigger row styling */
  .c-header__mobile-lang-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 15px !important;
    border: none !important;
    background: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #001f37 !important;
    line-height: 20px !important;
    cursor: pointer !important;
    text-align: left !important;
    outline: none !important;
    text-transform: capitalize !important;
    box-sizing: border-box !important;
  }

  .c-header__mobile-lang-icon {
    color: #00ac41 !important;
    /* Globe icon is green */
    display: flex !important;
    align-items: center !important;
    margin-right: 4px !important;
  }

  .c-header__mobile-lang-text {
    flex-grow: 0 !important;
  }

  .c-header__mobile-lang-arrow {
    font-size: 10px !important;
    color: #001f37 !important;
    transition: transform 0.2s ease !important;
    margin-left: 2px !important;
  }

  .c-header__nav-item.is-expanded .c-header__mobile-lang-arrow {
    transform: rotate(180deg) !important;
  }

  /* Mobile language dropdown list styling */
  .c-header__mobile-lang-dropdown {
    display: none !important;
    list-style: none !important;
    padding: 0 0 16px 30px !important;
    margin: 0 !important;
  }

  .c-header__nav-item.is-expanded .c-header__mobile-lang-dropdown {
    display: block !important;
    max-height: 250px !important;
    overflow-y: auto !important;
  }

  .c-header__mobile-lang-option-wrapper {
    margin: 0 !important;
    padding: 8px 0 !important;
  }

  .c-header__mobile-lang-option {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 13px !important;
    color: #4a5568 !important;
    line-height: 20px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
  }

  .c-header__mobile-lang-option.is-active {
    color: #00ac41 !important;
  }

  .c-header__mobile-lang-option img {
    border-radius: 50% !important;
    width: 18px !important;
    height: 18px !important;
    object-fit: cover !important;
  }

  /* Mobile CTA Button styling (solid green inline block aligned left) */
  .c-header__mobile-cta-btn {
    display: inline-block !important;
    background-color: #00ac41 !important;
    /* Solid green button from screenshot */
    color: #ffffff !important;
    text-align: center !important;
    padding: 12px 24px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    width: auto !important;
    transition: background-color 0.2s ease !important;
  }

  .c-header__mobile-cta-btn:hover {
    background-color: #009137 !important;
  }

  /* Sticky Header Styles for Mobile */
  .c-header--sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    z-index: 1000 !important;
  }

  .c-header--sticky .c-header__main-row {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    padding: 12px 15px !important;
    box-sizing: border-box !important;
  }

  .c-header--sticky .c-header__left-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .c-header--sticky .c-header__top-bar {
    display: none !important;
  }

  .c-header--sticky .c-header__logo-wrapper {
    display: block !important;
  }

  .c-header--sticky .c-header__categories {
    display: block !important;
    position: static !important;
  }

  .c-header--sticky .c-header__search-sticky {
    display: block !important;
    width: 100% !important;
    align-self: stretch !important;
  }

  .c-header--sticky .c-header__mobile-phone {
    display: none !important;
  }

  /* Show all menu items inside the mobile drawer when sticky */
  .c-header--sticky .c-header__nav-item {
    display: block !important;
  }

  .c-header--sticky .c-header__mobile-toggle-wrapper {
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    z-index: 1010 !important;
  }

  /* Sticky Categories Trigger Button */
  .c-header--sticky .c-categories-btn {
    padding: 0 !important;
    background: none !important;
    border: none !important;
    display: block !important;
  }

  .c-header--sticky .c-categories-btn__text {
    display: none !important;
  }

  .c-header--sticky .c-categories-btn__icon--desktop {
    display: none !important;
  }

  .c-header--sticky .c-categories-btn__icon--mobile {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
  }

  /* Sticky Search Pill Styling */
  .c-header--sticky .c-search-box-sticky {
    position: relative !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    height: auto !important;
    box-shadow: none !important;
  }

  .c-header--sticky .c-search-box-sticky__input {
    width: 100% !important;
    height: 48px !important;
    line-height: 48px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 24px !important;
    padding: 0 20px 0 54px !important;
    font-size: 16px !important;
    color: #0c2b5c !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    outline: none !important;
    margin-left: 0 !important;
  }

  .c-header--sticky .c-search-box-sticky__input::placeholder {
    font-size: 14px !important;
    color: #001f37 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
  }

  .c-header--sticky .c-search-box-sticky__icon {
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00b341 0%, #009be3 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
  }

  .c-header--sticky .c-search-box-sticky__icon svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #ffffff !important;
    stroke-width: 3px !important;
  }

  /* Categories Dropdown in Sticky Mobile Header */
  .c-header--sticky .c-categories-dropdown {
    position: absolute !important;
    top: 37% !important;
    left: 15px !important;
    right: 55px !important;
    margin-top: 12px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    width: 348px !important;
    z-index: 1001 !important;
    transform: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    box-sizing: border-box !important;
  }

  .c-header--sticky .c-header__categories.is-open .c-categories-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .c-header--sticky .c-categories-dropdown__arrow {
    display: block !important;
    left: 12px !important;
  }

  .c-header--sticky .c-categories-dropdown__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .c-header--sticky .c-categories-dropdown__link {
    display: flex !important;
    align-items: center !important;
    padding: 10px 15px !important;
    text-decoration: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .c-header--sticky
    .c-categories-dropdown__item:last-child
    .c-categories-dropdown__link {
    border-bottom: none !important;
  }

  .c-header--sticky .c-categories-dropdown__link-icon {
    width: 24px !important;
    height: 24px !important;
    margin-right: 12px !important;
    object-fit: contain !important;
  }

  .c-header--sticky .c-categories-dropdown__link-text {
    color: #003865 !important;
    font-weight: 800 !important;
    line-height: 35px !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
  }

  .c-header--sticky .c-categories-dropdown__link:hover {
    background: linear-gradient(45deg, #009de0, #00ac41) !important;
  }

  .c-header--sticky
    .c-categories-dropdown__link:hover
    .c-categories-dropdown__link-text {
    color: #fff !important;
  }
}

/* Hide mobile toggles on desktop */
@media (min-width: 1025px) {
  .c-header__mobile-toggle-wrapper {
    display: none !important;
  }
}

/* Reading Progress Bar */
.c-header__progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 10;
  overflow: hidden;
}

.c-header__progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #00ab41;
  transition: width 0.1s linear;
  will-change: width;
}

/* Only show progress bar when header is sticky */
.c-header:not(.c-header--sticky) .c-header__progress-bar {
  display: none;
}

/* ── Search Results Dropdown ─────────────────────────── */
.c-search-box-sticky {
  position: relative;
}

.c-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.16);
  z-index: 9000;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
}

.c-search-results[hidden] {
  display: none;
}

.c-search-results__item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  gap: 16px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  line-height: 16px !important;
  cursor: pointer;
  transition: background 0.12s;
}

.c-search-results__item:first-child {
  border-radius: 14px 14px 0 0;
}

.c-search-results__item:last-child {
  border-bottom: none;
  border-radius: 0 0 14px 14px;
}

.c-search-results__item:only-child {
  border-radius: 14px;
}

.c-search-results__title {
  flex: 1;
  font-size: 13px;
  line-height: 16px !important;
  color: #333;
  font-family: inherit;
  font-weight: 400;
}

.c-search-results__title mark {
  background: none;
  color: #00ac41;
  font-style: normal;
  font-weight: 600;
}

.c-search-results__badge {
  flex-shrink: 0;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  font-family: inherit;
  line-height: 20px;
}

.c-search-results__empty {
  padding: 28px 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* No-results + Trending section */
.c-search-results__no-results {
  padding: 16px 24px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.c-search-results__trending {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 4px 24px 20px;
}

.c-search-results__trending-label {
  font-size: 13px;
  font-weight: 600;
  color: #003865;
  white-space: nowrap;
  padding-top: 10px;
  flex-shrink: 0;
}

.c-search-results__trending-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.c-search-results__trending-item {
  display: block;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 16px !important;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s;
}

@media (max-width: 767px) {
  .c-search-results {
    width: 100%;
  }
}
