.carousel-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background-color: rgba(255,255,255,0.02);
  margin-right: auto;
  margin-left: auto;
}

.carousel {
  overflow-x: auto;
  display: flex;
  gap: 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.carousel::-webkit-scrollbar {
  height: 8px;
}

.carousel::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

.carousel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.item {
  flex: 0 0 auto;
  width: 140px;
  height: 80px;
  background: var(--color-btn-bg);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: center;
}

.item img {
  max-width: 100%;
  max-height: 100%;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.owl-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
  gap: 18px;
}

.owl-dot {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.owl-dot span {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #464168;
  opacity: 1;
  transition: background 0.25s, box-shadow 0.2s;
}

.owl-dot.active span,
.owl-dot:hover span {
  background: #b2abd6;
  box-shadow: 0 0 6px 0 #b2abd6;
}

/* نشان دادن حالت کشیدن */
.partners-carousel {
  cursor: grab;
}
.partners-carousel.dragging {
  cursor: grabbing;
}

.partners-section {
  text-align: center;
  padding: 40px 0;
  background-color: var(--color-bg);
}

/* عنوان */
.partners-title {
  color: var(--color-white);
  font-size: 24px;
  margin-bottom: 30px;
  opacity: 50%;
}

/* خودِ کاروسل: وسط‌چین، حداکثر 980px و overflow مخفی/اتوماتیک */
.partners-carousel {
  display: flex;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  /* مخفی کردن اسکرول‌بار */
  -ms-overflow-style: none;  /* IE & Edge */
  scrollbar-width: none;     /* Firefox */
  border: 1px solid #453F71;
  border-radius: 20px;
}
.partners-carousel::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, Opera */
}

/* هر لوگو */
.partner-logo {
  flex: 0 0 auto;
  width: 10rem;
  height: 10rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0D0A23;
  border-left: 1px solid #453F71;
}
.partners-carousel :last-child{
  border-left: none;
}
.partner-logo img {
  padding: 1rem;
  max-width: 100%;
}

/* دات‌ها */
.carousel-dots {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots span {
  width: 8px;
  height: 8px;
  background-color: #666;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.carousel-dots span.active {
  background-color: #fff;
  opacity: 1;
}

/* ========================= */
/* موبایل: حذف بردرها       */
/* ========================= */
@media (max-width: 768px) {
  .partners-carousel {
    border: none !important;
  }
  .partner-logo {
    border-left: none !important;
  }
  .partners-title{
      font-size: 20px;
      opacity: 50%;
      margin-bottom: unset;
  }
}

.carousel-dots .dots-count{
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #464168;
    color: #fff;
    font-weight: 600;
    opacity: 1;
}
