/* ==================================================
   BLOG – LISTAGEM DE POSTS
   União Madeiras
   ================================================== */

/* ===== HEADER ===== */
.blog-title-wrapper {
    text-align: center;
    padding: 60px 20px 35px;
    background: linear-gradient(to bottom, #eaf7ec, #ffffff);
}

.blog-title-wrapper h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f4d23;
    margin-bottom: 8px;
}

.blog-subtitle {
    font-size: 16px;
    color: #2e5c32;
}

/* ===== BREADCRUMB ===== */
.breadcrumbs {
    margin: 12px auto 35px;
    padding: 8px 16px;
    background: #e7f9e9;
    border-radius: 6px;
    font-size: 14px;
    width: fit-content;
}

.breadcrumbs a {
    color: #0f4d23;
    font-weight: 600;
    text-decoration: none;
}

.breadcrumbs span {
    opacity: .4;
    margin: 0 6px;
}

/* ===== GRID ===== */
.h-p-box {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.h-p-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.10);
}

/* ===== IMAGEM (quadrada, sem corte) ===== */
.h320 {
    height: 220px;
    background: #f4f6f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h320 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== CONTEÚDO ===== */
.c-box {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* TÍTULO */
.post-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.post-title a {
    color: #0f3d2e;
    text-decoration: none;
}

.post-title a:hover {
    text-decoration: underline;
}

/* RESUMO (controla altura do card) */
.post-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    min-height: 72px;
    margin-bottom: 16px;
}

/* BOTÃO */
.c-box a.design {
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    margin-top: auto;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .blog-title-wrapper h1 {
        font-size: 26px;
    }

    .post-excerpt {
        min-height: auto;
    }
}
/* ==================================================
   AJUSTE FINAL – LISTAGEM BLOG
   ================================================== */

/* ---------- TIPOGRAFIA ---------- */

/* Título do card */
.post-title {
    font-size: 1.25rem;          /* ↑ impacto */
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

/* Resumo */
.post-excerpt {
    font-size: 1.05rem;          /* ↑ leitura */
    line-height: 1.6;
    color: #444;
}

/* ---------- PADRONIZAÇÃO DO CARD ---------- */

/* Força a coluna a esticar */
.col-lg-4,
.col-md-4,
.col-sm-6 {
    display: flex;
}

/* Card ocupa 100% da coluna */
.h-p-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Conteúdo cresce igualmente */
.c-box {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Texto sempre ocupa espaço mínimo */
.post-excerpt {
    min-height: 95px;   /* 🔑 aqui resolve a quebra */
}

/* Botão sempre no final */
.c-box a.design {
    margin-top: auto;
    font-size: 0.95rem;
    padding: 8px 20px;
}

/* ---------- IMAGEM (SEM CORTE DE VERDADE) ---------- */

/* Container da imagem */
.h320 {
    height: 240px;                /* um pouco maior */
    background: #f3f5f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Regra mais específica que as antigas */
.h-p-box .h320 img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;          /* 🔒 não corta */
    display: block;
}
/* ==================================================
   CORREÇÃO DEFINITIVA – TAMANHO DOS TEXTOS
   ================================================== */

/* Título do card */
.post-title {
    font-size: 20px;        /* impacto real */
    line-height: 1.3;
    font-weight: 700;
}

/* Resumo */
.post-excerpt {
    font-size: 16px;        /* leitura confortável */
    line-height: 1.6;
}

/* Botão */
.c-box a.design {
    font-size: 15px;
}
