/* header-dropdown.css
   Minimal CSS to ensure dropdowns display when parent .open is present.
   Include after your main stylesheet.
*/

.nav-item.dropdown { position: relative; }

/* Defensive: show dropdown when .open is present */
.nav-item.dropdown.open > .dropdown-menu,
.nav-item.dropdown:hover > .dropdown-menu,
.nav-item.dropdown:focus-within > .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Ensure initial hidden state if other CSS hides it differently */
.nav-item.dropdown > .dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  pointer-events: none;
}

/* Slight visual polish for dropdown links */
.dropdown-menu a { display: block; padding: 10px 14px; color: #fff; text-decoration: none; }
.dropdown-menu a:hover { background: rgba(255,255,255,0.04); color: #fff; }

/* Ensure z-index keeps dropdown above sidebar and other elements */
.nav-item.dropdown .dropdown-menu { z-index: 4000; }

/* End header-dropdown.css */