main {
  margin-top: 50px;
  overflow-x: hidden;
}

.team-section {
  text-align: center;
  padding: 40px 20px;
}

.team-section h1 {
  font-size: 2.5rem;
  color: rgb(99, 94, 94);
  padding-bottom: 20px;
}
.team-section #H {
  padding-bottom: 40px;
}
.mentor-container {
  display: flex;
  gap: 2rem;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}
.mentor-card {
  padding: 30px;
  display: flex;
  width: 670px;
  border-radius: 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  background-color: rgb(247, 241, 223);
  box-shadow: 4px 4px 0px #f5e6ef, 8px 8px 0px #f7f1f5, 10px 10px 0px #fdf4f9;
  transition: 0.3s ease-in;
}
.mentor-img h4 {
  padding-top: 5px;
  font-weight: 400;
  padding-bottom: 8px;
}
.mentor-card i {
  padding: 3px;
}
.team-card i {
  padding: 4px;
}
.mentor-card p {
  height: 100%;
  width: 30rem;
  text-align: left;
  padding-left: 30px;
  padding-top: 10px;
}

.team-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 70px;

}

.team-card {
  
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: 0.2s ease-in;
  flex: 1 1 calc(33.33% - 40px);
  max-width: 350px;
  background-color: rgb(247, 241, 223);
  box-shadow: 4px 4px 0px #f5e6ef, 8px 8px 0px #f7f1f5, 10px 10px 0px #fdf4f9;
  transition: 0.2s ease;
}
.team-card p {
  padding-bottom: 10px;
}

.mentor-card img,
.team-card img {
  height: 230px;
  width: 240px;
  border-radius: 50%;
  padding-bottom: 15px;
}
.mentor-card:hover,
.team-card:hover {
  box-shadow: 5px 10px 10px rgb(238, 188, 6);
  box-shadow: 6px 6px 0px #f5e6ef, 10px 10px 0px #f7f1f5, 13px 13px 0px #fdf4f9;
  scale: 1.05;
}

#seinor,
#board2 {
  margin-bottom: 50px;
}

@media (max-width: 900px) {
  .team-card {
    flex: 1 1 calc(33.33% - 40px);
    background-color: #fdf5fa;
  }
  .team-container {
    gap: 20px;
  }
  .mentor-card {
    display: block;
    width: 90vw;
    background-color: #fdf5fa;
  }
  .team-section h1 {
    font-size: 2rem;
    padding-bottom: 0;
  }
  .mentor-container {
    display: flex;
    flex-direction: column;
  }
  .mentor-card i {
    padding-bottom: 20px;
  }
  .mentor-card p {
    width: 100vw;
    display: contents;
    text-align: justify;
    padding: 20px 0 0 0;
  }
}
