/* Trusted By Logo Carousel Styles */
.trusted-section {
  padding: 60px 0;
  background-color: rgba(0, 0, 0, 0.4);
  text-align: center;
}

.trusted-heading {
  margin-bottom: 40px;
  margin-top: 40px; /* Increased spacing to move it further down */
  text-align: center; /* Ensure heading is centered */
  width: 100%; /* Full width to ensure proper centering */
}

.trusted-heading h2 {
  font-size: 1.5rem; /* Matched to View our partner pages size */
  margin-bottom: 15px;
  text-align: center; /* Ensure text is centered */
  display: block; /* Block display for full width centering */
  font-weight: 700; /* Match partner heading weight */
}

.logo-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.logo-carousel-container {
  display: flex;
  transition: transform 0.5s ease;
  animation: scroll 30s linear infinite; /* Set to exactly 30s for desktop */
}

.logo-carousel-container:hover {
  animation-play-state: paused;
}

.logo-item {
  flex: 0 0 200px;
  height: 80px;
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  width: 160px; /* Fixed width for all logos */
  height: 60px; /* Fixed height for all logos */
  object-fit: contain; /* Maintain aspect ratio within fixed dimensions */
  object-position: center; /* Center the logo within the container */
  transition: transform 0.3s ease;
  background-color: transparent; /* Ensure transparent background */
}

.logo-item:hover img {
  transform: scale(1.1);
}

/* Ensure smooth looping with no visible jump */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-220px * 32)); /* Adjusted for more logos */
  }
}
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .trusted-heading h2 {
    font-size: 1.8rem;
  }
  
  .logo-item {
    flex: 0 0 150px;
    height: 60px;
    margin: 0 15px;
  }
  
  .logo-item img {
    width: 120px; /* Fixed width for all logos on tablet */
    height: 50px; /* Fixed height for all logos on tablet */
  }
  
  .logo-carousel-container {
    animation: scroll 24s linear infinite; /* Set to exactly 24s for mobile */
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-165px * 32)); /* Adjusted for all logos */
    }
  }
}

@media (max-width: 480px) {
  .trusted-heading h2 {
    font-size: 1.5rem;
  }
  
  .logo-item {
    flex: 0 0 120px;
    height: 50px;
    margin: 0 10px;
  }
  
  .logo-item img {
    width: 100px; /* Fixed width for all logos on mobile */
    height: 40px; /* Fixed height for all logos on mobile */
  }
  
  .logo-carousel-container {
    animation: scroll 24s linear infinite; /* Set to exactly 24s for mobile */
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-130px * 32)); /* Adjusted for all logos */
    }
  }
}
