/*
Theme Name: Boznegah
Author: Boznegah
Description: قالب خبری اختصاصی بزنگاه
Version: 1.0
*/

*{
    box-sizing:border-box;
}

@font-face{
    font-family:'Vazirmatn';
    src:url('assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight:400;
}

@font-face{
    font-family:'Vazirmatn';
    src:url('assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight:700;
}

body{
    direction:rtl;
    margin:0;
    font-family:Tahoma, Arial, sans-serif;
    background:#f5f5f5;
    color:#222;
}

a{
    text-decoration:none;
    color:#0A2540;
}

.header{
    background:#0A2540;
    color:white;
    padding:20px;
}

.logo{
    font-size:35px;
    font-weight:bold;
}

nav{
    margin-top:15px;
}

nav a{
    color:white;
    margin-left:20px;
}

.breaking-news{
    background:#d61f26;
    color:white;
    padding:12px;
    font-weight:bold;
}

.container{
    width:96%;
    max-width:1600px;
    margin:20px auto;
}

.news-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.news-box{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    padding:10px;
}

.news-box img{
    width:100%;
    height:180px;
    object-fit:cover;
}

@media(max-width:768px){
    .news-grid{
        grid-template-columns:1fr;
    }
}

/* ===== Header Clean ===== */

.site-header{
    background:#0b3d91;
    color:#fff;
}

.site-header .container,
.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px 20px;
    direction:rtl;
}

/* لوگو سمت راست */
.logo-area{
    order:1;
    text-align:right;
}

.logo a{
    display:flex;
    flex-direction:column;
    text-decoration:none;
}

.logo-title{
    font-size:46px;
    font-weight:900;
    color:#fff;
    line-height:1;
}

.logo-subtitle{
    margin-top:8px;
    font-size:14px;
    color:#ffd54f;
    font-weight:bold;
}


/* جستجو سمت چپ */
.header-search{
    order:2;
}

.header-search form{
    display:flex;
}

.header-search input[type="search"]{
    width:240px;
    padding:10px;
    border:none;
    border-radius:6px 0 0 6px;
}

.header-search input[type="submit"]{
    background:#c40018;
    color:#fff;
    border:none;
    padding:10px 18px;
    cursor:pointer;
}


/* منو */
.main-menu{
    background:#c40018;
}

.main-menu ul{
    display:flex;
    justify-content:center;
    list-style:none;
    margin:0;
    padding:0;
}

.main-menu li a{
    color:#fff;
    padding:12px 18px;
    display:block;
}
/* ===== Footer ===== */

.site-footer{
    background:#0A2540;
    color:#fff;
    text-align:center;
    padding:30px 15px;
    margin-top:40px;
}

.site-footer p{
    margin:0;
}

/* ===== صفحه اصلی ===== */

.hero{
    display:flex;
    gap:20px;
    margin:25px 0;
}

.hero-main{
    width:65%;
}

.hero-side{
    width:35%;
}

.hero-main img{
    width:100%;
    height:420px;
    object-fit:cover;
}

.side-news{
    display:flex;
    gap:10px;
    margin-bottom:15px;
    border-bottom:1px solid #ddd;
    padding-bottom:10px;
}

.side-news img{
    width:160px;
    height:110px;
    border-radius:8px;
    object-fit:cover;
}

.side-news h3{
    margin:0;
    font-size:18px;
    line-height:1.8;
}

@media (max-width:768px){

.hero{
    flex-direction:column;
}

.hero-main,
.hero-side{
    width:100%;
}

}

.latest-news{
    margin-top:40px;
}

.latest-news h2{
    border-right:4px solid #d61f26;
    padding-right:10px;
    margin-bottom:20px;
}

.news-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.news-card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.news-card img{
    width:100%;
    height:200px;
    object-fit:cover;
}

.news-card h3{
    padding:15px;
    margin:0;
    font-size:18px;
}

.news-card p{
    padding:0 15px 15px;
    color:#555;
}

@media(max-width:768px){

.news-grid{
    grid-template-columns:1fr;
}

}

.category-section{
    margin-top:50px;
}

.section-title{
    border-right:5px solid #d61f26;
    padding-right:12px;
    margin-bottom:20px;
}

.section-title h2{
    font-size:26px;
    margin:0;
    font-weight:bold;
}

.category-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
}

.news-card{
background:#fff;
border:1px solid #e5e5e5;
border-radius:8px;
overflow:hidden;
transition:.3s;
}

.news-card:hover{
box-shadow:0 5px 15px rgba(0,0,0,.12);
}

.news-card img{
width:100%;
height:220px;
object-fit:cover;
}

.news-card h3{
font-size:15px;
padding:12px;
line-height:1.6;
margin:0;
min-height:70px;
}

.news-card a{
color:#222;
text-decoration:none;
}

@media(max-width:991px){
.category-grid{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:600px){
.category-grid{
grid-template-columns:1fr;
}
}

.view-all{
    display:inline-block;
    margin-top:20px;
    background:#d61f26;
    color:white;
    padding:8px 20px;
    border-radius:5px;
    text-decoration:none;
}

@media(max-width:768px){

.category-grid{
    grid-template-columns:1fr;
}

.category-main img{
    height:250px;
}

}

.category-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(280px,1fr));
    gap:20px;
}

.news-card{
    width:100%;
    display:block;
}

.news-card img{
    width:100%;
    aspect-ratio:16/9;
    height:auto;
}

.single-news{
max-width:900px;
margin:40px auto;
background:#fff;
padding:30px;
border-radius:10px;
}

.single-image img{
width:100%;
height:auto;
border-radius:10px;
margin-bottom:20px;
}

.single-news h1{
font-size:34px;
line-height:1.7;
margin-bottom:15px;
}

.single-meta{
color:#777;
margin-bottom:25px;
}

.single-content{
font-size:18px;
line-height:2.2;
}

.license-box{
    margin-top:35px;
    text-align:center;
}

.license-box h3{
    font-size:18px;
    margin-bottom:15px;
    color:#fff;
    font-weight:bold;
}

.license-box #div_eRasanehTrustseal_100623{
    display:inline-block;
}

.site-footer p{
    margin-bottom:30px;
}

.header-inner{
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
}

.header-search form{
display:flex;
}

.header-search input[type="search"]{
width:220px;
padding:10px 15px;
border:1px solid #ddd;
border-radius:6px 0 0 6px;
outline:none;
font-family:inherit;
}

.header-search input[type="submit"]{
background:#c50000;
color:#fff;
border:none;
padding:10px 18px;
border-radius:0 6px 6px 0;
cursor:pointer;
}

.header-search input[type="submit"]:hover{
background:#990000;
}

.logo a{
display:flex;
flex-direction:column;
text-decoration:none;
}

.logo-title{
font-size:46px;
font-weight:900;
color:#ffffff;
line-height:1;
text-shadow:2px 2px 8px rgba(0,0,0,.35);
font-family:tahoma,sans-serif;
}

.logo-subtitle{
display:block;
margin-top:8px;
font-size:14px;
color:#ffd54f;
font-weight:bold;
letter-spacing:.5px;
}

.logo-subtitle{
margin-top:6px;
font-size:13px;
color:#c8102e;
font-weight:700;
letter-spacing:1px;
text-transform:uppercase;
}

body,
button,
input,
textarea,
select{
    font-family:'Vazirmatn', sans-serif;
}

/* اصلاح نهایی جای هدر */

.site-header .container,
.header-inner{
    display:flex;
    flex-direction:row;
    direction:rtl;
    justify-content:space-between;
    align-items:center;
}

/* لوگو سمت راست */
.logo-area{
    order:1;
    margin-right:0;
    margin-left:auto;
}

/* جستجو سمت چپ */
.header-search{
    order:2;
    margin-left:0;
    margin-right:auto;
}

/* تنظیم نهایی هدر بزنگاه */

.site-header .container{
    display:flex;
    flex-direction:column;
    align-items:stretch;
}

.header-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    direction:rtl;
    width:100%;
}

.logo-area{
    order:1;
}

.header-search{
    order:2;
}

.main-menu{
    width:100%;
    margin-top:15px;
}

.main-menu ul{
    justify-content:center;
}

.side-news p{
    margin:8px 0 0;
    font-size:13px;
    font-weight:400;
    line-height:1.8;
    color:#666;
}

.news-date{
    font-size:13px;
    color:#777;
    margin:8px 0;
    font-weight:400;
}

.content-area{
    display:grid;
    grid-template-columns: 1fr 280px;
    gap:20px;
    direction:ltr;
}

.main-content{
    direction:rtl;
}

.sidebar-news{
    direction:rtl;
}

.sidebar-box{
    background:#fff;
    border:1px solid #ddd;
    padding:15px;
    margin-bottom:20px;
}

.sidebar-box h3{
    background:#0b3b82;
    color:#fff;
    padding:10px;
    margin-top:0;
}

.sidebar-item{
    border-bottom:1px solid #eee;
    padding:10px 0;
}

.sidebar-item a{
    color:#222;
    text-decoration:none;
}