/* ==========================================================
   GRID DOS POSTS
========================================================== */

.blog-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:24px;
    max-width:1400px;
    margin:60px auto;
    padding:30px;
}
.blog-front{
    background-color: var(--branco);
}
/* ==========================================================
   CARD
========================================================== */

.blog-card{

    display:flex;
    flex-direction:column;

    width:100%;
    height:100%;
    min-height:420px;
    max-height:420px;

    background:#fff;
    border-radius:18px;
    overflow:hidden;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    transition:.3s;
}

.blog-card:hover{

    transform:translateY(-6px);

    box-shadow:0 15px 35px rgba(0,0,0,.15);

}

/* ==========================================================
   IMAGEM
========================================================== */

.blog-card__imagem{

    display:block;

}

.blog-card__imagem img{

    width:100%;
    height:160px;

    object-fit:cover;

    display:block;

}

/* Caso não exista imagem */

.blog-card:not(:has(.blog-card__imagem)){

    padding-top:20px;

}

/* ==========================================================
   CONTEÚDO
========================================================== */

.blog-card__conteudo{

    display:flex;
    flex-direction:column;

    flex:1;

    padding:18px;

}

/* ==========================================================
   CATEGORIA
========================================================== */

.blog-card__categoria{

    display:inline-block;

    width:max-content;

    padding:5px 12px;

    border-radius:30px;

    background:#F4B942;

    color:#fff;

    font-size:12px;

    font-weight:700;

    margin-bottom:12px;

}

/* ==========================================================
   TÍTULO
========================================================== */

.blog-card__titulo{

    margin:0 0 12px;

    font-size:20px;

    line-height:1.35;

    overflow:hidden;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

}

.blog-card__titulo a{

    text-decoration:none;

    color:#3A352E;

}

.blog-card__titulo a:hover{

    color:#D49A00;

}

/* ==========================================================
   RESUMO
========================================================== */

.blog-card__resumo{

    color:#666;

    line-height:1.6;

    font-size:15px;

    margin-bottom:20px;

    overflow:hidden;

    display:-webkit-box;

    -webkit-line-clamp:3;

    -webkit-box-orient:vertical;

}

/* ==========================================================
   RODAPÉ
========================================================== */

.blog-card__rodape{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:auto;

    padding-top:15px;

    border-top:1px solid #eee;

    font-size:13px;

}

.blog-card__rodape span{

    color:#888;

}

.blog-card__rodape a{

    text-decoration:none;

    color:#3A352E;

    font-weight:600;

}

.blog-card__rodape a:hover{

    color:#D49A00;

}

/* ==========================================================
   RESPONSIVO
========================================================== */

@media (max-width:768px){

    .blog-grid{

        grid-template-columns:1fr;

        padding:20px;

        gap:20px;

    }

    .blog-card{

        max-height:none;

        min-height:380px;

    }

    .blog-card__imagem img{

        height:180px;

    }

}