header {
  background: #0d47a1;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 1rem;
}

/* Navigation */
.navbar {
  margin-left: auto;
  margin-right: 1rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-menu li a:hover {
  color: #bbdefb;
}

/* Login Button Styles */
.btn-default {
  display: inline-block;
  background: white;
  color: #0d47a1;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.btn-default:hover {
  background: transparent;
  color: white;
  border-color: white;
}

/* Mobile login button in nav menu */
.mobile-login {
  display: none;
}

.mobile-login-btn {
  background: white !important;
  color: #0d47a1 !important;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: 2px solid white;
  font-weight: 600;
  margin-top: 1rem;
}

.mobile-login-btn:hover {
  background: transparent !important;
  color: white !important;
}

/* Desktop login button */
.desktop-login {
  /* Default styles already applied above */
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.hamburger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* Hide desktop login button */
  .desktop-login {
    display: none;
  }

  /* Show mobile login in nav menu */
  .mobile-login {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0d47a1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin: 0;
  }

  .navbar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    align-items: stretch;
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu li a {
    display: block;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    text-align: left;
  }

  .nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #bbdefb;
  }

  .logo img {
    height: 35px;
  }
}

@media screen and (max-width: 480px) {
  header {
    padding: 1rem 0;
  }

  .logo img {
    height: 30px;
    margin-right: 0.5rem;
  }

  .nav-menu li a {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .mobile-login-btn {
    margin: 1rem 1.5rem;
    text-align: center;
  }
}