html,
body {
  overflow-x: hidden;
}
.slider {
  position: relative;
  max-width: 80%;
  height: 35rem;
  margin: 0 auto;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0;
  width: 100%;
  height: 35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s;
}
.slide > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
button .fas {
  color: rgb(255, 0, 0);
}
.btn-slide {
  position: absolute;
  top: 50%;
  z-index: 10;

  height: 50px;
  width: 50px;
  border-radius: 100%;
  cursor: pointer;
}
.prev {
  left: 3rem;
  transform: translate(-50%, -50%);
}
.next {
  right: 3rem;
  transform: translate(50%, -50%);
}
.dots-container {
  display: none;
  justify-content: center;
  align-items: center;
  position: relative;
}
.dot {
  width: 50px;
  height: 50px;
  margin: 15px 5px;
  border-radius: 0.5rem;
  background: rgba(39, 39, 39, 0.5);
  cursor: pointer;
}

.img-1 {
  background-image: url("assests/WhatsApp Image 2023-06-28 at 09.47 1.png");
  background-position: center;
  background-size: cover;
}
.img-2 {
  background-image: url("assests/WhatsApp Image 2023-06-28 at 09.47 2.png");
  background-position: center;
  background-size: cover;
}
.img-3 {
  background-image: url("assests/WhatsApp Image 2023-06-28 at 09.47 5.png");
  background-position: center;
  background-size: cover;
}
.img-4 {
  background-image: url("assests/WhatsApp Image 2023-06-28 at 09.47 6.png");
  background-position: center;
  background-size: cover;
}

@media only screen and (max-width: 767px) {
  .slider {
    height: 25rem; /* Adjust the height for mobile devices */
  }

  .slide {
    width: 100%; /* Adjust the width for mobile devices */
    height: 25rem; /* Adjust the height for mobile devices */
  }

  .btn-slide {
    height: 4rem; /* Adjust the height for mobile devices */
    width: 4rem; /* Adjust the width for mobile devices */
  }

  .prev {
    left: 1.5rem; /* Adjust the left position for mobile devices */
  }

  .next {
    right: 2rem; /* Adjust the right position for mobile devices */
  }

  .dot {
    width: 8px; /* Adjust the width for mobile devices */
    height: 8px; /* Adjust the height for mobile devices */
    margin: 10px 4px; /* Adjust the margin for mobile devices */
  }
}
