/* slider-side.css */

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: #333;
  color: #fff;
  overflow-y: auto;
  transition: left 0.3s ease;
  padding: 20px 0;
  z-index: 1100; /* Increased z-index to stay above header */
  white-space: nowrap;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.close-btn {
  font-size: 32px;
  cursor: pointer;
  color: #fff;
}

.sidebar-btn:hover {
  background-color: #27ae60; /* গাঢ় সবুজ */
  transform: scale(1.05);
}

.sidebar-btn:active {
  transform: scale(0.95);
}

.sidebar-category {
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-category select {
  width: 100%;
  padding: 8px 12px;
  background: #444;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-category select:hover {
  border-color: #27ae60;
  background: #555;
}

.sidebar-category select option {
  background: #444;
  color: #fff;
}

.sidebar-search {
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-search-btn {
  width: 100%;
  padding: 10px;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sidebar-search-btn:hover {
  background: #2ecc71;
  transform: translateY(-1px);
}

.sidebar-search-btn i {
  font-size: 16px;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050; /* Increased z-index to stay above header but below sidebar */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Slider Common */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 400ms ease;
}

.slide {
  flex: 0 0 100%;
}

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

/* Dots */
.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

/* Desktop Slider */
.desktop-slider {
  display: block;
  height: 70vh;
}

/* Mobile Slider */
.mobile-slider {
  display: none;
  height: 28vh;
}

/* Responsive Switch */
@media (max-width: 1024px) {
  .desktop-slider {
    display: none;
  }

  .mobile-slider {
    display: block;
  }
}
