/* ============================
   NAVIGATION (DESKTOP + MOBILE)
   ============================ */

/* Reset */
nav, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Sticky top bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #888;
    width: 100%;
}

/* Layout container */
.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center; /* center menu on desktop */
    padding: 0 10px;
}

/* Desktop menu */
  .nav-menu {
      display: flex;
      gap: 10px;
  }
  
  .nav-menu > li > a {
      display: block;
      padding: 3px 3px;
      color: white;
      text-decoration: none;
      font-weight: bold;
  }
  
  .nav-menu > li > a:hover {
      background: #bbb;
  }
  
  /* Dropdown container */
  .nav-menu li {
      position: relative;
  }

/* Dropdown menu (hidden by default) */
  .submenu {
      display: none;
      position: absolute;
      background: #bbb;
      top: 100%;
      left: 0;
      min-width: 180px;

  }
  
  .submenu li a {
      padding: 10px 15px;
      display: block;
      color: white;
      text-decoration: none;
  }
  
  .submenu li a:hover {
      background: #666;
  }
  
  /* Desktop hover dropdown */
  .nav-menu li:hover > .submenu {
      display: block;
  }

/* ============================
   MOBILE STYLES
   ============================ */

/* CSS Hamburger Icon */
  .hamburger {
      width: 30px;
      height: 24px;
      display: none; /* mobile will override this */
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;
  }
  
  .hamburger span {
      display: block;
      height: 4px;
      background: white;
      border-radius: 2px;
  }


@media (max-width: 800px) {
    .hamburger {
        display: flex;
        position: relative;
        z-index: 99999;
    }

    .nav-container {
        justify-content: space-between;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #333;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1;
        border-bottom: 3px solid #222;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu > li > a {
        padding: 14px;
        border-top: 1px solid #444;
    }

    /* Mobile submenu */
    .submenu {
        position: static;
        border: none;
        display: none;
        background: #444;
    }

    .submenu li a {
        padding-left: 30px;
    }

    /* Toggle arrow (+) */
    .submenu-toggle {
        float: right;
        font-size: 1.2rem;
        cursor: pointer;
        padding-right: 10px;
    }

    .submenu.open {
        display: block;
    }
}
