#form-filters-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* Specific styling for the Active Projects A-Z Toggle */
.project-active-status .active-toggle-label input {
  display: none; /* Hide the actual checkbox */
}

.custom-toggle-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #ddd;
  cursor: pointer;
  border-radius: 4px;
  font-size: 1.1em;
  transition: all 0.3s ease;
  color: #333;
}

.active-toggle-label input:checked + .custom-toggle-btn {
  background: #336c8b; /* Matching your link hover color */
  color: #fff;
  border-color: #265169;
}

/* Loading and error states */
#project-results .loading {
  text-align: center;
  padding: 40px;
  font-size: 1.2em;
  color: #666;
}

#project-results .error {
  text-align: center;
  padding: 40px;
  color: #d32f2f;
  background: #ffebee;
  border: 1px solid #ef9a9a;
  border-radius: 4px;
}

#project-results .no-results {
  text-align: center;
  padding: 40px;
  font-size: 1.1em;
  color: #666;
}

/* Results container */
#project-results {
  margin-top: 20px;

  @media (max-width: 768px) {
      width: 90%;
      margin: 0 auto;
  }

  /* Hide specific teaser elements you don't want in the grid */
  .resource-icon,
  .resource-main-from,
  .text-intro,
  .parent-resource-label {
    display: none;
  }

  h4.project-main-title a, 
  h4.resource-main-title a {
    color: black;
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
  }
}

/* Teaser Card Styling */
.project-teaser-card, 
.resource-teaser-card {
  margin: 20px 0;
  transition: opacity 0.3s ease;

  .teaser-head a {
    color: black;
    text-decoration: underline;

    &:hover {
      color: #336c8b;
    }
  }

  .one-liner {
    text-transform: none;
    font-size: 1.1em;
    margin: 5px 0 0 0;
  }
}

/* Active filters display tags */
#project-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

#project-active-filters .active-filter {
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 5px 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#project-active-filters .active-filter .remove-filter {
  cursor: pointer;
  color: #666;
  font-weight: bold;
}

#project-active-filters .active-filter .remove-filter:hover {
  color: #d32f2f;
}

#results-count {
  font-weight: bold;
  margin: 10px 0;
  color: #333;
}

/* Dropdown styling */
.checkbox-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  z-index: 500;
  min-width: 220px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.checkbox-list.expanded {
  display: block !important;
}

.filter-group {
  position: relative; /* Essential for absolute checkbox-list positioning */
}

/* Style the Active button to match others */
.btn-active-toggle {
  cursor: pointer;
  display: inline-block;
  /* Add your existing .filter-toggle styles here */
}

/* Visual feedback when Active Projects is toggled on */
#active_only:checked + .btn-active-toggle {
  background-color: #007bff; /* Example: highlight color */
  color: #fff;
}

#project-pager {
  max-width: 900px;
  margin: 30px auto;
  text-align: center;

  ul {
    display: inline-block;

    li {
      margin: 0 10px;
      display: inline-block;
      min-width: 20px;
      text-align: center;
    }
  }
}