/* ==================== Partners Section ==================== */
.partners-section {
    background: #fff;
    padding: 60px 0;
}

.partners-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.partners-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 40px;
}

.partners-scroll-wrapper {
    width: 100%;
}

.partner-row {
    overflow: hidden;
    overflow: clip;
    contain: strict;
    width: 100%;
    height: 50px;
    margin-bottom: 20px;
}

.partner-row:last-child {
    margin-bottom: 0;
}

.partner-row-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    max-width: none;
    will-change: transform;
}

.partner-row-set {
    display: flex;
    flex-shrink: 0;
    max-width: none;
}

.partner-logo {
    width: 140px;
    height: 50px;
    margin-right: 20px;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 8px 12px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.partner-logo img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

/* 
 * Seamless infinite scroll:
 * Animation moves track left by --scroll-distance (negative px value).
 * Track has 2+ identical sets; moving by exactly one set width makes the
 * second set land exactly where the first set started, creating a perfect loop.
 */
@keyframes partnerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(var(--scroll-distance)); }
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .partners-section {
        padding: 40px 0;
    }
    .partners-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
    .partners-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    .partner-logo {
        width: 100px;
        height: 38px;
        border-radius: 8px;
        padding: 5px 8px;
        margin-right: 10px;
        max-width: none;
    }
    .partner-logo img {
        height: 15px;
    }
    .partner-row {
        height: 38px;
        margin-bottom: 14px;
    }
    .partner-row-track,
    .partner-row-set {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .partners-section {
        padding: 30px 0;
    }
    .partners-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
    .partners-title {
        font-size: 18px;
        margin-bottom: 24px;
    }
    .partner-logo {
        width: 80px;
        height: 32px;
        border-radius: 6px;
        padding: 4px 6px;
        margin-right: 8px;
        max-width: none;
    }
    .partner-row {
        height: 32px;
        margin-bottom: 10px;
    }
    .partner-row-track,
    .partner-row-set {
        max-width: none;
    }
}
