/*
Theme Name:  تجارت‌گردان
Theme URI:   https://tejgardan.ir
Author:      تجارت‌گردان
Author URI:  https://tejgardan.ir
Description: قالب خبری حرفه‌ای فارسی با پشتیبانی از تاریخ شمسی، بنر تبلیغاتی، خبر ویژه و اخبار پربازدید
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tejgardan
Tags:        rtl-language, news, blog, two-columns, right-sidebar, custom-logo, featured-images
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --red:       #c0392b;
  --red-dark:  #922b21;
  --red-light: #f9ebea;
  --gold:      #d4a017;
  --gold-light:#fef9e7;
  --dark:      #1a1a2e;
  --dark2:     #16213e;
  --mid:       #2d3561;
  --text:      #1c1c1c;
  --text2:     #4a4a4a;
  --text3:     #888888;
  --border:    #e0e0e0;
  --bg:        #f5f5f5;
  --white:     #ffffff;
  --sidebar-w: 260px;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(0,0,0,0.08);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  font-size: 14px;
  line-height: 1.8;
}

a           { text-decoration: none; color: inherit; }
img         { max-width: 100%; display: block; }
ul, ol      { list-style: none; }
button      { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--dark);
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 2px solid var(--red);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-date {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-date span        { display: flex; align-items: center; gap: 5px; }
.topbar-date .dot        { color: var(--gold); font-size: 16px; line-height: 1; }
.topbar-date .jalali     { color: var(--gold); font-weight: 600; font-size: 13px; }
.topbar-date .miladi     { color: #aaa; }
.topbar-weather          { display: flex; align-items: center; gap: 6px; color: #aaa; font-size: 12px; }
.topbar-weather .temp    { color: var(--gold); font-weight: 600; }
.topbar-social           { display: flex; gap: 10px; }
.topbar-social a {
  width: 26px; height: 26px;
  border: 1px solid #444;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #aaa;
  transition: all 0.2s;
}
.topbar-social a:hover   { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking          { background: var(--red); color: white; overflow: hidden; }
.breaking-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  min-height: 36px;
}
.breaking-label {
  background: var(--dark);
  padding: 8px 18px;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.breaking-label .pulse {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}
.breaking-ticker {
  flex: 1; overflow: hidden;
  display: flex; align-items: center;
  padding: 0 16px; font-size: 13px;
}
.ticker-wrap  { width: 100%; overflow: hidden; }
.ticker-text  { display: inline-block; white-space: nowrap; animation: ticker 40s linear infinite; }
.ticker-text span { margin-left: 60px; }

@keyframes ticker { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes pulse  { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(.7); } }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  padding: 16px 0;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo            { display: flex; flex-direction: column; }
.logo-title {
  font-size: 32px; font-weight: 900;
  color: var(--dark); letter-spacing: -1px; line-height: 1;
}
.logo-title span      { color: var(--red); }
.logo-sub             { font-size: 11px; color: var(--text3); letter-spacing: .5px; margin-top: 2px; }

.header-ad-banner {
  background: linear-gradient(135deg,#f0f0f0,#e0e0e0);
  border: 2px dashed #ccc;
  border-radius: var(--radius);
  width: 468px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 13px; flex-shrink: 0;
  cursor: pointer; transition: border-color .2s; overflow: hidden;
}
.header-ad-banner:hover       { border-color: var(--red); }
.header-ad-banner strong      { display: block; font-size: 15px; color: #bbb; }

.header-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 24px; padding: 6px 14px; width: 200px;
}
.header-search input  { border:none; background:none; font-size:13px; outline:none; width:100%; direction:rtl; color:var(--text); }
.header-search button { border:none; background:none; color:var(--text3); font-size:16px; padding:0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: var(--dark2);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 2px;
}
.nav-inner a {
  color: #e0e0e0; padding: 13px 16px;
  font-size: 13px; font-weight: 500;
  transition: all .2s; display: flex; align-items: center; gap: 5px;
  white-space: nowrap; position: relative;
}
.nav-inner a::after {
  content:''; position:absolute; bottom:0; right:0; left:0;
  height:3px; background:var(--red); transform:scaleX(0); transition:transform .2s;
}
.nav-inner a:hover::after,
.nav-inner a.current-menu-item::after { transform: scaleX(1); }
.nav-inner a:hover,
.nav-inner a.current-menu-item        { color: white; }
.nav-inner a.current-menu-item        { background: rgba(255,255,255,.05); }
.nav-dot { color: #444; font-size: 18px; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main-wrapper {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 24px;
  align-items: start;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; border-bottom: 2px solid var(--border); padding-bottom: 10px;
}
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 800; color: var(--dark);
}
.section-title::before {
  content:''; width:4px; height:22px;
  background:var(--red); border-radius:2px; display:block;
}
.section-more {
  font-size: 12px; color: var(--red); font-weight: 600;
  display: flex; align-items: center; gap: 3px; transition: gap .2s;
}
.section-more:hover { gap: 6px; }

/* ============================================================
   HERO / FEATURED NEWS SECTION
   ============================================================ */
.hero-section {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px;
}
/* grid-template-rows کل ردیف را دقیقاً ۵۴۸px قفل می‌کند */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: 548px;   /* ← این کلید اصلی است */
  overflow: hidden;
}
.hero-slides {
  height: 548px;
  overflow: hidden;
  display: block;
}
.hero-main {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  cursor: pointer;
  width: 100%;
  height: 548px;
}
.hero-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .75;
  transition: opacity .4s, transform .5s;
  display: block;
}
.hero-main:hover .hero-main-img    { opacity:.6; transform:scale(1.03); }
.hero-main-overlay {
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.hero-main-content {
  position:absolute; bottom:0; right:0; left:0; padding:24px; color:white;
}
.hero-cat {
  display:inline-block; background:var(--red); color:white;
  font-size:11px; font-weight:700; padding:3px 10px; border-radius:3px;
  margin-bottom:10px; letter-spacing:.3px;
}
.hero-cat.gold            { background:var(--gold); color:var(--dark); }
.hero-main-title          { font-size:22px; font-weight:800; line-height:1.5; margin-bottom:10px; text-shadow:0 1px 3px rgba(0,0,0,.5); }
.hero-main-meta           { display:flex; align-items:center; gap:14px; font-size:12px; color:rgba(255,255,255,.7); }
.hero-main-meta span      { display:flex; align-items:center; gap:4px; }
.hero-main-lead           { font-size:13px; color:rgba(255,255,255,.8); margin-bottom:12px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hero-badge {
  position:absolute; top:16px; right:16px;
  background:var(--red); color:white; font-size:11px; font-weight:800;
  padding:5px 12px; border-radius:4px; display:flex; align-items:center; gap:5px;
}
.hero-badge-star           { color: var(--gold); }

/* Popular column */
.hero-popular              { border-right:1px solid var(--border); display:flex; flex-direction:column; overflow:hidden; }
.hero-popular-header {
  background:var(--dark); color:white; padding:14px 16px;
  font-size:14px; font-weight:700; display:flex; align-items:center; gap:8px;
}
.popular-list              { flex:1; overflow:hidden; }
.popular-item {
  display:grid; grid-template-columns:32px 1fr;
  gap:12px; padding:12px 14px; border-bottom:1px solid var(--border);
  align-items:start; cursor:pointer; transition:background .2s;
}
.popular-item:hover        { background: var(--bg); }
.popular-item:last-child   { border-bottom:none; }
.popular-rank {
  width:28px; height:28px; border-radius:6px;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:13px; flex-shrink:0;
}
.popular-rank.r1           { background:var(--red); color:white; }
.popular-rank.r2           { background:var(--dark); color:white; }
.popular-rank.r3           { background:var(--gold); color:var(--dark); }
.popular-rank.rn           { background:#eee; color:var(--text3); }
.popular-item-title {
  font-size:12.5px; font-weight:600; color:var(--text); line-height:1.6;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.popular-item-views        { font-size:11px; color:var(--text3); margin-top:3px; display:flex; align-items:center; gap:3px; }

/* ============================================================
   NEWS CARD GRID (3 columns)
   ============================================================ */
.news-section              { margin-bottom: 28px; }
.news-grid                 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }

.news-card {
  background:white; border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow); transition:transform .25s, box-shadow .25s;
  cursor:pointer; border:1px solid transparent;
}
.news-card:hover           { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,.12); border-color:var(--border); }
.news-card-img             { width:100%; height:180px; overflow:hidden; position:relative; }
.news-card-img img         { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.news-card:hover .news-card-img img { transform:scale(1.05); }
.news-card-img-ph          { width:100%; height:180px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#e0e0e0,#c0c0c0); font-size:50px; color:#aaa; }
.news-card-body            { padding: 14px; }
.news-card-cat             { font-size:10px; font-weight:700; padding:2px 8px; border-radius:3px; display:inline-block; margin-bottom:8px; }

.cat-red    { background:var(--red-light); color:var(--red); }
.cat-blue   { background:#eaf4fb;          color:#1a6fa8; }
.cat-green  { background:#eafaf1;          color:#1e8449; }
.cat-gold   { background:var(--gold-light);color:#b7770d; }
.cat-purple { background:#f4ecf7;          color:#7d3c98; }

.news-card-title {
  font-size:14px; font-weight:700; line-height:1.65; color:var(--text);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  margin-bottom:10px; transition:color .2s;
}
.news-card:hover .news-card-title { color: var(--red); }
.news-card-lead {
  font-size:12px; color:var(--text2); line-height:1.7;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  margin-bottom:12px;
}
.news-card-meta {
  display:flex; align-items:center; justify-content:space-between;
  border-top:1px solid var(--border); padding-top:10px; font-size:11px; color:var(--text3);
}
.news-card-meta-right      { display:flex; align-items:center; gap:10px; }
.news-card-meta span       { display:flex; align-items:center; gap:3px; }

/* ============================================================
   WIDE CARD (special report)
   ============================================================ */
.news-card-wide {
  grid-column:1 / -1;
  display:grid; grid-template-columns:300px 1fr;
  background:white; border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow); cursor:pointer; border:1px solid transparent;
  transition:transform .25s, box-shadow .25s;
}
.news-card-wide:hover      { transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,.12); border-color:var(--border); }
.news-card-wide .news-card-img { height:100%; min-height:200px; }
.news-card-wide .news-card-img img { width:100%; height:100%; object-fit:cover; }
.news-card-wide-body       { padding:20px; display:flex; flex-direction:column; justify-content:space-between; }
.news-card-wide-title {
  font-size:19px; font-weight:800; color:var(--text); line-height:1.7;
  margin-bottom:12px; transition:color .2s;
}
.news-card-wide:hover .news-card-wide-title { color: var(--red); }
.news-card-wide-lead {
  font-size:13px; color:var(--text2); line-height:1.9;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  flex:1; margin-bottom:14px;
}
.wide-read-btn {
  display:inline-block; background:var(--red); color:white;
  padding:8px 18px; border-radius:6px; font-size:12px; font-weight:600;
}

/* ============================================================
   MINI NEWS LIST
   ============================================================ */
.mini-list                 { display:flex; flex-direction:column; }
.mini-item {
  display:grid; grid-template-columns:80px 1fr;
  gap:10px; padding:10px 0; border-bottom:1px solid var(--border);
  cursor:pointer; transition:background .15s;
}
.mini-item:last-child      { border-bottom:none; }
.mini-item:hover           { background:rgba(0,0,0,.02); margin:0 -8px; padding:10px 8px; border-radius:6px; }
.mini-item-img             { width:80px; height:60px; border-radius:6px; overflow:hidden; }
.mini-item-img img         { width:100%; height:100%; object-fit:cover; }
.mini-item-img-ph {
  width:80px; height:60px; border-radius:6px;
  background:linear-gradient(135deg,#e8e8e8,#d0d0d0);
  display:flex; align-items:center; justify-content:center; font-size:22px; color:#ccc;
}
.mini-item-title {
  font-size:13px; font-weight:600; line-height:1.65; color:var(--text);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  margin-bottom:4px; transition:color .2s;
}
.mini-item:hover .mini-item-title { color: var(--red); }
.mini-item-meta            { font-size:11px; color:var(--text3); display:flex; align-items:center; gap:6px; }

/* ============================================================
   TWO COLUMN BOXES
   ============================================================ */
.two-col-grid              { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:28px; }
.two-col-box               { background:white; border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.two-col-box-header        { padding:12px 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.two-col-box-body          { padding:10px 16px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.site-sidebar              { display:flex; flex-direction:column; gap:20px; position:sticky; top:52px; }
.sidebar-widget            { background:white; border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.widget-header {
  background:var(--dark); color:white;
  padding:12px 16px; font-size:13px; font-weight:700;
  display:flex; align-items:center; justify-content:space-between;
}
.widget-header .more       { font-size:11px; color:#aaa; }
.widget-body               { padding:14px; }

/* Ad placeholders */
.ad-placeholder {
  width:100%; background:linear-gradient(135deg,#f8f9fa,#e9ecef);
  border:2px dashed #ced4da; border-radius:var(--radius);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; color:#adb5bd; cursor:pointer; transition:border-color .2s, background .2s;
}
.ad-placeholder:hover      { border-color:var(--red); background:linear-gradient(135deg,#fff5f5,#ffe0e0); color:var(--red); }
.ad-placeholder .ad-icon   { font-size:28px; }
.ad-placeholder .ad-size   { font-size:11px; font-weight:600; }
.ad-placeholder .ad-label  { font-size:12px; }
.ad-300x250                { height:250px; }
.ad-300x150                { height:150px; }
.ad-300x100                { height:100px; }

/* Sidebar list */
.sw-list                   {}
.sw-item {
  padding:9px 0; border-bottom:1px solid var(--border);
  font-size:12.5px; font-weight:500; line-height:1.6; cursor:pointer;
  transition:color .2s; color:var(--text); display:flex; align-items:flex-start; gap:6px;
}
.sw-item::before           { content:'◈'; color:var(--red); font-size:10px; margin-top:3px; flex-shrink:0; }
.sw-item:last-child        { border-bottom:none; }
.sw-item:hover             { color: var(--red); }

/* Tag cloud */
.tag-cloud                 { display:flex; flex-wrap:wrap; gap:6px; }
.tag {
  padding:4px 10px; background:var(--bg); border:1px solid var(--border);
  border-radius:20px; font-size:11.5px; color:var(--text2); cursor:pointer; transition:all .2s;
}
.tag:hover                 { background:var(--red); color:white; border-color:var(--red); }

/* Weather widget */
.weather-widget {
  background:linear-gradient(135deg,#1a1a2e,#16213e);
  color:white; padding:16px; border-radius:var(--radius); text-align:center;
}
.weather-city              { font-size:13px; opacity:.7; margin-bottom:4px; }
.weather-temp-big          { font-size:42px; font-weight:900; line-height:1; }
.weather-desc              { font-size:12px; opacity:.8; margin-top:4px; }
.weather-row {
  display:flex; justify-content:space-between; margin-top:12px;
  padding-top:12px; border-top:1px solid rgba(255,255,255,.1); font-size:11px; opacity:.7;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-new { background:var(--red); color:white; font-size:9px; font-weight:700; padding:1px 5px; border-radius:3px; margin-right:4px; }
.badge-vid { background:#1a6fa8;    color:white; font-size:9px; font-weight:700; padding:1px 5px; border-radius:3px; margin-right:4px; }
.img-ph    { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#e0e0e0,#c0c0c0); font-size:50px; color:#aaa; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-wrapper            { max-width:1280px; margin:24px auto; padding:0 20px; display:grid; grid-template-columns:1fr var(--sidebar-w); gap:24px; }
.single-content            { background:white; border-radius:var(--radius); padding:30px; box-shadow:var(--shadow); }
.single-cat                { font-size:11px; font-weight:700; padding:3px 10px; border-radius:3px; display:inline-block; margin-bottom:14px; }
.single-title              { font-size:26px; font-weight:900; color:var(--dark); line-height:1.6; margin-bottom:14px; }
.single-meta               { display:flex; align-items:center; gap:16px; font-size:12px; color:var(--text3); padding-bottom:16px; border-bottom:1px solid var(--border); margin-bottom:20px; }
.single-thumbnail          { width:100%; border-radius:var(--radius); margin-bottom:20px; }
.single-body               { font-size:15px; line-height:2; color:var(--text2); }
.single-body p             { margin-bottom:1.2em; }
.single-body h2            { font-size:19px; font-weight:800; color:var(--dark); margin:1.8em 0 .8em; }
.single-body h3            { font-size:16px; font-weight:700; color:var(--dark); margin:1.4em 0 .6em; }
.single-body blockquote {
  border-right:4px solid var(--red); padding:12px 18px;
  background:var(--red-light); border-radius:0 var(--radius) var(--radius) 0;
  margin:1.5em 0; color:var(--text); font-style:italic;
}
.single-tags               { margin-top:24px; padding-top:16px; border-top:1px solid var(--border); }
.post-share                { margin-top:20px; display:flex; align-items:center; gap:10px; font-size:13px; font-weight:600; }
.share-btn {
  padding:7px 14px; border-radius:6px; font-size:12px; font-weight:600;
  cursor:pointer; border:none; transition:opacity .2s;
}
.share-btn:hover           { opacity: .85; }
.share-telegram            { background:#229ED9; color:white; }
.share-whatsapp            { background:#25D366; color:white; }
.share-copy                { background:var(--dark); color:white; }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area             { margin-top:24px; background:white; border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); }
.comments-title            { font-size:17px; font-weight:800; color:var(--dark); margin-bottom:20px; display:flex; align-items:center; gap:8px; }
.comment-item {
  display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--border);
}
.comment-item:last-child   { border-bottom:none; }
.comment-avatar {
  width:40px; height:40px; border-radius:50%;
  background:var(--red-light); display:flex; align-items:center; justify-content:center;
  font-size:16px; font-weight:700; color:var(--red); flex-shrink:0;
}
.comment-author            { font-size:13px; font-weight:700; color:var(--dark); }
.comment-date              { font-size:11px; color:var(--text3); }
.comment-text              { font-size:13px; color:var(--text2); line-height:1.8; margin-top:4px; }
.comment-form input,
.comment-form textarea {
  width:100%; padding:10px 14px; border:1px solid var(--border);
  border-radius:var(--radius); font-size:13px; direction:rtl; transition:border-color .2s;
}
.comment-form input:focus,
.comment-form textarea:focus { outline:none; border-color:var(--red); }
.comment-form textarea     { min-height:100px; resize:vertical; }
.comment-submit {
  background:var(--red); color:white; border:none; padding:10px 24px;
  border-radius:var(--radius); font-size:13px; font-weight:700; cursor:pointer;
  transition:background .2s;
}
.comment-submit:hover      { background: var(--red-dark); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page                { text-align:center; padding:80px 20px; }
.error-404                 { font-size:120px; font-weight:900; color:var(--red); line-height:1; }
.error-title               { font-size:24px; font-weight:800; margin:16px 0 8px; }
.error-desc                { color:var(--text3); margin-bottom:24px; }
.error-btn {
  display:inline-block; background:var(--red); color:white;
  padding:12px 28px; border-radius:var(--radius); font-weight:700; font-size:14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer               { background:var(--dark); color:#aaa; margin-top:48px; }
.footer-top {
  max-width:1280px; margin:0 auto; padding:40px 20px;
  display:grid; grid-template-columns:1fr 1fr 1fr 200px; gap:32px;
}
.footer-col h4 {
  color:white; font-size:14px; font-weight:700; margin-bottom:14px;
  padding-bottom:8px; border-bottom:2px solid var(--red); display:inline-block;
}
.footer-col li {
  padding:5px 0; font-size:12.5px; cursor:pointer; transition:color .2s;
  display:flex; align-items:center; gap:6px;
}
.footer-col li::before     { content:'›'; color:var(--red); font-size:16px; }
.footer-col li:hover       { color: white; }
.footer-desc               { font-size:12.5px; line-height:2; }
.footer-bottom {
  border-top:1px solid #333; padding:16px 20px;
  text-align:center; font-size:12px; color:#666;
}
.footer-bottom span        { color: var(--red); }

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.archive-header {
  background:white; border-radius:var(--radius); padding:20px 24px;
  margin-bottom:20px; box-shadow:var(--shadow); border-right:4px solid var(--red);
}
.archive-title             { font-size:22px; font-weight:900; color:var(--dark); }
.archive-desc              { font-size:13px; color:var(--text3); margin-top:4px; }
.archive-grid              { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }

/* Pagination */
.pagination                { display:flex; justify-content:center; gap:6px; margin-top:24px; }
.pagination a, .pagination span {
  width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--border); border-radius:var(--radius); font-size:13px; font-weight:600;
  transition:all .2s;
}
.pagination a:hover,
.pagination .current       { background:var(--red); color:white; border-color:var(--red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px) {
  .main-wrapper, .single-wrapper { grid-template-columns:1fr; }
  .site-sidebar              { position:static; }
  .hero-grid                 { grid-template-columns:1fr; }
  .hero-popular              { display:none; }
  .footer-top                { grid-template-columns:1fr 1fr; }
}
@media (max-width:768px) {
  .news-grid, .archive-grid  { grid-template-columns:1fr; }
  .two-col-grid              { grid-template-columns:1fr; }
  .news-card-wide            { grid-template-columns:1fr; }
  .header-ad-banner          { display:none; }
  .hero-main-title           { font-size:18px; }
  .footer-top                { grid-template-columns:1fr; }
}
@media (max-width:480px) {
  .nav-inner                 { overflow-x:auto; }
  .header-search             { display:none; }
}

/* ============================================================
   UPDATE v4 — تغییرات جدید
   ============================================================ */

/* عریض‌تر کردن صفحه */
.main-wrapper,
.single-wrapper,
.header-inner,
.topbar-inner,
.breaking-inner,
.nav-inner,
.footer-top,
.footer-bottom { max-width: 1500px !important; }

/* ── ستون چپ تبلیغاتی (120px) ──────────────────────── */
.main-wrapper {
    grid-template-columns: 1fr var(--sidebar-w) !important;
    position: relative;
}

/* ستون چپ به صورت ثابت کنار محتوا */
.left-ad-column {
    position: fixed;
    left: calc((100vw - 1500px) / 2);
    top: 120px;
    width: 120px;
    z-index: 50;
}

/* اگر صفحه کوچک‌تر از حد است، مخفی شود */
@media (max-width: 1660px) { .left-ad-column { display: none; } }

.left-ad-sticky {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.left-ad-sticky img { max-width: 120px; border-radius: 6px; }

/* ── Breaking News شناور (fixed) ──────────────────────── */
.breaking-news,
.breaking {
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
    animation: none !important;
}

/* ── تصویر خبر ویژه (مربع ثابت) ──────────────────────── */
/* hero-img-wrap */
.hero-img-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide-hidden { display: none; }

/* ── تصویر شاخص در صفحه خبر (16:9 فیکس) ────────────── */
.single-thumbnail-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 22px;
    background: var(--border);
    position: relative;
}
.single-thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
}
.single-img-caption {
    background: rgba(0,0,0,.55);
    color: #eee;
    font-size: 11px;
    padding: 5px 10px;
    position: absolute;
    bottom: 0; right: 0; left: 0;
    text-align: center;
}

/* ── روتیتر ─────────────────────────────────────────── */
.single-rotitle {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 3px;
    margin-bottom: 10px;
    letter-spacing: .3px;
}

/* ── زیرعنوان/لید در صفحه خبر ────────────────────────── */
.single-sublead {
    background: var(--red-light);
    border-right: 4px solid var(--red);
    padding: 14px 18px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.9;
}
.single-sublead p { margin: 0; }

/* ── دکمه پرینت ──────────────────────────────────────── */
.print-btn { display: flex; align-items: center; gap: 4px; }
.print-btn:hover { color: var(--red) !important; border-color: var(--red) !important; }

/* ── single-meta با زمان ──────────────────────────────── */
.single-meta { flex-wrap: wrap; gap: 10px; }

/* ── باکس‌های ۳ و ۴ در two-col-grid ────────────────── */
.two-col-grid .news-section { margin-bottom: 0; }

/* ── section-title رنگ پویا ───────────────────────────── */
.section-title[style*="--before-color"]::before {
    background: var(--before-color, var(--red)) !important;
}

/* ── استایل بنر سایدبار چپ ────────────────────────── */
.ad-placeholder[style*="width:120px"] {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ── پرینت ───────────────────────────────────────────── */
@media print {
    .site-nav, .site-header, .topbar, .breaking, .breaking-news,
    .site-sidebar, .left-ad-column, .post-share, .single-tags,
    .comments-area, .site-footer, .section-header a,
    .print-btn, .share-btn { display: none !important; }
    body { background: white; color: black; font-size: 12pt; }
    .single-wrapper { grid-template-columns: 1fr !important; }
    .single-title { font-size: 18pt; }
    .single-body { font-size: 11pt; line-height: 2; }
    .single-thumbnail-wrap { aspect-ratio: 16/9; page-break-inside: avoid; }
}

/* ── ریسپانسیو ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .left-ad-column { display: none !important; }
}

/* ============================================================
   بنر ۱۲۰×۶۰۰ کنار کادر ویژه (سمت راست)
   ============================================================ */

/* wrapper کادر ویژه + بنر کناری */

}
