

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
  overflow: hidden; /* Ascunde conținutul care depășește limita containerului */
}

/* Individual slide */
.mySlides {
  display: none;
}

.slide-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 400px; /* Înălțimea dorită a slide-ului */
}

.slide-image {
  padding-left: 15px;
  max-width: 50%; /* Lățimea maximă a imaginii, 50% din container */
  height: auto;
}

.show_img{
  width: 100%;
}

.slide-text {
  max-width: 50%; /* Lățimea maximă a textului, 50% din container */
  padding: 0 20px; /* Spațiere între text și marginea slide-ului */
  color: #fff; /* Culorea textului */
  background-color: #000; /* Culoarea de fundal a textului */
  height: 90%;
  padding-right: 15px;
}

/* Alte stiluri pentru text (nume, profesie, descriere etc.) */
.name_teacher {
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 10px;
}

.profesor {
  font-size: 18px;
  margin-bottom: 10px;
}

.description_teacher {
  font-size: 16px;
}





/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}







.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards; /* Păstrează starea finală a animației */
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}





/* media adaptare */

@media (max-width: 767px) {
  .slideshow-container {
    max-width: 100%;
    height: auto;
  }

  .slide-content {
    flex-direction: column;
    height: auto;
  }

  .slide-image {
    max-width: 100%;
    padding: 10px 0;
  }

  .slide-text {
    max-width: 100%;
    padding: 10px;
    height: auto;
  }

  .name_teacher {
    font-size: 20px;
  }

  .profesor {
    font-size: 16px;
  }

  .description_teacher {
    font-size: 14px;
  }

  .prev, .next {
    font-size: 16px;
    padding: 12px;
  }

  .dot {
    height: 12px;
    width: 12px;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .slideshow-container {
    max-width: 100%;
    height: auto;
  }

  .slide-content {
    flex-direction: column;
    height: auto;
  }

  .slide-image {
    max-width: 100%;
    padding: 10px 0;
  }

  .slide-text {
    max-width: 100%;
    padding: 10px;
    height: auto;
  }

  .name_teacher {
    font-size: 22px;
  }

  .profesor {
    font-size: 18px;
  }

  .description_teacher {
    font-size: 16px;
  }

  .prev, .next {
    font-size: 18px;
    padding: 14px;
  }

  .dot {
    height: 14px;
    width: 14px;
  }
}