/* Partner Section Redesign */
.partners-container-box {
    background: #fff;
    border-radius: 16px;
    padding: 60px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Section Titles */
.partners-container-box .section-title {
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
}

.spacer-lh {
    height: 80px;
    width: 100%;
}

/* 1. Partners Carousel */
.partners-carousel-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.partners-carousel-wrapper::before,
.partners-carousel-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.partners-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.partners-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.partners-track {
    display: inline-flex;
    align-items: center;
    gap: 60px;
    animation: scroll 20s linear infinite;
}

.partners-track img {
    height: 60px;
    /* Fixed height for uniformity */
    width: auto;
    object-fit: contain;
    /* filter: grayscale(1); Removed */
    /* opacity: 0.7; Removed */
    transition: all 0.3s ease;
}

.partners-track img:hover {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Assumes we double the content */
    }
}


/* 2. Network Grid optimized */
.network-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    /* Reduced gap */
    margin-top: 10px;
    max-width: 1000px;
    /* Constrain width to keep it compact */
    margin-left: auto;
    margin-right: auto;
}

.network-item {
    width: 60px;
    /* Reduced size */
    height: 40px;
    /* Reduced size */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    /* Reduced padding */
    transition: transform 0.2s ease;
    background: #f9f9f9;
    /* Subtle background to show grid */
    border-radius: 4px;
}

.network-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
}

.network-item:hover {
    transform: scale(1.1);
    z-index: 2;
}

.network-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .partners-container-box {
        padding: 30px 10px;
    }

    .partners-track img {
        height: 40px;
        gap: 30px;
    }

    .network-item {
        width: 45px;
        height: 30px;
    }
}