
/* nav.css */



nav {
  background-color: #002855;
  padding: 0;
}

.nav {
  list-style-type: none;
  margin: 0;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  align-items: center;
  font-family: sans-serif;
  background-color: #002855;
}

.nav li {
  margin: 0;
  padding: 1rem 0;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  display: block;
}

.nav a:hover,
.nav a:focus,
.nav .active {
  background-color: #003f7d;
  border-radius: 6px;
}

/* Mobile styles - hamburger menu */
.menu-toggle {
  display: none; /* Hidden by default */
  background-color: #002855;
  color: white;
  font-size: 2rem;
  border: none;
  padding: 1rem;
  cursor: pointer;
  z-index: 999; /* Ensure it's above other content */
}

.menu-hidden {
  display: none; /* Hide the menu by default */
}

@media only screen and (max-width: 768px) {
  .menu-toggle {
    display: block; /* Show the hamburger button in portrait mode */
  }

  /* Stack the nav items vertically in portrait mode */
  .nav {
    display: none; /* Hide the menu by default in portrait mode */
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0;
    margin-top: 1rem;
  }

  .nav li {
    width: 100%;
    text-align: left;
  }

  .nav a {
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    display: block;
  }

  /* Show the menu when it's toggled */
  .nav.show {
    display: flex;
  }
}
