.logo-slider {
    display: flex;
    flex-direction: column; /* Stack the two logo containers vertically */
    align-items: center; /* Center the rows horizontally within the slider */
    overflow: hidden; /* Crucial: Hides anything that extends beyond the slider's bounds */
    max-width: 100%;
    margin: 0px auto;
    box-sizing: border-box;
    background-color: #EDEFEE; /* Changed from F2F5F4 for consistency with your code */
    padding: 10px;
}

/* Common styles for both Left-to-Right and Right-to-Left containers */
.logos-container-ltr,
.logos-container-rtl {
    display: flex;
    flex-wrap: nowrap; /* Crucial: Prevents logos from wrapping to the next line */
    overflow-x: hidden; /* Hide the native horizontal scrollbar as JS controls scrolling */
    gap: 20px; /* Space between logo items */
    padding: 5px 0;
    width: 100%; /* Ensure containers fill the width of the parent .logo-slider */
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}



/* Hide scrollbar for Webkit browsers */
.logos-container-ltr::-webkit-scrollbar,
.logos-container-rtl::-webkit-scrollbar {
    display: none;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
    flex-shrink: 0; /* Crucial: Prevents logo items from shrinking */
    background-color: #F6F8F7; /* Changed from Fff for consistency with your code */
    border-radius: 10px;
    border: 1px solid #ddd; /* Added border as per your code */
    padding: 20px;
}

.logo-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #666666;
}

.logo-item img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
}

.logo-item img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}
.logos-container-rtl {
    direction: ltr !important; /* Normalizes scrollLeft */
    overflow-x: hidden;
}



/* Your existing responsive adjustments will apply to both */
@media (max-width: 768px) {
    .logos-container-ltr,
    .logos-container-rtl {
        gap: 15px;
    }
    .logo-item img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logos-container-ltr,
    .logos-container-rtl {
        gap: 10px;
    }
    .logo-item {
        min-width: 100px;
    }
    .logo-item img {
        height: 30px;
    }
    .logo-title {
        font-size: 12px;
    }
}