.projetos-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .projetos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .projetos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.projeto-grid-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.projeto-card {
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.projeto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.projeto-card img {
    height: 250px;
    object-fit: cover;
    background-color: #f8f9fa;
    width: 100%;
}

.projeto-card .progress-bar {
    font-size: 0.85rem;
    font-weight: bold;
}

.btn-doar,
.btn-indisponivel {
    font-weight: bold;
    transition: 0.2s;
    padding: 12px;
    border-radius: 6px;
}

.btn-doar {
    background-color: #9b0201;
    border-color: #9b0201;
    color: white !important;
}

.btn-doar:hover {
    background-color: #7a0101;
    border-color: #7a0101;
}

.btn-indisponivel {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white !important;
}

/* Espaçamentos e Hierarquia Visual */
.projeto-card .card-title {
    padding-left: 5px;
    height: 3em; /* Espaço fixo para até 2 linhas de título */
    overflow: hidden;
    margin-bottom: 5px;
}

.projeto-card .card-subtitle {
    padding-left: 10px;
    height: 1.5em; /* 1 linha fixa */
    overflow: hidden;
    margin-bottom: 15px;
}

.projeto-card .card-text {
    font-size: 0.95em;
    line-height: 1.5;
    height: 6em; /* 1.5em * 4 linhas = espaço exato para 4 linhas */
    flex-grow: 1;
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 15px;

    /* Truncar texto em 4 linhas sem barra de rolagem */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.projeto-card .progress-section {
    padding-left: 15px;
    padding-right: 15px;
}

.projeto-card .font-size-sm {
    font-size: 0.85em;
}

.projeto-card .progress {
    height: 20px;
}
