.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* 📌 Container for both filters and search bar */
.archive-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* 🔍 Full-width Search Bar Styling */
.search-form {
  display: flex;
  width: 100%;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  outline: none;
}

.search-submit {
  background-color: #007b5e;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-submit:hover {
  background-color: #005f4a;
}

/* 🧭 Taxonomy Filter Form Layout */
.taxonomy-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
}

/* 🎯 Dropdown Styling */
.taxonomy-dropdown {
  appearance: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: border-color 0.2s ease;
  min-width: 180px;
}

.taxonomy-dropdown:focus {
  border-color: #007b5e;
  outline: none;
}

/* 🎯 Filter Button */
.taxonomy-filter-submit {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background-color: #007b5e;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.taxonomy-filter-submit:hover {
  background-color: #005f4a;
}

.archive-page .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.post-item {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.post-item:hover {
  transform: translateY(-5px);
}

.post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.post-content {
  padding: 1rem;
}

.post-title a {
  font-size: 1.25rem;
  color: #007b5e;
  text-decoration: none;
  font-weight: bold;
}

.acf-fields {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.excerpt {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #555;
}

.read-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #007b5e;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
}

.read-more:hover {
  background: #005f4a;
}
