.slideshow-container {
  position: relative;
  width: 100%;
  height: 80vh;
  margin-top: 138px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.mySlides {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.mySlides.active {
  opacity: 1;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 3.5rem;
  font-weight: 700;
  text-align: center;
  z-index: 2;
}

.subcaption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  font-size: 1.5rem;
  text-align: center;
  z-index: 2;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.3); */
  z-index: 1;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 15px 20px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
  z-index: 3;
  outline: none;
}

.prev:focus,
.next:focus {
  outline: none;
  box-shadow: none;
}

.prev:hover,
.next:hover {
  background: none !important;
}

.prev {
  left: 20px;
  border-radius: 3px;
}

.next {
  right: 20px;
  border-radius: 3px;
}

/*  .prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}*/

/* Dots navigation */
.dots-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #fff;
}

@media (max-width: 768px) {
  .caption {
    font-size: 2rem;
    width: 90%;
  }

  .subcaption {
    font-size: 1rem;
    width: 90%;
  }

  .prev,
  .next {
    padding: 10px 15px;
    font-size: 18px;
  }
}
