.brand-list {
    width: 100%;
    padding: 60px 0;
    background-color: #f8f8f8;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
}

.brand-list .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-list .brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.brand-list .brand-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.brand-list .brand-image {
    width: 100%;
    padding-bottom: 100%; /* Creates a square aspect ratio */
    position: relative;
    background-color: #fff;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.brand-list .brand-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 50px); /* Subtract brand name height */
    object-fit: contain;
    padding: 20px;
}

.brand-list .brand-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px; /* Fixed height for brand name */
    margin: 0;
    padding: 15px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: #333;
    background-color: #fff;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .brand-list .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .brand-list {
        padding: 40px 0;
    }
} 