/* Fix hamburger menu visibility on mobile when scrolling */
@media (max-width: 991px) {
  /* Ensure hamburger icon stays white/visible */
  .u-header .u-hamburger-link svg,
  .u-header .menu-collapse .u-nav-link svg,
  .u-header .u-svg-content {
    fill: #ffffff !important;
  }

  .u-header .u-hamburger-link,
  .u-header .menu-collapse .u-nav-link {
    color: #ffffff !important;
  }

  /* Force white color even when sticky/scrolled */
  .u-header.u-sticky .u-hamburger-link svg,
  .u-header.u-sticky .menu-collapse .u-nav-link svg,
  .u-header.u-sticky .u-svg-content {
    fill: #ffffff !important;
  }

  .u-header.u-sticky .u-hamburger-link,
  .u-header.u-sticky .menu-collapse .u-nav-link {
    color: #ffffff !important;
  }

  /* CRITICAL: Allow header and sheet to overflow for mobile menu */
  .u-header {
    overflow: visible !important;
  }
  
  .u-header .u-sheet {
    overflow: visible !important;
  }

  /* When menu is OPEN, allow proper width and display */
  .u-menu.open .u-nav-container-collapse {
    width: 100% !important;
    overflow: visible !important;
    z-index: 10001 !important;
  }

  /* Ensure the sidenav container is properly sized and visible */
  .u-menu.u-offcanvas .u-sidenav {
    width: 250px !important;
    max-width: 80vw !important;
    height: 100vh !important;
    flex: 0 0 250px !important;
    background: #1a1a1a !important;
    z-index: 10002 !important;
    position: relative !important;
  }

  /* Ensure sidenav starts hidden (offscreen) */
  .u-menu.u-offcanvas:not(.open) .u-sidenav {
    margin-left: -100% !important;
  }

  /* When menu is open, sidenav should be visible */
  .u-menu.u-offcanvas.open .u-sidenav {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Allow sidenav overflow to scroll if content is too tall */
  .u-sidenav-overflow {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 100vh !important;
    padding: 20px 0 !important;
  }

  /* Ensure the inner container layout doesn't restrict height */
  .u-sidenav .u-inner-container-layout {
    min-height: auto !important;
    height: auto !important;
  }

  /* Menu items should be fully visible with good spacing */
  .u-sidenav .u-popupmenu-items {
    width: 100% !important;
    padding: 20px 0 !important;
  }

  /* Ensure each menu item has proper spacing and visibility */
  .u-sidenav .u-nav-item {
    padding: 8px 0 !important;
    display: block !important;
  }

  .u-sidenav .u-nav-link {
    font-size: 18px !important;
    padding: 15px 30px !important;
    color: #ffffff !important;
    display: block !important;
    width: 100% !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
  }

  .u-sidenav .u-nav-link:hover {
    background: rgba(0, 102, 255, 0.2) !importbut behind sidenav */
  .u-menu-overlay {
    position: fixed !important;
    z-index: 10000 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7)rtant;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
  }

  /* Ensure the menu close button is visible and styled */
  .u-menu-close {
    color: #ffffff !important;
    cursor: pointer !important;
    font-size: 28px !important;
    padding: 10px !important;
    text-align: right !important;
  }

  .u-menu-close:before {
    color: #ffffff !important;
  }
}
