/* === HEADER / NAVBAR STYLES === */

header {
  background-color: #3e89c1; /* light blue */
  color: white;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  min-height: 70px; /* Ensure consistent height */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Optional: reserve space in main content using class */
.with-sticky-header {
  margin-top: 80px; /* Matches or exceeds header height */
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 60;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: white;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* === Responsive Navbar === */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
