#brands-container {
    width: 100%;
    padding: 20px 0;
}

#brands-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    justify-items: center;
}

#brands-list li {
    display: flex;
    justify-content: center;
}

#brands-list a {
    display: block;
    text-decoration: none;
}

#brands-list img.brand {
    height: 60px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

#brands-list img.brand:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #brands-list {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    #brands-list img.brand {
        height: 50px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    #brands-list {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }

    #brands-list img.brand {
        height: 40px;
        max-width: 80px;
    }
}