.member-card {
  display: flex;
  align-items: flex-start;
  background-color: #fffaf0;
  border: 5px solid #2f2f2f;
  border-radius: 25px;
  padding: 20px 30px;
  margin-bottom: 40px;
  max-width: 900px;
  position: relative;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.member-card::before {
  content: attr(data-bgtext);
  position: absolute;
  font-size: 120px;
  font-weight: bold;
  color: rgba(232, 208, 175, 0.6);
  top: 60%;
  left: 60%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}

.member-card::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 3px solid #d4a755;
  border-radius: 20px;
  pointer-events: none;
}

.member-photo {
  flex-shrink: 0;
  width: 180px;
  height: 240px;
  border: 3px solid #d4a755;
  border-radius: 20px;
  overflow: hidden;
  margin-right: 30px;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.member-info h2 {
  color: #d4a755;
  font-size: 1.8em;
  margin: 0;
  margin-bottom: 8px;
}

.member-info hr {
  border: none;
  border-top: 2px solid #d4a755;
  width: 60%;
  margin: 0 0 15px 0;
}

.member-info p {
  color: #222;
  font-size: 1.05em;
  line-height: 1.6em;
  transition: opacity 0.4s ease;
}

.member-info .more {
  opacity: 0;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
}

.member-card:hover .default {
  opacity: 0;
}

.member-card:hover .more {
  opacity: 1;
}

@media (max-width: 700px) {
  .member-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .member-photo {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .member-info hr {
    margin: 10px auto;
  }
}


.our-team-section {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;

  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.2) 25%,
      rgba(0, 0, 0, 0.05) 50%,
      rgba(0, 0, 0, 0.25) 75%,
      rgba(0, 0, 0, 0.6) 100%),
    url("https://static.igem.wiki/teams/5972/uploads/page/team/groupimage.webp"),
    url("https://static.igem.wiki/teams/5972/uploads/page/pagebackground1.webp");

  background-size:
    100% 100%,
    cover,
    auto 100%;


  background-position:
    center center,
    center center,
    center center;

  background-repeat: no-repeat, no-repeat, no-repeat;
}