<style>
body .topbar {
  background-color: #191919 !important;
  color: white !important;
}
/* === TOPBAR - SECONDARY MENU === */
div.topbar {
    background-color: #191919 !important;
    color: white;
    font-size: 0.9rem;
    padding: 0.3rem 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    border-bottom: 1px solid #444;
}

.topbar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.topbar a:hover {
    text-decoration: underline;
}

/* === NAVBAR & DROPDOWN STYLING === */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(180deg, #3fa300 0%, #0a5d00 100%);
    padding: 0.15rem 1rem;
    position: relative;
    gap: 2rem;
    border-bottom: 1px solid #444;
}

.nav-logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 35px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 40px;
    padding: 0;
    display: inline-block;
}

.nav-menu li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background-color 0.3s ease-in;
    z-index: 10;
}

.nav-menu li:hover::after {
    background: #fff;
}

/* ▼ arrow on submenu parent */
.nav-menu li.has-submenu > a::after {
    content: " ▼";
    font-size: 0.6rem;
    margin-left: 4px;
}

/* === SUBMENU === */
.submenu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: -50%;
    background: #191919;
    list-style: none;
    padding: 0.2rem 0.5rem;
    margin: 0;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 2000;

    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    min-height: 32px;
    white-space: nowrap;

    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.nav-menu li.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
/*    transition: opacity 0.3s ease, visibility 0s; */
}

.submenu li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: background 0.3s ease;
    padding: 0.2rem 0.5rem;
    font-size: 0.95rem;
    line-height: 1.1;
}

.submenu li a:hover {
    background: #2a2a2a;
}

/* === MOBILE MENU (unchanged) === */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    background: #fff;
    margin: 4px 0;
    width: 25px;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    z-index: 1100;
    cursor: pointer;
  }

  .hamburger span {
    height: 3px;
    background: #fff;
    margin: 4px 0;
    width: 25px;
  }

  .nav-menu {
    flex-direction: column;
    background: #191919;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    margin: 0;
    gap: 0;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-menu.active {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: white;
    background: #191919;
    text-decoration: none;
    line-height: 1.2;
  }

  .nav-menu a:hover {
    background: #2a2a2a;
  }

  /* Hide submenu on mobile */
  .nav-menu li.has-submenu .submenu {
    display: none !important;
  }

  /* Hide submenu arrows on mobile */
  .nav-menu li.has-submenu > a::after {
    display: none;
  }

  /* Hide the topbar on mobile */
  .topbar {
    display: none !important;
  }

  /* Show the mobile-only menu items inside nav-menu */
  .nav-menu li.mobile-only {
    display: block !important;
  }
}

/* Hide the mobile-only items on desktop */
.nav-menu li.mobile-only {
  display: none;
}
@media (max-width: 768px) {
  .has-submenu > .submenu {
    display: none !important;
  }

  .has-submenu > a {
    pointer-events: auto;
  }
}
</style>