/* General header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  background-color: #062d3a;
  height: 60px; /* Adjusted height for better visibility */
  position: relative;
  z-index: 3; /* Ensures top menu stays above overlays */  
  
}

header a {
  color: white;
  text-decoration: none;
  padding: 14px 10px;
  display: block;
}

/* Header title specific styles */
header .h1 {
  font-family: 'Pacifico', cursive;
  font-size: 72px;
  margin: 0;
  padding: 0 10px;
  color: white;
  white-space: nowrap;
  z-index: 1;
  position: absolute;
  left: 50%;
  top: 35px; /* Adjusted to move the text down below the dark blue bar */
  transform: translateX(-50%);
}

/* Dropdown menu styles */
header .dropdown {
  position: relative;
  display: inline-block;
}

header .dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #35474e;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 10;
  padding: 5px 0;
  border-radius: 4px;
}

header .dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

header .dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

/* Remove hover behavior - will be handled by JS */
/* header .dropdown:hover .dropdown-content {
  display: block;
} */

/* Add a small gap to help with hover */
header .dropdown .dropbtn {
  cursor: pointer;
}

/* Hamburger menu for mobile view */
.hamburger {
  display: none;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 10px;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: white;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  background-color: #35474e;
  width: 100%;
}

.mobile-menu a {
  padding: 10px;
  text-align: center;
  color: white;
}

.show {
  display: flex;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  header {
    flex-direction: row;
    justify-content: space-between;
    height: auto;
  }

  header a:not(.h1) {
    display: none;
  }

  header .h1 {
    font-size: 32px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: static;
    transform: none;
  }

  .mobile-menu {
    display: none;
  }

  .mobile-menu.show {
    display: flex;
  }

  .mobile-menu a {
    padding: 10px 15px;
  }
}
