/* ✅ Casino Categories Horizontal Scroll with Navigation Buttons */

/* Scrollable categories container */
.casino-categories-scroll {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0px !important; /* ✅ Remove horizontal padding to let arrows sit at edges */
  margin: 0 55px !important; /* ✅ Add margin to create space for arrows at edges */
  
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.casino-categories-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Category items */
.casino-categories-scroll .nav-item {
  flex: 0 0 auto !important; /* Don't shrink, don't grow */
  white-space: nowrap !important;
}

.casino-categories-scroll .nav-link {
  white-space: nowrap !important;
  padding: 8px 15px !important;
  margin: 0 5px !important;
}

/* Navigation buttons */
.category-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--theme1-bg, #0088cc);
  background: var(--theme1-bg, #0088cc);
  color: var(--primary-color, #fff);
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.category-nav-btn:hover {
  background: var(--theme1-bg90, #0099dd);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.category-nav-left {
  left: 0px; /* ✅ Position at the very left edge */
}

.category-nav-right {
  right: 0px; /* ✅ Position at the very right edge */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .casino-categories-scroll {
    margin: 0 45px !important;
  }
  
  .category-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  
  .category-nav-left {
    left: 0px;
  }
  
  .category-nav-right {
    right: 0px;
  }
}

@media (max-width: 480px) {
  .casino-categories-scroll {
    margin: 0 42px !important;
  }
  
  .category-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .category-nav-left {
    left: 0px;
  }
  
  .category-nav-right {
    right: 0px;
  }
}

/* Ensure parent container has relative positioning */
.casino-sub-tab-list {
  position: relative !important;
}

