/* ── Kerone Clients Marquee Plugin CSS ── */

.kerone-clients-section *,
.kerone-clients-section *::before,
.kerone-clients-section *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.kerone-clients-section {
  width: 100%;
  background: #ffffff;
  padding: 20px 0;
  overflow: hidden;
}

/* ── Each row ── */
.kerone-clients-section .marquee-row {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.kerone-clients-section .marquee-row:last-child {
  margin-bottom: 0;
}

/* ── Fade edges ── */
.kerone-clients-section .marquee-row::before,
.kerone-clients-section .marquee-row::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}

.kerone-clients-section .marquee-row::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.kerone-clients-section .marquee-row::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

/* ── Scrolling track ── */
.kerone-clients-section .marquee-track {
  display: flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  will-change: transform;
}

/* ── Logo items ── */
.kerone-clients-section .logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.kerone-clients-section .logo-item:hover {
  transform: translateY(-3px);
}

.kerone-clients-section .logo-item img {
  width: 125px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease-in-out;
}

/* ── Animations ── */
@keyframes kcm-marquee-ltr {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Row speeds (4 rows) ── */
.kerone-clients-section .marquee-row[data-row="1"] .marquee-track { animation: kcm-marquee-ltr var(--kcm-speed-1,  80s) linear infinite; }
.kerone-clients-section .marquee-row[data-row="2"] .marquee-track { animation: kcm-marquee-ltr var(--kcm-speed-2,  90s) linear infinite; }
.kerone-clients-section .marquee-row[data-row="3"] .marquee-track { animation: kcm-marquee-ltr var(--kcm-speed-3, 100s) linear infinite; }
.kerone-clients-section .marquee-row[data-row="4"] .marquee-track { animation: kcm-marquee-ltr var(--kcm-speed-4, 110s) linear infinite; }

/* ── Pause on hover ── */
.kerone-clients-section .marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .kerone-clients-section .marquee-row::before,
  .kerone-clients-section .marquee-row::after {
    width: 60px;
  }
  .kerone-clients-section .logo-item img {
    width: 70px;
  }
}
