﻿
.partnerstrip {
    position: relative;
    padding: 18px 0;
    border-top: 1px solid rgba(0, 0, 0, .08);
    overflow: hidden;
    background: transparent;
    margin-bottom: 10px;
}

.partnerstrip-inner {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 100px;
    margin-bottom: 10px;
    overflow: hidden;
    --fade: 100px;
    -webkit-mask-image: linear-gradient( to right, transparent 0, rgba(0,0,0,.35) calc(var(--fade) * .35), #000 var(--fade), #000 calc(100% - var(--fade)), rgba(0,0,0,.35) calc(100% - (var(--fade) * .35)), transparent 100% );
    mask-image: linear-gradient( to right, transparent 0, rgba(0,0,0,.35) calc(var(--fade) * .35), #000 var(--fade), #000 calc(100% - var(--fade)), rgba(0,0,0,.35) calc(100% - (var(--fade) * .35)), transparent 100% );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
.partnerstrip-title {
    max-width: 1400px;
    margin: 0 auto 10px;
    padding: 0 24px;
    text-align: center;
}

    .partnerstrip-title h2 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        color: #2b2b2b;
        position: relative;
        display: inline-block;
        padding-bottom: 8px;
    }

        .partnerstrip-title h2::after {
            content: "";
            display: block;
            width: 42px;
            height: 2px;
            margin: 8px auto 0;
            background: linear-gradient( to right, rgba(0,0,0,0), rgba(0,0,0,.35), rgba(0,0,0,0) );
        }

.partnerstrip-track {
    display: flex;
    align-items: center;
    gap: 48px;
    animation: partnerstrip-scroll 30s linear infinite;
    will-change: transform;
}

.partnerstrip-logo {
    position: relative;
    flex: 0 0 auto;
    width: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .partnerstrip-logo img {
        height: 120px;
        width: auto;
        object-fit: contain;
        filter: grayscale(100%);
        opacity: .55;
        transition: opacity .25s ease;
        border-radius: 20px;
    }

    .partnerstrip-logo:hover img {
        opacity: .75;
    }

.partnerstrip-mask {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    pointer-events: none;
    z-index: 3;
    display:none;
}

    .partnerstrip-mask.left {
        left: 0;
        background: linear-gradient( to right, rgba(214,208,203,1), rgba(214,208,203,0) );
    }

    .partnerstrip-mask.right {
        right: 0;
        background: linear-gradient( to left, rgba(214,208,203,1), rgba(214,208,203,0) );
    }

@keyframes partnerstrip-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.partnerstrip-upload {
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 3;
    background: transparent;
    border: none;
    box-shadow: none;
   }

.partnerstrip-upload-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .35), inset 0 1px 0 rgba(255,255,255,.35);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  
}

    .partnerstrip-upload-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(37, 99, 235, .45), inset 0 1px 0 rgba(255,255,255,.45);
    }

    .partnerstrip-upload-btn:active {
        transform: translateY(0);
        box-shadow: 0 5px 10px rgba(37, 99, 235, .35), inset 0 1px 0 rgba(255,255,255,.25);
    }


    .partnerstrip-upload-btn:hover {
        opacity: 1;
    }

.partnerstrip-delete {
    position: absolute;
    top: 2px;
    right: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease;
}

.partnerstrip-logo:hover .partnerstrip-delete {
    opacity: 1;
}

@media (max-width: 991px) {

    .partnerstrip {
        padding: 10px 30px 14px;
    }

    .partnerstrip-inner {
        padding: 0 24px;
        --fade: 60px;
        margin-bottom: 0;       
    }
 
    .partnerstrip-track {
        gap: 14px;
        animation-duration: 30s;
        align-items: center;
    }

    .partnerstrip-logo {
        width: auto;
        height: auto;
        border-radius: 14px;
        background: rgba(255,255,255,.9);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 6px 14px rgba(0,0,0,.08);
    }

        .partnerstrip-logo img {
            width: auto;
            height: 80px;
            max-width: 88%;
            max-height: 70%;
            object-fit: contain;
            padding: 0;
            opacity: 1;
            filter: none;
        }
    .partnerstrip-delete {
        position: absolute;
        top: 2px;
        right: 5px;
    }
    .partnerstrip-upload {
        position: absolute;
        top: 0px;
        right: 20px;     
    }
}


@media (prefers-reduced-motion: reduce) {
    .partnerstrip-track {
        animation: none;
    }
}
