.carousel .control-arrow,
.carousel.carousel-slider .control-arrow {
  transition: all 0.25s ease-in;
  opacity: 0.4;
  position: absolute;
  z-index: 2;
  top: 50%;
  background: none;
  border: 0;
  font-size: 32px;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel .control-arrow:hover {
  opacity: 1;
}

.carousel .control-arrow:before {
  content: '';
  display: inline-block;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.carousel .control-prev.control-arrow {
  left: 10px;
}

.carousel .control-prev.control-arrow:before {
  border-right: 8px solid #fff;
}

.carousel .control-next.control-arrow {
  right: 10px;
}

.carousel .control-next.control-arrow:before {
  border-left: 8px solid #fff;
}

.carousel-root {
  outline: none;
}

.carousel {
  position: relative;
  width: 100%;
}

.carousel img {
  width: 100%;
  display: inline-block;
  pointer-events: none;
  object-fit: cover;
  border-radius: 12px;
}

.carousel .slider-wrapper {
  overflow: hidden;
  margin: auto;
  width: 100%;
  height: 100%; /* Ensure the container has a proper height */
}

.carousel .slider {
  display: flex; /* Ensure slides are in a row */
  transition: transform 0.35s ease-in-out;
}

.carousel .slide {
  min-width: 100%;
  transition: opacity 0.5s ease-in-out; /* Smooth transitions between slides */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel .slide img {
  max-width: 100%;
  border-radius: 12px;
}

.carousel .control-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  text-align: center;
  z-index: 2;
}

.carousel .control-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
}

.carousel .control-dots .dot.selected,
.carousel .control-dots .dot:hover {
  opacity: 1;
}

.carousel-status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px;
  font-size: 12px;
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
}

/* Additional adjustments to ensure slide visibility */
.slider.animated {
  transition: transform 0.35s ease-in-out; /* Smooth transitions between slides */
}

.slide {
  opacity: 1; /* Ensure slides are visible */
  transition: opacity 0.5s ease-in-out; /* Add fade-in effect */
}

/* Handling for smaller screens */
@media (max-width: 768px) {
  .carousel .control-arrow {
    font-size: 24px;
  }

  .carousel .slide img {
    border-radius: 8px;
  }
}
