.documentos-recentes {
    background-color: #f9f9f9;
    padding: 40px 20px;
}

.documentos-container {
    max-width: 1200px;
    margin: 0 auto;
}

.documentos-container h2 {
    font-size: 1.6rem;
    color: var(--roxo-principal);
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    padding-left: 14px;
    text-align: left;
}

.documentos-container h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background-color: var(--azul-claro);
    border-radius: 3px;
}

.documentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Card padrão (para desktop) */
.documento-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.documento-card:hover {
    transform: translateY(-4px);
}

.documento-conteudo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.doc-img {
    margin-bottom: 15px;
}

.icone-documento {
    width: 100px;
    height: auto;
}

.doc-info h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.doc-info p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 12px;
}

.botoes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.botao-link {
    background-color: #e6f0ff;
    color: #0056b3;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
}

.botao-link:hover {
    background-color: var(--azul-claro);
    color: #fff;
}

.ver-todos-documentos {
    text-align: center;
    margin-top: 30px;
}

.btn-ver-todas {
    background-color: var(--roxo-principal);
    color: #fff;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-ver-todas:hover {
    background-color: var(--roxo-escuro);
}

/* 🔄 Telas menores = layout horizontal dentro do card */
@media (max-width: 768px) {
    .documento-conteudo {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        text-align: left;
    }

    .doc-img {
        flex: 0 0 60px;
    }
    
    .doc-info h3 {
       font-size: 0.8rem;
    }

    .botoes {
        justify-content: flex-start;
    }
}