.team-members-section {
  padding: 91px 0 65px;
  width: 100vw;
  max-width: 100vw;
  transform: translate(-50%, 0%);
  left: 50%;
  position: relative;
  background: linear-gradient(180deg, #FAF9F9 0%, #F6F2EE 100%);
}
@media (min-width: 1024px) {
  .team-members-section {
    padding: 70px 0 140px;
  }
}
.team-members-section .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 -20px;
}
.team-members-section .col {
  padding: 0 20px;
  width: 100%;
  margin-bottom: 20px;
}
@media (min-width: 1400px) {
  .team-members-section .col {
    width: 40%;
  }
}
.team-members-section .col.text-holder {
  margin-bottom: 55px;
}
@media (min-width: 1400px) {
  .team-members-section .col.text-holder {
    margin-bottom: 20px;
  }
}
.team-members-section .col.team-grid-holder {
  width: 100%;
}
@media (min-width: 1400px) {
  .team-members-section .col.team-grid-holder {
    width: 54.5%;
    margin-right: 20px;
  }
}
.team-members-section .section-subtitle {
  color: #95A3AC;
  font-size: 20px;
  font-weight: 500;
  line-height: 23.2px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 55px;
}
@media (min-width: 1024px) {
  .team-members-section .section-subtitle {
    margin-bottom: 137px;
  }
}
.team-members-section .section-title {
  color: #011E2F;
  font-weight: 300;
  margin-bottom: 35px;
}
@media (min-width: 1024px) {
  .team-members-section .section-title {
    margin-bottom: 40px;
  }
}
.team-members-section .text-content {
  color: #324956;
  font-size: 24px;
  font-weight: 300;
  line-height: 33.6px;
  letter-spacing: 0.24px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -20px;
  align-items: flex-start;
}
.team-grid .col {
  width: 100%;
  padding: 0 20px;
  margin-bottom: 40px;
}
@media (min-width: 1024px) {
  .team-grid .col {
    width: 50%;
    margin-bottom: 40px;
  }
}
@media (min-width: 1200px) {
  .team-grid .col:first-child .team-member-card {
    margin-top: 92px;
  }
}
@media (min-width: 1200px) {
  .team-grid .col:nth-child(4n) .team-member-card {
    margin-top: -92px;
  }
}
.team-grid .col:only-child {
  width: 100%;
}

.team-member-card {
  padding: 0;
  transition: all 0.5s ease;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: none;
  display: block;
  text-align: left;
  background-color: rgba(225, 219, 212, 0.8);
  transform-origin: top;
  width: 100%;
}
@media (min-width: 1400px) {
  .team-member-card {
    width: auto;
  }
}
.team-member-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  min-height: 476px;
}
.team-member-card:hover {
  background-color: rgba(209, 200, 190, 0.8);
  transform: scale(1.03);
}
.team-member-card:hover .card-overlay {
  transform: translateY(5px);
}

.holder-card {
  transition: transform 0.5s ease;
  position: relative;
}
.holder-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(1, 37, 59, 0) 60.4%, rgba(1, 37, 59, 0.66) 79.93%, rgb(1, 37, 59) 100%);
}

.card-overlay {
  transition: transform 0.5s ease;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 23px 39px 30px;
  border-radius: 12px;
  color: #fff;
}
@media (min-width: 1024px) {
  .card-overlay {
    padding: 23px 20px;
  }
}
@media (min-width: 1400px) {
  .card-overlay {
    padding: 23px 39px 30px;
  }
}

.member-name {
  color: #FAF9F9;
  font-size: 34px;
  font-weight: 500;
  line-height: 44.88px;
  margin-bottom: 10px;
}
@media (min-width: 1024px) {
  .member-name {
    font-size: 24px;
    line-height: 30px;
  }
}
@media (min-width: 1400px) {
  .member-name {
    font-size: 34px;
    line-height: 44.88px;
  }
}

.member-position {
  color: #D0D6D9;
  font-size: 22px;
  font-weight: 400;
  line-height: 26.4px;
  letter-spacing: 0.22px;
  margin-bottom: 5px;
}
@media (min-width: 1024px) {
  .member-position {
    font-size: 16px;
    line-height: 20px;
  }
}
@media (min-width: 1400px) {
  .member-position {
    font-size: 22px;
    line-height: 26.4px;
  }
}

.team-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.team-popup.is-visible {
  opacity: 1;
  visibility: visible;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(130, 130, 130, 0.8);
  cursor: pointer;
}

.popup-content {
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(1, 37, 59, 0.1);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(17.5px);
  padding: 89px 32px 77px;
  width: 90%;
  max-width: 1315px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
}
@media (min-width: 1024px) {
  .popup-content {
    padding: 84px 77px 83px 80px;
  }
}

.popup-close {
  transition: all 0.3s;
  position: absolute;
  top: 24px;
  right: 26px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}
@media (min-width: 1024px) {
  .popup-close {
    top: 27px;
    right: 22px;
  }
}
.popup-close:hover {
  opacity: 0.7;
}

.popup-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -20px;
}
@media (min-width: 1400px) {
  .popup-grid {
    margin: 0 -55px;
  }
}
.popup-grid .col {
  padding: 0 20px;
}
@media (min-width: 1400px) {
  .popup-grid .col {
    padding: 0 55px;
  }
}
.popup-grid .col.col-img {
  width: 100%;
  margin-bottom: 37px;
}
@media (min-width: 1024px) {
  .popup-grid .col.col-img {
    width: 50%;
    margin-bottom: 0;
  }
}
@media (min-width: 1400px) {
  .popup-grid .col.col-img {
    width: 44.5%;
  }
}
.popup-grid .col.col-text {
  width: 100%;
}
@media (min-width: 1024px) {
  .popup-grid .col.col-text {
    width: 50%;
  }
}
@media (min-width: 1400px) {
  .popup-grid .col.col-text {
    width: 55.4%;
  }
}

.popup-image {
  position: relative;
  background-color: rgba(204, 196, 187, 0.8);
  border-radius: 12px;
  border: 1px solid #E1DBD4;
  overflow: hidden;
  height: 100%;
  max-height: 441px;
}
@media (min-width: 1024px) {
  .popup-image {
    max-width: 480px;
  }
}
.popup-image::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(1, 37, 59, 0) 60.4%, rgba(1, 37, 59, 0.66) 79.93%, rgb(1, 37, 59) 100%);
}
.popup-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-details {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.popup-name {
  margin: 0 0 14px;
  color: #011E2F;
  font-size: 34px;
  font-weight: 500;
  line-height: 44.88px;
  margin-top: -10px;
}

.popup-position {
  color: #2F4653;
  font-size: 22px;
  font-weight: 400;
  line-height: 26.4px;
  letter-spacing: 0.22px;
  max-width: 309px;
  margin-bottom: 64px;
}
@media (min-width: 1024px) {
  .popup-position {
    margin-bottom: 20px;
  }
}

.popup-bio {
  color: #2F4653;
  font-size: 24px;
  font-weight: 300;
  line-height: 33.6px;
  letter-spacing: 0.24px;
  margin-top: auto;
}
.popup-bio p:last-child {
  margin-bottom: 0;
}