.navigation-primary .submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* SHOW/HIDE MENU */
@media screen and (min-width: 1200px) {
  .header--2024 .cm-btns.hidden-phone {
    display: flex !important;
  }
  .header--2024 .mobile-menu-buttons {
    display: none !important;
  }
}

@media screen and (max-width: 1199px) {
  .header--2024 .cm-btns.hidden-phone {
    display: none !important;
  }
  .header--2024 .mobile-menu-buttons {
    display: block !important;
  }
  .head-wrap.header--2024 header.scrolled .submenu.level-1 > li.has-submenu ul.submenu {
    margin-top: 0 !important;
  }
}

@media screen and (max-width: 1199px) {
  .head-wrap header.header .cm-wrapper .cm-right {
    top: 64px;
  }
  .navigation-primary ul {
    list-style: none;
    padding: 0;
  }
  .navigation-primary ul.level-1 li {
    border-bottom: 1px solid #E9E9E9;
  }
  .navigation-primary ul.level-1 li.has-submenu,
  .navigation-primary ul.level-1 li.no-submenu {
    padding: 1.5rem;
  }
  .navigation-primary ul.submenu.level-1 a {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .navigation-primary ul.submenu.level-1 a:hover {
    color: #000000;
  }
  .navigation-primary ul.submenu.level-1 a span {
    font-weight: 700;
  }
  .navigation-primary ul.submenu.level-1 a svg {
    width: 28px;
    height: auto;
  }
  .navigation-primary ul.submenu.level-2 {
    display: none;
    width: 100%;
  }
  .navigation-primary ul.level-1 li.has-submenu:has(.child-trigger.open) ul {
    display: block;
  }
  .navigation-primary ul.level-1 li.has-submenu:has(.child-trigger.open) a svg {
    transform: rotate(180deg);
  }
  .child-trigger {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 56px;
  }
  .navigation-primary ul.level-2 {
    padding: 0 !important;
    padding-bottom: 1rem !important;
  }
  .navigation-primary ul.level-2 li.no-submenu {
    padding: 0.25rem 0;
    font-weight: 400;
    border-bottom: 0px;
  }
  .navigation-primary ul.level-2 li.no-submenu a span {
    font-weight: 500;
  }
}

@media screen and (max-width: 576px) {
  .head-wrap header.header .cm-wrapper .cm-right {
    top: 51px;
  }
}

@media screen and (min-width: 1199px) {
  .primary-navigation .child-trigger {
    display: none;
  }
}

/* === Desktop Hover Styles for Primary Menu === */
@media screen and (min-width: 1200px) {
  /* Top-level menu links */
  .navigation-primary ul.level-1 > li > a.menu-link {
    transition: all 0.3s ease;
    color: #000000;
    text-decoration: none;
    padding: 1rem;
    display: inline-block;
  }

  /* Hover state */
  .navigation-primary ul.level-1 > li > a.menu-link:hover {
    color: #ff6600;
    background-color: #f5f5f5;
    text-decoration: underline;
  }

  /* Sub-menu links (level-2 and deeper) */
  .navigation-primary ul.submenu li > a.menu-link {
    transition: all 0.3s ease;
    color: #000000;
    text-decoration: none;
    display: inline-block;
    padding: 0.75rem 1rem;
  }

  /* Hover state for sub-menu */
  .navigation-primary ul.submenu li > a.menu-link:hover {
    color: #ff6600;
    background-color: #f5f5f5;
    text-decoration: underline;
  }

  /* === 👇 NEW CODE: Move submenu closer to the top menu item === */
  .navigation-primary ul.level-1 > li.has-submenu > ul.submenu {
    top: 95%; /* Default spacing before scroll */
    position: absolute;
    margin-top: -20px;
    z-index: 99;
  }
}

/* === ✅ NEW CODE TO FIX SPACING AFTER SCROLL === */
@media screen and (min-width: 1200px) {
  .head-wrap.header--2024 header.scrolled .navigation-primary ul.level-1 > li.has-submenu > ul.submenu {
    top: 100% !important;      /* Align right under parent */
    margin-top: -20px !important;  /* Remove gap */
  }
}
/* === ✅ NEW CODE To move to right === */
/*@media screen and (min-width: 1200px) {
  .navigation-primary {
    padding-left: 100px !important;
    padding-right: -20px !important;    
  }
}
/* Desktop only */
/* @media screen and (min-width: 1200px) {
  .navigation-primary {
    margin-left: 100px !important;
    margin-right: 0 !important;
  }
} */

.head-wrap header.header,
.head-wrap.header--2024 header,
.head-wrap.header--2024 header.scrolled {
  background-color: #ffffff !important;
}
