/*
Theme Name: News Theme (Minimal)
Theme URI: http://example.com
Author: ChatGPT
Author URI: http://example.com
Description: قالب خبری ساده، هدر با تصویر، باکس پست‌ها، منوی سمت راست و سایدبار. راست‌چین/RTL آماده.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: news-theme
*/

:root{
  --max-width: 1100px;
  --accent: #0b5fbd;
  --muted: #666;
}

*{box-sizing:border-box}
html,body{height:100%;}
body{
  margin:0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background:#f6f6f6;
  color:#222;
  line-height:1.6;
  direction: rtl;
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

.site-header{
  background:#111;
  color:#fff;
  padding:20px 0;
}
.header-inner{
  max-width:var(--max-width);
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:20px;
  padding:0 15px;
}
.header-logo{
  flex:0 0 auto;
}
.header-logo img{height:70px; object-fit:cover}
.header-banner{
  flex:1 1 auto;
}
.header-banner img{width:100%; height:70px; object-fit:cover}

.container{
  max-width:var(--max-width);
  margin:20px auto;
  padding:0 15px;
  display:flex;
  gap:20px;
}

.main{
  flex:1 1 0;
  min-width:0;
}
.sidebar{
  width:300px;
  flex:0 0 300px;
}

.post-box{
  background:#fff;
  border-radius:8px;
  padding:12px;
  margin-bottom:16px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  box-shadow:0 1px 3px rgba(0,0,0,0.06);
}
.post-thumb{
  width:120px;
  height:80px;
  flex:0 0 120px;
  overflow:hidden;
  border-radius:6px;
}
.post-thumb img{width:100%; height:100%; object-fit:cover}
.post-content{flex:1 1 0}
.post-meta{font-size:13px; color:var(--muted); margin-bottom:6px}
.post-title{font-size:18px; margin:0 0 6px}
.post-excerpt{color:#444}
.read-more{display:inline-block;margin-top:8px;padding:6px 10px;border-radius:6px;background:var(--accent);color:#fff}

/* Sidebar widgets */
.widget{background:#fff;border-radius:8px;padding:12px;margin-bottom:16px;box-shadow:0 1px 3px rgba(0,0,0,0.04)}
.widget h3{margin:0 0 10px;font-size:16px}

/* Footer */
.site-footer{background:#111;color:#ddd;padding:18px 0;margin-top:30px}
.site-footer .inner{max-width:var(--max-width);margin:0 auto;padding:0 15px}

/* Responsive */
@media (max-width:900px){
  .container{flex-direction:column}
  .sidebar{width:100%;order:2}
  .main{order:1}
  .header-inner{flex-direction:column;align-items:flex-start}
  .header-banner img{height:120px;object-fit:cover}
}

@media (max-width:480px){
  .post-thumb{width:96px;height:72px;flex:0 0 96px}
  .post-title{font-size:16px}
}





.site-header {
  background: #111;
  color: #fff;
  padding: 0;
}
.header-inner {
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}
.header-logo {
  display: none; /* حذف لوگو در هدر برای نمایش کامل بنر */
}
.header-banner {
  width: 100%;
  height: auto;
}
.header-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}


.site-footer {
  text-align: center;
  padding: 20px;
  background-color: #222;
  color: #fff;
}

.site-footer a {
  color: #8bc34a;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}