/* صفحهٔ اصلی — مطابق طرح نفت ایران */

.homepage-news{
    padding-top:0;
    padding-bottom:40px;
    background:var(--page-muted, #ececec);
}

.homepage-news .site-main{
    padding-top:0;
}

.home-main-nav-bar + .featured-slider-section{
    margin-top:0;
}

/* —— بخش جدیدترین اخبار —— */
.home-latest-section{
    padding:20px 0 0;
    background:transparent;
}

.home-latest-section .section-header-latest{
    margin:0 0 14px;
    border:0;
    display:flex;
    justify-content:flex-end;
    text-align:right;
}

.home-latest-section .section-header-latest h2{
    display:inline-block;
    margin:0 0 0 auto;
    background:var(--primary, #b5121b);
    color:#fff;
    padding:10px 28px;
    font-size:17px;
    font-weight:800;
    border:0;
    border-radius:0;
    border-right:6px solid var(--accent, #f4b400);
    box-shadow:none;
}

.home-latest-strip{
    display:grid;
    grid-template-columns:repeat(var(--naft-latest-cols, 4), minmax(0, 1fr));
    gap:14px;
}

.latest-strip-card{
    background:#fff;
    border:1px solid #ddd;
    border-radius:6px;
    overflow:hidden;
    transition:box-shadow .2s ease;
    display:flex;
    flex-direction:column;
}

.latest-strip-card:hover{
    box-shadow:0 8px 24px rgba(0,0,0,.1);
}

.latest-strip-thumb{
    display:block;
    aspect-ratio:16/10;
    overflow:hidden;
}

.latest-strip-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.latest-strip-title{
    margin:0;
    padding:10px 12px 6px;
    font-size:13px;
    font-weight:800;
    line-height:1.65;
    flex:1;
}

.latest-strip-title a{
    color:#111;
}

.latest-strip-title a:hover{
    color:var(--primary);
}

.latest-strip-more{
    display:inline-flex;
    align-items:center;
    gap:4px;
    margin:0 12px 12px auto;
    color:var(--primary, #d40f1f);
    font-size:12px;
    font-weight:800;
}

.latest-strip-more-arrow{
    color:var(--accent, #f4b400);
    font-size:16px;
    line-height:1;
    transform:scaleX(-1);
}

.latest-strip-more:hover{
    color:color-mix(in srgb, var(--primary) 85%, #000);
}

@media (max-width: 992px){
    .home-latest-strip{
        grid-template-columns:repeat(min(var(--naft-latest-cols, 4), 3), minmax(0, 1fr));
    }
}

@media (max-width: 576px){
    .home-latest-strip{
        grid-template-columns:1fr;
    }
}

/* —— سازگاری با استایل‌های قدیمی —— */
.home-three-col{
    display:none;
}

.homepage-news .featured-slider-section{
    margin-top:0;
    margin-bottom:0;
}

.homepage-news .featured-slide{
    border-radius:6px;
    box-shadow:none;
}

.homepage-news .naftiran-slider{
    border-radius:6px;
}

.homepage-news .swiper-pagination-bullet{
    background:#fff;
    opacity:.75;
}

.homepage-news .swiper-pagination-bullet-active{
    opacity:1;
    background:var(--accent);
    box-shadow:none;
}
