* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
}

.navbar {
  background-color: #0B1E33;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  flex-wrap: nowrap;
  position: relative;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
  cursor: pointer;
  user-select: none;
  color: white;
}

/* Container holding nav and login button */
.menu-container {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
  gap: 2rem;
}

nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

nav a:hover {
  color: #F5A201;
}

.btn-login {
  background-color: #F5A201;
  border: none;
  color: #0B1E33;
  padding: 0.4rem 1rem;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-login:hover {
  background-color: #cc8400;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  position: relative;
  z-index: 10000;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* Dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
  user-select: none;
  color: white;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  --rotate-arrow: 0deg;
}

.dropbtn::after {
  content: "▼";
  font-size: 0.6rem;
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
  display: inline-block;
  transform: rotate(var(--rotate-arrow));
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #0B1E33;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0;
  border-radius: 3px;
  top: 100%;
  left: 0;
  z-index: 10000;
  flex-direction: column;
}

.dropdown-content a {
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
  font-weight: 400;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #F5A201;
  color: #0B1E33;
}

@media(min-width: 769px) {

  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    display: flex;
  }

  .dropdown:hover .dropbtn::after,
  .dropdown:focus-within .dropbtn::after {
    transform: rotate(180deg);
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0B1E33;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    padding: 1rem 2rem;
    z-index: 9999;
  }

  .menu-container.active {
    display: flex;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
  }

  /* Make dropdown content static on mobile, hidden by default */
  .dropdown-content {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    display: none;
    width: 100%;
  }

  .dropdown-content.active {
    display: flex;
    flex-direction: column;
  }

  .dropbtn::after {
    transition: transform 0.3s ease;
  }

  .btn-login {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 0;
    border-radius: 0;
    font-size: 1.1rem;
    white-space: normal;
    display: block;
    text-align: center;

  }

  .hamburger {
    display: flex;
    order: 2;
  }
}


