/* ============================================
   CARDS UNIFORMIZADOS - TRANSPARÊNCIA
   ============================================ */

#banners_transparencia {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
}

/* Cards padronizados */
.card-transparencia {
    flex: 1 1 calc(50% - 12px);
    min-width: 400px;
    max-width: none;

    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);

    position: relative;
    overflow: visible;

    display: flex;
    flex-direction: column;
}

.card-transparencia:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Barra superior dos cards */
.card-header {
    background-color: #386ecc;
    color: #ffffff;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.card-header i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.card-header .titulo {
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* Corpo dos cards */
.card-body {
    width: 100%;
    height: auto;

    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

/* .card-body a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}  */

/* Imagem padronizada */
.card-body img {
    width: 100%;
    height: 495px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f5f5f5;
    display: block;
}

/* Texto descritivo */
.card-body .descricao {
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
    font-size: 0.95rem;
}

/* Link "Saiba mais" */
.card-body .link-saiba {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #386ecc;
    font-weight: 500;
    transition: gap 0.2s ease;
    margin-top: auto;
}

.card-body .link-saiba i {
    transition: transform 0.2s ease;
}

.card-body a:hover .link-saiba {
    gap: 12px;
}

.card-body a:hover .link-saiba i {
    transform: translateX(4px);
}

/* ============================================
   SELO DE VALIDADE
   ============================================ */

.selo-validade {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 10;
    background: #dc2626;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
    border-radius: 30px 6px 30px 6px;
    border: 2px solid #fca5a5;
    box-shadow: 0 4px 0 #7f1d1d, 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: rotate(8deg);
    text-shadow: 0 1px 0 #7f1d1d;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#mpc_antes:hover .selo-validade {
    transform: rotate(4deg) scale(1.05);
    box-shadow: 0 4px 0 #7f1d1d, 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    #banners_transparencia {
        gap: 20px;
        justify-content: center;
    }

    .card-transparencia {
        flex: 1 1 300px;
        max-width: 100%;
        min-width: 250px;
    }

    .card-body img {
        height: 180px;
    }

    .selo-validade {
        font-size: 0.7rem;
        padding: 0.35rem 0.9rem;
        top: -8px;
        right: -8px;
        transform: rotate(6deg);
    }

    #mpc_antes:hover .selo-validade {
        transform: rotate(3deg) scale(1.03);
    }
}

@media (max-width: 480px) {
    .card-transparencia {
        flex: 1 1 100%;
        min-width: 0;
    }

    .card-body {
        padding: 16px;
    }

    .card-body img {
        height: 160px;
    }

    .card-header {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .card-header .titulo {
        font-size: 0.9rem;
    }

    .selo-validade {
        font-size: 0.6rem;
        padding: 0.25rem 0.7rem;
        top: -6px;
        right: -6px;
        transform: rotate(5deg);
    }

    #mpc_antes:hover .selo-validade {
        transform: rotate(3deg) scale(1.02);
    }

    .card-body .descricao {
        font-size: 0.85rem;
    }

    .card-body .link-saiba {
        font-size: 0.9rem;
    }
}