/* ===== ELPE Podporujeme — Frontend ===== */

.elpe-podporujeme {
    padding: 60px 0;
    overflow: hidden;
}

/* Hlavička */
.elpe-podporujeme__header {
    text-align: center;
    padding: 0 20px;
    margin-bottom: 40px;
}

.elpe-podporujeme__heading {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 10px;
}

.elpe-podporujeme__subheading {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Carousel wrapper */
.elpe-podporujeme__carousel-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Fade efekt na krajích */
.elpe-podporujeme__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.elpe-podporujeme__fade--left {
    left: 0;
    background: linear-gradient(to right, var(--elpe-podporujeme-bg, #f4f4f4), transparent);
}

.elpe-podporujeme__fade--right {
    right: 0;
    background: linear-gradient(to left, var(--elpe-podporujeme-bg, #f4f4f4), transparent);
}

/* Track — pohybující se pás */
.elpe-podporujeme__track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: elpe-scroll linear infinite;
    animation-duration: 30s; /* přepisuje inline style z PHP */
}

.elpe-podporujeme__track:hover {
    animation-play-state: paused;
}

@keyframes elpe-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Jednotlivé logo položky */
.elpe-podporujeme__item {
    flex-shrink: 0;
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elpe-podporujeme__logo {
    max-width: 180px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
    display: block;
}

.elpe-podporujeme__logo:hover,
.elpe-podporujeme__logo-link:hover .elpe-podporujeme__logo {
    filter: grayscale(0%);
    opacity: 1;
}

.elpe-podporujeme__logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
    .elpe-podporujeme__fade {
        width: 60px;
    }

    .elpe-podporujeme__item {
        width: 130px;
    }

    .elpe-podporujeme__logo {
        max-width: 130px;
        max-height: 50px;
    }
}
