/*
 * Team archive page: members grouped into a section per Team Category,
 * shown in a static grid (no slider, no tab filters).
 */

.team-category-group {
  margin-bottom: 50px;
}

.team-category-group:last-child {
  margin-bottom: 0;
}

.team-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primaryColor);
  text-transform: capitalize;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--grey);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.team-grid .item {
  flex-basis: calc(25% - 22.5px);
  text-decoration: none;
  color: inherit;
  display: block;
}

@media screen and (max-width: 1024px) {
  .team-grid .item {
    flex-basis: calc(33.3333% - 20px);
  }
}

@media screen and (max-width: 768px) {
  .team-grid {
    gap: 20px;
  }
  .team-grid .item {
    flex-basis: calc(50% - 10px);
  }
  .team-category-title {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 480px) {
  .team-grid .item {
    flex-basis: 100%;
  }
}
