


@media screen and (max-width: 960px) {
    .hero-slider {
        position: relative;
        width: 100%;
        height: 65vh;
        overflow: hidden;
    }

    h2 {
        font-size: 35px;
        margin-bottom: 10px;
        text-align: left;
    }

    .slide {
        flex-direction: column;
        margin-top: 70px;
        gap: 1rem;
        height: 50vh;
        opacity: 0; /* Set default opacity to 0 */
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Add opacity to the transition */
    }

    .slide.active {
        opacity: 1; /* Active slide should have opacity of 1 */
    }

    .mobile-image {
        width: 300px;
        height: 200px;
    }

    p {
        font-size: 14px;
        line-height: 2.5;
        color: #053658;
        text-align: left;
        letter-spacing: 1.5px;
    }

    .text {
        color: #053658;
        padding: 5px;
        width: 300px;
        text-align: center;
        background-color: #fff;
    }

    .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: 25px;
  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;
}



}