/* Brand Logos Section */
.tm-brand-logos {
    padding: 16px 0 8px;
    text-align: center;
}

@media (max-width: 576px) {
    .tm-brand-logos {
        padding: 16px 0 24px;
    }
}

.tm-brand-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tm-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 180px;
    background: #111;
    border-radius: 12px;
    border: 2px solid #EE3E27;
    box-shadow: 0 0 12px rgba(238, 62, 39, 0.47), inset 0 0 8px rgba(238, 62, 39, 0.13);
    padding: 26px 16px 0;
    text-decoration: none;
    overflow: hidden;
}

.tm-brand-card-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #EE3E27;
    object-fit: contain;
    background: #1a1a1a;
}

.tm-brand-card-name {
    font-size: 21px;
    color: #EE3E27;
    font-weight: bold;
    text-align: center;
    word-break: break-word;
}

.tm-brand-card-gif {
    width: 130%;
    height: auto;
    display: block;
    object-fit: contain;
    /* margin-top: 4px; */
}

/* Cards without a gif keep their original bottom padding */
.tm-brand-card:not(:has(.tm-brand-card-gif)) {
    padding-bottom: 26px;
}

@media (max-width: 576px) {
    .tm-brand-card {
        width: 140px;
        padding: 18px 12px 0;
    }

    .tm-brand-card:not(:has(.tm-brand-card-gif)) {
        padding-bottom: 18px;
    }

    .tm-brand-card-logo {
        width: 94px;
        height: 94px;
        object-fit: contain;
    }

    .tm-brand-card-name {
        font-size: 15px;
    }
}
