/* --- Layout helpers --- */
.container {
  max-width: 1400px;  /* adjust to your theme's container */
  margin-inline: auto;
  padding-inline: 24px;
}

/* --- Section --- */
.customers {
  padding: 56px 0 40px;   /* top/bottom spacing per design */
  color: #111 !important;            /* inherit theme colors as needed */
}

.customers__title {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  font-weight: bold !important;
  font-size: 48px !important;
  line-height: normal !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  display: inline-block !important;      /* underline matches text width */
  position: relative !important;
  margin: 0 0 20px !important;
  color: #111 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.customers__title::after {
  content: "" !important;
  display: block !important;
  height: 5px !important;                /* underline thickness */
  width: 100% !important;
  background: currentColor !important;
  margin-top: 8px !important;
  border-radius: 2px !important;
}

.customers__intro {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  font-size: 36px !important;
  font-weight: inherit !important;
  line-height: auto !important;
  letter-spacing: 0% !important;
  text-align: left !important;
  vertical-align: top !important;
  color: #000 !important;
  margin-bottom: 0 !important;           /* Remove bottom margin since marquee has top margin */
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

/* --- Marquee --- */
.customers-marquee {
  margin-top: 60px !important;          /* 60px spacing between text and carousel */
  overflow: hidden;
  position: relative;
  width: 100%;
}

.customers-track {
  display: flex !important;
  gap: 48px;
  align-items: center;
  animation: scroll-left 15s linear infinite !important;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
}

.customers-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customers-item img {
  max-height: 120px;  /* 100% bigger - doubled from 60px to 120px */
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.customers-item:hover img {
  filter: grayscale(0%);
}

.customers-item a {
  display: block;
  text-decoration: none;
}

/* --- Animation --- */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Ensure animation never stops */
.customers-track:hover {
  animation-play-state: running !important;
}

.customers-track:focus {
  animation-play-state: running !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .customers {
    padding: 40px 0 32px;
  }
  
  .customers__title {
    font-size: clamp(24px, 5vw, 32px) !important;
    text-align: center;
  }
  
  .customers__intro {
    font-size: 28px !important;
    text-align: center;
    padding: 0 20px;
  }
  
  .customers-marquee {
    margin-top: 40px !important;        /* Slightly less spacing on mobile */
  }
  
  .customers-track {
    gap: 32px;
  }
  
  .customers-item img {
    max-height: 100px;  /* 100% bigger on mobile too - doubled from 50px to 100px */
  }
}

@media (max-width: 480px) {
  .customers {
    padding: 30px 0 24px;
  }
  
  .customers__title {
    font-size: 24px !important;
  }
  
  .customers__intro {
    font-size: 22px !important;
    padding: 0 16px;
  }
  
  .customers-marquee {
    margin-top: 30px !important;
  }
  
  .customers-track {
    gap: 24px;
  }
  
  .customers-item img {
    max-height: 80px;
  }
}

/* --- Empty state --- */
.customers__empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

.customers__empty a {
  color: #007acc;
  text-decoration: none;
}

.customers__empty a:hover {
  text-decoration: underline;
}
