@font-face {
  font-family: 'Graphik';
  src: url("../font/Graphik-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Graphik';
  src: url("../font/Graphik-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Graphik';
  src: url("../font/Graphik-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Graphik';
  src: url("../font/Graphik-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

#team .s3 .bio-shade {
  width: 100%;
  height: 100%;
  background: rgba(231, 230, 226, 0.502);
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 101;
}

#team .s3 .bio-shade.sel {
  opacity: 1;
  visibility: visible;
}

#team .s3 .team-wrapper {
  display: -webkit-flexbox;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 2rem;
}

#team .s3 .team-wrapper .sidebar {
  min-width: 210px;
  height: 600px;
  position: sticky;
  top: 200px;
}

#team .s3 .team-wrapper .sidebar .dropdown {
  position: relative;
  margin-bottom: 3rem;
  cursor: pointer;
  max-width: 210px;
}

#team .s3 .team-wrapper .sidebar .dropdown .dropdown-toggle {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  background: #fff;
  padding: 10px;
  border: solid 1px #5B784D;
  border-radius: 5px;
  font-weight: 400;
  color: #23221F;
  background: url(/i/svg/dropdown_color.svg) no-repeat 95% 50%;
  background-size: 20px;
}

#team .s3 .team-wrapper .sidebar .dropdown .dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  width: 100%;
  z-index: 10;
  list-style: none;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#team .s3 .team-wrapper .sidebar .dropdown .dropdown-menu li {
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  color: #5B784D;
  margin-bottom: 10px;
  transition: color .3s ease;
  cursor: pointer;
  color: #23221F;
}

#team .s3 .team-wrapper .sidebar .dropdown .dropdown-menu li:hover {
  color: #224E42;
}

#team .s3 .team-wrapper .sidebar .dropdown.open .dropdown-toggle {
  background: url(/i/svg/dropdown_color_hover.svg) no-repeat 95% 50%;
}

#team .s3 .departments p {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
  color: #23221F;
  opacity: 0.5;
  padding-left: 20px;
  transition: opacity .3s ease;
  position: relative;
  margin-bottom: 1rem;
  cursor: pointer;
}

#team .s3 .departments p:last-of-type {
  margin-bottom: 0;
}

#team .s3 .departments p::before {
  content: '';
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background-color: #6CAB69;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity .3s ease;
}

#team .s3 .departments p.active {
  opacity: 1;
}

#team .s3 .departments p.active::before {
  opacity: 1;
}

#team .s3 .team-grid {
  width: 100%;
  max-width: 940px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.4rem;
  row-gap: 3.35rem;
}

#team .s3 .team-grid .no-results {
  font-weight: 400;
}

#team .s3 .team-grid .person {
  cursor: pointer;
}

#team .s3 .team-grid .person img {
  display: block;
  width: 100%;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

#team .s3 .team-grid .person h3 {
  font-size: 1.88rem;
  line-height: 2.3rem;
  color: #23221F;
  margin: 1.5rem 0 0.5rem 0;
  transition: color .3s ease;
}

#team .s3 .team-grid .person .location {
  font-size: 16px;
  line-height: 22px;
  margin-top: 0.5rem;
}

#team .s3 .team-grid .person:hover h3 {
  color: #6CAB69;
}

#team .s3 .bio-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  width: 100%;
  max-width: 80%;
  margin-left: auto;
  min-height: 100vh;
  overflow-y: scroll;
  top: 0;
  left: 0;
  background: #E7E6E2;
}

#team .s3 .bio-popup .container {
  max-width: 1060px;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  padding-top: 12rem;
  margin-top: 5rem;
  margin-bottom: 10rem;
}

#team .s3 .bio-popup .container .close-bio {
  width: 60px;
  height: 60px;
  border-radius: 100%;
  position: absolute;
  top: 0;
  right: 0;
  background: #fff;
  transition: background-color .3s ease;
}

#team .s3 .bio-popup .container .close-bio span {
  display: block;
  width: 40px;
  height: 40px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: url(/i/svg/close-def.svg) no-repeat center/contain;
  transition: background-image .3s ease;
}

#team .s3 .bio-popup .container .close-bio:hover {
  background-color: #6CAB69;
}

#team .s3 .bio-popup .container .close-bio:hover span {
  background-image: url(/i/svg/close-hov.svg);
}

#team .s3 .bio-popup .container .left {
  width: 70%;
  max-width: 600px;
}

#team .s3 .bio-popup .container .left .title {
  font-family: "Roboto Serif", sans-serif;
  font-style: normal;
  font-weight: 100;
  font-size: 1.88rem;
  line-height: 2.5rem;
  color: #224E42;
  margin: 1rem 0 2rem 0;
}

#team .s3 .bio-popup .container .left .location {
  display: inline-block;
  background: #224E42;
  color: #fff;
  font-size: 1rem;
  padding: 7px 30px;
  border-radius: 100px;
  margin-bottom: 2.23rem;
}

#team .s3 .bio-popup .container .left .social {
  display: -webkit-flexbox;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
}

#team .s3 .bio-popup .container .left .social a {
  display: block;
  width: 60px;
  height: 60px;
  border: solid 1px #224E42;
  border-radius: 100%;
  margin-bottom: 3.35rem;
  position: relative;
  transition: border-color .3s ease;
}

#team .s3 .bio-popup .container .left .social span {
  display: block;
  width: 25px;
  height: 25px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: background-image .3s ease;
}

#team .s3 .bio-popup .container .left .social .email span {
  background: url(/i/svg/email-def.svg) no-repeat center/contain;
}

#team .s3 .bio-popup .container .left .social .linkedin span {
  background: url(/i/svg/linkedin-def.svg) no-repeat center/contain;
}

#team .s3 .bio-popup .container .left .social .email:hover {
  border-color: #6CAB69;
}

#team .s3 .bio-popup .container .left .social .email:hover span {
  background-image: url(/i/svg/email-hov.svg);
}

#team .s3 .bio-popup .container .left .social .linkedin:hover {
  border-color: #6CAB69;
}

#team .s3 .bio-popup .container .left .social .linkedin:hover span {
  background-image: url(/i/svg/linkedin-hov.svg);
}

#team .s3 .bio-popup .container .right .wrap-img {
  width: 100%;
  max-width: 436px;
  overflow: hidden;
  border-radius: 20px;
}

#team .s3 .bio-popup .container .right img {
  width: 100%;
}

/***** MEDIA *****/
@media screen and (max-width: 1200px) {
  #team .s3 .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #team .s3 .bio-popup .container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
    padding-top: 10rem;
  }
  #team .s3 .bio-popup .container .left {
    width: 100%;
    max-width: none;
  }
}

@media screen and (max-width: 1023px) {
  #team .s3 .team-wrapper {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 3rem;
  }
  #team .s3 .team-wrapper .sidebar {
    position: relative;
    height: auto;
    top: auto;
  }
  #team .s3 .departments {
    display: -webkit-flexbox;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 15px;
  }
  #team .s3 .departments p {
    margin-bottom: 0;
  }
  #team .s3 .departments p br {
    display: none;
  }
  #team .s3 .bio-popup {
    max-width: none;
  }
}

@media screen and (max-width: 767px) {
  #team .s3 .team-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
  }
  #team .s3 .team-grid .person .location {
    font-size: 15px;
  }
  #team .s3 .bio-popup .container {
    padding-top: 6rem;
    margin-bottom: 5rem;
  }
  #team .s3 .bio-popup .container .close-bio {
    width: 45px;
    height: 45px;
  }
  #team .s3 .bio-popup .container .close-bio span {
    width: 30px;
    height: 30px;
  }
  #team .s3 .bio-popup .container .left .title {
    font-size: 1.3rem;
    line-height: 2rem;
    margin-top: 0.5rem;
  }
  #team .s3 .bio-popup .container .left .social {
    gap: 10px;
  }
  #team .s3 .bio-popup .container .left .social a {
    width: 45px;
    height: 45px;
  }
  #team .s3 .bio-popup .container .left .social a span {
    width: 18px;
    height: 18px;
  }
}
