/* --- Desktop Styles (Keep your existing styles or use these defaults) --- */
.topnav {
  background-color: #0a2463;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.nav-menu {
  display: flex;
}
.topnav a, .dropdown .dropbtn {
  color: #f2f2f2;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  background: none;
  border: none;
  cursor: pointer;
}
.topnav a:hover, .topnav a:focus, .dropdown:hover .dropbtn, .dropdown .dropbtn:focus {
  background-color: #f7a923;
  color: black;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f7a923;
  color: black;
  min-width: 160px;
  z-index: 1;
}
.dropdown:hover .dropdown-content, .dropdown.show-menu .dropdown-content {
  display: block;
}
.menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
}

/* --- Mobile Responsive Layout --- */
@media screen and (max-width: 600px) {
  .topnav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }
  .menu-toggle {
    display: block; /* Show hamburger button */
    align-self: flex-end;
  }
  .nav-menu {
    display: none; /* COLLAPSED BY DEFAULT */
    flex-direction: column;
    width: 100%;
  }
  /* When this utility class is active, the menu expands */
  .topnav.menu-open .nav-menu {
    display: flex; 
  }
  .topnav a, .dropdown .dropbtn {
    width: 100%;
    text-align: left;
    box-sizing: border-box;
  }
  .dropdown-content {
    position: relative; /* Stack items vertically inside the mobile list */
    width: 100%;
  }
}
