/*=========================================
 PREMIUM HOME NEWS SECTION
=========================================*/

.home-section{
    padding:70px 0;
    background:#fff;
}

/*==============================
SECTION HEADER
==============================*/

.home-section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.home-section-title{
    position:relative;
    font-size:42px;
    font-weight:800;
    line-height:1.15;
    color:#111;
    margin:0;
    padding-left:22px;
}

.home-section-title:before{
    content:"";
    position:absolute;
    left:0;
    top:4px;
    width:7px;
    height:48px;
    background:#d50000;
    border-radius:30px;
}

.home-section-link{
    color:#111;
    text-decoration:none;
    font-size:16px;
    font-weight:700;
    transition:.3s;
}

.home-section-link:hover{
    color:#d50000;
}

/*==============================
GRID
==============================*/

.home-post-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

/*==============================
CARD
==============================*/

.home-post-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    transition:.35s ease;
}

.home-post-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,.12);
}

/*==============================
IMAGE
==============================*/

.home-post-image{
    position:relative;
    display:block;
    overflow:hidden;
    border-radius:18px;
}

.home-post-image img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
    transition:.5s ease;
}

.home-post-card:hover .home-post-image img{
    transform:scale(1.08);
}

/*==============================
IMAGE OVERLAY
==============================*/

.home-post-image:after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:90px;
    background:linear-gradient(to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,0));
}

/*==============================
DATE
==============================*/

.home-post-meta{
    position:absolute;
    left:18px;
    bottom:16px;
    z-index:2;
    color:#fff;
    font-size:14px;
    font-weight:600;
}

.home-post-meta span{
    position:relative;
    padding-left:14px;
}

.home-post-meta span:before{
    content:"";
    position:absolute;
    left:0;
    top:2px;
    width:4px;
    height:18px;
    border-radius:10px;
    background:#d50000;
}

/*==============================
CONTENT
==============================*/

.home-post-content{
    padding:18px 2px 0;
}

/*==============================
TITLE
==============================*/

.home-post-title{
    margin:0;
    font-size:22px;
    font-weight:700;
    line-height:1.45;
}

.home-post-title a{
    color:#222;
    text-decoration:none;
    transition:.3s;

    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
}

.home-post-title a:hover{
    color:#d50000;
}

/*==============================
EXCERPT
==============================*/

.home-post-excerpt{
    margin-top:10px;
    font-size:15px;
    line-height:1.7;
    color:#666;

    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
}

.home-post-excerpt{
    display:none;
}
/*==============================
LATEST SCIENCE
==============================*/

.latest-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:30px;
}

.latest-sidebar{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.latest-feature .home-post-image img{
    height:420px;
}

.latest-small .home-post-image img{
    height:170px;
}

.latest-small .home-post-title{
    font-size:18px;
}

.latest-small .home-post-excerpt{
    display:none;
}

/*==============================
CATEGORY PAGE
==============================*/

.category-page{
    padding:70px 0;
}

.category-description{
    max-width:700px;
    color:#666;
    line-height:1.8;
    margin-top:15px;
}

.pagination-wrapper{
    margin-top:50px;
    display:flex;
    justify-content:center;
}

.pagination .nav-links{
    display:flex;
    gap:10px;
}

.pagination a,
.pagination span{
    width:45px;
    height:45px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    border:1px solid #ddd;
    text-decoration:none;
    color:#111;
    font-weight:700;
}

.pagination .current,
.pagination a:hover{
    background:#d50000;
    color:#fff;
    border-color:#d50000;
}

/*==============================
RESPONSIVE
==============================*/

@media(max-width:1200px){

.home-post-grid{
    grid-template-columns:repeat(2,1fr);
}

.home-section-title{
    font-size:36px;
}

}

@media(max-width:991px){

.latest-grid{
    grid-template-columns:1fr;
}

.latest-feature .home-post-image img{
    height:320px;
}

}

@media(max-width:768px){

.home-post-grid{
    grid-template-columns:1fr;
}

.home-post-image img{
    height:250px;
}

.home-post-title{
    font-size:24px;
}

.home-section-title{
    font-size:32px;
}

.home-section-header{
    flex-direction:column;
    align-items:flex-start;
    gap:15px;
}

}