/*==================================================
=            Home Page - MobarakShahrNews Pro       =
==================================================*/

:root{

    --primary:#b30000;
    --primary-dark:#8b0000;

    --white:#fff;

    --dark:#222;
    --text:#333;
    --text-light:#666;
    --text-muted:#999;

    --gray:#f5f5f5;
    --border:#e5e5e5;

    --radius-sm:8px;
    --radius:10px;
    --radius-lg:12px;

    --transition:.3s ease;

    --shadow-sm:0 2px 10px rgba(0,0,0,.04);
    --shadow-md:0 8px 20px rgba(0,0,0,.08);
    --shadow-lg:0 20px 40px rgba(0,0,0,.12);

}

/*======================================
=            Base Styles              =
======================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

img{
    display:block;
    max-width:100%;
    height:auto;
}

a{
    transition:var(--transition);
}

.site-main{
    padding:30px 0;
}

.container{
    width:100%;
    max-width:1320px;
    margin:0 auto;
    padding:0 15px;
}

/*======================================
Breaking News
======================================*/

.breaking-news{

    background:var(--primary);
    margin:20px 0;

}

.breaking-news .container{

    display:flex;
    align-items:center;
    overflow:hidden;

}

.breaking-title{

    flex:0 0 auto;

    background:var(--primary-dark);

    color:#fff;

    padding:14px 20px;

    font-size:15px;

    font-weight:700;

    white-space:nowrap;

}

.news-ticker{

    flex:1;

    overflow:hidden;

    position:relative;

    height:48px;

}

.news-track{

    display:flex;

    align-items:center;

    gap:60px;

    white-space:nowrap;

    height:48px;

    will-change:transform;

}

.news-track a{

    color:var(--white);

    text-decoration:none;
    font-weight:600;

}

.news-track a:hover{

    opacity:.85;

}

/*======================================
Breaking News Responsive
======================================*/

@media (max-width:768px){

    .breaking-news .container{
        display:flex;
        flex-direction:row;
        align-items:center;
        flex-wrap:nowrap;
        min-height:44px;
    }

    .breaking-title{
        flex:0 0 auto;
        padding:10px 14px;
        font-size:14px;
    }

    .breaking-content{
        flex:1;
        min-width:0;
        padding:0 12px;
        overflow:hidden;
    }

    .breaking-content marquee{
        line-height:44px;
    }

}

.breaking-content a{
    color:var(--white);
    text-decoration:none;
    font-weight:600;
    margin-left:40px;
    transition:opacity var(--transition);
}

.breaking-content a:hover{
    opacity:.8;
}

/*======================================
Section Title
======================================*/

.section-title{
    display:flex;
    align-items:center;
    margin-bottom:25px;
}

.section-title h2{
    margin:0;
    font-size:24px;
    color:var(--text);
}

.section-title::after{
    content:"";
    flex:1;
    height:2px;
    background:var(--primary);
    margin-right:20px;
}

/*======================================
Hero Slider
======================================*/

.hero-slider{
    margin:35px 0;
}

.hero-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:25px;
    align-items:start;
}

.hero-main{
    position:relative;
    overflow:hidden;
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-sm);
}

.hero-swiper{
    width:100%;
    height:100%;
}

.hero-slide{
    position:relative;
}

.hero-image img{
    width:100%;
    height:520px;
    object-fit:cover;
}

.hero-overlay{
    position:absolute;
    right:0;
    left:0;
    bottom:0;
    padding:35px;
    background:linear-gradient(to top,rgba(0,0,0,.85),rgba(0,0,0,.15));
}

.hero-category{
    margin-bottom:12px;
}

.hero-category a{
    display:inline-block;
    background:var(--primary);
    color:var(--white);
    padding:6px 14px;
    border-radius:30px;
    font-size:13px;
    text-decoration:none;
}

.hero-title{
    margin:0;
    font-size:34px;
    line-height:1.8;
}

.hero-title a{
    color:var(--white);
    text-decoration:none;
}

.hero-meta{
    margin-top:18px;
    color:var(--white);
    font-size:14px;
}

.hero-side{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.hero-item{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.hero-item:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow-md);
}

.hero-item a{
    display:flex;
    align-items:center;
    gap:15px;
    padding:10px;
    text-decoration:none;
    color:var(--dark);
}


.hero-item-content{
    flex:1;
}

.hero-item-content h3{
    margin:0 0 10px;
    font-size:17px;
    line-height:1.8;
}

.hero-item-content span{
    color.hero-thumb img{
    width:120px;
    height:85px;
    object-fit:cover;
    border-radius:var(--radius-sm);
}

:var(--text-muted);
    font-size:13px;
}

/*======================================
Latest News
======================================*/

.latest-news{
    margin:40px 0;
}

.latest-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
    margin-top:35px;
}

.news-card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.news-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-lg);
}

.news-card-image{
    position:relative;
    overflow:hidden;
}

.news-card-image img{
    width:100%;
    height:240px;
    object-fit:cover;
    transition:transform .5s ease;
}

.news-card:hover .news-card-image img{
    transform:scale(1.08);
}

.news-card-category{
    position:absolute;
    top:15px;
    right:15px;
}

.news-card-category a{
    display:inline-block;
    background:var(--primary);
    color:var(--white);
    padding:6px 14px;
    border-radius:30px;
    text-decoration:none;
    font-size:13px;
}

.news-card-body{
    padding:22px;
}

.news-card-meta{
    margin-bottom:12px;
    color:var(--text-muted);
    font-size:13px;
}

.news-card-title{
    margin-bottom:15px;
    font-size:22px;
    line-height:1.8;
}

.news-card-title a{
    color:var(--dark);
    text-decoration:none;
}

.news-card-title a:hover{
    color:var(--primary);
}

.news-card-excerpt{
    margin-bottom:20px;
   color:var(--text-light);
    line-height:2;
}

.news-card-more{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--primary);
    text-decoration:none;
    font-weight:700;
}


/*======================================
Featured News
======================================*/

.featured-news{
    margin:50px 0;
}

.featured-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.featured-card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.featured-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow-lg);
}

.featured-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.featured-body{
    padding:18px;
}

.featured-body h3{
    margin:0;
    font-size:19px;
    line-height:1.8;
}

.featured-body a{
    color:var(--dark);
    text-decoration:none;
    font-weight:700;
}

/*======================================
Main Layout
======================================*/

.home-content{
    margin:40px 0;
}

.content-grid{
    display:grid;
    grid-template-columns:2.2fr 1fr;
    gap:30px;
    align-items:start;
}

.content-main,
.content-sidebar{
    min-width:0;
}

/*======================================
Responsive
======================================*/

@media (max-width:992px){

    .hero-grid{
        grid-template-columns:1fr;
    }

    .hero-image img{
        height:380px;
    }

    .hero-title{
        font-size:26px;
    }

    .latest-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .featured-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .content-grid{
        grid-template-columns:1fr;
    }

}

@media (max-width:768px){

    .hero-item a{
        gap:12px;
    }

    .hero-thumb img{
        width:95px;
        height:70px;
    }

    .latest-grid,
    .featured-grid{
        grid-template-columns:1fr;
    }

    .news-card-image img,
    .featured-card img{
        height:220px;
    }

}

@media (max-width:576px){

    .container{
        padding:0 12px;
    }

    .section-title h2{
        font-size:20px;
    }

    .hero-image img{
        height:260px;
    }

    .hero-overlay{
        padding:18px;
    }

    .hero-title{
        font-size:19px;
    }

    .news-card-title{
        font-size:19px;
    }

    .featured-body h3{
        font-size:17px;
    }

    .news-card-body,
    .featured-body{
        padding:16px;
    }

}

/*====================================================
        Mobarakshahr News
====================================================*/

.mobarakshahr-section{

    margin:70px 0;

}

.mobarak-grid{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:25px;

}

.mobarak-main{

    position:relative;

    overflow:hidden;

    border-radius:18px;

}

.mobarak-main img{

    width:100%;

    height:520px;

    object-fit:cover;

    display:block;

    transition:.5s;

}

.mobarak-main:hover img{

    transform:scale(1.06);

}

.mobarak-overlay{

    position:absolute;

    inset:0;

    display:flex;

    align-items:flex-end;

    padding:35px;

    background:linear-gradient(
        transparent,
        rgba(0,0,0,.85)
    );

}

.mobarak-overlay h2{

    color:#fff;

    font-size:34px;

    line-height:1.6;

    margin:0;

}

.mobarak-overlay a{

    color:#fff;

    text-decoration:none;

}

.mobarak-side{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.mobarak-item{

    background:#fff;

    border-radius:16px;

    overflow:hidden;

    transition:.35s;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.mobarak-item:hover{

    transform:translateY(-5px);

    box-shadow:0 16px 35px rgba(0,0,0,.14);

}

.mobarak-item a{

    display:flex;

    gap:15px;

    align-items:center;

    padding:12px;

    text-decoration:none;

}

.mobarak-item img{

    width:110px;

    height:90px;

    object-fit:cover;

    border-radius:10px;

    flex-shrink:0;

}

.mobarak-item h3{

    margin:0 0 10px;

    font-size:17px;

    color:#222;

    line-height:1.8;

    transition:.3s;

}

.mobarak-item:hover h3{

    color:#b8860b;

}

.mobarak-item span{

    font-size:13px;

    color:#888;

}

.mobarakshahr-section .section-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

    border-bottom:3px solid #d4af37;

    padding-bottom:12px;

}

.mobarakshahr-section .section-title h2{

    margin:0;

    font-size:30px;

    color:#1d3557;

    font-weight:700;

    position:relative;

}

.mobarakshahr-section .section-title h2::before{

    content:"";

    width:8px;

    height:34px;

    background:#d4af37;

    border-radius:10px;

    display:inline-block;

    margin-left:12px;

    vertical-align:middle;

}

/*==========================
      Hero Meta
===========================*/

.mobarak-meta{

    display:flex;

    gap:12px;

    align-items:center;

    margin-bottom:18px;

}

.mobarak-category a{

    background:#d4af37;

    color:#111;

    padding:6px 14px;

    border-radius:30px;

    text-decoration:none;

    font-size:13px;

    font-weight:700;

}

.mobarak-date{

    color:#fff;

    font-size:14px;

    background:rgba(255,255,255,.15);

    padding:6px 14px;

    border-radius:30px;

    backdrop-filter:blur(8px);

}

.mobarak-overlay{

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

}

.mobarak-overlay h2{

    transition:.35s;

}

.mobarak-main:hover .mobarak-overlay h2{

    color:#ffd54f;

}