.custom-slider {
  position: relative;
  max-width: 100%;
  height: 30rem;
  margin: 0 auto;
  overflow: hidden;
}

.custom-slide {
  position: absolute;
  top: 0;
  width: 50%;
  height: 30rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s;
}

.custom-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-btn {
  background: none;
  border: none;
}

.custom-btn .fas {
  color: black;
}

.custom-btn-slide {
  position: absolute;
  top: 50%;
  z-index: 10;
  height: 5.5rem;
  width: 5.5rem;
  cursor: pointer;
}

.custom-prev {
  left: 4.5rem;
  transform: translate(-50%, -50%);
}

.custom-next {
  right: 3rem;
  transform: translate(50%, -50%);
}

.custom-dots-container {
  display: none;
  justify-content: center;
  align-items: center;
  position: relative;
}

.custom-dot {
  width: 10px;
  height: 10px;
  margin: 15px 5px;
  border-radius: 100%;
  background: rgba(39, 39, 39, 0.5);
  cursor: pointer;
}

.custom-dot.active {
  background: #272727;
}

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

  .custom-slide {
    width: 90%; /* Adjust the width for mobile devices */
    height: 20rem; /* Adjust the height for mobile devices */
  }

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

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

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

  .custom-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 */
  }
}
