.sidebar-banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0px 3px 28px rgba(0, 0, 0, 0.160);
  margin-bottom: 20px;
  padding-bottom: 15px;
  padding-top: 9px;
}

.sidebar-banner-slider .slider {
  position: relative;
  display: flex;
  transition: transform 0.5s ease;
}

.sidebar-banner-slider .slider a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 3px;
}

.sidebar-banner-slider .slide {
  min-width: 100%;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}

.sidebar-banner-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

.sidebar-banner-slider img {
  border-radius: 7px;
}

.slider-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2; /* Ensure the dots are above the slides */
}

.sidebar-banner-slider .nav-dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.sidebar-banner-slider .nav-dot.active {
  background-color: #333;
}

@media (min-width: 768px) {

  .sidebar-banner-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  .sidebar-banner-slider .slide.active {
    opacity: 1;
    z-index: 1;
  }
  .sidebar-banner-slider .slider {
    height: 510px;
  }
}

@media (max-width: 767px) {
  .sidebar-banner-slider picture, .sidebar-banner-slider picture img {
    width: 98%;
    margin: 0 auto;
    display: block;
  }
  .sidebar-banner-slider .slide {
    height: auto;
    position: relative;
    opacity: 1;
    z-index: 1;
  }
  .sidebar-banner-slider .slider {
    transition: transform 0.5s ease;
  }
  .sidebar-banner-slider .slider a {
    padding: 4px;
  }
}
