/* Header */
.staff-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-p);
}
.header-title h2 {
  margin: 0;
  font-size: 1.75rem;
}
.filter-toggle-btn {
    width: 44px;
    height: 36px;
    border: 2px solid var(--color-p);
    border-radius: 10px;
    background-color: #fff;
    color: #333;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all 0.2s 
ease;
}
.filter-toggle-btn.is-active {
  background-color: #333;
  color: #fff;
}

/* Filters */
.staff-filters-container {
  display: none;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 1.5rem 0;
  border-radius: 4px;
  margin-bottom: 2rem;
  align-items: center;
}
.staff-filters-container.is-open {
  display: flex;
  align-items: center;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
  min-width: 200px;
}
.filter-group label {
  font-weight: 600;
}
.filter-group select {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Staff Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}
@media (max-width: 900px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
}
.staff-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}

/* Staff Card */
.staff-member {
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
.staff-member-info {
    padding: var(--space-4);    
    border: 1px solid var(--color-n-grey);
}
.staff-member img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.staff-placeholder-img {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
}
.staff-member h5 {

}
.staff-member p {
  margin: 0;
  min-height: 24px;
}

/* Load More & Loader */
.load-more-wrap {
    text-align: center;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-5);
}
.load-more-staff {

  cursor: pointer;
}
.load-more-staff[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
}
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 1rem;
    vertical-align: middle;
    margin: 0 0 0 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}