/* ========== Global cleanup (safe) ========== */

/* Only remove list bullets where it matters (menus + your custom nav) */
.main-header-menu ul,
.ast-nav-menu ul,
.cstm-mnu ul,
.top-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Footer UL spacing */
.top-footer ul {
  margin: 0 !important;
}

/* Slick slider spacing fix */
.banner-sec .slick-slide {
  line-height: 0 !important;
}

/* Slider positioning safeguard */
.slider {
  position: relative !important;
}

/* Hide sharing footer (if present) */
.sd-sharing-enabled,
.sharedaddy {
  display: none !important;
}

/* ========== Custom member-page header menu (desktop dropdown fix) ========== */

/* Layout top-level menu items in a clean row */
.cstm-mnu .login-ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

/* Ensure top-level items don’t wrap weirdly */
.cstm-mnu .login-ul > li {
  position: relative;
  white-space: nowrap;
}

/* Default: hide all dropdown ULs inside menu items */
.cstm-mnu .login-ul li > ul {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  z-index: 99999;
  background: rgba(0,0,0,0.75);
  border-radius: 10px;
  padding: 10px;
}

/* Clean dropdown list items */
.cstm-mnu .login-ul li > ul > li {
  margin: 0;
}

/* Show dropdown on hover for desktop */
@media (min-width: 992px) {
  .cstm-mnu .login-ul li.menu-item-has-children:hover > ul {
    display: block;
  }
}

/* Optional: make dropdown links easier to click */
.cstm-mnu .login-ul li > ul a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
}
/* ========== Mobile menu fix (override desktop dropdown rules) ========== */
@media (max-width: 991px) {

  /* Let mobile menu stack naturally */
  .cstm-mnu .login-ul {
    display: block !important;
  }

  /* Make dropdown ULs behave like normal stacked lists on mobile */
  .cstm-mnu .login-ul li > ul {
    position: static !important;
    min-width: 0 !important;
    right: auto !important;
    top: auto !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    z-index: auto !important;
    display: none !important; /* stays hidden until the mobile toggle opens it */
  }

  /* When the menu item is "open", show its children (covers most toggle scripts) */
  .cstm-mnu .login-ul li.menu-item-has-children.active > ul,
  .cstm-mnu .login-ul li.menu-item-has-children.open > ul,
  .cstm-mnu .login-ul li.menu-item-has-children.current-menu-ancestor > ul,
  .cstm-mnu .login-ul li.menu-item-has-children[aria-expanded="true"] > ul {
    display: block !important;
  }

  /* Make submenu links look like a nested list */
  .cstm-mnu .login-ul li > ul a {
    padding: 10px 0 !important;
  }
}
