.hero-section {
  position: relative;
  height: 50vh;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 15px 10px rgba(0, 0, 0, 0.2);
}
.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #F2AF03;
  padding: 10px 20px;
  border-radius: 5px;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}
.Teachers {
  padding: 50px 0;
  background-color: #f8f8f8;
}

.Teachers h1 {
  text-align: center;
  font-weight: 800;
  margin: 50px 0 30px;
  color:#F2AF03;
  text-transform: capitalize;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  background-color: #554C4C;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  width: 30%;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  background-color: #665c5c;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.imageTeacher {
  width: 90%;
  height:auto;
  border-radius: 50%;
  margin: 20px auto;
  object-fit: cover;
  display: block;
}

.card h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: #ddd;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card button {
  color: #F2AF03;
  width: 50%;
  background-color: #fff;
  padding: 10px;
  margin: auto;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card button:hover {
  background-color: #F2AF03;
  color: #fff;
}

@media (max-width: 768px) {

  .hero-section {
    height: 35vh;
  }

  .hero-content {
    font-size: 1.5rem;
    padding: 8px 15px;
  }

  .Teachers {
    padding: 30px 10px;
  }

  .Teachers h1 {
    font-size: 22px;
    margin: 30px 0 20px;
  }

  .card {
    width: 97%;
    padding: 15px;
  }

  .imageTeacher {
    width: 200px;
    height: 200px;
  }

  .card button {
    width: 70%;
    font-size: 14px;
  }
}


