/* header styles */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

header .container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #2563eb;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.search-container {
  position: relative;
  display: none;
  align-items: center;
  background: var(--input-background, #f3f4f6);
  border-radius: 0.375rem;
}

.search-container input {
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: none;
  background: transparent;
  width: 100%;
}

.search-container svg {
  position: absolute;
  left: 0.5rem;
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
}

@media (min-width: 1024px) {
  .search-container { display: flex; width: 16rem; }
}

/* layout helpers for header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-img {
  max-width: 12rem;
  height: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-button {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  display: block;
}

@media (min-width: 768px) {
  .menu-button { display: flex; }
}

.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
}

#menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
}
@media screen and (max-width: 767px) {
    #menu-btn { display: flex; }
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}