.brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    row-gap: 20px; /* Spacing between items */
}

.brand-list li a {
    display: block;
    text-align: center;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd; /* Optional: Border for better visualization */
    transition: transform 0.2s ease-in-out;
}

.brand-list li:hover {
    transform: translateY(-5px);
    color: #F6BB06;
}

.brand-list .image-wrapper {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-list img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    /* border-radius: 50%; /* Optional: Makes the image circular */
}

.brand-list h4 {
    font-size: 14px;
    line-height: 16px;
    height: 35px;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-list a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: bold;
}
.brand-list li:hover a {
    color: #F6BB06;
}

.brand-list-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.brand-list-subtitle {
    font-size: 16px;
    color: #555;
    text-align: center;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .brand-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
}