/*==================================================
    LATEST NEWS
==================================================*/

.latest-news{

    margin:60px 0;

}


/*==================================================
    HOME SECTION SEPARATOR
==================================================*/

/*
 * جداکننده بین بخش‌های اصلی صفحه
 * Hero
 * Latest News
 * MobarakShahr
 * Photo Reports
 * Featured News
 */

.site-main > section + section{

    border-top:1px solid #e5e5e5;

    padding-top:55px;

}


/*==================================================
    LATEST LAYOUT
==================================================*/

.latest-layout{

    display:grid;

    grid-template-columns:1.4fr 1fr;

    gap:28px;

    align-items:start;

}

.latest-featured{

    min-width:0;

}

.latest-list{

    display:flex;

    flex-direction:column;

    gap:18px;

}


/*==================================================
    FEATURED CARD
==================================================*/

.featured-news-card{

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 10px 35px rgba(0,0,0,.06);

    transition:.3s;

}

.featured-news-card:hover{

    transform:translateY(-4px);

}

.featured-news-link{

    display:block;

    text-decoration:none;

}

.featured-news-image{

    position:relative;

}

.featured-news-image img{

    width:100%;

    height:420px;

    object-fit:contain;

    object-position:center;

    background:#f5f5f5;

    display:block;

}

.featured-news-overlay{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    padding:28px;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.2),
        transparent
    );

}

.featured-news-title{

    color:#fff;

    font-size:30px;

    line-height:1.8;

    margin:0;

}

.featured-news-meta{

    display:flex;

    gap:15px;

    color:#fff;

    margin-bottom:15px;

    font-size:13px;

}

.featured-news-category{

    color:#fff;

    background:var(--primary);

    padding:5px 12px;

    border-radius:30px;

}

.featured-news-content{

    padding:24px;

}

.featured-news-content p{

    color:#555;

    line-height:2;

    margin:0 0 20px;

}

.featured-news-btn{

    display:inline-flex;

    align-items:center;

    gap:8px;

    color:var(--primary);

    font-weight:700;

}


/*==================================================
    SMALL CARDS
==================================================*/

.latest-small-card{

    background:#fff;

    border-radius:16px;

    overflow:hidden;

    box-shadow:0 8px 22px rgba(0,0,0,.05);

    transition:.3s;

}

.latest-small-card:hover{

    transform:translateY(-3px);

}

.latest-small-link{

    display:flex;

    gap:15px;

    padding:12px;

    text-decoration:none;

}

.latest-small-thumb{

    flex:0 0 120px;

}

.latest-small-thumb img{

    width:120px;

    height:95px;

    object-fit:cover;

    border-radius:10px;

}

.latest-small-content{

    flex:1;

    min-width:0;

}

.latest-small-title{

    margin:0 0 12px;

    color:#222;

    font-size:15px;

    line-height:1.9;

}

.latest-small-meta{

    color:#777;

    font-size:12px;

}


/*==================================================
    TABLET
==================================================*/

@media (max-width:992px){

    .latest-layout{

        grid-template-columns:1fr;

    }

    .latest-featured{

        width:100%;

    }

    .latest-list{

        display:grid;

        grid-template-columns:repeat(2,1fr);

        gap:18px;

    }

}


/*==================================================
    MOBILE
==================================================*/

@media (max-width:768px){

    .site-main > section + section{

        padding-top:40px;

    }

    .latest-news{

        margin:45px 0;

    }

    .latest-layout{

        display:block;

    }

    .latest-featured{

        margin-bottom:20px;

    }

    .latest-list{

        display:flex;

        flex-direction:column;

        gap:15px;

    }

    .featured-news-image img{

        height:300px;

    }

    .featured-news-overlay{

        padding:20px;

    }

    .featured-news-title{

        font-size:23px;

    }

}


/*==================================================
    SMALL MOBILE
==================================================*/

@media (max-width:576px){

    .site-main > section + section{

        padding-top:30px;

    }

    .featured-news-image img{

        height:250px;

    }

    .featured-news-content{

        padding:18px;

    }

    .latest-small-link{

        gap:12px;

        padding:10px;

    }

    .latest-small-thumb{

        flex:0 0 95px;

    }

    .latest-small-thumb img{

        width:95px;

        height:75px;

    }

    .latest-small-title{

        font-size:14px;

        line-height:1.8;

        margin-bottom:8px;

    }

}
