.registered-agencies {
    overflow: hidden;
    padding: 4.5rem 0 4rem;
    background: #f8fafc;
    direction: rtl;
}

.registered-agencies__heading {
    margin-bottom: 2.25rem;
    text-align: center;
}

.registered-agencies__eyebrow {
    display: inline-block;
    margin-bottom: .65rem;
    color: #e8830c;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.registered-agencies h2 {
    margin: 0 0 .55rem;
    color: #1a2845;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 800;
}

.registered-agencies p {
    margin: 0;
    color: #718096;
}

.agency-marquee {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    width: 100%;
}

.agency-marquee::before,
.agency-marquee::after {
    position: absolute;
    z-index: 1;
    top: 0;
    width: 10%;
    height: 100%;
    content: '';
    pointer-events: none;
}

.agency-marquee::before { right: 0; background: linear-gradient(to left, #f8fafc, transparent); }
.agency-marquee::after { left: 0; background: linear-gradient(to right, #f8fafc, transparent); }

.agency-marquee__track {
    display: flex;
    width: max-content;
    margin-inline: auto;
    gap: 1.25rem;
    animation: agency-slide 60s linear infinite;
}

.agency-marquee:hover .agency-marquee__track { animation-play-state: paused; }

.agency-logo-card {
    display: flex;
    flex: 0 0 190px;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    min-height: 105px;
    padding: 1rem 1.25rem;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 40, 69, .06);
    color: #1a2845;
    text-align: center;
}

.agency-logo-card img { width: 58px; height: 58px; object-fit: contain; }
.agency-logo-card span { max-width: 95px; font-size: .9rem; font-weight: 700; }

@keyframes agency-slide { from { transform: translateX(0); } to { transform: translateX(50%); } }

@media (max-width: 576px) {
    .registered-agencies { padding: 3.25rem 0; }
    .agency-logo-card { flex-basis: 165px; min-height: 92px; padding: .8rem; }
    .agency-logo-card img { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .agency-marquee__track { animation: none; }
}
