.company-logos-container {
  margin: 50px 0;
  position: relative;
  overflow: hidden;
  padding: 30px 60px;
  background: linear-gradient(135deg, var(--yt-yellow-faint), rgba(255, 255, 255, 0.95), var(--yt-yellow-faint));
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Edge fade effect to indicate more content */
.company-logos-edge-fade {
  position: absolute;
  top: 0;
  height: 100%;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.left-fade {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.right-fade {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.company-logos-swiper {
  width: 100%;
  height: 100%;
  padding: 15px 0;
  overflow: visible;
}

.company-logos-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.logo-inner-container {
  padding: 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  height: 100px;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

.logo-inner-container:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--yt-yellow), var(--yt-yellow-dark));
  transform: translateY(4px);
  transition: transform 0.3s ease;
}

.company-logos-slide:hover .logo-inner-container {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
}

.company-logos-slide:hover .logo-inner-container:after {
  transform: translateY(0);
}

.company-logos-slide img {
  max-width: 100%;
  max-height: 75px;
  object-fit: contain;
  filter: grayscale(70%);
  opacity: 0.7;
  transition: all 0.4s ease;
}

.company-logos-slide:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.08);
}

/* Navigation buttons styling */
.logos-nav-next,
.logos-nav-prev {
  color: var(--yt-yellow) !important;
  background: white;
  width: 45px !important;
  height: 45px !important;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  top: 50% !important;
  user-select: none !important;
  cursor: pointer;
  margin-top: -22.5px;
}

.logos-nav-next {
  right: 15px !important;
}

.logos-nav-prev {
  left: 15px !important;
}

.logos-nav-next:hover,
.logos-nav-prev:hover {
  background: var(--yt-yellow-faint);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: var(--yt-yellow-dark) !important;
}

.logos-nav-next:after,
.logos-nav-prev:after {
  font-size: 20px !important;
  font-weight: bold;
}

/* Prevent selection when clicking navigation elements */
.swiper-button-next::selection,
.swiper-button-prev::selection,
.swiper-pagination::selection,
.swiper-pagination *::selection {
  background: transparent;
}

/* Pagination container - explicit positioning */
.pagination-container {
  position: relative;
  width: 100%;
  height: 40px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pagination styling - Fixed */
.logos-pagination {
  position: relative !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  pointer-events: all;
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 16px;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  min-width: 100px;
}

/* Hide all swiper pagination bullets by default */
.swiper-pagination-bullet {
  display: none !important;
}

/* Only show the first few bullets (controlled by JS) */
.logos-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--body-gray);
  opacity: 0.7;
  transition: all 0.3s ease;
  margin: 0 6px;
  display: inline-block !important;
  position: relative;
  border-radius: 50%;
  cursor: pointer;
}

.logos-pagination .swiper-pagination-bullet-active {
  background: linear-gradient(90deg, var(--yt-yellow), var(--yt-yellow-dark));
  width: 35px;
  border-radius: 6px;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(249, 173, 58, 0.3);
}

/* Add subtle pulse animation to active bullet */
@keyframes bulletPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.logos-pagination .swiper-pagination-bullet-active {
  animation: bulletPulse 2s infinite ease-in-out;
}

@media (max-width: 768px) {
  .company-logos-container {
    padding: 20px 40px;
  }
  
  .logo-inner-container {
    height: 90px;
    padding: 15px;
  }
  
  .company-logos-slide img {
    max-height: 60px;
  }
  
  .logos-nav-next, .logos-nav-prev {
    width: 38px !important;
    height: 38px !important;
    margin-top: -19px;
  }
  
  .logos-pagination {
    padding: 5px 12px;
  }
  
  .logos-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px;
  }
  
  .logos-pagination .swiper-pagination-bullet-active {
    width: 28px;
  }
}