.nav-container {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    width: 100%;
    margin-top: 150px;
    font-family: sans-serif;
  }

  /* Wrapper for content */
  .nav-bar {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    position: relative;
  }

  /* Brand */
  .nav-brand {
    font-weight: 200;
    font-size: 1.3rem;
    user-select: none;
    cursor: default;
  }

  /* Hamburger toggle */
  .nav-toggle { /* 3 line button */
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
  }

  .nav-toggle span {
    display: block;
    height: 3px;
    background: #222;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Animate hamburger to X */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Navigation menu */
  .nav-3 {
    display: flex;
    gap: 32px;
  }

  /* Nav items */
  .nav-item {
    position: relative;
  }

  /* Nav links */
  .nav-link {
    font-weight: 200;
    color: #111;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    user-select: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
  }
  .nav-link:hover,
  .nav-link:focus {
    background-color: #f0f0f0;
    outline: none;
  }

  /* Arrow icon for toggles */
  .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    user-select: none;
  }
  .arrow.open {
    transform: rotate(90deg);
  }

  /* Submenu */
  .submenu,
  .submenu-level2 {
    position: absolute;
    top: 44px;
    left: 0;
    background: #fff;
    min-width: 180px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform-origin: top left;
    transform: scaleY(0);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s ease;
    z-index: 100;
  }

  /* Show submenu */
  .submenu.show,
  .submenu-level2.show {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
  }

  /* Submenu item */
  .submenu-item {
    padding: 6px 20px;
    white-space: nowrap;
  }

  .submenu-item a {
    color: #111;
    text-decoration: none;
    display: block;
    font-weight: 500;
  }

  .submenu-item a:hover,
  .submenu-item a:focus {
    background-color: #e0e0e0;
    outline: none;
    border-radius: 4px;
  }

  /* Submenu toggler inside submenu (level 2) */
  .submenu-toggle-level2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #111;
    padding: 6px 20px;
    border-radius: 6px;
    user-select: none;
  }

  .submenu-toggle-level2:hover,
  .submenu-toggle-level2:focus {
    background-color: #f5f5f5;
    outline: none;
  }

  /* Sub-submenu (level 2) positioning */
  .submenu-level2 {
    left: 100%;
    top: 0;
  }

  /* Mobile styles */
  @media (max-width: 768px) {
    .nav-toggle {
      display: flex;
    }

    .nav-3 {
      flex-direction: column;
      position: fixed;
      top: 56px;
      left: 0;
      right: 0;
      background: #fff;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s ease;
      border-top: 1px solid #ddd;
      box-shadow: 0 2px 8px rgb(0 0 0 / 0.05);
      z-index: 2;
    }
    .nav-3.show {
      max-height: 100vh;
      overflow: auto;
    }

    .nav-item {
      width: 100%;
      border-bottom: 1px solid #eee;
      position: relative;
    }

    .nav-link {
      padding: 14px 20px;
      width: 100%;
      gap: 8px;
      font-size: 1rem;
      border-radius: 0;
    }

    /* Submenus become collapsible vertical blocks */
    .submenu,
    .submenu-level2 {
      position: relative;
      top: 0;
      left: 0;
      border: none;
      box-shadow: none;
      border-radius: 0;
      padding-left: 0;
      max-height: 0;
      opacity: 1;
      visibility: visible;
      transform: none;
      overflow: hidden;
      transition: max-height 0.35s ease;
    }
    .submenu.show,
    .submenu-level2.show {
      max-height: 1000px; /* large enough to show */
    }

    .submenu-item,
    .submenu-toggle-level2 {
      padding-left: 40px;
    }
    .submenu-toggle-level2 {
      padding-left: 20px;
    }

    /* Arrows rotate on open */
    .arrow {
      margin-left: auto;
      transition: transform 0.3s ease;
    }
    .arrow.open {
      transform: rotate(90deg);
    }
  }