.team-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.team-intro__title {
  color: var(--color-red);
  text-transform: uppercase;
  font-family: "lulo";
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-align: center;
}

.team-intro__subtitle {
  width: 70%;
  text-align: center;
  font-family: "Lulo";
}

.team-intro__description {
  width: 70%;
  text-align: center;
}

.team-section {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 3rem auto;
  width: 80%;
}

.team-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--color-black);
  color: var(--color-white);
  width: 25%;
  padding: 1rem;
}

.team-card__image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card__image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.team-card__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: CENTER;
  gap: 10px;
  padding: 15px 10px 0;
}

.team-section__title {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 25px 20px;
  text-transform: uppercase;
  width: 80%;
  max-width: 500px;
  font-family: "Lulo";
  text-align: center;
}

.team-section__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.team-section__member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.team-section__name {
  color: var(--color-black);
  text-transform: uppercase;
  font-family: "Impact";
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 5px;
}

.team-section__role {
  color: var(--color-black);
  text-transform: uppercase;
  font-family: "Lulo";
  font-size: 1.5rem;
  text-align: center;
}

.team-section__photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-black);
}

.team-card__email {
  text-decoration: none;
  color: var(--color-white);
}

@media (max-width: 768px) {
  .team-intro__title {
    font-size: 2rem;
  }

  .team-intro__subtitle,
  .team-intro__description {
    width: 90%;
  }

  .team-section {
    width: 90%;
    gap: 1.5rem;
  }

  .team-card {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    height: auto;
  }

  .team-card__image-container,
  .team-card__info {
    width: 100%;
    align-items: center;
  }

  .team-card__image {
    width: 100%;
    height: auto;
  }

  .team-card__info {
    padding: 10px 5px;
  }

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

  .team-section__role {
    font-size: 1.2rem;
  }

  .team-section__photo {
    width: 200px;
    height: 200px;
  }
}