/* Container (keeps your theme) */
.rc-brands{position:relative;background:var(--main-light);padding:55px 0 0;overflow:hidden;}
.rc-brands__container{max-width:94%;margin:0 auto;padding:0 12px;}
.rc-brands__head{text-align:center;margin-bottom:20px}
.rc-brands__head h2{font-weight:800;line-height:1.15;font-size:clamp(18px,2.3vw,33px);color:#aa792f;margin:0}
.rc-brands__underline{display:inline-block;width:120px;height:3px;margin-top:10px;background:linear-gradient(90deg,#c28a3a,#a6742e);border-radius:2px}

/* ===== Infinite ticker (never pauses) ===== */
.rc-brand-ticker{
  --gap: 30px;    /* smaller gap */
  --speed: 80;    /* px/sec fallback if no data-speed */
  position:relative;overflow:hidden;width:100%;
  padding:22px 0;             /* breathing room */
  min-height:120px;           /* taller so hover never overflows */
}
.rc-brand-track{
  display:inline-flex;align-items:center;gap:var(--gap);
  will-change:transform;
}
.rc-brand-ticker.is-ready .rc-brand-track{
  animation-duration:var(--duration,30s);
  animation-timing-function:linear;
  animation-iteration-count:infinite;
  animation-name:ticker-ltr;
}
[dir="rtl"].rc-brand-ticker.is-ready .rc-brand-track{animation-name:ticker-rtl;}

@keyframes ticker-ltr{from{transform:translateX(0)}to{transform:translateX(calc(-1 * var(--cycle)))}}
@keyframes ticker-rtl{from{transform:translateX(calc(-1 * var(--cycle)))}to{transform:translateX(0)}}

/* Cards (matching your style, tightened a bit) */
.rc-brand-card{
  height:96px;min-width:170px;display:grid;place-items:center;gap:6px;
  background:#fff;border:1px solid #a08254;border-radius:14px;overflow:hidden;
  box-shadow:0 6px 18px #f5bd5e54;padding:10px 12px;text-decoration:none;
  transition:transform .2s ease, box-shadow .2s ease;
}
.rc-brand-card img{
  max-height:42px;width:auto;display:block;object-fit:contain;
  filter:brightness(0) invert(.85) grayscale(25%);opacity:.95;
  transition:filter .2s ease,opacity .2s ease,transform .2s ease;
}
.rc-brand-card span{font-size:11px;font-weight:700;color:#8d8d8d}
.rc-brand-card:hover{transform:translateY(-1px);box-shadow:0 12px 24px #e6ab4785}
.rc-brand-card:hover img{filter:none;opacity:1;transform:scale(1.04)}

/* Mobile tweaks */
@media (max-width:640px){
  .rc-brand-card{height:84px;min-width:150px}
  .rc-brand-card img{max-height:36px}
}

/* Respect reduced motion */
@media (prefers-reduced-motion:reduce){
  .rc-brand-ticker.is-ready .rc-brand-track{animation:none!important}
}
.rc-brand-ticker.is-ready .rc-brand-track {
  animation-duration: var(--duration,30s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-name: ticker-ltr;
  animation-play-state: running;   /* default: stopped */
}

/* Run animation only when hovered */
.rc-brand-ticker:hover .rc-brand-track {
  animation-play-state: paused;
}
