/* === HEADER STRUCTURE === */
.site-header {
  background-color: #2d4d3a;
  color: white;
  padding: 10px 30px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Add top padding to main content in your HTML: */
body {
  padding-top: 130px; /* Adjust to match total header height */
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 3px solid white;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 80px;
  width: auto;
}

.initiative-name {
  color: white;
  border: 2px solid white;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* === NAVIGATION + SEARCH === */
.header-bottom {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.nav-search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
}

nav {
  flex-grow: 1;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1px;
  padding: 0;
  margin: 0;
}

nav li {
  position: relative;
}

nav li a {
  color: white;
  padding: 10px 16px;
  display: block;
  font-weight: bold;
}

nav li a:hover {
  background-color: #3d6f52;
  border-radius: 5px;
}

/* === DROPDOWNS === */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 180px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.dropdown-content li a {
  color: #2d4d3a;
  padding: 10px 15px;
  font-weight: normal;
}

.dropdown-content li a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #264e3e;
  border-radius: 5px;
}

/* === SEARCH STYLING === */
.search-wrapper {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input[type="text"] {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.search-box button {
  padding: 8px 16px;
  background-color: #ffffff;
  color: #2d4d3a;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.search-box button:hover {
  background-color: #e0e0e0;
}

/* === ACTIVE LINK HIGHLIGHT === */
nav a.active {
  border-bottom: 2px solid #a8e6cf;
  color: #a8e6cf;
}

nav ul li ul li a.active {
  background-color: #e8f7f0;
  color: #2d4d3a;
  font-weight: bold;
}

nav li a i {
  margin-right: 6px;
}

/* === MENU TOGGLE BUTTON === */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

/* === MOBILE NAVIGATION STYLES === */
@media (max-width: 1024px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .nav-search-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  nav li {
    width: 100%;
  }

  nav li a {
    width: 100%;
    padding: 10px 0;
  }

  .search-wrapper {
    width: 100%;
    justify-content: flex-start;
  }

  .search-box {
    width: 100%;
  }

  .search-box form {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .search-box input[type="text"],
  .search-box button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header-bottom {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #2d4d3a;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .header-bottom.active {
    display: flex;
    max-height: 500px;
  }

  .header-bottom nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .header-bottom nav ul li {
    width: 100%;
    text-align: center;
  }

  .header-bottom nav ul li a {
    display: block;
    padding: 12px 0;
    color: white;
  }

  .search-wrapper {
    justify-content: center;
    margin: 10px 0;
  }

  .initiative-name {
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  nav ul li a {
    font-size: 0.95rem;
  }

  .search-box input[type="text"] {
    font-size: 0.95rem;
    padding: 8px 10px;
  }

  .search-box button {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}
