.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slider .slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1; /* By default, all slides are at the same level */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease;
  opacity: 0;
  z-index: 1; /* By default, all slides are at the same level */
  flex-direction: row-reverse;
  gap: 5rem;
}

.hero-slider .slide.active {
  opacity: 1;
  z-index: 2; /* Active slide should be above others */
}

.image {
  width: 100%;
  height: 600px;
}

.text {
  color: #053658;
  padding: 15px;
  width: 500px;
  text-align: center;
  background-color: #fff;
}

h2 {
  font-size: 40px;
  margin-bottom: 10px;
  text-align: left;
}

p {
  font-size: 18px;
  line-height: 2.5;
  color: #053658;
  text-align: left;
  letter-spacing: 1.5px;
}

.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: -100px;
  z-index: 990;
  position: relative;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.dot.active {
  background-color: #053658;
}

@media screen and (max-width: 960px) {
  .hero-slider {
    height: 65vh;
  }


  h2 {
    font-size: 35px;
  }

  .slide {
    flex-direction: column;
    margin-top: 70px;
    gap: 1rem;
    height: 50vh;
  }

  .image {
    height: 600px;
  }

  p {
    font-size: 14px;
  }

  .text {
    padding: 5px;
    width: 300px;
  }
}
