.team-member-section {
  padding: 0 0 120px;
}

.member-card-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 75px 35px;
  margin-top: 60px;
}

.member-card {
  width: 100%;
  max-width: calc(25% - 26.25px);
  flex: 0 0 calc(25% - 26.25px);
}

.member-card a:has(.member-card-img) {
  text-decoration: none;
  display: inline-block;
}

.member-card .member-card-img {
  display: inline-block;
  width: 100%;
  height: auto;
  aspect-ratio: 0.82/1;
  object-fit: contain;
  object-position: bottom center;
  border-radius: 15px;
}
.member-card .member-name a {
  text-decoration: none;
}
.member-card .member-name,
.member-card .member-name a {
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  color: var(--black-color);
  margin: 20px 0 5px;
}

.member-card .member-position {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  color: var(--black-color);
}

.member-card .member-social-link-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.member-card .member-social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 10px;
  width: 40px;
  height: 33px;
  padding: 8px;
  background-color: var(--grey-color);
}
.member-card.cat-32 .member-social-link {
  background-color: #e6ecf1;
}
.member-card.cat-33 .member-social-link {
  background-color: #e8f4fd;
}
.member-card.cat-30 .member-social-link {
  background-color: #e1fadc;
}
.member-card.cat-34 .member-social-link {
  background-color: #e8deff;
}
.member-card.cat-31 .member-social-link {
  background-color: #ffe4d6;
}
.member-card.cat-33.cat-30 .member-social-link {
  background-color: #e8f4fd;
}

.member-card .member-social-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@media only screen and (max-width: 1280px) {
  .team-member-section {
    padding: 0 0 100px;
  }

  .member-card-wrapper {
    gap: 64px 32px;
    margin-top: 40px;
  }

  .member-card {
    max-width: calc(25% - 24px);
    flex: 0 0 calc(25% - 24px);
  }
}

@media only screen and (max-width: 1024px) {
  .team-member-section {
    padding: 0 0 80px;
  }
  .member-card-wrapper {
    gap: 48px 30px;
    margin-top: 30px;
  }
  .member-card {
    max-width: calc(33.33% - 20px);
    flex: 0 0 calc(33.33% - 20px);
  }
}

@media only screen and (max-width: 768px) {
  .team-member-section {
    padding: 0 0 60px;
  }
  .member-card-wrapper {
    gap: 36px 24px;
    margin-top: 20px;
  }
  .member-card {
    max-width: calc(50% - 12px);
    flex: 0 0 calc(50% - 12px);
  }
}

@media only screen and (max-width: 575px) {
  .member-card {
    max-width: 100%;
    flex: 0 0 100%;
  }
}
