/* Logo Loop Animation Section */

.partners-logo-loop-section {
    padding: 80px 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.partners-logo-loop-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ff6b00" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23ff6b00" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23ff6b00" opacity="0.02"/><circle cx="10" cy="50" r="0.5" fill="%23ff6b00" opacity="0.02"/><circle cx="90" cy="30" r="0.5" fill="%23ff6b00" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.partners-logo-loop-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding: 30px 20px;
    z-index: 2;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.partners-logo-loop-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    min-height: 100px;
    margin: 0 auto 30px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    position: relative;
    z-index: 3;
}

.partners-logo-loop-image:hover {
    transform: scale(1.02);
}

.partners-logo-loop-image[src=""] {
    display: none !important;
}

.partners-logo-loop-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 4px;
    text-transform: lowercase;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 0;
    padding: 0;
    font-style: italic;
}

.partners-logo-loop-subtitle::before,
.partners-logo-loop-subtitle::after {
    content: '';
    display: inline-block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b00 0%, #ff8c00 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.logo-loop-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 50px 0;
    background: #f8f9fa;
    border-top: 3px solid #e8e8e8;
    border-bottom: 3px solid #e8e8e8;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.logo-loop-wrapper {
    display: flex;
    gap: 60px;
    width: fit-content;
    animation: logoLoop 40s linear infinite;
    will-change: transform;
}

.logo-loop-container:hover .logo-loop-wrapper {
    animation-play-state: paused;
}

.logo-loop-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 120px;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.logo-loop-item:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.25);
    border-color: #ff6b00;
    z-index: 10;
}

.logo-loop-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(15%);
    transition: all 0.4s ease;
}

.logo-loop-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.logo-loop-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Animation */
@keyframes logoLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 30px));
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .partners-logo-loop-section {
        padding: 60px 20px;
    }

    .partners-logo-loop-header {
        padding: 25px 15px;
        margin-bottom: 40px;
    }

    .partners-logo-loop-image {
        max-width: 350px;
        margin-bottom: 25px;
    }

    .partners-logo-loop-subtitle {
        font-size: 1.5rem;
        letter-spacing: 3px;
        gap: 15px;
    }

    .partners-logo-loop-subtitle::before,
    .partners-logo-loop-subtitle::after {
        width: 50px;
        height: 3px;
    }

    .logo-loop-item {
        width: 180px;
        height: 110px;
    }

    .logo-loop-wrapper {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .partners-logo-loop-section {
        padding: 60px 15px;
    }

    .partners-logo-loop-header {
        padding: 20px 10px;
        margin-bottom: 30px;
    }

    .partners-logo-loop-image {
        max-width: 280px;
        margin-bottom: 20px;
    }

    .partners-logo-loop-subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .partners-logo-loop-subtitle::before,
    .partners-logo-loop-subtitle::after {
        width: 40px;
        height: 3px;
    }

    .logo-loop-container {
        padding: 30px 0;
    }

    .logo-loop-item {
        width: 150px;
        height: 90px;
        padding: 15px;
    }

    .logo-loop-wrapper {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .partners-logo-loop-section {
        padding: 50px 12px;
    }

    .partners-logo-loop-header {
        padding: 15px 8px;
        margin-bottom: 25px;
    }

    .partners-logo-loop-image {
        max-width: 220px;
        margin-bottom: 18px;
    }

    .partners-logo-loop-subtitle {
        font-size: 1rem;
        letter-spacing: 1.5px;
        gap: 10px;
    }

    .partners-logo-loop-subtitle::before,
    .partners-logo-loop-subtitle::after {
        width: 30px;
        height: 2px;
    }

    .logo-loop-item {
        width: 120px;
        height: 80px;
        padding: 12px;
    }

    .logo-loop-wrapper {
        gap: 30px;
    }
}

