/* nav.css (Mobile Only Overlay) */
.custom-mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute !important;
  right: 15px !important;
  top: 15px !important;
  z-index: 99999 !important;
}

/* Show custom mobile button below iPad width */
@media (max-width: 991px) {
  .custom-mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .nav-button-wrap {
    display: none !important; /* Force hide desktop auth buttons to prevent squeeze */
  }
}

/* --- Mobile Side Nav --- */
.mobile-side-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  z-index: 10000;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-side-nav.is-open {
  right: 0;
}

.mobile-side-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-side-logo {
  height: 35px;
}
.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  opacity: 0.5;
}
.mobile-menu-close:hover { opacity: 1; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-nav-link {
  color: #1c2247;
  font-family: var(--_typography---fonts--primary, Inter, sans-serif);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
}
.mobile-nav-link:hover {
  color: #c9a84c;
}

.mobile-auth-links {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 12px;
}
.mobile-auth-links .auth-nav-link {
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #f7f7f7;
  color: #1c2247;
  border-radius: 4px;
  padding: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
}
.mobile-auth-links .auth-nav-link:hover {
  background-color: #1c2247;
  color: #fff;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 34, 71, 0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}
.mobile-menu-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ── Desktop Dropdown ── */
/* Override overflow:hidden so dropdown isn't clipped */
.w-nav-menu,
.menu-wrap {
  overflow: visible !important;
}
.navbar {
  overflow: visible !important;
}
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  /* No margin here — spacing is handled by gap on .menu-wrap */
  margin: 0;
}
.nav-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-dropdown > .nav-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,0.7);
  transition: transform 0.2s ease;
  margin-top: 1px;
}
.nav-dropdown:hover > .nav-link::after {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;              /* align to left edge of trigger — no centering offset */
  min-width: 200px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(28,34,71,0.15);
  border: 1px solid rgba(28,34,71,0.06);
  padding: 14px 0 6px; /* top padding bridges visual gap */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0s linear 0.2s;
  z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.15s ease, visibility 0s linear 0s;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1c2247;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: #f8f6f1;
  color: #c9a84c;
}
.nav-dropdown-menu a + a {
  border-top: 1px solid rgba(28,34,71,0.05);
}

/* Mobile sub-links — collapsed by default, accordion */
.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  border-left: 2px solid #c9a84c;
  margin: 0 0 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin 0.3s ease;
}
.mobile-nav-sub.is-open {
  max-height: 200px;
  margin: 4px 0 8px;
}
.mobile-nav-link.has-sub::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #999;
  margin-left: auto;
  transition: transform 0.25s ease;
}
.mobile-nav-link.has-sub.sub-open::after {
  transform: rotate(180deg);
}
.mobile-nav-link.has-sub {
  display: flex;
  align-items: center;
}
.mobile-nav-sub a {
  color: #555;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
}
.mobile-nav-sub a:hover { color: #c9a84c; }

@media (max-width: 991px) {
  .nav-dropdown-menu { display: none !important; }
}
