

{# Filters #}
.team-listing__filters{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.team-listing__dropdown{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.team-listing__filter > div,
.team-listing__search{
  background-color: #F0F0F0;
  padding: 1rem;
}

.team-listing__filter{
  position: relative;
  min-width: 300px;
}

.team-listing__filter input{
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.team-listing__filter ul{
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  margin: 0;
  list-style: none;
  background-color: #fff;
}

.team-listing__filter ul li{
  cursor: pointer;
}

.team-listing__filter ul li:hover,
.team-listing__filter ul li.active{
  color: var(--primary-color);
}

.team-listing__filter:has(input:checked) ul{
  opacity: 1;
  max-height: 10000px;
  transition: all 0.2s ease-out;
}

.team-listing__filter:not(:has(input:checked)) ul{
  opacity: 0;
  max-height: 0px;
  overflow: hidden;
  transition: all 0.2s ease-out;
}

.team-listing__search{
  position: relative;
}

.team-listing__search input{
  border: 0;
  outline: 0;
  background-color: transparent;
  min-width: 384px;
}

.team-listing__search span,
.team-listing__filter span:last-of-type{
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

@media screen and (max-width: 767px){
  .team-listing__filters{
    flex-direction: column;
  }

  .team-listing__dropdown{
    width: 100%;
  }

  .team-listing__dropdown > div:not(.team-listing__filter){
    min-width: max-content;
  }

  .team-listing__filter,
  .team-listing__search{
    min-width: auto;
    width: 100%;
  }

  .team-listing__search input{
    min-width: 100%;
  }
}

{# Section #}
.team-section{
  position: relative;
}

.team-section h2{
  position: relative;
  margin: 0;
}

.team-section h2::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: -1rem;
  width: 175px;
  height: 4px;
  background-color: var(--secondary-color);
}

.team-section .team-section__listing{
  display: grid;
  margin: 4rem 0;
}

{# Team Card #}
.team-member{
  position: relative;
}

.team-member img{
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

.team-member__content{
  margin-top: 1.25rem;
}

.team-member__content > h3,
.team-member__content > h4{
  margin-bottom: 0.25rem;
}

.team-member__content > h3{
  line-height: 1.4;
}

.team-member__content > h4{
  font-size: 1.25rem;
  font-weight: 500;
}

.team-member__content > h4,
.team-member__content > p{
  line-height: 1.5;
  color: #6B6B6B;
}

.team-member__content > p{
  margin-bottom: 0;
}

.team-member__links{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.team-member__links > a{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.team-member__links > a svg,
.team-member__links > a path{
  fill: var(--primary-color);
}

@media screen and (max-width: 767px){
  .team-section .team-section__listing{
    grid-template-columns: 1fr;
  }
  
  .team-member__content{
    height: auto !important;
  }
}
