/* Ensure the form doesn't stack the groups */
#staff-filters {
  display: inline-block;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-start;
}

/* Force horizontal layout for groups */
.resources-filter .filter-group {
  position: relative;
  display: block; /* Flex child */
}

/* The Toggle Buttons - Resetting the "Red" if it's coming from a default button style */
.resources-filter .filter-toggle {
  background-color: #ffffff;
  color: #333 !important;
  border: 1px solid #ccc !important;
  padding: 10px 20px;
  border-radius: 0; 
  text-transform: none;
  font-weight: normal;
  width: auto;
  min-width: 200px;
}

/* The "Active" state */
.resources-filter .filter-toggle.active {
  background-color: #f8f8f8 !important;
}

/* FIX: The invisible checkboxes */
/* Make sure the list is hidden, but the CONTENT inside is visible once expanded */
.resources-filter .checkbox-list {
  display: none; 
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  background: #fff;
  border: 1px solid #ccc;
  width: 280px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

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

/* Ensure the labels and inputs inside are visible */
.resources-filter .checkbox-content label {
  display: flex !important;
  align-items: center;
  color: #333 !important;
  margin-bottom: 8px;
  cursor: pointer;
}

.resources-filter .checkbox-content input[type="checkbox"] {
  margin-right: 10px;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
}

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

#staff-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);
}

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

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

#staff-results {
  margin: 0 0 0 15px;
  
  ul.staff-list-results {
    li {
      list-style-type: none;
      margin: 15px 0;

      a {
        color: #000;
        text-decoration: underline;

        &:hover {
          color: #1b506d;
        }
      }
    }
  }
}