/* =======================
   COWORKERS CAROUSEL FIXES
   ======================= */

/* Fix overflow and width issues */
.clients-logo-section {
  overflow-x: hidden; /* Prevent horizontal overflow */
}

.clients-carousel {
  width: 100% !important;
  max-width: 100% !important;
}

.clients-carousel .owl-stage-outer {
  overflow: hidden; /* Ensure no horizontal overflow */
}

/* Increase logo sizes from 64px to larger sizes */
.clients-carousel .single_logo img {
  max-height: 120px !important; /* Increased from 64px */
  max-width: 180px !important;  /* Set max width to maintain proportions */
  height: auto;
  width: auto;
  display: inline-block;
  filter: grayscale(20%);
  transition: transform .25s ease, filter .25s ease;
  object-fit: contain; /* Ensure proper scaling */
}

.clients-carousel .single_logo img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Adjust padding for larger logos */
.clients-carousel .single_logo {
  text-align: center;
  padding: 20px 15px !important; /* Increased padding for larger logos */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px; /* Ensure consistent height */
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 768px) {
  .clients-carousel .single_logo img {
    max-height: 100px !important; /* Slightly smaller on mobile */
    max-width: 150px !important;
  }
  
  .clients-carousel .single_logo {
    padding: 15px 10px !important;
    min-height: 120px;
  }
}

@media (max-width: 576px) {
  .clients-carousel .single_logo img {
    max-height: 80px !important; /* Even smaller on very small screens */
    max-width: 120px !important;
  }
  
  .clients-carousel .single_logo {
    padding: 12px 8px !important;
    min-height: 100px;
  }
}

/* Ensure the carousel doesn't break the layout */
.clients-carousel.owl-carousel {
  direction: rtl;
  overflow: hidden;
}

.clients-carousel.owl-carousel .owl-stage {
  display: flex;
  align-items: center;
}

.clients-carousel.owl-carousel .owl-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Improve dots styling for better visibility with larger content */
.clients-carousel .owl-dots {
  text-align: center;
  margin-top: 20px !important; /* More space from larger logos */
}

.clients-carousel .owl-dot {
  width: 14px !important; /* Slightly larger dots */
  height: 14px !important;
  border-radius: 50%;
  background: #ddd;
  margin: 0 6px;
  transition: background 0.3s ease;
}

.clients-carousel .owl-dot.active {
  background: #2F80ED;
}

.clients-carousel .owl-dot:hover {
  background: #667eea;
}
