/* ============================================================
   ICHSEA 2027 mobile navigation styles
   Pairs with mobile-nav.js. hamburger + slide-in panel + overlay.
   Visible below 1200px (xl) only, matching the desktop menu's
   d-xl-block d-none breakpoint.
   ============================================================ */

/* ---------- hamburger button ---------- */
.mnav-toggle {
  display: none;
}
@media (max-width: 1199.98px) {
  /* right column of the header hosts only the hidden desktop menu
     and the hamburger below xl — align the button to the right */
  .header__bottom .col-7 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .mnav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 0;
    border: 2px solid #2D50CE;
    border-radius: 10px;
    background: #fff;
    color: #2D50CE;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(45, 80, 206, 0.15);
  }
  .mnav-toggle:active {
    background: #2D50CE;
    color: #fff;
  }
}

/* ---------- overlay ---------- */
.mobile-nav-overlay {
  display: none;
}
@media (max-width: 1199.98px) {
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 52, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 99990;
  }
  .mobile-nav-overlay.mnav-active {
    opacity: 1;
    visibility: visible;
  }
}

/* ---------- slide-in panel ---------- */
.mobile-nav-panel {
  display: none;
}
@media (max-width: 1199.98px) {
  .mobile-nav-panel {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(84vw, 360px);
    background: #fff;
    box-shadow: -8px 0 32px rgba(16, 24, 52, 0.18);
    transform: translateX(105%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 99999;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-nav-panel.mnav-active {
    transform: translateX(0);
  }
}

.mobile-nav-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eef1f8;
}
.mobile-nav-panel__head img {
  height: 42px;
  width: auto;
}
.mnav-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #f1f4fb;
  color: #1F2A59;
  font-size: 18px;
  cursor: pointer;
}
.mnav-close:hover {
  background: #2D50CE;
  color: #fff;
}

/* ---------- menu list ---------- */
.mobile-nav-panel nav > ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.mobile-nav-panel nav > ul > li {
  border-bottom: 1px solid #eef1f8;
}
.mobile-nav-panel nav > ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  line-height: 22px; /* fixed row height so the arrow anchor stays put */
  color: #1F2A59;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
}
.mobile-nav-panel nav > ul > li > a {
  font-size: 16.5px;
}
.mobile-nav-panel nav > ul li a:hover,
.mobile-nav-panel nav > ul li a:active {
  color: #2D50CE;
}

/* submenu */
.mobile-nav-panel nav > ul li ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #f7f9fe;
}
.mobile-nav-panel nav > ul li ul li a {
  padding-left: 38px;
  font-weight: 500;
  font-size: 15px;
  justify-content: flex-start;
}

/* arrow toggle — pinned to the right edge of the row, same line as the label.
   The <li> is position:relative; the link keeps normal padding. */
.mobile-nav-panel nav > ul li {
  position: relative;
}
.mobile-nav-panel nav > ul li.mnav-has-sub > a {
  padding-right: 64px;
}
.mnav-arrow {
  position: absolute;
  right: 14px;
  /* anchor to the first (label) row of the item, not the stretched li */
  top: 25px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #2D50CE;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mnav-arrow:hover {
  background: #eef3ff;
}
li.mnav-open > .mnav-arrow {
  transform: rotate(180deg);
}
li.mnav-open > a {
  color: #2D50CE;
}

/* kill the template's ::before/::after "+" cross drawn on
   .menu-item-has-children > a (two black bars) — our chevron
   button replaces it */
.mobile-nav-panel .menu-item-has-children > a::before,
.mobile-nav-panel .menu-item-has-children > a::after {
  display: none !important;
  content: none !important;
}

/* kill the broken icon button injected by the template's custom.js
   (it uses the 'fal' light style which is not bundled — renders as
   a stray plus-like glyph and doubles the toggle) */
.mobile-nav-panel .dropdown-toggle-btn {
  display: none !important;
}

/* ---------- panel footer contact ---------- */
.mobile-nav-panel__foot {
  padding: 18px 22px 26px;
  border-top: 1px solid #eef1f8;
  background: #f7f9fe;
}
.mobile-nav-panel__foot h6 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a90a6;
  margin-bottom: 10px;
}
.mobile-nav-panel__foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav-panel__foot ul li {
  padding: 5px 0;
  font-size: 15px;
}
.mobile-nav-panel__foot ul li a {
  color: #1F2A59;
  text-decoration: none;
}
.mobile-nav-panel__foot ul li a i {
  color: #2D50CE;
  margin-right: 10px;
  width: 18px;
}
