.header-wrapper {
  position: relative;
}

.scring-header {
  display: flex;
  align-items: center;
  background-color: #0e76bc;
  color: white;
  padding: 0.5em 1em;
  position: relative;
  gap: 1em;
}


.menu-toggle {
  font-size: 1.5em;
  cursor: pointer;
  display: block; /* ✅ always show it */
}

/* 2. Style the magnifying-glass toggle */
.search-toggle {
  font-size: 1.5em;
  cursor: pointer;
  color: white;
  margin: 0 0;
  flex-shrink: 0;
  user-select: none;
}

/* 3. Hidden-by-default header search box */
.header-search {
  display: none;
  position: absolute;
  top: 100%;         /* just below the header */
  right: 1em;
  margin-top: .5em;
  background: var(--header-bg, #0e76bc);
  padding: .5em;
  border: 1px solid #3CB043;
  border-radius: 4px;
  z-index: 1000;
}

/* 4. Show it when JS toggles the .show class */
.header-search.show {
  display: block;
}

/* 5. Inputs/buttons within the header-search */
.header-search input {
  padding: .25em .5em;
  border: none;
  border-radius: 2px;
  margin-right: .5em;
}

.header-search button {
  padding: .25em .5em;
  border: none;
  border-radius: 2px;
  background: #3CB043;
  color: white;
  cursor: pointer;
}

/* Dropdown base hidden */
.dropdown-menu {
  display: none;
  flex-direction: column;
  border: 1px solid #3CB043;
  position: absolute;
  top: 3.5em;
  right: 1em;
  z-index: 999;
  width: 200px;
  transition: opacity 0.2s ease-in-out;
  background-color: var(--header-bg, #0e76bc);
  color: var(--header-fg, white);
  font-weight: bold;
}

.dropdown-menu a:hover {
  background-color: var(--header-fg, white);
  color: var(--header-bg, #0e76bc);
}

/* Active menu on mobile */
.dropdown-menu.show {
  display: flex;
}

.dropdown-menu a {
  color: white;
  text-decoration: none;
  padding: 0.5em;
  border-bottom: 1px solid #3CB043;
}

.dropdown-menu a:hover {
  background-color: var(--header-bg, #0e76bc);
  color: var(--header-fg, white);}

/* Responsive rules 
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

@media (min-width: 769px) {
  .dropdown-menu {
    display: none !important;
  }
}*/

.logo {
  flex-shrink: 0;
}

.tagline {
  flex-grow: 1;
  text-align: right;
  font-weight: 500;
}
.tagline {
  font-family: 'Segoe UI', sans-serif; /* or whatever your main clean font is */
}

.theme-toggle,
.menu-toggle {
  flex-shrink: 0;
}
