.team {
  background-color: #0b1e3c;
  color: #ffffff;
  text-align: center;
  padding: 80px 40px;
  font-family: "Roboto", sans-serif;
}

.team h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 180px;
  margin-bottom: 40px;
  padding: 0 40px;
  box-sizing: border-box;
}

.team-member {
  max-width: 300px;
  flex: 1 1 300px;
}

.team-member img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.team-member p {
  font-size: 1.1rem;
  margin: 0;
}

/* The bottom photo is large and centered. */
.team-member.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 80px auto 0;
  width: 100%;
  max-width: 1000px;
  padding: 0 40px;
  box-sizing: border-box;
}

.team-member.center img {
  width: 85%;
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Adaptability */
@media (max-width: 768px) {
  .team {
    padding: 60px 20px;
  }

  .team h2 {
    font-size: 2rem;
  }

  .team-member p {
    font-size: 1rem;
  }

  .team-grid {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    gap: 40px;
  }

  .team-member.center {
    padding: 0 20px;
    max-width: 340px; /* Same as team-member */
  }

  .team-member.center img {
    width: 100%;
  }
}