.page-main {
  padding-top: 100px; /* Adjust depending on your header height */
}

/* === Shared Search Styles === */
.search-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 5%;
  background-color: transparent;
}

.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;
}

/* === Responsive Fixes === */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .search-wrapper {
    justify-content: flex-start;
    padding: 15px 5%;
  }

  .search-box {
    width: 100%;
  }

  .search-box input[type="text"] {
    width: 100%;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .search-wrapper {
    justify-content: center;
    padding: 10px 5%;
  }

  .search-box {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .search-box input[type="text"],
  .search-box button {
    width: 100%;
    font-size: 0.95em;
  }

}

/* Small Phones (≤576px) */
@media (max-width: 576px) {
  .search-wrapper {
    padding: 10px;
  }

  .search-box input[type="text"],
  .search-box button {
    font-size: 0.9em;
    padding: 8px 10px;
  }
}
