/* ============================================================
   Logo Carousel – Partners Logo Slider
   Prefix: lc-
   Pure CSS infinite horizontal scroll, no JS required.
   ============================================================ */

/* --- Section wrapper --- */
.lc-section {
    padding: 60px 0 70px;
    background-color: var(--white);
    overflow: hidden;
}

/* --- Section header --- */
.lc-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.lc-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px;
    line-height: 1.5;
}

/* Highlight brand name */
.lc-title .lc-brand {
    color: var(--secondary-color);
}

/* --- Track container (masks overflow) --- */
.lc-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Fade edges for a polished look */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* --- Sliding track (doubled logos for seamless loop) --- */
.lc-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: lc-scroll 30s linear infinite;
}

/* Pause on hover for accessibility */
.lc-track-wrapper:hover .lc-track {
    animation-play-state: paused;
}

/* --- Individual logo item --- */
.lc-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

.lc-logo img {
    display: block;
    max-height: 70px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: var(--transition);
}

.lc-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* --- Infinite scroll keyframes (RTL: scroll right-to-left) --- */
@keyframes lc-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .lc-section {
        padding: 50px 0 60px;
    }

    .lc-title {
        font-size: 1.45rem;
    }

    .lc-track {
        gap: 45px;
    }

    .lc-logo {
        height: 60px;
    }

    .lc-logo img {
        max-height: 60px;
        max-width: 140px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .lc-section {
        padding: 40px 0 50px;
    }

    .lc-title {
        font-size: 1.2rem;
    }

    .lc-header {
        margin-bottom: 28px;
    }

    .lc-track {
        gap: 35px;
        animation-duration: 22s;
    }

    .lc-logo {
        height: 50px;
    }

    .lc-logo img {
        max-height: 50px;
        max-width: 110px;
    }
}
