/* ==========================================================
   POSTS.CSS
   PrimoWork Latest Articles
========================================================== */

.latest-posts{

    background:var(--white);

}

/* ===========================
   POSTS GRID
=========================== */

.posts-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:2rem;

}

/* ===========================
   POST CARD
=========================== */

.post-card{

    display:flex;

    flex-direction:column;

    background:var(--white);

    border:1px solid var(--border-color);

    border-radius:var(--radius-lg);

    overflow:hidden;

    box-shadow:var(--shadow-sm);

    transition:var(--transition);

}

.post-card:hover{

    transform:translateY(-6px);

    box-shadow:var(--shadow-md);

}

/* ===========================
   IMAGE
=========================== */

.post-image{

    display:block;

    aspect-ratio:16/9;

    overflow:hidden;

}

.post-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.4s;

}

.post-card:hover .post-image img{

    transform:scale(1.05);

}

/* ===========================
   CONTENT
=========================== */

.post-content{

    display:flex;

    flex-direction:column;

    flex:1;

    padding:1.5rem;

}

.post-meta{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:1rem;

    margin-bottom:1rem;

    font-size:.9rem;

    color:var(--muted-color);

}

.post-category{

    color:var(--primary-color);

    font-weight:600;

}

.post-content h3{

    margin-bottom:1rem;

    font-size:1.3rem;

    line-height:1.4;

}

.post-content h3 a{

    color:var(--heading-color);

}

.post-content h3 a:hover{

    color:var(--primary-color);

}

.post-content p{

    color:var(--muted-color);

    margin-bottom:1.5rem;

    flex:1;

}

/* ===========================
   FOOTER
=========================== */

.post-footer{

    margin-top:auto;

}

.read-more{

    font-weight:600;

    color:var(--primary-color);

}

.read-more:hover{

    color:var(--primary-dark);



}

/* ===========================================
ARTICLE
=========================================== */

.article-content{

    padding:3rem 0 5rem;

}




/* ===========================
   ARTICLE MOBILE
=========================== */

@media (max-width:768px){

.article-content{

    padding:2rem 0 3rem;

}

.article-content .container{

    padding:0 18px;

}

.article-content article{

    max-width:100%;

}

.article-content h2{

    font-size:1.75rem;

}

.article-content h3{

    font-size:1.35rem;

}

.article-content p{

    font-size:1.05rem;

    line-height:1.9;

}

.article-content ul,
.article-content ol{

    padding-left:1.3rem;

}

.article-content li{

    font-size:1rem;

}

}

