/* ====================================================================
   BRAND SECTION - MODERN DESIGN
   ==================================================================== */

.brand-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.brand-card-modern {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .brand-card-modern {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brand-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #feee00;
}

[data-theme="dark"] .brand-card-modern:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: #feee00;
}

.brand-card-modern__image {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    padding: 10px;
}

[data-theme="dark"] .brand-card-modern__image {
    background: #ffffff; /* Keep white background for logos to ensure visibility */
    border-color: #444;
}

.brand-card-modern:hover .brand-card-modern__image {
    transform: scale(1.05);
}

.brand-card-modern__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-card-modern__name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    transition: color 0.3s ease;
}

[data-theme="dark"] .brand-card-modern__name {
    color: #e0e0e0;
}

.brand-card-modern:hover .brand-card-modern__name {
    color: #ffd700;
}

/* ====================================================================
   RESPONSIVE DESIGN
   ==================================================================== */

@media (max-width: 992px) {
    .brand-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }

    .brand-card-modern__image {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .brand-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .brand-card-modern {
        padding: 16px 12px;
        border-radius: 12px;
    }

    .brand-card-modern__image {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }

    .brand-card-modern__name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .brand-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}
