/* General Styles */
.sambaditDuveContainer {
  width: 100%;
  position: relative;
  margin: 0 auto;
  padding: 20px 0;
}

.widget-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
}

/* Carousel Wrapper */
.carousel-container {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 90%;
  margin: 0 auto;
}

/* Carousel */
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto; /* Enable horizontal scrolling */
  scroll-behavior: smooth;
  flex-wrap: nowrap;
  width: 100%;
  transition: transform 0.5s ease;
  scrollbar-width: none; /* Hide scrollbar for better UI */
  -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

/* Items inside the carousel */
.item {
  flex: 0 0 calc(100% / 3 - 20px); /* Default: 3 items per row */
  display: flex;
  flex-direction: column; /* Stack image and text vertically */
  align-items: center;
  text-align: center;
}

/* Image Styles */
.item img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.item img:hover {
  transform: scale(1.05);
}

/* Text under Images */
.item p {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-align: center;
}

/* Navigation Buttons */
.carousel-btn {
  background-color: transparent;
  color: #007bff;
  border: none;
  font-size: 30px;
  cursor: pointer;
  border-radius: 50%;
  padding: 10px;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}

.carousel-btn:hover {
  color: #0056b3;
  transform: scale(1.1);
}

.carousel-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* 📌 Ultra-Wide Screens (2561px and above) */
@media (min-width: 2561px) {
  .item {
    flex: 0 0 calc(100% / 3 - 20px);
  }
}

/* 📌 Large Desktops (1920px - 2560px) */
@media (min-width: 1920px) and (max-width: 2560px) {
  .item {
    flex: 0 0 calc(100% / 3 - 20px);
  }
}

/* 📌 Desktops (1441px - 1919px) */
@media (min-width: 1441px) and (max-width: 1919px) {
  .item {
    flex: 0 0 calc(100% / 3 - 20px);
  }
}

/* 📌 Laptops (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .item {
    flex: 0 0 calc(100% / 3 - 20px);
  }
}

/* 📌 Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .item {
    flex: 0 0 calc(100% / 3 - 20px);
  }
}

/* 📌 Large Smartphones (427px - 768px) */
@media (min-width: 427px) and (max-width: 768px) {
  .item {
    flex: 0 0 100%; /* Show only 1 item */
  }

  .carousel {
    overflow-x: auto; /* Allow scrolling */
  }
}

/* 📌 Small Smartphones (321px - 426px) */
@media (max-width: 426px) {
  .item {
    flex: 0 0 100%; /* Show only 1 item */
  }

  .carousel {
    overflow-x: auto; /* Allow scrolling */
  }
}
