/*
Theme Name: وطن نیوز
Theme URI: https://saeedx.ir
Author: سعید خسروی
Author URI: https://saeedx.ir
Description: قالب اختصاصی خبرگزاری وطن نیوز؛ کاملاً راست‌چین، مستقل از صفحه‌ساز و مجهز به تمام ملزومات خبری. طراحی الهام گرفته از IRIB News.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vatan-news
Tags: news, rtl-language-support, custom-menu, featured-images, threaded-comments
*/

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --primary: #002e5d;
    --primary-dark: #001f3f;
    --accent: #d40000;
    --accent-dark: #a00000;
    --text: #222222;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-alt: #f4f5f7;
    --border: #e2e4e8;
    --radius: 10px;
    --font: 'Vazirmatn', Tahoma, sans-serif;
    --shadow: 0 2px 10px rgba(0,0,0,.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    direction: rtl;
    text-align: right;
    background: var(--bg-alt);
    color: var(--text);
    line-height: 1.8;
    font-size: 14px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--primary-dark);
    color: #cfd8e3;
    font-size: 12px;
    padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar .date { display: flex; align-items: center; gap: 6px; }
.top-bar .social a { color: #cfd8e3; margin-right: 10px; font-size: 14px; }
.top-bar .social a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; flex-wrap: wrap; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { max-height: 54px; width: auto; }
.site-title { font-size: 24px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.site-title a { color: var(--primary); }
.site-title a:hover { color: var(--accent); }
.site-description { font-size: 11.5px; color: var(--text-light); margin-top: 4px; }
.header-search { flex: 1; max-width: 400px; }
.header-search form { position: relative; }
.header-search input[type="search"] {
    width: 100%; padding: 10px 16px; border: 1px solid var(--border); border-radius: 30px;
    background: var(--bg-alt); font-family: var(--font); font-size: 13px; outline: none; transition: all .2s;
}
.header-search input[type="search"]:focus { border-color: var(--primary); background: #fff; }
.header-search button {
    position: absolute; left: 4px; top: 4px; bottom: 4px; width: 34px; border: none; border-radius: 50%;
    background: var(--primary); color: #fff; cursor: pointer; font-size: 14px;
}
.header-search button:hover { background: var(--accent); }

/* ---------- Navigation ---------- *//* ---------- Navigation ---------- */
.main-nav { background: var(--primary); border-bottom: 3px solid var(--accent); position: relative; z-index: 50; }
.main-nav .container { display: flex; align-items: center; }

/* منوی سطح اول */
.main-nav .container > ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav .container > ul > li { position: relative; }
.main-nav .container > ul > li > a {
    display: block;
    color: #fff;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 500;
    transition: background .2s;
}
.main-nav .container > ul > li:hover > a,
.main-nav .container > ul > li.current-menu-item > a,
.main-nav .container > ul > li.current-menu-ancestor > a {
    background: var(--accent);
    color: #fff;
}

/* آیکون فلش برای آیتم‌های دارای زیرمنو */
.main-nav .container > ul > li.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 6px;
    font-size: 10px;
    display: inline-block;
    transition: transform .2s;
    vertical-align: middle;
}
.main-nav .container > ul > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* ---- زیرمنو (Dropdown) ---- */
.main-nav ul.sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 230px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    border-top: 3px solid var(--accent);
    border-radius: 0 0 var(--radius) var(--radius);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    pointer-events: none;
}
.main-nav .container > ul > li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.main-nav ul.sub-menu li {
    display: block;
    position: relative;
    width: 100%;
}
.main-nav ul.sub-menu li a {
    display: block;
    color: var(--text);
    padding: 10px 18px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    text-align: right;
    font-weight: 400;
    transition: all .15s;
}
.main-nav ul.sub-menu li:last-child > a { border-bottom: none; }
.main-nav ul.sub-menu li a:hover {
    background: var(--bg-alt);
    color: var(--primary);
    padding-right: 24px;
}
.main-nav ul.sub-menu li.menu-item-has-children > a::after {
    content: '\f104';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    float: left;
    font-size: 10px;
    color: var(--text-light);
}

/* زیرمنوی سطح سوم */
.main-nav ul.sub-menu ul.sub-menu {
    top: 0;
    right: 100%;
    border-top: none;
    border-right: 3px solid var(--accent);
    border-radius: var(--radius);
    transform: translateX(10px);
}
.main-nav ul.sub-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.menu-toggle { display: none; }

/* آیکون‌های SVG شبکه‌های اجتماعی ایرانی */
.top-bar .social a.social-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    vertical-align: middle;
    margin-right: 8px;
    transition: all .2s;
}
.top-bar .social a.social-svg svg {
    width: 13px;
    height: 13px;
    color: #fff;
    display: block;
}
.top-bar .social a.social-svg:hover {
    background: #fff;
}
.top-bar .social a.social-svg:hover svg {
    color: var(--primary-dark);
}

/* رنگ برند در حالت عادی (اختیاری) */
.top-bar .social a.social-eitaa   { background: #ef7c1b; }
.top-bar .social a.social-rubika  { background: #7c3aed; }
.top-bar .social a.social-bale    { background: #3b82f6; }
.top-bar .social a.social-soroush { background: #1a73e8; }

.top-bar .social a.social-eitaa:hover   { background: #ff9533; }
.top-bar .social a.social-rubika:hover  { background: #9057ff; }
.top-bar .social a.social-bale:hover    { background: #5b9eff; }
.top-bar .social a.social-soroush:hover { background: #3d8bff; }
.top-bar .social a.social-eitaa:hover svg,
.top-bar .social a.social-rubika:hover svg,
.top-bar .social a.social-bale:hover svg,
.top-bar .social a.social-soroush:hover svg { color: #fff; }


/* ---------- Breaking Ticker ---------- */
.breaking-ticker { background: var(--accent); color: #fff; display: flex; align-items: center; overflow: hidden; font-size: 13px; }
.breaking-ticker .ticker-label { background: var(--accent-dark); padding: 8px 18px; font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.breaking-ticker .ticker-label::before { content: ''; width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker { display: inline-flex; gap: 30px; white-space: nowrap; padding: 8px 0; animation: ticker 60s linear infinite; will-change: transform; }
.ticker a { color: #fff; }
.ticker a:hover { text-decoration: underline; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ---------- Layout ---------- */
.site-main { padding: 24px 0; }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.content-grid.no-sidebar { grid-template-columns: 1fr; }
.layout-irib { grid-template-columns: 1fr 340px; }
.layout-irib .main-col { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Hero Section ---------- */
.hero-section-irib { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.hero-right { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-img-wrap { display: block; position: relative; height: 100%; min-height: 380px; background: #000; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 0.5s; }
.hero-img-wrap:hover img { transform: scale(1.03); }
.hero-ro-title { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 4px; }
.hero-title { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.92), transparent); color: #fff; font-size: 20px; padding: 60px 18px 18px; margin: 0; line-height: 1.6; }
.hero-title a { color: #fff; }
.hero-title a:hover { color: #ffd54f; }
.no-image { display: flex; align-items: center; justify-content: center; height: 100%; background: #eee; color: #999; }

/* --- Hero Slider --- */
.hero-left { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.hero-slider { position: relative; height: 100%; min-height: 380px; overflow: hidden; }
.slider-track { display: flex; height: 100%; transition: transform 0.6s ease; will-change: transform; }
.slide { flex: 0 0 100%; height: 100%; position: relative; }
.slide-inner { display: block; position: relative; width: 100%; height: 100%; background: #000; }
.slide-inner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.slide-no-image { display: flex; align-items: center; justify-content: center; height: 100%; background: #eee; color: #999; }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.6) 60%, transparent); padding: 40px 16px 50px; color: #fff; }
.slide-ro { display: inline-block; background: var(--accent); color: #fff; font-size: 10.5px; padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; }
.slide-caption h4 { font-size: 15px; line-height: 1.6; font-weight: 700; margin: 0; }
.slider-prev, .slider-next {
    position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
    background: rgba(255,255,255,.9); border: none; border-radius: 50%; cursor: pointer;
    font-size: 20px; color: var(--primary); z-index: 5; transition: all .2s; display: flex; align-items: center; justify-content: center;
}
.slider-prev { right: 10px; }
.slider-next { left: 10px; }
.slider-prev:hover, .slider-next:hover { background: var(--accent); color: #fff; }
.slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 5; }
.slider-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; padding: 0; cursor: pointer; transition: all .2s; }
.slider-dot.active { background: var(--accent); width: 22px; border-radius: 5px; }

/* ---------- Category Blocks ---------- */
.category-block-irib { background: #fff; border: 1px solid var(--border); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.block-header { border-bottom: 2px solid var(--border); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.block-header h2 { font-size: 16px; display: inline-block; padding-bottom: 8px; margin: 0; color: var(--primary); border-bottom: 2px solid var(--primary); margin-bottom: -2px; }
.block-header h2 a { color: var(--primary); }
.block-more { font-size: 12.5px; color: var(--text-light); }
.block-more:hover { color: var(--accent); }

/* --- Layout 1: Featured + List --- */
.block-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.block-featured { border-left: 1px solid var(--border); padding-left: 16px; }
.feat-img-wrap { display: block; margin-bottom: 10px; overflow: hidden; border-radius: 8px; }
.feat-img-wrap img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.4s; }
.feat-img-wrap:hover img { transform: scale(1.03); }
.feat-ro-title { font-size: 11px; color: var(--accent); margin-bottom: 4px; }
.block-featured h3 { font-size: 15.5px; margin: 0 0 8px 0; line-height: 1.6; }
.block-featured h3 a { color: var(--text); }
.block-featured h3 a:hover { color: var(--primary); }
.feat-excerpt { font-size: 12.5px; color: var(--text-light); line-height: 1.8; }
.block-list ul { padding: 0; margin: 0; list-style: none; }
.block-list li { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.block-list li:first-child { padding-top: 0; }
.block-list li:last-child { border-bottom: none; padding-bottom: 0; }
.block-list a { font-size: 13.5px; color: var(--text); line-height: 1.7; display: block; position: relative; padding-right: 16px; }
.block-list a::before { content: '■'; position: absolute; right: 0; top: 4px; font-size: 7px; color: var(--accent); }
.block-list a:hover { color: var(--primary); }

/* --- Layout 2: Grid of Cards --- */
.block-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.block-grid-card { background: var(--bg-alt); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s; }
.block-grid-card:hover { transform: translateY(-3px); }
.grid-img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.grid-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.block-grid-card:hover .grid-img img { transform: scale(1.06); }
.grid-body { padding: 10px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.grid-ro { font-size: 10.5px; color: var(--accent); margin-bottom: 4px; }
.grid-body h3 { font-size: 13.5px; line-height: 1.6; margin-bottom: 8px; }
.grid-body h3 a { color: var(--text); }
.grid-body h3 a:hover { color: var(--primary); }
.grid-meta { font-size: 11px; color: var(--text-light); margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--border); }

/* --- Layout 3: Two Featured + List --- */
.block-two .block-two-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.feat-card { display: flex; flex-direction: column; }
.feat-card h3 { font-size: 14.5px; line-height: 1.6; margin-top: 8px; }
.feat-card h3 a { color: var(--text); }
.feat-card h3 a:hover { color: var(--primary); }
.block-list-bottom { border-top: 1px solid var(--border); padding-top: 10px; }
.block-list-bottom ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.block-list-bottom li { padding: 8px 0; border-bottom: none; }

/* ---------- Standard News Cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.news-grid-3 { grid-template-columns: repeat(3, 1fr); }
.news-grid-2 { grid-template-columns: repeat(2, 1fr); }
.news-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .25s; padding: 8px; box-shadow: var(--shadow); }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.news-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); border-radius: 6px; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card .badge { position: absolute; top: 8px; right: 8px; background: var(--accent); color: #fff; font-size: 10.5px; padding: 3px 8px; border-radius: 4px; }
.news-card .body { padding: 12px 8px 8px; display: flex; flex-direction: column; flex: 1; }
.news-card .ro-title { font-size: 11px; color: var(--primary); margin-bottom: 4px; }
.news-card h3 { font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--primary); }
.news-card .meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-light); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border); }

/* ---------- Section Head ---------- */
.section-block { margin-bottom: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.section-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.section-head h2 { font-size: 16px; color: var(--primary); margin: 0; padding-bottom: 8px; border-bottom: 2px solid var(--primary); margin-bottom: -2px; }
.section-head h2 a { color: var(--primary); }
.section-head .more { font-size: 12.5px; color: var(--text-light); }
.section-head .more:hover { color: var(--accent); }

/* ---------- Single Post ---------- */
.breadcrumb { font-size: 12px; color: var(--text-light); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { color: #bbb; }
.single-article { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); }
.single-article .ro-title { display: inline-block; background: var(--primary); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; }
.single-article h1.entry-title { font-size: 26px; line-height: 1.5; margin-bottom: 10px; color: var(--text); }
.single-article .sub-title { font-size: 16px; color: var(--text-light); font-weight: 500; line-height: 1.8; margin-bottom: 14px; }
.single-article .lead { border-right: 4px solid var(--accent); background: var(--bg-alt); padding: 14px 18px; font-size: 14.5px; line-height: 1.9; color: #333; margin-bottom: 18px; border-radius: 6px; }
.single-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--text-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; margin-bottom: 18px; }
.single-meta span { display: inline-flex; align-items: center; gap: 5px; }
.single-meta .source a { color: var(--accent); }
.featured-image { margin-bottom: 18px; border-radius: 8px; overflow: hidden; }
.featured-image img { width: 100%; height: auto; }
.featured-image figcaption { font-size: 11.5px; color: var(--text-light); padding: 8px 0; text-align: center; border-bottom: 1px solid var(--border); }
.entry-content { font-size: 15.5px; line-height: 2.1; color: #2a2e35; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2, .entry-content h3 { margin: 22px 0 12px; color: var(--text); }
.entry-content img { margin: 12px 0; border-radius: 6px; }
.entry-content blockquote { border-right: 4px solid var(--primary); background: var(--bg-alt); padding: 12px 18px; margin: 16px 0; color: #333; border-radius: 6px; }
.entry-content a { text-decoration: underline; color: var(--primary); }
.post-tags { margin: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { background: var(--bg-alt); color: var(--text-light); font-size: 12px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 20px; }
.post-tags a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.share-box { display: flex; align-items: center; gap: 8px; margin: 20px 0; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 16px; }
.share-box span { font-size: 12.5px; color: var(--text-light); }
.share-box a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; border-radius: 50%; }
.share-box .tg { background: #0088cc; }
.share-box .wa { background: #25d366; }
.share-box .tw { background: #1da1f2; }
.share-box .fb { background: #1877f2; }
.share-box .cp { background: var(--text-light); }
.related-posts { margin-top: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.related-posts h3 { font-size: 16px; margin-bottom: 14px; color: var(--primary); display: inline-block; border-bottom: 2px solid var(--primary); padding-bottom: 6px; }

/* ---------- Sidebar ---------- */
.widget { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; box-shadow: var(--shadow); }
.irib-widget { padding: 0; overflow: hidden; }
.irib-widget .widget-title { background: var(--bg-alt); color: var(--primary-dark); padding: 12px 16px; font-size: 14px; margin: 0; border-bottom: 1px solid var(--border); position: relative; }
.irib-widget .widget-title::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.side-news-list { padding: 6px 0; margin: 0; list-style: none; }
.side-news-list li { padding: 10px 16px; border-bottom: 1px dashed var(--border); font-size: 13px; line-height: 1.6; }
.side-news-list li:last-child { border-bottom: none; }
.side-news-list a { color: var(--text); display: block; position: relative; padding-right: 14px; }
.side-news-list a::before { content: '■'; position: absolute; right: 0; top: 4px; font-size: 7px; color: var(--accent); }
.side-news-list a:hover { color: var(--accent); }
.widget-title { font-size: 15px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border); position: relative; }
.widget ul li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--primary); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 24px 0; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: 13px; border-radius: 6px; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Archive Header ---------- */
.archive-header { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 22px; box-shadow: var(--shadow); }
.archive-header h1 { font-size: 20px; color: var(--primary); }
.archive-header .desc { font-size: 12.5px; color: var(--text-light); margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: #111; color: #aaa; margin-top: 40px; padding-top: 32px; font-size: 13px; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 24px; }
.site-footer .widget { background: transparent; border: none; padding: 0; margin: 0; box-shadow: none; }
.site-footer .widget-title { color: #fff; border-bottom-color: #333; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #333; }
.site-footer .widget-title::before { display: none; }
.site-footer .widget ul li { border-bottom-color: #333; }
.site-footer .widget ul li a { color: #aaa; }
.site-footer .widget ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding: 18px 0; text-align: center; font-size: 12px; color: #777; }
.footer-bottom a { color: #fff; }

/* ---------- 404 & Empty ---------- */
.empty-state { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 50px 20px; text-align: center; box-shadow: var(--shadow); }
.empty-state h1 { font-size: 24px; margin-bottom: 10px; }
.empty-state p { color: var(--text-light); margin-bottom: 18px; }
.btn { display: inline-block; background: var(--primary); color: #fff; padding: 10px 22px; font-size: 14px; border-radius: 6px; }
.btn:hover { background: var(--accent); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .content-grid, .layout-irib { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-section-irib { grid-template-columns: 1fr; }
    .hero-img-wrap { min-height: 300px; }
    .hero-slider { min-height: 300px; }
    .block-content { grid-template-columns: 1fr; }
    .block-featured { border-left: none; padding-left: 0; border-bottom: 1px dashed var(--border); padding-bottom: 16px; }
    .block-grid { grid-template-columns: repeat(2, 1fr); }
    .block-list-bottom ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {    .main-nav .container { justify-content: space-between; }
    .main-nav .container > ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .main-nav .container > ul.open { display: flex; }
    .main-nav .container > ul > li > a {
        border-top: 1px solid rgba(255,255,255,.1);
        padding: 12px 18px;
    }
    .main-nav ul.sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        background: rgba(0,0,0,.15);
        padding: 0;
        pointer-events: auto;
    }
    .main-nav ul.sub-menu li a {
        color: #eef1f5;
        border-bottom-color: rgba(255,255,255,.08);
        padding-right: 36px;
    }
    .main-nav ul.sub-menu li a:hover {
        background: rgba(0,0,0,.2);
        color: #fff;
        padding-right: 36px;
    }
    .main-nav .container > ul > li.menu-item-has-children > a::after { display: none; }
    .menu-toggle { display: inline-block; background: transparent; border: none; color: #fff; font-size: 20px; padding: 8px; cursor: pointer; }
}
@media (max-width: 480px) {
    .news-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 16px; }
    .block-grid { grid-template-columns: 1fr; }
    .block-two .block-two-featured { grid-template-columns: 1fr; }
    .block-list-bottom ul { grid-template-columns: 1fr; }
}

/* ---------- Comments ---------- *//* ---------- Comments ---------- */
.comments-area {
    margin-top: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
}
.comments-title,
.comment-reply-title {
    font-size: 17px;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 20px;
    display: inline-block;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.comment-list .comment {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    list-style: none;
}
.comment-list > .comment:last-child { border-bottom: none; }
.comment-body { display: block; }
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.comment-author .avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
}
.comment-author .fn {
    font-style: normal;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}
.comment-author .says {
    font-size: 12px;
    color: var(--text-light);
    margin-right: 4px;
}
.comment-metadata {
    font-size: 11.5px;
    color: var(--text-light);
}
.comment-metadata a { color: var(--text-light); }
.comment-metadata a:hover { color: var(--primary); }
.comment-content {
    background: var(--bg-alt);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.9;
    color: #333;
    border-right: 3px solid var(--primary);
}
.comment-content p { margin-bottom: 10px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-content a { color: var(--primary); text-decoration: underline; }
.reply {
    margin-top: 8px;
    text-align: left;
}
.comment-reply-link {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 5px 14px;
    transition: all .2s;
}
.comment-reply-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---- پاسخ‌های تو در تو (Nested) ---- */
.comment-list .children {
    list-style: none;
    margin: 16px 40px 8px 0;
    padding: 12px 16px;
    border-right: 3px solid var(--primary);
    background: rgba(0, 46, 93, 0.03);
    border-radius: 6px;
}
.comment-list .children .children {
    margin-right: 32px;
    border-right-color: var(--accent);
    background: rgba(212, 0, 0, 0.03);
}
.comment-list .children .children .children {
    margin-right: 24px;
    border-right-color: var(--text-light);
    background: rgba(0, 0, 0, 0.03);
}
.comment-list .children .comment {
    border-bottom: 1px dashed var(--border);
    padding: 10px 0;
}
.comment-list .children .comment:last-child { border-bottom: none; }

/* ---- فرم دیدگاه ---- */
.comment-respond {
    margin-top: 24px;
    border-top: 1px solid var(--border);
    padding-top: 22px;
}
.comment-notes,
.logged-in-as {
    font-size: 12.5px;
    color: var(--text-light);
    margin-bottom: 14px;
}
.comment-form p { margin-bottom: 14px; }
.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font);
    font-size: 13.5px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-alt);
    color: var(--text);
    outline: none;
    transition: all .2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 46, 93, .08);
}
.comment-form textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.9;
}
.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
}
.comment-form .comment-form-cookies-consent input { width: auto; }
.comment-form .comment-form-cookies-consent label {
    margin: 0;
    font-weight: 400;
    font-size: 12.5px;
    color: var(--text-light);
}
.comment-form .form-submit { margin-bottom: 0; }
.comment-form .submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 11px 32px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
}
.comment-form .submit:hover { background: var(--accent); }
.comment-awaiting-moderation {
    display: block;
    font-size: 12px;
    color: var(--accent);
    margin-top: 6px;
}

/* ---------- Home Ad Banner ---------- */
.home-ad-banner {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    width: 100%;
    aspect-ratio: 1200 / 120;
    position: relative;
    display: block;
    line-height: 0;
}
.home-ad-banner > a,
.home-ad-banner > img {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    border-radius: inherit;
    overflow: hidden;
}
.home-ad-banner img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    border-radius: inherit;
    transition: transform .4s ease;
}
.home-ad-banner:hover img {
    transform: scale(1.03);
}

/* موبایل: نسبت لاغرتر نشود */
@media (max-width: 768px) {
    .home-ad-banner { aspect-ratio: 3 / 1; }
}
@media (max-width: 480px) {
    .home-ad-banner { aspect-ratio: 2 / 1; }
}


/* ============================================================
   Contact Form 7 — استایل هماهنگ با قالب وطن نیوز
   ============================================================ */

/* کانتینر فرم */
.wpcf7 {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
    margin: 20px 0;
    color: var(--text);
    font-family: var(--font);
}
.wpcf7 form { margin: 0; }
.wpcf7 form p { margin: 0 0 16px; }
.wpcf7 form p:last-child { margin-bottom: 0; }
.wpcf7 form br { display: none; }

/* برچسب‌ها */
.wpcf7 label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

/* کانتینر کنترل */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* همه ورودی‌های متنی، ایمیل، تلفن، آدرس، عددی و textarea */
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font);
    font-size: 13.5px;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    transition: all .2s;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    line-height: 1.7;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 46, 93, .08);
}

/* Textarea */
.wpcf7 textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.9;
}

/* Select */
.wpcf7 select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 36px;
}

/* فایل */
.wpcf7 input[type="file"] {
    width: 100%;
    padding: 10px;
    background: var(--bg-alt);
    border: 1px dashed var(--border);
    border-radius: 6px;
    font-family: var(--font);
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
}
.wpcf7 input[type="file"]:hover { border-color: var(--primary); }

/* Checkbox و Radio */
.wpcf7 .wpcf7-checkbox,
.wpcf7 .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-top: 4px;
}
.wpcf7 .wpcf7-list-item {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
}
.wpcf7 .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
    color: var(--text);
}
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

/* دکمه ارسال */
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"],
.wpcf7 .wpcf7-submit {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 11px 34px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
    min-width: 140px;
    line-height: 1.4;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}
.wpcf7 input[type="submit"]:disabled,
.wpcf7 .wpcf7-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.wpcf7 .wpcf7-spinner {
    margin: 0 10px;
    background-color: var(--primary);
    vertical-align: middle;
}

/* پیام‌های پاسخ فرم */
.wpcf7 form .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.8;
    border: 1px solid transparent;
    display: none;
}
.wpcf7 form .wpcf7-response-output:not(:empty) { display: block; }

/* موفق */
.wpcf7 form.sent .wpcf7-response-output {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #a5d6a7;
}

/* خطا / عدم پذیرش */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    background: #ffebee;
    color: #b71c1c;
    border-color: #ef9a9a;
}

/* اسپم */
.wpcf7 form.spam .wpcf7-response-output {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffb74d;
}

/* پیام اعتبارسنجی فیلد */
.wpcf7-not-valid-tip {
    display: block;
    font-size: 11.5px;
    color: var(--accent);
    margin-top: 5px;
    font-weight: 500;
}
.wpcf7 form .wpcf7-not-valid {
    border-color: var(--accent) !important;
    background: #fff5f5 !important;
}

/* پیام "در حال ارسال..." */
.wpcf7 form.submitting .wpcf7-submit {
    opacity: .7;
}

/* چیدمان دو ستونه اختیاری (اگر از کلاس wpcf7-row استفاده کنید) */
.wpcf7-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.wpcf7-row p { margin-bottom: 16px; }

/* رسپانسیو */
@media (max-width: 600px) {
    .wpcf7 { padding: 18px; }
    .wpcf7-row { grid-template-columns: 1fr; }
    .wpcf7 .wpcf7-checkbox,
    .wpcf7 .wpcf7-radio { flex-direction: column; align-items: flex-start; gap: 8px; }
    .wpcf7 input[type="submit"],
    .wpcf7 .wpcf7-submit { width: 100%; }
}