/*
Theme Name: بیان مبین
Theme URI: https://example.com/bayan-mobin
Author: تیم فنی بیان مبین
Description: قالب اختصاصی مجله‌ی هوشمند «بیان مبین» — معاونت تبلیغ حوزه استان اصفهان. راست‌چین، ریسپانسیو، با فونت وزیرمتن، اسلایدر، دکه مجله، دکه چندرسانه‌ای، آرشیو، فرم اشتراک (ایمیل/موبایل)، فرم ارسال محتوا و فرم تماس.
Version: 1.0.2
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bayan-mobin
Tags: rtl-language-support, news, magazine, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ========== فونت ========== */
@font-face {
	font-family: "Vazirmatn";
	src: url("assets/fonts/Vazirmatn.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ========== متغیرها ========== */
:root {
	--navy: #0c2340;
	--navy-2: #163a66;
	--maroon: #6b1b30;
	--maroon-2: #8a2540;
	--bg: #f6f4f1;
	--card: #fff;
	--text: #1c2433;
	--muted: #667085;
	--line: #e6e1da;
	--radius: 14px;
	--shadow: 0 6px 24px rgba(12, 35, 64, .08);
	--w: 1200px;
}

/* ========== پایه ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.95 "Vazirmatn", Tahoma, sans-serif;
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--navy-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--maroon); }
h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .6em; color: var(--navy); font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; }
.container { width: min(100% - 32px, var(--w)); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--maroon-2); outline-offset: 2px; }
.ltr { direction: ltr; text-align: left; }
.empty { color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
[hidden] { display: none !important; }

/* ========== دکمه‌ها ========== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .65em 1.4em; border-radius: 999px; border: 2px solid transparent;
	font: 700 .95rem/1.4 inherit; font-family: inherit; cursor: pointer; transition: .2s; text-decoration: none;
}
.btn-sm { padding: .35em 1em; font-size: .85rem; }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-2); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg); color: var(--maroon); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ========== نوار بالا ========== */
.topbar { background: #081830; color: #c9d4e4; font-size: .82rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; flex-wrap: wrap; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.social a { color: inherit; }
.social a:hover { color: #fff; text-decoration: underline; }

/* ========== هدر ========== */
.site-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; position: relative; z-index: 50; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand a { color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -.5px; }
.brand-name::after { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--maroon-2); margin-inline-start: 8px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.brand-tag { font-size: .85rem; opacity: .8; font-weight: 400; }
.custom-logo { max-height: 64px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.main-nav { background: var(--maroon); border-top: 1px solid rgba(255, 255, 255, .1); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu a { display: block; padding: 12px 15px; color: #fff; font-weight: 600; font-size: .95rem; }
.menu > li > a:hover, .menu > li.current-menu-item > a, .menu > li.current-cat > a, .menu > li.current-menu-ancestor > a { background: rgba(0, 0, 0, .18); color: #fff; }
.menu .sub-menu { list-style: none; margin: 0; padding: 6px; position: absolute; inset-inline-start: 0; top: 100%; min-width: 200px; background: #fff; border-radius: 0 0 12px 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; z-index: 20; }
.menu .sub-menu a { color: var(--text); padding: 9px 14px; border-radius: 8px; font-weight: 500; }
.menu .sub-menu a:hover { background: var(--bg); color: var(--maroon); }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu-item-has-children > a::after { content: "▾"; margin-inline-start: 6px; font-size: .7em; opacity: .8; }
.sub-toggle { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 10px; background: transparent; cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; inset-inline: 11px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.nav-toggle span:nth-child(1) { top: 14px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* جستجو */
.search-form { display: flex; align-items: center; background: #fff; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); max-width: 100%; }
.search-form input[type=search] { border: 0; background: transparent; padding: 8px 16px; font: inherit; font-size: .9rem; min-width: 0; flex: 1; color: var(--text); outline: 0; }
.search-form button { border: 0; background: transparent; color: var(--maroon); padding: 0 14px; height: 38px; cursor: pointer; }
.main-nav .search-form { width: 230px; margin-block: 6px; border-color: transparent; }

/* ========== اسلایدر و قهرمان ========== */
.hero { padding-top: 24px; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.hero-grid.no-side { grid-template-columns: 1fr; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); aspect-ratio: 16 / 9; min-height: 280px; box-shadow: var(--shadow); }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-img, .slide-img img, .slide-img .ph { display: block; width: 100%; height: 100%; }
.slide-img img { object-fit: cover; }
.slide-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 60px 28px 52px; background: linear-gradient(to top, rgba(8, 24, 48, .95), rgba(8, 24, 48, .55) 60%, transparent); color: #fff; }
.slide-cap h2 { color: #fff; font-size: clamp(1.15rem, 2.6vw, 1.9rem); margin: .3em 0; }
.slide-cap h2 a { color: #fff; }
.slide-cap p { opacity: .9; margin: 0 0 .4em; max-width: 62ch; font-size: .95rem; }
.slide-cap .meta { color: #cdd6e6; }
.s-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 3; }
.s-btn:hover { background: #fff; }
.s-prev { inset-inline-end: 12px; } .s-next { inset-inline-start: 12px; }
.s-dots { position: absolute; inset-inline: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.s-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; }
.s-dots button.is-active { background: #fff; width: 26px; border-radius: 6px; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.side-item { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; background: var(--card); border-radius: var(--radius); padding: 16px 18px; border-inline-start: 5px solid var(--maroon); box-shadow: var(--shadow); color: var(--text); }
.side-item:nth-child(2) { border-color: var(--navy-2); }
.side-item:nth-child(3) { border-color: var(--maroon-2); }
.side-item:hover { transform: translateY(-2px); color: var(--maroon); }
.side-item { transition: transform .2s; }
.side-label { color: var(--maroon); font-weight: 800; font-size: .8rem; }
.side-item strong { font-size: 1rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ========== بخش‌ها ========== */
.section { padding-block: 40px 8px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.sec-title { margin: 0; font-size: 1.45rem; position: relative; padding-inline-start: 18px; }
.sec-title::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 1.2em; background: var(--maroon); border-radius: 3px; }
.sec-more { font-weight: 700; font-size: .9rem; color: var(--maroon); white-space: nowrap; }
.sec-more:hover { color: var(--navy); }

/* گریدها */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* کارت */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(12, 35, 64, .06); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 1.05rem; margin: 0; }
.card-title a { color: var(--navy); }
.card-title a:hover { color: var(--maroon); }
.card-excerpt { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.9; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .8rem; margin-top: auto; }
.meta span + span::before { content: "•"; margin-inline-end: 14px; opacity: .5; }
.badge { align-self: flex-start; display: inline-block; background: rgba(107, 27, 48, .1); color: var(--maroon); font-size: .75rem; font-weight: 800; padding: 1px 12px; border-radius: 999px; line-height: 1.9; }
a.badge:hover { background: var(--maroon); color: #fff; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; background: linear-gradient(135deg, var(--navy), var(--maroon)); }
.ph b { color: rgba(255, 255, 255, .25); font-size: 4rem; font-weight: 900; }

/* دکه مجله */
.stand { background: linear-gradient(160deg, var(--navy) 0%, #0a1c34 100%); margin-top: 40px; padding-block: 44px 52px; }
.stand .sec-title { color: #fff; }
.stand .sec-title::before { background: var(--maroon-2); }
.stand .sec-more { color: #f0c3cf; }
.stand .empty { background: rgba(255, 255, 255, .06); color: #c9d4e4; border-color: rgba(255, 255, 255, .2); }
.issue { text-align: center; }
.issue-cover { position: relative; display: block; aspect-ratio: 3 / 4.1; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); transition: transform .3s; background: var(--navy-2); }
.issue-cover:hover { transform: translateY(-6px) rotate(-.6deg); }
.issue-cover img { width: 100%; height: 100%; object-fit: cover; }
.issue-no { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--maroon); color: #fff; font-size: .75rem; font-weight: 800; padding: 2px 12px; border-radius: 999px; }
.issue-info { padding-top: 14px; }
.issue-title { font-size: 1rem; margin: 0 0 2px; }
.issue-title a { color: #fff; }
.issue-label { color: #b9c5d8; font-size: .85rem; margin: 0 0 10px; }
.issue-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.stand .btn-outline { border-color: rgba(255, 255, 255, .5); color: #fff; }
.stand .btn-outline:hover { background: #fff; color: var(--navy); }
/* کارت شماره در صفحات روشن */
.page-wrap .issue-title a { color: var(--navy); }
.page-wrap .issue-label { color: var(--muted); }
.page-wrap .issue-cover { box-shadow: var(--shadow); }
.page-wrap .issue .btn-outline { border-color: var(--navy); color: var(--navy); }
.page-wrap .issue .btn-outline:hover { background: var(--navy); color: #fff; }

/* نوار اشتراک */
.sub-band { background: var(--maroon); color: #fff; padding-block: 34px; margin-top: 0; }
.sub-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: center; }
.sub-text h2 { color: #fff; margin-bottom: .2em; font-size: 1.5rem; }
.sub-text p { margin: 0; opacity: .9; }
.sub-band .bm-form .field label { color: #fff; opacity: .9; font-size: .82rem; }
.sub-band .bm-form .check { color: #fff; opacity: .9; }
.sub-band .btn-primary { background: #fff; color: var(--maroon); }
.sub-band .btn-primary:hover { background: var(--bg); }
.sub-band .bm-notice { color: var(--text); }

/* چندرسانه‌ای */
.media-card .play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(107, 27, 48, .9); color: #fff; display: grid; place-items: center; font-size: 1.2rem; padding-inline-start: 3px; transition: transform .25s; }
.media-card:hover .play { transform: scale(1.12); }
.media-card .dur { position: absolute; bottom: 8px; inset-inline-start: 8px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .75rem; padding: 0 8px; border-radius: 6px; }

/* آرشیو (صفحه اصلی) */
.archive-card { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.arch-col h3 { font-size: 1rem; color: var(--maroon); margin-bottom: .7em; }
.arch-list { list-style: none; margin: 0; padding: 0; }
.arch-list li + li { border-top: 1px dashed var(--line); }
.arch-list a { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--text); }
.arch-list b { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.arch-list a:hover span { color: var(--maroon); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-block; padding: 3px 16px; border-radius: 999px; border: 1px solid var(--navy); color: var(--navy); font-size: .88rem; font-weight: 600; background: transparent; }
.chip:hover, .chip.is-active { background: var(--navy); color: #fff; }
.chip-alt { border-color: var(--maroon); color: var(--maroon); }
.chip-alt:hover { background: var(--maroon); color: #fff; }
.chips.filter { margin-block: 6px 26px; }

/* ========== صفحات داخلی ========== */
.page-wrap { padding-block: 22px 56px; }
.page-head { margin: 8px 0 24px; padding-bottom: 16px; border-bottom: 2px solid var(--line); }
.page-head h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0; }
.lead { color: var(--muted); font-size: 1.05rem; margin: .5em 0 0; }
.crumbs ol { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .82rem; color: var(--muted); }
.crumbs li + li::before { content: "‹"; margin-inline-end: 4px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--maroon); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 34px; align-items: start; }
.sidebar { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.widget-title { font-size: 1rem; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--maroon); display: inline-block; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.widget li:last-child { border: 0; }
.widget-cta { background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; border: 0; }
.widget-cta .widget-title { color: #fff; border-color: var(--maroon-2); }

/* مطلب */
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 38px); }
.article-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: .3em 0 .5em; }
.kicker { color: var(--maroon); font-weight: 800; font-size: .9rem; margin: 0; }
.article-head .meta { margin: 0 0 18px; }
.article-figure { margin: 0 0 24px; }
.article-figure img { width: 100%; border-radius: 12px; }
.article-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.entry { font-size: 1.06rem; line-height: 2.2; }
.entry > * + * { margin-top: 1.1em; }
.entry h2, .entry h3 { margin-top: 1.6em; }
.entry a { color: var(--maroon); text-decoration: underline; text-underline-offset: 4px; }
.entry blockquote { margin: 1.6em 0; padding: 14px 22px; border-inline-start: 5px solid var(--maroon); background: var(--bg); border-radius: 0 12px 12px 0; color: var(--navy); font-weight: 600; }
.entry img { border-radius: 10px; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 12px; }
.entry .wp-caption, .entry figure { max-width: 100%; }
.tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .9rem; }
.tags a { background: var(--bg); border-radius: 999px; padding: 0 12px; color: var(--navy); }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 26px 0; padding-block: 16px; border-block: 1px solid var(--line); font-size: .9rem; }
.share a, .share button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 2px 16px; font: inherit; font-size: .85rem; color: var(--navy); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.author-box { display: flex; gap: 16px; background: var(--bg); border-radius: 12px; padding: 18px; align-items: center; }
.author-box img { border-radius: 50%; }
.author-box p { margin: 0; color: var(--muted); font-size: .9rem; }
.related { margin-top: 40px; }
.related .sec-title { margin-bottom: 20px; }
.nav-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; }
.post-navigation a { display: block; padding: 10px 16px; background: var(--bg); border-radius: 10px; font-weight: 600; font-size: .9rem; }
.pagination, .nav-links .page-numbers { margin-top: 32px; }
.pagination .nav-links, ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; }
.page-numbers { display: inline-block; min-width: 40px; text-align: center; padding: 4px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; margin-top: 0; }
.page-numbers.current, a.page-numbers:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* شماره‌ی مجله (تک) */
.issue-single { display: grid; grid-template-columns: 300px 1fr; gap: 36px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.is-cover { aspect-ratio: 3 / 4.1; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.is-cover img { width: 100%; height: 100%; object-fit: cover; }
.issue-single h1 { margin: .3em 0 .5em; }
.spec { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.spec li { display: flex; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.spec span { color: var(--muted); min-width: 110px; }
.issue-single .issue-actions { justify-content: flex-start; margin-top: 20px; }
.player { margin-bottom: 24px; border-radius: 12px; overflow: hidden; background: #000; }
.player iframe, .player video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.player audio, .player .wp-audio-shortcode { width: 100%; display: block; }
.player:has(audio) { background: var(--bg); padding: 18px; }

/* ========== فرم‌ها ========== */
.form-page { display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: start; margin-top: 10px; }
.form-page.form-wide { grid-template-columns: 1fr 1.6fr; }
.form-side h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.form-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3.5vw, 32px); box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 18px 0; }
.ticks li { position: relative; padding-inline-start: 30px; margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--maroon); color: #fff; font-size: .75rem; display: grid; place-items: center; line-height: 1; }
.contact-list { list-style: none; padding: 0; margin: 18px 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.contact-list span { display: inline-block; min-width: 70px; color: var(--maroon); font-weight: 800; }
.map { margin-top: 18px; border-radius: 12px; overflow: hidden; }
.map iframe { width: 100%; height: 280px; border: 0; }

.bm-form { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.is-compact { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-weight: 700; font-size: .9rem; color: var(--navy); }
.req { color: var(--maroon); }
.field input, .field select, .field textarea, .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 14px; font: inherit; font-size: .95rem; color: var(--text); transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus, .comment-form textarea:focus { border-color: var(--navy-2); outline: 0; box-shadow: 0 0 0 3px rgba(22, 58, 102, .15); }
.field input[type=file] { padding: 8px; background: var(--bg); }
.field textarea { resize: vertical; min-height: 120px; }
.ltr { direction: ltr; text-align: left; }
.ltr::placeholder { text-align: left; }
.hint, small.hint { color: var(--muted); font-size: .78rem; line-height: 1.7; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; cursor: pointer; line-height: 1.8; }
.check input { margin-top: 7px; accent-color: var(--maroon); width: 17px; height: 17px; flex: none; }
.bm-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bm-notice { border-radius: 10px; padding: 12px 16px; font-size: .92rem; font-weight: 600; }
.bm-notice[hidden] { display: none; }
.bm-notice.is-ok { background: #e6f4ea; color: #14532d; border: 1px solid #a7d7b4; }
.bm-notice.is-error { background: #fdecec; color: #7f1d1d; border: 1px solid #f1b3b3; }
.sub-band .bm-form .btn { align-self: flex-start; }

/* ========== نظرات ========== */
.comments { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: 24px; }
.comment-body { background: var(--bg); border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; }
.comment-meta { font-size: .82rem; color: var(--muted); }
.comment-author img { border-radius: 50%; float: right; margin-inline-start: 12px; }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 4px; font-size: .9rem; }

/* ========== ۴۰۴ ========== */
.not-found { text-align: center; }
.nf-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; color: var(--maroon); line-height: 1.1; margin: 0; opacity: .85; }
.search-inline { max-width: 460px; margin: 16px auto 22px; }
.page-head .search-inline { margin-inline: 0; }

/* ========== فوتر ========== */
.site-footer { background: #081830; color: #c1cde0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-block: 44px 28px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.f-brand { color: #fff; font-size: 1.6rem; font-weight: 900; margin-bottom: .2em; }
.f-about { opacity: .85; font-size: .92rem; }
.site-footer a { color: #c1cde0; }
.site-footer a:hover { color: #fff; }
.f-menu, .f-contact { list-style: none; padding: 0; margin: 0; }
.f-menu li, .f-contact li { padding: 4px 0; }
.site-footer .social { margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 14px; font-size: .82rem; text-align: center; opacity: .8; }
.to-top { position: fixed; bottom: 20px; inset-inline-start: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--maroon); color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow); z-index: 40; }
.to-top:hover { background: var(--maroon-2); }

/* ========== ریسپانسیو ========== */
@media (max-width: 1024px) {
	.grid-4 { grid-template-columns: repeat(3, 1fr); }
	.layout { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.hero-grid { grid-template-columns: 1fr; }
	.hero-side { flex-direction: row; }
	.side-item { flex: 1; }
	.archive-card { grid-template-columns: 1fr 1fr; }
	.arch-search { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.header-actions .btn { display: none; }
	.main-nav { display: none; border-top: 0; }
	.main-nav.is-open { display: block; }
	.nav-in { flex-direction: column; align-items: stretch; padding-block: 8px; gap: 8px; }
	.menu { flex-direction: column; }
	.menu a { padding: 12px 6px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.menu-item-has-children > a::after { display: none; }
	.menu > li { display: flex; flex-wrap: wrap; align-items: center; }
	.menu > li > a { flex: 1; }
	.sub-toggle { display: block; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; position: relative; }
	.sub-toggle::before { content: "▾"; color: #fff; font-size: 1rem; }
	.menu li.is-open > .sub-toggle::before { content: "▴"; }
	.menu .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; width: 100%; background: rgba(0, 0, 0, .18); box-shadow: none; border-radius: 8px; }
	.menu li.is-open > .sub-menu { display: block; }
	.menu .sub-menu a { color: #fff; border-bottom: 0; }
	.menu .sub-menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
	.main-nav .search-form { width: 100%; }
	.grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
	.sub-in, .form-page, .form-page.form-wide { grid-template-columns: 1fr; }
	.issue-single { grid-template-columns: 1fr; }
	.is-cover { max-width: 260px; margin-inline: auto; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid .f-col:first-child { grid-column: 1 / -1; }
	.topbar .social { display: none; }
}
@media (max-width: 600px) {
	body { font-size: 15.5px; }
	.grid-2, .grid-3 { grid-template-columns: 1fr; }
	.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.form-grid, .form-grid.is-compact { grid-template-columns: 1fr; }
	.hero-side { flex-direction: column; }
	.slider { aspect-ratio: 4 / 3.4; }
	.slide-cap { padding: 40px 16px 44px; }
	.slide-cap p { display: none; }
	.s-btn { display: none; }
	.archive-card { grid-template-columns: 1fr; padding: 18px; }
	.footer-grid { grid-template-columns: 1fr; }
	.sec-title { font-size: 1.2rem; }
	.nav-links { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.topbar, .site-header, .site-footer, .sidebar, .share, .to-top, .related, .comments { display: none !important; }
	body { background: #fff; }
	.article { border: 0; padding: 0; }
}

/* کنتراست برچسب روی اسلایدر */
.slide-cap .badge { background: #fff; color: var(--maroon); }
.slide-cap a.badge:hover { background: var(--maroon-2); color: #fff; }
