/* /bridgecore/modules/team-listing-advanced/module.css */

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

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

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

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

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

.team-listing--advanced .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--advanced .team-listing__filter ul li{
  cursor: pointer;
}

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

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

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

.team-listing--advanced .team-listing__search{
  position: relative;
}

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

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

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

  .team-listing--advanced .team-listing__dropdown{
    width: 100%;
  }

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

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

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

.team-listing--advanced .team-listing__notice{
  padding: 1rem 1.25rem;
  background: #f6f6f6;
  border: 1px solid #ddd;
}

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

.team-listing--advanced .team-section h2{
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 1.25rem;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 700;
}

.team-listing--advanced .team-section h2::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 60%;
  max-width: 220px;
  min-width: 120px;
  height: 4px;
  background: none !important;
  background-color: transparent !important;
  background-image: linear-gradient(
    270deg,
    transparent 0%,
    var(--secondary-color) 100%
  ) !important;
}

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

.team-listing--advanced .team-section--no-heading .team-section__listing{
  margin-top: 0;
}

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

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

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

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

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

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

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

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

.team-listing--advanced .team-member__links{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
}

.team-listing--advanced .team-member__link{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
  max-width: 100%;
}

.team-listing--advanced .team-member__link--email{
  overflow-wrap: anywhere;
  word-break: break-word;
}

.team-listing--advanced .team-member__link--phone{
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

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

@media screen and (max-width: 767px){
  .team-listing--advanced .team-section .team-section__listing{
    grid-template-columns: 1fr;
  }

  .team-listing--advanced .team-member__content{
    height: auto !important;
  }

  .team-listing--advanced .team-section h2{
    font-size: 38px;
  }
}