.hippo-search {
  max-width: 90%;       /* Allow room on mobile */
  margin: 30px auto;
  text-align: center;
}

.search-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  background-color: #f9fff9;
  border: 2px solid #95c445;
  border-radius: 30px;
  padding: 6px 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.search-wrapper img {
  margin-right: 8px;
  height: 20px;
}

.search-input {
  flex: 1;
  border: none;
  font-size: 1em;
  padding: 8px 6px;
  border-radius: 20px;
  outline: none;
  background-color: transparent;
  color: #333;
  min-width: 0; /* prevents overflow on narrow screens */
}

.search-input::placeholder {
  color: #888;
}

.search-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  margin-left: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  font-size: 0.95em;
}

.search-button:hover {
  background-color: #2c80b4;
}


/* Layout container */
.header-row {
  display: flex;
  flex-direction: column; /* Stack on mobile by default */
  align-items: flex-start;
  justify-content: space-between;
  margin: 20px auto;
  padding: 0 15px;
  max-width: 1100px;
}

/* Style the H1 */
.hippo-heading {
  margin-top: 1px;
  font-size: 2em;
  color: #2c80b4;
  margin-bottom: 10px;
}

/* Style the search as before */
.hippo-search {
  width: 100%;
  max-width: 500px;
  margin-top: 10px;
}

/* Desktop layout: row with spacing */
@media (min-width: 768px) {
  .header-row {
    flex-direction: row;
    align-items: center;
  }

  .hippo-heading {
    flex: 1;
    margin: 0;
  }

  .hippo-search {
    margin-top: 0;
  }
}
