.brands-section {
    padding: 60px 0;
    overflow: hidden;
    background-color: #000;
    /* Assuming dark background */
    flex-direction: column;
    /* Force vertical stacking */
    justify-content: center;
    position: relative;
    /* Context for absolute background */
}

.brands-background-animation {
    position: absolute;
    top: 60%;
    /* Align with carousel roughly */
    left: 0;
    width: 100%;
    height: 150px;
    /* Height of the wave/pulse */
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.pulse-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Reusing generic container/title styles via Tailwind classes in PHP or generic CSS */

.brands-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 1rem;
    /* Reduced gap */
    mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgb(0, 0, 0) 12.5%,
            rgb(0, 0, 0) 87.5%,
            rgba(0, 0, 0, 0) 100%);
    width: 100%;
    margin-top: 4rem;
    /* Add spacing between title and carousel */
    position: relative;
    z-index: 1;
    /* Above background */
}

.marquee-track {
    flex-shrink: 0;
    display: flex;
    gap: 1rem;
    /* Reduced gap */
    counter-reset: item;
    justify-content: space-around;
    min-width: 100%;
}

.marquee-group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
    /* Reduced gap */
    min-width: 100%;
    animation: scroll-left 30s linear infinite;
    /* Adjusted speed */
}

.logo-card {
    width: 350px;
    height: 200px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.logo-card:hover img {
    transform: scale(1.05);
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 1rem));
    }
}