/* Infinite Scrolling Partners Carousel */

/* Wrapper for the infinite scroll carousel */
.infinite-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
    margin: 0 auto;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.infinite-scroll-wrapper:active {
    cursor: grabbing;
}

/* Track that contains all partner items */
.infinite-scroll-track {
    display: flex;
    width: fit-content; /* Allow the track to be as wide as needed */
    transition: transform 0.1s ease-out;
    /* Removed automatic animation to allow manual control */
}

/* Partner item styling */
.infinite-scroll-track .partner-item {
    flex: 0 0 auto;
    width: 280px; /* Fixed width for each partner card */
    max-width: 280px;
    min-width: 280px;
    margin: 0 15px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.infinite-scroll-track .partner-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
}

.infinite-scroll-track .partner-item:active {
    transform: translateY(-2px) scale(1.01);
}

/* Scroll indicators */
.scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.scroll-indicator.left {
    left: 10px;
}

.scroll-indicator.right {
    right: 10px;
}

.scroll-indicator i {
    color: white;
    font-size: 16px;
}

.scroll-indicator:active {
    transform: translateY(-50%) scale(0.95);
}

/* Drag feedback */
.infinite-scroll-wrapper.dragging {
    cursor: grabbing;
}

.infinite-scroll-wrapper.dragging .infinite-scroll-track {
    transition: none;
}

.infinite-scroll-wrapper.dragging .partner-item {
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .infinite-scroll-track .partner-item {
        width: 240px;
        max-width: 240px;
        min-width: 240px;
        margin: 0 10px;
    }
    
    .scroll-indicator {
        width: 35px;
        height: 35px;
    }
    
    .scroll-indicator i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .infinite-scroll-track .partner-item {
        width: 200px;
        max-width: 200px;
        min-width: 200px;
        margin: 0 8px;
        padding: 12px;
    }
    
    .scroll-indicator {
        width: 30px;
        height: 30px;
    }
    
    .scroll-indicator i {
        font-size: 12px;
    }
}