/* Brand Menu Section */
.brand-menu-section {
    padding: 40px 0;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
    /* Hide overflow from ticker */
}

.brand-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.brand-menu-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.brand-menu-header .view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: #004aad;
    text-decoration: none;
    transition: color 0.3s;
}

.brand-menu-header .view-all-link:hover {
    color: #ff3b30;
}

/* Brand Ticker Container */
.brand-menu-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Create a fade effect on sides (optional but looks pro) */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.brand-ticker-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollTicker 30s linear infinite;
    /* Medium speed */
}

.brand-ticker-track:hover {
    animation-play-state: paused;
}

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

    100% {
        transform: translateX(-50%);
        /* Move by half since we doubled the content */
    }
}

/* Brand Card */
.brand-menu-item {
    flex: 0 0 auto;
    width: 140px;
    height: 90px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 10px;
    text-decoration: none;
    /* Shadow for better look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.brand-menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #004aad;
}

.brand-menu-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Removed Grayscale */
    filter: none;
    opacity: 1;
    /* Full visibility */
    transition: transform 0.3s ease;
}

.brand-menu-item:hover img {
    transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .brand-menu-section {
        padding: 30px 0;
    }

    .brand-menu-header h2 {
        font-size: 20px;
    }

    .brand-menu-item {
        width: 110px;
        height: 80px;
    }

    .brand-ticker-track {
        gap: 15px;
        animation-duration: 20s;
        /* Faster on mobile/smaller screens usually feels better or keep consistent */
    }
}