/* Brands Section */
.brands-section-wrapper {
    width: 100%;
    background: #fff;
}

.brands-section {
    padding: 3rem 0;
}

.brands-header {
    margin-bottom: 2rem;
}

.brands-carousel-wrapper {
    position: relative;
    padding: 0 3rem;
}

.brands-carousel {
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
}

.brands-carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    height: 120px;
    flex: 0 0 calc(16.666% - 1.67rem);
    min-width: 0;
}

.brand-card:hover {
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.brand-card img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brands-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #1f2937;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brands-carousel-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.brands-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.brands-carousel-prev {
    left: 0;
}

.brands-carousel-next {
    right: 0;
}

.brands-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

@media screen and (max-width: 1023px) {
    .brands-carousel-wrapper {
        padding: 0 2.5rem;
    }
    
    .brand-card {
        flex: 0 0 calc(25% - 1.5rem);
        height: 100px;
        padding: 1rem;
    }
    
    .brand-card img {
        max-height: 60px;
    }
    
    .brands-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

@media screen and (max-width: 767px) {
    .brands-section {
        padding: 2rem 0;
    }
    
    .brands-carousel-wrapper {
        padding: 0 2rem;
    }
    
    .brand-card {
        flex: 0 0 calc(33.333% - 1.33rem);
        height: 90px;
        padding: 0.75rem;
    }
    
    .brand-card img {
        max-height: 50px;
    }
    
    .brands-carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

