.team-section {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  padding: 4rem 2rem;
  margin-top: 4rem;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
}

/* INDIVIDUAL TEAM MEMBER CONTAINER */
.team-member {
  display: flex;
  flex-direction: column; /* mobile default: stack vertically */
  align-items: center;
  text-align: center;
  gap: 2rem;
  width: 100%;
  max-width: 450px;
}

.team-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.team-info {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically align content on desktop */
}

/* Name */
.team-name {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: rgb(var(--gray-dark));
}

/* Title */
.team-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgb(var(--gray));
  margin-bottom: 1rem;
}

/* Bio */
.team-bio {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgb(var(--gray));
}

.about .hero {
  position: relative;
  background: url('/images/card-imgs/pexels-fauxels-3183165-rotated.jpg') center center / cover no-repeat;
  color: white;
  text-align: center;
  min-height: 40vh;
}

.about .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6); /* Optional dark overlay */
  z-index: 1;
}

.about .about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* DESKTOP LAYOUT */
@media (min-width: 768px) {
  .team-member {
    flex-direction: column; /* now the image is on the left, text on the right */
    align-items: center;
    text-align: center;
  }

  .team-photo {
    margin-bottom: 0;
  }

  .team-info {
    flex: 1; /* fill remaining space */
  }
}
@media (min-width: 1500px) {
  .team-member{
    max-width:500px;
  }
}

@media (min-width: 2500px) {
  .team-member{
    max-width:750px;
  }
}
