/* --- Navbar --- */
nav {
  background: #005bac;
  color: #fff;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.4rem 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.logo, .navbar-logo {
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
}
#mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  margin-left: auto;
}
#mobile-menu-button:focus {
  outline: 2px solid #FACC15;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin: 0;
}
.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 3px;
  transition: background 0.18s, color 0.18s;
  position: relative;
  outline: none;
}
.nav-link:hover,
.nav-link:focus {
  background: #003d7a;
}
.nav-link.active, .nav-link.active:focus {
  background: #FACC15;
  color: #003d7a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}
#desktop-menu {
  display: flex;
}
#mobile-menu {
  display: none;
  width: 100%;
  background: #005bac;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
#mobile-menu ul {
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0 0.7rem 0;
}
#mobile-menu .nav-link {
  display: block;
  padding: 0.8rem 1.8rem;
  border-radius: 0;
}
@media (max-width: 900px) {
  .nav-container {
    max-width: 100%;
    padding: 0.4rem 0.5rem;
  }
}
@media (max-width: 768px) {
  #desktop-menu {
    display: none !important;
  }
  #mobile-menu-button {
    display: block;
  }
  #mobile-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #005bac;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    z-index: 200;
    animation: slideDown 0.18s;
  }
  #mobile-menu.show {
    display: block;
  }
  nav ul {
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
  }
}
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}