/* ============================================================
   Mobile Menu Expanded — always-visible horizontal yellow bar
   Overrides HitMag theme's collapsing mobile nav (< 992px)
   ============================================================ */

/* ── Home icon item — applies on all screen sizes ── */
.main-navigation li.mme-home-icon > a {
  padding: 11px 16px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.main-navigation li.mme-home-icon > a i {
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 991px) {

  /* ── Hide the hamburger toggle button and its wrapper ── */
  .hm-nav-container > .hm-nwrap,
  #main-nav-button {
    display: none !important;
  }

  /* ── Hide the cloned responsive drop-down that the JS builds ── */
  .responsive-mainnav {
    display: none !important;
  }

  /* ── Nav container: yellow background, no extra padding ── */
  .hm-nav-container {
    background-color: #f5c800 !important;
    overflow: hidden;
  }

  /* ── Main navigation wrapper: yellow, full width ── */
  .main-navigation {
    background-color: #f5c800 !important;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;        /* Firefox */
  }
  .main-navigation::-webkit-scrollbar {
    display: none;                /* Chrome/Safari */
  }

  /* ── Always show the <ul> and lay items out in a single row ── */
  .main-navigation ul#primary-menu,
  .main-navigation ul.nav-menu {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0;
    padding: 0;
  }
  .main-navigation ul#primary-menu::-webkit-scrollbar,
  .main-navigation ul.nav-menu::-webkit-scrollbar {
    display: none;
  }

  /* ── List items: stay inline, don't shrink ── */
  .main-navigation li {
    float: none !important;
    flex: 0 0 auto;
    position: relative;
  }

  /* ── Links: dark text on yellow ── */
  .main-navigation a {
    color: #111111 !important;
    white-space: nowrap;
    padding: 11px 14px !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 20px;
    display: block;
  }

  .main-navigation a:hover,
  .main-navigation .current-menu-item > a,
  .main-navigation .current_page_item > a,
  .main-navigation .current-menu-ancestor > a,
  .main-navigation .current_page_ancestor > a {
    background-color: #d4a900 !important;
    color: #000000 !important;
  }

  /* ── Hide second-level dropdowns on mobile (they break layout) ── */
  .main-navigation ul ul {
    display: none !important;
  }

  /* ── Remove the dropdown arrow on mobile ── */
  .main-navigation .menu-item-has-children > a:after,
  .main-navigation .page_item_has_children > a:after {
    display: none !important;
  }

  /* ── Search button: keep it visible but push it to the right ── */
  .hm-search-button-icon {
    margin-left: auto;
  }
}
