/* ———————————————————————— partners ———————————————————————— */
.partners-slider {
  max-width: 1400px;
}

.partners-slider img {
  display: flex;
  margin: 0 auto;
  max-width: 100%;
}


/* ———————————————————————— team members ———————————————————————— */
.team {
  margin: 5rem auto 0;
  max-width: 1400px;
  position: relative;
}

.team figure,
.team img {
  border: 0;
  color: inherit;
  list-style: none;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.team .team-title {
  align-items: flex-start;
  color: #AF1313;
  display: flex;
  font-size: 2rem;
  font-weight: 700;
  justify-content: start;
  line-height: 1;
  margin-bottom: 1rem;
  padding: 0;
  padding-right: 5rem;
  position: relative;
}

.team .team-description {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  position: relative;
}

.team .team-description:before {
  background: #FFDA60;
  bottom: 0;
  content: '';
  height: .25rem;
  position: absolute;
  width: 10rem;
}


/* ———————————————————————— cards ———————————————————————— */
.team_cards {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  position: relative;
}

.team_cards .team-members {
  display: grid;
  gap: 16px;
  grid-auto-rows: minmax(20rem, auto);
  grid-template-columns: repeat(1, 1fr);
  padding: 0 0 3rem;
}


/* ———————————————————————— card ———————————————————————— */
.team_cards .card {
  background: #FFFFFF;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px #EAEAEA;
  height: 100%;
  position: relative;
  transition: all .35s ease;
  width: 100%;
}

.team_cards .card.card-with-info .card-content_more {
  display: none;
}

.team_cards .card.card-with-info .card-content_text .card-content_text-background {
  color: #3E3E3E;
  display: flex;
}

.team_cards .card:before {
  box-shadow: 0 20px 40px -20px #EAEAEA;
  content: '';
  height: 100%;
  position: absolute;
  top: 0px;
  transition: all .35s ease;
  width: 100%;
  z-index: -1;
}

.team_cards .card .card-content {
  align-items: center;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.team_cards .card .card-content_bg {
  background: #AF1313;
  border-radius: 1rem 1rem 0 100%;
  box-shadow: inset 0 -16px 16px -24px #000000;
  height: 7.5rem;
  position: absolute;
  top: 0;
  transition: all .35s ease;
  width: 100%;
  z-index: 1;
}

.team_cards .card .card-content_more {
  align-items: center;
  background: rgba(0, 0, 0, .25);
  border-radius: 100%;
  cursor: pointer;
  display: flex;
  height: 2rem;
  justify-content: center;
  position: absolute;
  right: 1rem;
  top: 1rem;
  transform: rotate(0deg);
  transition: all .35s ease;
  width: 2rem;
  z-index: 9;
}

.team_cards .card .card-content_more:before,
.team_cards .card .card-content_more:after {
  background: #FFFFFF;
  border-radius: .5rem;
  content: '';
  height: .25rem;
  position: absolute;
  transition: all .35s ease;
  width: 1rem;
}

.team_cards .card .card-content_more:after {
  transform: rotate(90deg);
}

.team_cards .card .card-content_more:hover {
  background-color: transparent;
  transform: scale(1);
}

.team_cards .card .card-content_photo {
  border: .25rem solid #FFFFFF;
  border-radius: 100%;
  box-shadow: 0 4px 10px rgba(119, 119, 119, .25);
  height: 7.5rem;
  overflow: hidden;
  position: absolute;
  top: 2.5rem;
  transition: all .35s ease;
  width: 7.5rem;
  z-index: 1;
}

.team_cards .card .card-content_photo:before,
.team_cards .card .card-content_photo:after {
  border-radius: 1rem;
  bottom: 0;
  content: '';
  height: 7.5rem;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: all .35s ease;
  width: 100%;
}

.team_cards .card .card-content_photo:before {
  background: #000000;
  z-index: 1;
}

.team_cards .card .card-content_photo:after {
  background: linear-gradient(135deg, rgba(255, 218, 96, .5), rgba(175, 19, 19, .5));
  z-index: 2;
}

.team_cards .card .card-content_photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.team_cards .card .card-content_text {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  transform: translateY(3.75rem);
  transition: all .35s ease;
  z-index: 3;
}

.team_cards .card .card-content_text .card-content_text-title {
  color: #000000;
  font-size: 1rem;
  line-height: 1;
  margin-bottom: .5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: center;
}

.team_cards .card .card-content_text .card-content_text-subtitle {
  color: #848484;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0;
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: center;
}

.team_cards .card .card-content_text .card-content_text-background {
  color: #FFFFFF;
  display: none;
  font-size: .75rem;
  line-height: 1.5;
  margin-bottom: 0;
  margin-top: .25rem;
  max-height: 200px;
  overflow: auto;
  padding: 0 1rem;
  text-align: center;
}

.team_cards .card .card-content_social {
  align-items: center;
  background: #FFDA60;
  border-radius: 0 100% 1rem 1rem;
  bottom: 0;
  box-shadow: inset 0 16px 16px -24px #000000;
  box-sizing: border-box;
  display: flex;
  height: 3rem;
  padding: 0 1rem;
  position: absolute;
  transition: all .35s ease;
  width: 100%;
  z-index: 8;
}

.team_cards .card .card-content_social .card-content_social-icons {
  align-items: center;
  display: flex;
  justify-content: flex-start;
}

.team_cards .card .card-content_social .card-content_social-icons .card-content_social-icons-icon {
  display: block;
  height: 1.5rem;
  opacity: .8;
  transition: all .35s ease;
  width: 1.5rem;
}

.team_cards .card .card-content_social .card-content_social-icons .card-content_social-icons-icon:hover {
  opacity: 1;
  transform: scale(1.2);
}

.team_cards .card .card-content_social .card-content_social-icons .card-content_social-icons-icon img {
  display: block;
  height: 1.5rem;
  width: 1.5rem;
}

.team_cards .card:hover {
  transform: translateY(0px);
}

.team_cards .card:hover:before {
  box-shadow: 0 20px 40px -20px #EAEAEA;
}

.team_cards .card:hover .card-content_photo {
  box-shadow: 0 4px 10px rgba(119, 119, 119, .125);
  transform: translateY(0px);
}

.team_cards .card.active {
  overflow: hidden;
}

.team_cards .card.active .card-content_more {
  transform: rotate(45deg) scale(1);
}

.team_cards .card.active .card-content_more:hover {
  transform: rotate(45deg) scale(1);
}

.team_cards .card.active .card-content_social {
  transform: translateY(3.25rem);
}

.team_cards .card.active .card-content_text {
  color: #FFFFFF;
  transform: translateY(0px);
  transition: all .35s ease;
}

.team_cards .card.active .card-content_text .card-content_text-title,
.team_cards .card.active .card-content_text .card-content_text-subtitle {
  color: #FFFFFF;
}

.team_cards .card.active .card-content_text .card-content_text-background {
  display: block;
}

.team_cards .card.active .card-content_photo {
  border: solid 0 transparent;
  border-radius: 1rem;
  bottom: 0;
  box-shadow: 0 4px 10px rgba(119, 119, 119, 0);
  height: 100%;
  top: 0;
  transform: translateY(0px);
  transition: all .35s ease;
  width: 100%;
}

.team_cards .card.active .card-content_photo:before {
  bottom: 0;
  height: 100%;
  opacity: .5;
}

.team_cards .card.active .card-content_photo:after {
  border-radius: 1rem;
  bottom: 0;
  height: 100%;
  opacity: .75;
}

.team_cards .card.active .card-content_photo img {
  filter: grayscale(100%);
}

.team_cards .card.active .card-content_photo:hover {
  transform: translateY(0px);
}

.team_cards .card.active .card-content_bg {
  border-radius: 1rem;
  height: 100%;
  width: 100%;
}

.team_cards .card.active .card-content_bg:before {
  opacity: .5;
}

.team_cards .card.active .card-content_bg:after {
  opacity: .8;
}


/* ———————————————————————— card custom ———————————————————————— */
.team_cards .directors-wrapper {
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.team_cards .directors-wrapper .team-members {
  grid-template-columns: repeat(1, 1fr);
}

.team_cards .directors-wrapper .team-members .card-content {
  justify-content: flex-start;
}

.team_cards .directors-wrapper .team-members .card-content_photo,
.team_cards .directors-wrapper .team-members .card-content_text {
  position: relative;
}

.team_cards .directors-wrapper .team-members .card-content_photo,
.team_cards .directors-wrapper .team-members .card-content_text {
  transform: translateY(0);
}

.team_cards .directors-wrapper .team-members .card-content_photo {
  margin: 2rem auto 1rem;
  top: 0;
}

.team_cards .directors-wrapper .team-members .card-content_text {
  margin-bottom: 4.5rem;
}

.team_cards .directors-wrapper .team-members .card .card-content_bg {
  background: #FFDA60;
  border-radius: 1rem 1rem 100% 0;
}

.team_cards .directors-wrapper .team-members .card .card-content_social {
  background: #AF1313;
  border-radius: 100% 0 1rem 1rem;
  justify-content: flex-end;
}

.team_cards .directors-wrapper .card .card-content_social .card-content_social-icons .card-content_social-icons-icon {
  opacity: 1;
}


/* ———————————————————————— slider custom ———————————————————————— */
.team .swiper-container .swiper-slide {
  width: 100% !important;
}

.team .swiper-pagination {
  bottom: 0;
  display: block;
  left: .75rem;
}

.team .swiper-pagination .swiper-pagination-bullet {
  background: #CECECE;
  border-radius: .5rem;
  height: .5rem;
  margin: 0 .25rem;
  opacity: 1;
  transition: all .35s ease;
  width: .5rem;
}

.team .swiper-pagination .swiper-pagination-bullet:focus {
  outline: 0;
}

.team .swiper-pagination .swiper-pagination-bullet-active {
  background: #AF1313;
  width: 2rem;
}

.team .swiper-navigation {
  align-items: center;
  background: #FFFCEF;
  box-sizing: border-box;
  display: flex;
  height: 2rem;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 6.5rem;
  z-index: 2;
}

.team .swiper-navigation .swiper-button-prev,
.team .swiper-navigation .swiper-button-next {
  background-position: center;
  height: 2rem;
  margin-top: 0;
  top: 0;
  transition: all .35s ease;
  width: 2rem;
}

.team .swiper-navigation .swiper-button-prev:focus,
.team .swiper-navigation .swiper-button-next:focus {
  outline: none;
}

.team .swiper-navigation .swiper-button-prev {
  background-image: url('../images/icons/arrow-prev.svg');
  background-position-x: 5px;
  left: .5rem;
  transform: translateX(5px);
}

.team .swiper-navigation .swiper-button-prev:hover {
  transform: translateX(0px);
}

.team .swiper-navigation .swiper-button-next {
  background-image: url('../images/icons/arrow-next.svg');
  background-position-x: -5px;
  right: .5rem;
  transform: translateX(-5px);
}

.team .swiper-navigation .swiper-button-next:hover {
  transform: translateX(0px);
}

.team .swiper-navigation .swiper-button-next.swiper-button-disabled,
.team .swiper-navigation .swiper-button-prev.swiper-button-disabled {
  opacity: 0;
}


/* ———————————————————————— media queries ———————————————————————— */
/* ———————————— medium up to 768px ———————————— */
@media only screen and (min-width: 768px) {
  .team_cards .team-members {
    grid-template-columns: repeat(2, 1fr);
  }

  .team_cards .card:hover {
    transform: translateY(3px);
  }

  .team_cards .card:hover:before {
    box-shadow: 0 10px 10px -10px #EAEAEA;
  }

  .team_cards .card .card-content_more:hover {
    background: rgba(255, 255, 255, .25);
    transform: scale(1.1);
  }

  .team_cards .card:hover .card-content_photo {
    box-shadow: 0 6px 20px rgba(119, 119, 119, .25);
    transform: translateY(-5px);
  }

  .team_cards .card.active:hover .card-content_photo {
    transform: translateY(0);
  }

  .team_cards .card.active .card-content_more:hover {
    transform: rotate(45deg) scale(1.1);
  }

  .team_cards .directors-wrapper .team-members {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ———————————— large up to 992px ———————————— */
@media only screen and (min-width: 992px) {
  .team_cards .team-members {
    grid-template-columns: repeat(3, 1fr);
  }

  .team_cards .card .card-content_text .card-content_text-subtitle {
    margin-bottom: .75rem;
    max-width: 75%;
  }

  .team_cards .directors-wrapper .team-members {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ———————————— extra large up to 1200px ———————————— */
@media only screen and (min-width: 1200px) {
  .team_cards .team-members {
    grid-template-columns: repeat(4, 1fr);
  }
}
