/* CONTAINER PRINCIPAL */
.mkrpi-projetos-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.mkrpi-projetos-titulo {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #002d72;
}

/* GRADE EM 4 COLUNAS COM ALTURA IGUAL ENTRE CARDS */
.mkrpi-projetos-grade {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* CARD DE PROJETO */
.mkrpi-projeto-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; /* altura mínima uniforme */
}

/* TÍTULO DO PROJETO */
.mkrpi-projeto-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #002d72;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    line-clamp: 2;
    box-orient: vertical;
}

/* INFORMAÇÕES DO CARD */
.mkrpi-projeto-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

/* BOTÃO "VER DETALHES" */
.mkrpi-projeto-link {
    display: block;
    padding: 8px;
    background: #002d72;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    margin-top: auto; /* força o botão ao fim do card */
}

/* RESPONSIVO */
@media (max-width: 1200px) {
    .mkrpi-projetos-grade {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .mkrpi-projetos-grade {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .mkrpi-projetos-grade {
        grid-template-columns: 1fr;
    }
}


/* ===== Filtro da lista de Projetos Integradores ===== */
.mkrpi-filtro {
    background: #f7f9fc;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.mkrpi-filtro-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.mkrpi-filtro-item {
    display: flex;
    flex-direction: column;
    min-width: 220px;
}

.mkrpi-filtro-item label {
    font-size: 14px;
    color: #002d72;
    margin-bottom: 6px;
}

.mkrpi-filtro-item input,
.mkrpi-filtro-item select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    background: #fff;
}

.mkrpi-filtro-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.mkrpi-btn-filtrar {
    background: #002d72;
    color: #fff;
    border: 0;
    padding: 9px 14px;
    border-radius: 3px;
    cursor: pointer;
}

.mkrpi-btn-criar {
    background: #00a37a;
    color: #fff;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 3px;
    display: inline-block;
}

/* feedback visual enquanto busca */
#mkrpi-projetos-grade.is-loading {
    opacity: .55;
    pointer-events: none;
}

/* responsivo do filtro */
@media (max-width: 800px) {
    .mkrpi-filtro-item {
        min-width: unset;
        flex: 1 1 45%;
    }
    .mkrpi-filtro-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
}
