/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.banner-section {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.banner-grid {
    width: 100%;
    /* Aumentei um pouco o limite máximo para caber bem as 4 colunas */
    max-width: 1400px; 
}

.banner-grid h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2rem;
    border-bottom: 2px solid #0056b3;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* --- MUDANÇA PRINCIPAL: 4 COLUNAS --- */
.banner-grid ul {
    display: grid; 
    /* Cria exatamente 4 colunas iguais */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    list-style: none;
}

/* --- CONFIGURAÇÃO DO CARTÃO --- */
.banner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; 
    
    /* Largura 100% para preencher a coluna do Grid */
    width: 100%; 
    height: 120px;
    
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-card:hover {
    transform: translateY(-3px);
    border-color: #0056b3; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: filter 0.3s ease;
}

/* --- TOOLTIP --- */
.banner-card::after {
    content: attr(data-tooltip); 
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 86, 179, 0.9);
    color: #ffffff;
    font-size: 0.85rem; /* Diminui levemente a fonte para caber melhor */
    font-weight: 600;
    text-align: center;
    padding: 8px 5px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    pointer-events: none;
}

.banner-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVIDADE --- */

/* Telas médias (Notebooks menores / Tablets em paisagem) - Cai para 3 colunas */
@media (max-width: 1200px) {
    .banner-grid ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets em pé - Cai para 2 colunas */
@media (max-width: 900px) {
    .banner-grid ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Celulares - Cai para 1 coluna */
@media (max-width: 600px) {
    .banner-grid ul {
        grid-template-columns: 1fr;
    }
}