/* ==========================================
   Clients Section (Logo Carousel)
   ========================================== */

.clients-section {
    padding: 48px 24px;
    background-color: var(--color-sf-00);
}

.clients-section .container {
    max-width: 936px;
    margin: 0 auto;
}

/* ===== Section Header ===== */
.clients-header {
    margin-bottom: 32px;
}

.clients-header .section-title {
    font-size: 48px;
    font-family: 'The Bold Font', sans-serif;
    font-weight: 700;
    letter-spacing: -2%;
    text-align: left;
    margin-bottom: 8px;
    color: var(--color-obj-00);
}

.clients-header .section-subtitle {
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -4%;
    color: var(--color-obj);
    text-align: left;
    max-width: none;
    margin: 0;
}

/* ===== Logo Carousel ===== */
.logo-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 24px 0;
    background-color: var(--color-sf-00);
}

.logo-carousel {
    display: flex;
    width: fit-content;
    will-change: transform;
    animation: scroll 60s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Use JavaScript-calculated exact group width */
        transform: translateX(calc(-1 * var(--group-width, -100%)));
    }
}

/* Logo Groups - wraps each set of logos */
.logo-group {
    display: flex;
    gap: 80px;
    flex-shrink: 0;
    /* Add padding to create space between last logo and first logo of next group */
    padding-right: 80px;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
}

.logo-item img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .clients-section {
        padding: 32px 16px;
    }

    .clients-header {
        margin-bottom: 16px;
    }

    .clients-header .section-title {
        font-size: 32px;
    }

    .clients-header .section-subtitle {
        font-size: 14px;
    }

    .logo-carousel-wrapper {
        padding: 16px 0;
    }

    .logo-group {
        gap: 40px;
        padding-right: 40px;
        flex-shrink: 0;
    }

    .logo-item {
        height: 60px;
    }

    .logo-item img {
        max-height: 60px;
    }
}
