.team-page {
  display: flex;
  flex-direction: column;
  background-color: white;
}

.team-main {
  flex-grow: 1;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

.team-statement {
  font-size: 1.5rem;
  max-width: 1366px;
  padding-bottom: 2rem;
  text-align: center;
}

.team-grid {
  width: 100%;
  max-width: 1366px;
  display: grid;
  gap: 1.5rem;
}

.team-card {
  background-color: white;
  border-radius: 35px;
  box-shadow: 5px 10px 15px rgba(0, 0, 0, 0.1), 5px 10px 15px rgba(0, 0, 0, 0.1), 5px 10px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media screen and (min-width: 640px) {
  .team-card {
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
  }
}

.team-img-wrapper {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team-img {
  border-radius: 9999px;
  object-fit: cover;
  width: 100%;
  height: auto;
  max-width: 300px;
}

.team-name {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 0.5rem;
  text-align: center;
}

.team-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.team-description {
  color: #374151;
  font-size: 1.3rem;
  line-height: 1.5;
}

.mission-statement {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #374151;
}

/* Mobile View */
@media screen and (max-width: 480px) {
  .team-title {
    font-size: 1.5rem;
  }
  .team-statement, .team-name {
    font-size: 1.3rem;
  }
  .team-description {
    font-size: 1rem;
  }
}
