.slider-container {
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 100%; /* Ensure it fits within the parent */
  position: relative;
}

.slider {
  display: flex;
  gap: 10px;
  overflow-x: scroll; /* Allow horizontal scrolling */
  scroll-behavior: smooth;
  padding: 10px 0;
  cursor: grab;
}

.slider.active {
  cursor: grabbing;
}

.slider::-webkit-scrollbar {
  display: none; /* Hide the scrollbar */
}

.slider-item {
  min-width: 150px; /* Adjust this based on your design */
  height: 150px;
  flex-shrink: 0;
  border-radius: 10px;
}

.scroll-btn {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  padding: 0 10px;
  border-radius: 50%;
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

.slider {
  display: flex;
  gap: 10px;
  overflow-x: scroll; /* Allow horizontal scrolling */
  scroll-behavior: smooth;
  padding: 10px 0;
  cursor: grab;
  user-select: none; /* Disable text selection while scrolling */
}

.slider.active {
  cursor: grabbing;
  user-select: none; /* Ensure no text is selectable while dragging */
}
