/* ---------- team page ---------- */
#team {
  padding: 120px 5vw 5vw;
  color: #052639;
}

.team-header {
  text-align: center;
  margin-bottom: 4rem;
}

.team-header h1 {
  font-size: 2.5rem;
  font-family: "Poppins";
  margin-bottom: 1rem;
}

.team-header p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  color: #333;
}

.team-members {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.team-member {
  display: flex;
  gap: 3rem;
  align-items: center;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-member.reverse {
  flex-direction: row-reverse;
}

.member-image {
  flex: 0 0 350px;
  max-width: 350px;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-info {
  flex: 1;
  padding: 2rem;
}

.member-info h2 {
  font-size: 1.8rem;
  color: #176b87;
  margin-bottom: 0.3rem;
}

.member-info h3 {
  font-size: 1.1rem;
  color: #e7ca71;
  font-weight: 600;
  margin-bottom: 1rem;
}

.member-info p {
  margin-bottom: 0.8rem;
  line-height: 1.7;
  color: #333;
}

/* ---------- responsive ---------- */
@media screen and (max-width: 900px) {
  .team-member,
  .team-member.reverse {
    flex-direction: column;
  }

  .member-image {
    flex: none;
    max-width: 100%;
    width: 100%;
    height: 350px;
  }

  .member-info {
    padding: 1.5rem;
  }

  .member-info h2 {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 576px) {
  #team {
    padding: 100px 3vw 3vw;
  }

  .team-header h1 {
    font-size: 1.8rem;
  }

  .member-image {
    height: 280px;
  }
}
