/*==================================================
BLOG
==================================================*/

.blog-page{
    padding:80px 0;
}

.blog-page .container{
    width:100%;
    max-width:1320px;
    margin:0 auto;
    padding:0 15px;
}

/*==================================================
GRID
==================================================*/

.blog-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:30px;
    margin-bottom:60px;
}

/*==================================================
CARD
==================================================*/

.post-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    transition:all .3s ease;
    display:flex;
    flex-direction:column;
    height:100%;
}

.post-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 40px rgba(0,0,0,.15);
}

/*==================================================
IMAGE
==================================================*/

.post-image{
    display:block;
    overflow:hidden;
    background:#f5f5f5;
}

.post-image img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    transition:transform .5s ease;
}

.post-card:hover .post-image img{
    transform:scale(1.08);
}

/*==================================================
CONTENT
==================================================*/

.post-content{
    padding:25px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.post-meta{
    font-size:13px;
    color:#888;
    margin-bottom:12px;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.post-title{
    margin:0 0 15px;
    font-size:24px;
    line-height:1.35;
    font-weight:700;
}

.post-title a{
    color:#222;
    text-decoration:none;
    transition:.3s;
}

.post-title a:hover{
    color:#0d6efd;
}

.post-excerpt{
    color:#666;
    line-height:1.8;
    font-size:15px;
    margin-bottom:25px;
    flex:1;
}

.read-more{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    font-weight:600;
    color:#0d6efd;
    text-decoration:none;
    transition:.3s;
}

.read-more:hover{
    color:#222;
    transform:translateX(5px);
}

/*==================================================
CATEGORY
==================================================*/

.post-category{
    display:inline-block;
    margin-bottom:15px;
}

.post-category a{
    display:inline-block;
    background:#0d6efd;
    color:#fff;
    padding:6px 14px;
    border-radius:50px;
    text-decoration:none;
    font-size:12px;
    font-weight:600;
    text-transform:uppercase;
    transition:.3s;
}

.post-category a:hover{
    background:#222;
}

/*==================================================
AUTHOR
==================================================*/

.post-author{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:20px;
    padding-top:20px;
    border-top:1px solid #eee;
}

.post-author img{
    width:42px;
    height:42px;
    border-radius:50%;
}

.post-author span{
    font-size:14px;
    color:#666;
}

/*==================================================
PAGINATION
==================================================*/

.navigation.pagination{
    display:flex;
    justify-content:center;
    margin-top:20px;
}

.nav-links{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.page-numbers{
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border:1px solid #ddd;
    border-radius:8px;
    color:#222;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.page-numbers:hover{
    background:#0d6efd;
    color:#fff;
    border-color:#0d6efd;
}

.page-numbers.current{
    background:#0d6efd;
    color:#fff;
    border-color:#0d6efd;
}

/*==================================================
NO POSTS
==================================================*/

.no-posts{
    text-align:center;
    padding:80px 20px;
    color:#777;
    font-size:18px;
}

/*==================================================
RESPONSIVE
==================================================*/

@media (max-width:1024px){

    .blog-grid{
        grid-template-columns:repeat(2,1fr);
        gap:25px;
    }

    .post-image img{
        height:220px;
    }

    .post-title{
        font-size:22px;
    }

}

@media (max-width:767px){

    .blog-page{
        padding:60px 0;
    }

    .blog-grid{
        grid-template-columns:1fr;
        gap:25px;
    }

    .post-image img{
        height:220px;
    }

    .post-content{
        padding:20px;
    }

    .post-title{
        font-size:20px;
    }

    .post-excerpt{
        font-size:14px;
    }

}