/********************************************************* MEET THE TEAM ********************************************************/

.meet-the-team-wrapper{
  width: 100%;
  margin: 20px auto;
}

.meet-the-team {
  width: min(100%, var(--site-max-width, 1400px));
  margin: 1.3vmax auto;
  background-color: var(--dark-background-color);
  border-radius: 20px;
  padding: 50px 20px;
  text-align: center;
}

.meet-the-team.full-width {
  width: 100%;
  max-width: 100%;
}

.meet-the-team h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.team-member {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  flex: 1 1 300px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  padding: 0 0 20px;
}

.team-member:hover {
  transform: translateY(-8px);
}

.team-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin: 0;
}

.team-member h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 16px 0 4px;
  color:  var(--accent-color, #ffc83d);
}

.team-member h4 {
  font-size: 1rem;
  color: #555;
  margin: 0;
}

.team-member p {
  font-size: 0.95rem;
  color: #666;
  margin: 10px 20px 0;
  line-height: 1.4;
  text-align: center;
}

.team-intro {
  max-width: var(--site-max-width, 1200px);
  margin: 0 auto 40px auto;
  text-align: center;
}

.team-subtitle {
  margin: 10px 0 16px;
  font-weight: 500;
}

.team-content {
  line-height: 1.6;
}

.team-content p {
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .team-member {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

@media (max-width: 480px) {
  .team-member {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
