.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 6rem;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 7rem;
  width: auto;
  padding: 1rem;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.search-bar {
  width: 100%;
  max-width: 600px;
  padding: 10px 20px 10px 40px; /* Extra left padding for icon */
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.2s ease;

  background-image: url("data:image/svg+xml;utf8,<svg fill='%233797C0' xmlns='http://www.w3.org/2000/svg' height='18' viewBox='0 0 24 24' width='18'><path d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 10-.7.7l.27.28v.79l4.25 4.25 1.5-1.5-4.25-4.25zm-5 0a5 5 0 110-10 5 5 0 010 10z'/></svg>");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: 12px center;
}


.search-bar:focus {
  border-color: #3797C0;
  outline: none;
}

/* === Responsive styles === */
@media (max-width: 768px) {
  .header {
    padding: 0.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .logo-img {
    height: 70px;
  }

  .header-center {
    width: 100%;
    justify-content: flex-start;
    padding: 0;
    padding-bottom: 0.5rem;
  }

  .search-bar {
    width: 100%;
    max-width: none;
    font-size: 0.85rem;
  }
}