.wls-logo-grid {
    display: grid;
    /* تعداد ستون‌ها توسط PHP مقداردهی می‌شود */
    grid-template-columns: repeat(var(--wls-cols, 4), 1fr);
    background-color: #0a192f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    margin: 0 auto;
}

.wls-logo-item {
    position: relative;
    height: 120px; /* ارتفاع کنترل شده و جذاب */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.wls-logo-item img {
    max-width: 100%;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.25;
    filter: brightness(0) invert(1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wls-logo-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.wls-logo-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.wls-logo-item { transition: opacity 0.6s, transform 0.6s, filter 0.6s; }
.wls-fade-out { opacity: 0; transform: scale(0.9); }

@media (max-width: 1024px) {
    .wls-logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .wls-logo-grid { grid-template-columns: repeat(2, 1fr); }
    .wls-logo-item { height: 100px; padding: 15px; }
}