/*
Theme Name: ولایت (Velayat)
Theme URI: https://wordpress.org/themes/velayat/
Author: Velayat Theme
Description: تم وردپرس فارسی با طراحی ایرانی-اسلامی برای سایت‌های دینی، پژوهشی و وبلاگی. سریع، ریسپانسیو، سئوپسند و امن؛ دارای تاریخ شمسی و قمری، چند طرح رنگی، انتخاب فونت، چیدمان قابل تنظیم، نوار کناری چپ/راست، اسلایدر و دکمهٔ «بیشتر» برای مطالب، Open Graph و JSON-LD، متن‌های جاستیفای و تبدیل خودکار تصاویر به WebP.
Version: 2.0.1
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: velayat
Tags: rtl-language-support, accessibility-ready, blog, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, two-columns, three-columns, right-sidebar, left-sidebar, custom-background, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   ۱. متغیرها و پایه
   ========================================================================== */
:root {
        --c-primary: #0f5f4c; --c-primary-d: #073a2f; --c-accent: #c9a24b; --c-accent-d: #80620f;
        --c-bg: #f7f3e8; --c-surface: #fff; --c-text: #1e2924; --c-muted: #5d6b64; --c-border: #e3dcc7; --c-link: #0f5f4c;
        --f-body: Tahoma, "Segoe UI", system-ui, sans-serif; --f-head: var(--f-body); --f-ar: "Traditional Arabic", serif;
        --fw-h: 700; --fs-base: 17px; --post-fs: calc(var(--fs-base) + 1px);
        --maxw: 1480px; --r: 14px; --r-lg: 22px;
        --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px -14px rgba(0, 0, 0, .22);
        --ease: cubic-bezier(.2, .7, .2, 1);
        --pat: url(assets/img/pattern.svg); --star: url(assets/img/star.svg); --strip: url(assets/img/strip.svg);
}
:root[data-mode="dark"] {
        --c-bg: #0d1311; --c-surface: #151e1c; --c-text: #ece8dc; --c-muted: #a1aba6; --c-border: #27342f;
        --c-link: var(--c-accent); --c-accent-d: var(--c-accent);
        color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { direction: rtl; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
        margin: 0; font-family: var(--f-body); font-size: var(--fs-base); line-height: 2; color: var(--c-text);
        background: var(--c-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}

/* حالت پیش‌فرض: تمام‌عرض (هدر، بنرها و پاورقی تا لبه‌های صفحه) */
body.site-full { background: var(--c-bg); max-width: none; padding: 0; }

/* حالت جعبه‌ای: کل سایت در یک کادر با حاشیه و پس‌زمینه متفاوت بیرون از کادر */
body.site-boxed { background: #d8d4ca; max-width: var(--maxw); margin-inline: auto; box-shadow: 0 0 40px rgba(0, 0, 0, .12); }
body.site-boxed > * { max-width: var(--maxw); }
body.site-boxed .site-header,
body.site-boxed .topbar,
body.site-boxed .mainbar,
body.site-boxed .ornament-strip,
body.site-boxed .search-panel,
body.site-boxed .hero,
body.site-boxed .page-banner,
body.site-boxed .section,
body.site-boxed .hadith,
body.site-boxed .site-footer { width: 100%; max-width: var(--maxw); margin-inline: auto; }
body.site-boxed .hero { border-radius: 0; }
body.site-boxed .site-footer { border-radius: 0 0 var(--r-lg) var(--r-lg); }
body.site-boxed .site-header { border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: .3em; }
a:hover { color: var(--c-accent-d); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: var(--fw-h); line-height: 1.7; margin: 0 0 .6em; color: var(--c-text); text-wrap: balance; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-inline-start: 1.6em; }
hr { border: 0; height: 12px; margin: 2em 0; background: var(--c-accent); opacity: .7; -webkit-mask: var(--strip) repeat-x center / 24px 10px; mask: var(--strip) repeat-x center / 24px 10px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 1000; background: var(--c-primary-d); color: #fff; padding: .5rem 1rem; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: .5rem; color: #fff; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.i { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.22em; }

/* متن‌ها جاستیفای */
p, li, dd, blockquote, td, .entry-content, .card-excerpt, .widget { text-align: justify; text-justify: inter-word; }
.has-text-align-center, .has-text-align-center * { text-align: center; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }

.surface { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* دکمه‌ها */
.btn, .wp-block-button__link, input[type=submit], button.btn {
        display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: inherit; font-weight: 500; cursor: pointer;
        padding: .55em 1.5em; border-radius: 999px; border: 1.5px solid var(--c-primary); background: var(--c-primary); color: #fff; text-decoration: none; line-height: 1.8;
        transition: background .2s, color .2s, border-color .2s;
}
.btn:hover, .wp-block-button__link:hover, input[type=submit]:hover { background: var(--c-primary-d); border-color: var(--c-primary-d); color: #fff; }
.btn-accent { background: var(--c-accent); border-color: var(--c-accent); color: #1b1608; }
.btn-accent:hover { background: #e2bd68; border-color: #e2bd68; color: #1b1608; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* الگوی هندسی (ماسک) */
.pattern { position: absolute; inset: 0; pointer-events: none; background: var(--c-accent); opacity: .1; -webkit-mask: var(--pat) center top / 80px 80px repeat; mask: var(--pat) center top / 80px 80px repeat; }
.orn { display: inline-block; width: 1.05em; height: 1.05em; flex: none; background: var(--c-accent); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }

/* ==========================================================================
   ۲. سربرگ
   ========================================================================== */
/* تأکید صریح بر تمام‌عرض بودن — حتی اگر استایل دیگری از افزونه‌ها تداخل کند */
.site-header { position: relative; z-index: 50; background: var(--c-surface); width: 100%; max-width: none; }

/* حالت چسبان: فقط نوار منو (mainbar) چسبان می‌شود، نوار بالا (topbar) اسکرول می‌رود */
.site-header.is-sticky .mainbar { position: sticky; top: 0; z-index: 50; background: var(--c-surface); width: 100%; max-width: none; }
.admin-bar .site-header.is-sticky .mainbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.is-sticky .mainbar { top: 46px; } }

/* حالت چسبان کامل: کل سربرگ چسبان می‌شود */
.site-header.is-sticky.sticky-mode-full { position: sticky; top: 0; width: 100%; max-width: none; }
.site-header.is-sticky.sticky-mode-full .mainbar { position: static; }
.admin-bar .site-header.is-sticky.sticky-mode-full { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.is-sticky.sticky-mode-full { top: 46px; } }

.topbar { background: var(--c-primary-d); color: #e9efe9; font-size: .82rem; line-height: 1.6; width: 100%; max-width: none; }
.topbar-in { display: flex; align-items: center; gap: 1rem; min-height: 38px; padding-block: 5px; }
.dates { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.date-item { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.date-item .i { color: var(--c-accent); }
.topbar-note { flex: 1; margin: 0; text-align: center; color: #f3e3b7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-note a { color: inherit; }
.topbar-tools { margin-inline-start: auto; }
.mode-toggle { display: inline-flex; align-items: center; background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: inherit; border-radius: 999px; padding: .1em .9em; font: inherit; cursor: pointer; }
.mode-toggle:hover { background: rgba(255, 255, 255, .1); }
.mode-toggle span { display: inline-flex; align-items: center; gap: .4em; }
.when-dark { display: none !important; }
:root[data-mode="dark"] .when-dark { display: inline-flex !important; }
:root[data-mode="dark"] .when-light { display: none !important; }

.mainbar { background: var(--c-surface); border-bottom: 1px solid var(--c-border); width: 100%; max-width: none; }
.mainbar-in { display: flex; align-items: center; gap: 1.2rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--c-text); flex: none; }
.brand:hover { color: var(--c-text); }
.brand-mark { width: 46px; height: 46px; color: var(--c-primary); display: grid; place-items: center; }
:root[data-mode="dark"] .brand-mark, .scheme-dark .brand-mark { color: var(--c-accent); }
.brand-svg { width: 100%; height: 100%; }
.brand-logo { max-height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.5; }
.brand-name { font-family: var(--f-head); font-weight: var(--fw-h); font-size: 1.3rem; color: var(--c-primary); }
:root[data-mode="dark"] .brand-name, .scheme-dark .brand-name { color: var(--c-accent); }
.brand-tag { font-size: .78rem; color: var(--c-muted); }

.primary-nav { margin-inline-start: auto; }
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; gap: .15rem; }
.menu li { position: relative; margin: 0; }
.menu a { display: block; padding: .45em .9em; color: var(--c-text); text-decoration: none; font-weight: 500; font-size: .96rem; border-radius: 10px; line-height: 1.8; }
.menu a:hover, .menu .current-menu-item > a, .menu .current-menu-ancestor > a, .menu .current_page_item > a { color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 9%, transparent); }
:root[data-mode="dark"] .menu a:hover, :root[data-mode="dark"] .menu .current-menu-item > a, .scheme-dark .menu a:hover { color: var(--c-accent); }
.menu > li > .sub-menu { top: 100%; }
.menu .sub-menu { position: absolute; inset-inline-start: 0; min-width: 220px; background: var(--c-surface); border: 1px solid var(--c-border); border-top: 3px solid var(--c-accent); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 5; }
.menu .sub-menu .sub-menu { top: -.4rem; inset-inline-start: 100%; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu, .menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-toggle { display: none; }
.menu > li.menu-item-has-children > a { padding-inline-end: 1.6em; }
.menu > li.menu-item-has-children > a::after { content: ""; position: absolute; inset-inline-end: .6em; top: 50%; width: .42em; height: .42em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); opacity: .6; }

.head-actions { display: flex; align-items: center; gap: .3rem; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; background: transparent; border: 1px solid var(--c-border); border-radius: 50%; color: var(--c-text); cursor: pointer; font-size: 1.05rem; }
.icon-btn:hover { background: color-mix(in srgb, var(--c-primary) 9%, transparent); border-color: var(--c-primary); }
.nav-toggle { display: none; }
.nav-toggle .ic-close, .nav-open .nav-toggle .ic-open { display: none; }
.nav-open .nav-toggle .ic-close { display: block; }

.ornament-strip { height: 8px; background: var(--c-accent); -webkit-mask: var(--strip) repeat-x center / 24px 10px; mask: var(--strip) repeat-x center / 24px 10px; opacity: .85; width: 100%; max-width: none; }
.search-panel { background: var(--c-primary-d); padding: 1rem 0; width: 100%; max-width: none; }
.search-panel[hidden] { display: none; }

.search-form { position: relative; display: flex; max-width: 640px; margin-inline: auto; }
.search-field { width: 100%; font: inherit; padding: .65em 1.2em; padding-inline-end: 3.4em; border: 1.5px solid var(--c-border); border-radius: 999px; background: var(--c-surface); color: var(--c-text); line-height: 1.8; }
.search-field:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 35%, transparent); }
.search-submit { position: absolute; inset-block: 4px; inset-inline-end: 4px; width: 42px; border: 0; border-radius: 50%; background: var(--c-primary); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search-submit:hover { background: var(--c-primary-d); }

.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 999; transform-origin: right; transform: scaleX(0); background: var(--c-accent); }

/* ==========================================================================
   ۳. بخش اصلی صفحهٔ نخست (محراب و شمسه)
   ========================================================================== */
.hero { position: relative; color: #fff; background: radial-gradient(120% 90% at 85% 10%, var(--c-primary) 0%, var(--c-primary-d) 70%); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4.5rem, 8vw, 6.5rem); overflow: hidden; isolation: isolate; width: 100%; max-width: none; }
.hero.no-top-pad { padding-top: 0; }
.hero .pattern { opacity: .09; -webkit-mask-size: 96px 96px; mask-size: 96px 96px; }
.hero::after, .page-banner::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 22px; background: radial-gradient(circle at 50% 100%, var(--c-bg) 0 10.5px, transparent 11px) 0 0 / 44px 22px repeat-x; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.bismillah { font-family: var(--f-ar); font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--c-accent); margin: 0 0 .6rem; text-align: start; line-height: 2.2; }
.hero-title { font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.5; color: #fff; margin-bottom: .35em; }
.hero-lead { font-size: 1.08rem; color: #dfe9e4; max-width: 38em; }
.hero-search { margin: 1.4rem 0; }
.hero-search .search-form { margin-inline: 0; }
.hero-search .search-field { border-color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-art { display: grid; place-items: center; }
.arch { width: min(100%, 380px); aspect-ratio: 4 / 5; padding: 10px; border: 2px solid var(--c-accent); border-radius: 999px 999px 18px 18px; position: relative; }
.arch::before { content: ""; position: absolute; inset: -14px; border: 1px solid color-mix(in srgb, var(--c-accent) 45%, transparent); border-radius: 999px 999px 26px 26px; }
.arch-in { width: 100%; height: 100%; border-radius: 999px 999px 10px 10px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 65%); color: var(--c-accent); }
.arch-img { width: 100%; height: 100%; object-fit: cover; }
.shamseh-big { width: 88%; height: auto; animation: spin 140s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   ۴. بخش‌ها
   ========================================================================== */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; width: 100%; max-width: none; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.2rem; margin-bottom: 1.6rem; padding-bottom: .9rem; border-bottom: 1px solid var(--c-border); position: relative; }
.section-head::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -2px; width: 90px; height: 3px; background: var(--c-accent); border-radius: 3px; }
.section-title { display: flex; align-items: center; gap: .6rem; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; color: var(--c-primary); }
:root[data-mode="dark"] .section-title, .scheme-dark .section-title { color: var(--c-accent); }
.section-title.small { font-size: 1.3rem; margin-bottom: 1rem; }
.section-sub { margin: 0; color: var(--c-muted); flex-basis: 100%; text-align: start; }
.section-more { margin-inline-start: auto; font-weight: 500; }

/* معصومین */
.masoumin { background: color-mix(in srgb, var(--c-primary) 6%, var(--c-bg)); width: 100%; max-width: none; }
.m-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.m-grid li { margin: 0; }
.m-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; height: 100%; padding: 1.2rem .6rem 1rem; background: var(--c-surface); border: 1.5px solid var(--c-border); border-radius: 999px 999px 14px 14px; text-decoration: none; color: var(--c-text); line-height: 1.7; transition: background .25s var(--ease), border-color .25s, color .25s; }
.m-card:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.m-arch { width: 40px; height: 40px; color: var(--c-accent); margin-bottom: .4rem; }
.m-name { font-weight: 700; font-size: .93rem; font-family: var(--f-head); }
.m-sub { font-size: .8rem; opacity: .75; }
.m-card:hover .m-arch { color: #fff; }

/* موضوعات */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cat-grid li { margin: 0; }
.cat-card { position: relative; display: flex; flex-direction: column; gap: .1rem; padding: 1.1rem 1.3rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); text-decoration: none; color: var(--c-text); overflow: hidden; }
.cat-card::before { content: ""; position: absolute; inset-inline-end: -18px; top: -18px; width: 70px; height: 70px; background: var(--c-accent); opacity: .16; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; transition: transform .6s var(--ease); }
.cat-card:hover { border-color: var(--c-accent); }
.cat-card:hover::before { transform: rotate(45deg) scale(1.2); }
.cat-name { font-family: var(--f-head); font-weight: 700; color: var(--c-primary); position: relative; }
:root[data-mode="dark"] .cat-name, .scheme-dark .cat-name { color: var(--c-accent); }
.cat-count { font-size: .85rem; color: var(--c-muted); position: relative; }

/* حدیث */
.hadith { position: relative; background: var(--c-primary-d); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; overflow: hidden; text-align: center; width: 100%; max-width: none; }
.hadith .pattern { opacity: .08; }
.hadith .container { position: relative; }
.hadith-label { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem; color: var(--c-accent); font-weight: 700; }
.hadith-label::before, .hadith-label::after { content: ""; width: 36px; height: 1px; background: var(--c-accent); opacity: .7; }
.hadith-box { margin: 0 auto; max-width: 860px; padding: 0; border: 0; background: none; }
.hadith-ar { font-family: var(--f-ar); font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 2.3; color: #fff; text-align: center; margin-bottom: .6em; }
.hadith-fa { color: #d9e6e0; font-size: 1.05rem; text-align: center; text-align-last: center; }
.hadith-src { display: block; font-style: normal; color: var(--c-accent); font-size: .92rem; }

/* ==========================================================================
   ۵. کارت‌ها و شبکه
   ========================================================================== */
.posts-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.posts-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.posts-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: border-color .25s; position: relative; margin: 0; }
.card:hover { border-color: var(--c-accent); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in srgb, var(--c-primary) 10%, var(--c-surface)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--c-accent); }
.card-ph .shamseh { width: 46%; opacity: .85; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.3rem 1.2rem; }
.chip { align-self: flex-start; display: inline-block; font-size: .78rem; line-height: 1.6; padding: .1em .9em; margin-bottom: .55rem; border-radius: 999px; text-decoration: none; background: color-mix(in srgb, var(--c-accent) 22%, transparent); color: var(--c-accent-d); font-weight: 500; }
.chip:hover { background: var(--c-accent); color: #1b1608; }
.card-title { font-size: 1.12rem; margin: 0 0 .45rem; line-height: 1.6; font-family: var(--f-head); font-weight: var(--fw-h); }
.card-title a { color: var(--c-text); text-decoration: none; }
.card-title a:hover { color: var(--c-link); }
.card-excerpt { font-size: .93rem; color: var(--c-muted); margin-bottom: 1rem; }
.card-meta, .entry-meta { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; margin-top: auto; font-size: .82rem; color: var(--c-muted); }
.meta-item { display: inline-flex; align-items: center; gap: .4em; }
.has-lead > .card:first-child { grid-column: span 2; flex-direction: row; }
.has-lead > .card:first-child .card-media { flex: 1.15; aspect-ratio: auto; min-height: 280px; }
.has-lead > .card:first-child .card-body { flex: 1; justify-content: center; padding: 1.8rem; }
.has-lead > .card:first-child .card-title { font-size: 1.5rem; }
.has-lead > .card:first-child .card-meta { margin-top: .5rem; }

/* دکمهٔ «بیشتر» / «نمایش همه» */
.section-foot { display: flex; justify-content: center; margin-top: 2rem; }
.more-btn { display: inline-flex; align-items: center; gap: .5em; padding: .7em 2em; border-radius: 999px; background: var(--c-surface); border: 1.5px solid var(--c-primary); color: var(--c-primary); text-decoration: none; font-weight: 500; transition: background .2s, color .2s; }
.more-btn:hover { background: var(--c-primary); color: #fff; }
.more-btn .i { transition: transform .2s var(--ease); }
.more-btn:hover .i { transform: translateX(-3px); }

/* اسلایدر افقی مطالب */
.posts-slider-wrap { position: relative; }
.posts-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 22px; padding: 4px 4px 1.2rem; scroll-padding-inline: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.posts-slider::-webkit-scrollbar { display: none; }
.posts-slider > .card { scroll-snap-align: start; flex: 0 0 calc((100% - 44px) / 3); min-width: 0; }
.posts-slider.cols-2 > .card { flex: 0 0 calc((100% - 22px) / 2); }
.posts-slider.cols-4 > .card { flex: 0 0 calc((100% - 66px) / 4); }
.slider-nav { position: absolute; top: 38%; z-index: 5; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow); color: var(--c-primary); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.slider-nav:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.slider-nav:disabled { opacity: .35; cursor: default; }
.slider-nav:disabled:hover { background: var(--c-surface); color: var(--c-primary); border-color: var(--c-border); }
.slider-nav.prev { inset-inline-end: -8px; }
.slider-nav.next { inset-inline-start: -8px; }
:root[data-mode="dark"] .slider-nav, .scheme-dark .slider-nav { background: var(--c-surface); }

.empty { text-align: center; padding: 4rem 2rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.empty h2 { font-size: 1.6rem; color: var(--c-primary); }
.empty p { color: var(--c-muted); max-width: 50ch; margin-inline: auto; }
.empty .search-form { margin-top: 1.6rem; max-width: 560px; }

/* ==========================================================================
   ۶. صفحات داخلی
   ========================================================================== */
.page-banner { position: relative; color: #fff; background: linear-gradient(135deg, var(--c-primary-d), var(--c-primary)); padding: 2.4rem 0 3.4rem; overflow: hidden; isolation: isolate; margin-bottom: 2.2rem; width: 100%; max-width: none; }
.banner-in { position: relative; }
.banner-title { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.7; color: #fff; margin: .2rem 0 .5rem; }
.banner-sub { color: #dfe9e4; max-width: 46em; }
.banner-sub p { margin: 0; }
.banner-count { margin: .4rem 0 0; color: #f3e3b7; font-size: .9rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem; margin: 0; padding: 0; font-size: .84rem; }
.crumbs li { margin: 0; color: #cfe0d8; }
.crumbs li + li::before { content: "‹"; margin-inline: .5em; color: var(--c-accent); }
.crumbs a { color: #fff; text-decoration: none; opacity: .9; }
.crumbs a:hover { text-decoration: underline; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.chip-on-dark { background: var(--c-accent); color: #1b1608; margin: 0; }
.page-banner .entry-meta { color: #dfe9e4; margin-top: .4rem; }
.page-banner .meta-item .i { color: var(--c-accent); }

/* چیدمان‌های قابل تنظیم */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-bottom: 4rem; align-items: start; }
.layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 330px; }
.layout.has-sidebar-right { grid-template-columns: 330px minmax(0, 1fr); }
.layout.has-sidebar .main, .layout.has-sidebar-right .main { min-width: 0; }

/* ترتیب DOM: برای سایدبار راست، سایدبار اول چاپ می‌شود تا در RTL در سمت راست قرار گیرد */
.layout.has-sidebar-right > .sidebar { order: 1; }
.layout.has-sidebar-right > .main { order: 2; }
.layout.has-sidebar > .main { order: 1; }
.layout.has-sidebar > .sidebar { order: 2; }

.main { min-width: 0; }

.single { padding: clamp(1.2rem, 3vw, 2.4rem); }
.entry-thumb { margin: 0 0 1.4rem; border-radius: var(--r); overflow: hidden; }
.entry-thumb img { width: 100%; }
.entry-thumb figcaption { font-size: .85rem; color: var(--c-muted); padding: .5rem 0 0; text-align: center; }
.reader-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--c-border); }
.reader-tools button { display: inline-flex; align-items: center; gap: .35em; font: inherit; font-size: .84rem; padding: .15em .9em; border-radius: 999px; background: transparent; border: 1px solid var(--c-border); color: var(--c-text); cursor: pointer; }
.reader-tools button:hover { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 14%, transparent); }
.reader-tools button[data-share] { margin-inline-start: auto; }

/* متن مطلب — بدون محدودیت عرض، تمام عرض ستون اصلی را پر می‌کند */
.entry-content { font-size: var(--post-fs); line-height: 2.15; overflow-wrap: break-word; hyphens: none; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
/* پاراگراف‌های بلند خوانایی بهتری دارند با محدودیت معقول */
.entry-content > p, .entry-content > ul, .entry-content > ol { max-width: 72ch; }
/* عناصر display:flex (مثل h2) باید از max-width مستثنی باشند */
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.9em; text-align: start; max-width: none; }
.entry-content h2 { font-size: 1.5em; color: var(--c-primary); display: flex; align-items: center; gap: .55em; padding-bottom: .4em; border-bottom: 1px solid var(--c-border); }
:root[data-mode="dark"] .entry-content h2, .scheme-dark .entry-content h2 { color: var(--c-accent); }
.entry-content h2::before { content: ""; width: .75em; height: .75em; flex: none; background: var(--c-accent); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.entry-content h3 { font-size: 1.25em; }
.entry-content h3::before { content: "◆"; color: var(--c-accent); margin-inline-end: .5em; font-size: .7em; vertical-align: .12em; }
.entry-content h4 { font-size: 1.1em; color: var(--c-muted); }
.entry-content a { text-decoration: underline; }
.entry-content img, .entry-content .wp-block-image img { border-radius: 10px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { text-align: center; font-size: .85em; color: var(--c-muted); }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--c-accent-d); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .92em; margin-bottom: 1.4em; }
.entry-content th, .entry-content td { padding: .6em .9em; border: 1px solid var(--c-border); }
.entry-content th { background: color-mix(in srgb, var(--c-primary) 10%, transparent); text-align: start; }
.entry-content .wp-block-table, .entry-content .table-wrap { overflow-x: auto; }
.entry-content pre, .entry-content code { direction: ltr; text-align: left; font-size: .88em; background: color-mix(in srgb, var(--c-primary) 7%, transparent); border-radius: 8px; }
.entry-content code { padding: .1em .4em; }
.entry-content pre { padding: 1em; overflow-x: auto; line-height: 1.7; }
.entry-content iframe, .entry-content video { width: 100%; border-radius: 10px; }
.entry-content .wp-block-embed__wrapper { position: relative; }
.entry-content .alignwide { max-width: none; }
.entry-content .wp-block-separator { opacity: .8; }

/* نقل‌قول و حدیث */
blockquote { position: relative; margin: 1.8em 0; padding: 1.2em 1.6em 1.2em 1.4em; background: color-mix(in srgb, var(--c-accent) 11%, var(--c-surface)); border: 1px solid color-mix(in srgb, var(--c-accent) 40%, transparent); border-inline-start: 4px solid var(--c-accent); border-radius: var(--r); }
blockquote::before { content: "❝"; position: absolute; inset-inline-end: .5em; top: -.35em; font-size: 2.6em; line-height: 1; color: var(--c-accent); opacity: .55; }
blockquote p:last-child { margin-bottom: 0; }
blockquote cite { display: block; margin-top: .6em; font-style: normal; font-size: .88em; color: var(--c-accent-d); }
.wp-block-quote.is-style-hadith { text-align: center; padding: 1.6em 1.4em; border-inline-start-width: 1px; border-radius: 999px 999px var(--r) var(--r); }
.wp-block-quote.is-style-hadith p { text-align: center; text-align-last: center; }
.is-style-arabic, .arabic, .ayah { font-family: var(--f-ar); font-size: 1.5em; line-height: 2.4; direction: rtl; text-align: center !important; text-align-last: center; padding: .6em 1em; margin: 1.4em 0; border-block: 1px solid color-mix(in srgb, var(--c-accent) 55%, transparent); background: color-mix(in srgb, var(--c-accent) 8%, transparent); }
.is-style-ornate { padding: 1.6em; border: 2px double var(--c-accent); border-radius: var(--r-lg); background: color-mix(in srgb, var(--c-accent) 7%, var(--c-surface)); }
.page-links { margin-top: 1.5em; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px dashed var(--c-border); }
.tags a { font-size: .84rem; padding: .05em .9em; border: 1px solid var(--c-border); border-radius: 999px; color: var(--c-muted); text-decoration: none; }
.tags a:hover { border-color: var(--c-accent); color: var(--c-accent-d); }
.author-box { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.8rem; padding: 1.2rem; border-radius: var(--r); background: color-mix(in srgb, var(--c-primary) 6%, transparent); }
.author-avatar { border-radius: 50%; flex: none; border: 2px solid var(--c-accent); }
.author-box p { margin: .2rem 0 0; font-size: .92rem; color: var(--c-muted); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.6rem 0; }
.pn { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; border: 1px solid var(--c-border); border-radius: var(--r); background: var(--c-surface); text-decoration: none; color: var(--c-text); line-height: 1.8; }
.pn:hover { border-color: var(--c-accent); }
.pn small { color: var(--c-accent-d); }
.pn-next { text-align: start; grid-column: 2; }
.pn-prev { text-align: end; grid-column: 1; grid-row: 1; }
.pn:only-child { grid-column: 1 / -1; }
.related { margin: 2.4rem 0; }

/* دیدگاه‌ها */
.comments-area { padding: clamp(1.2rem, 3vw, 2.2rem); margin-top: 1.6rem; }
.comments-title, .comment-reply-title { font-size: 1.3rem; }
.comment-list, .comment-list ol { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { padding-inline-start: 1.5rem; margin-top: 1rem; border-inline-start: 2px solid var(--c-border); }
.comment-body { padding: 1rem 0; border-bottom: 1px dashed var(--c-border); font-size: .96rem; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; font-size: .85rem; color: var(--c-muted); }
.comment-author { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--c-muted); text-decoration: none; }
.reply a { font-size: .85rem; font-weight: 500; }
.comment-form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .2rem; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form textarea { width: 100%; font: inherit; padding: .6em 1em; background: var(--c-bg); color: var(--c-text); border: 1.5px solid var(--c-border); border-radius: 12px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--c-accent); }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: center; font-size: .88rem; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* نوار کناری و ابزارک‌ها */
.sidebar { display: flex; flex-direction: column; gap: 1.4rem; position: sticky; top: 100px; }
.widget { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.widget-title { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; color: var(--c-primary); padding-bottom: .6rem; margin-bottom: .8rem; border-bottom: 1px solid var(--c-border); }
.widget-title::before { content: ""; width: .8em; height: .8em; background: var(--c-accent); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
:root[data-mode="dark"] .widget-title, .scheme-dark .widget-title { color: var(--c-accent); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: .35em 0; border-bottom: 1px dashed var(--c-border); line-height: 1.8; }
.widget li:last-child { border: 0; }
.widget a { text-decoration: none; }
.widget .search-form { max-width: none; }

/* صفحه‌بندی */
.pagination { margin-top: 2.4rem; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0; padding: 0; }
.pagination li { margin: 0; }
.page-numbers { display: inline-flex; align-items: center; gap: .3em; min-width: 42px; height: 42px; justify-content: center; padding: 0 .9em; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-surface); color: var(--c-text); text-decoration: none; font-weight: 500; }
a.page-numbers:hover { border-color: var(--c-accent); }
.page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.page-numbers.dots { border: 0; background: none; }

.notfound { text-align: center; padding: 4rem 20px 5rem; }
.nf-art { position: relative; width: 220px; height: 220px; margin: 0 auto 1rem; color: var(--c-accent); display: grid; place-items: center; }
.nf-art .shamseh { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 140s linear infinite; }
.nf-art span { position: relative; font-family: var(--f-head); font-weight: 700; font-size: 3rem; color: var(--c-primary); }
.notfound .search-form { margin-block: 1.4rem; }

/* ==========================================================================
   ۷. پاورقی
   ========================================================================== */
.site-footer { position: relative; margin-top: 3rem; background: var(--c-primary-d); color: #d6e2dc; padding: 3.4rem 0 0; isolation: isolate; width: 100%; max-width: none; }
.site-footer::before { content: ""; position: absolute; inset: -11px 0 auto; height: 22px; background: radial-gradient(circle at 50% 0, var(--c-primary-d) 0 10.5px, transparent 11px) 0 0 / 44px 22px repeat-x; }
.site-footer .pattern { opacity: .07; }
.site-footer .container { position: relative; }
.salawat { font-family: var(--f-ar); font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 2.4; text-align: center; color: var(--c-accent); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.2rem; }
.footer-text { font-size: 1rem; line-height: 2; text-align: center; color: #d6e2dc; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-text p { margin: 0 0 .6em; text-align: center; }
.footer-text p:last-child { margin-bottom: 0; }
.footer-col p, .footer-col li { font-size: .93rem; }
.footer-title { font-size: 1.05rem; color: #fff; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.footer-title::before { content: ""; width: .8em; height: .8em; background: var(--c-accent); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.footer-list, .site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.footer-list li, .site-footer .widget li { padding: .2em 0; border: 0; }
.site-footer a { color: #d6e2dc; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.site-footer .widget { background: none; border: 0; padding: 0; box-shadow: none; }
.brand-foot { margin-bottom: .8rem; color: #fff; }
.brand-foot .brand-mark { color: var(--c-accent); width: 40px; height: 40px; }
.brand-foot .brand-name { color: #fff; font-size: 1.2rem; }
.brand-foot .brand-svg circle[fill="var(--c-surface)"] { fill: var(--c-primary-d); }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.social { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.social:hover { background: var(--c-accent); border-color: var(--c-accent); color: #1b1608 !important; }
.footer-bottom { margin-top: 2.4rem; padding: 1.1rem 0 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14); text-align: center; font-size: .85rem; color: #a9bdb4; }
.footer-bottom p { margin: 0; text-align: center; }
.to-top { position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 60; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--c-accent); background: var(--c-primary); color: #fff; cursor: pointer; box-shadow: var(--shadow); }
.to-top[hidden] { display: none; }
.toast { position: fixed; inset-inline: 0; bottom: 24px; margin-inline: auto; width: max-content; max-width: 90%; z-index: 1001; padding: .5em 1.4em; border-radius: 999px; background: var(--c-primary-d); color: #fff; border: 1px solid var(--c-accent); font-size: .92rem; }

/* ==========================================================================
   ۸. ریسپانسیو — دسکتاپ گسترده‌تر و بهینه‌تر
   ========================================================================== */
/* بزرگ‌تر از حداکثر عرض — مرکز صفحه */
@media (min-width: 1640px) {
        :root { --fs-base: 18px; }
        .container { padding-inline: 32px; }
}
/* دسکتاپ متوسط: ۴ ستون در پاورقی، ۳ ستون کارت */
@media (max-width: 1480px) {
        .m-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
        .m-name { font-size: .85rem; }
}
/* تبلت بزرگ: نوار کناری به زیر منتقل می‌شود */
@media (max-width: 1100px) {
        .m-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
        .layout.has-sidebar, .layout.has-sidebar-right { grid-template-columns: minmax(0, 1fr); }
        .layout.has-sidebar .main, .layout.has-sidebar-right .main { order: 1; }
        .layout.has-sidebar .sidebar, .layout.has-sidebar-right .sidebar { order: 2; position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .footer-grid { grid-template-columns: 1fr 1fr; }
        .posts-grid, .posts-grid.cols-2, .posts-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .has-lead > .card:first-child { grid-column: span 2; }
        .posts-slider > .card { flex: 0 0 calc((100% - 22px) / 2); }
        .slider-nav { display: none; }
        .hero-in { gap: 2rem; }
}
/* تبلت کوچک / موبایل بزرگ: منوی همبرگری */
@media (max-width: 960px) {
        .nav-toggle { display: grid; }
        .head-actions { margin-inline-start: auto; }
        .primary-nav { position: fixed; inset-block: 0; right: 0; width: min(86vw, 340px); z-index: 90; background: var(--c-surface); padding: 5rem 1rem 2rem; overflow-y: auto; transform: translateX(105%); transition: transform .3s var(--ease); box-shadow: -10px 0 40px rgba(0, 0, 0, .25); border-inline-start: 3px solid var(--c-accent); visibility: hidden; margin: 0; }
        .nav-open .primary-nav { transform: none; visibility: visible; }
        .nav-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .5); }
        .nav-overlay[hidden] { display: none; }
        .nav-open .head-actions { position: relative; z-index: 100; }
        .menu { flex-direction: column; align-items: stretch; gap: 0; }
        .menu a { padding: .7em .8em; border-radius: 8px; }
        .menu > li { border-bottom: 1px dashed var(--c-border); }
        .menu > li.menu-item-has-children > a::after { display: none; }
        .menu .sub-menu, .menu .sub-menu .sub-menu { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-inline-start: 2px solid var(--c-accent); border-radius: 0; margin-inline-start: .8rem; padding: 0 .4rem; display: none; background: transparent; }
        .menu li.is-open > .sub-menu { display: block; }
        .menu li:hover > .sub-menu { display: none; }
        .menu li.is-open:hover > .sub-menu { display: block; }
        .menu li.menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
        .menu li.menu-item-has-children > a { flex: 1; }
        .menu li.menu-item-has-children > .sub-menu { flex-basis: 100%; }
        .sub-toggle { display: grid; place-items: center; width: 38px; height: 38px; background: transparent; border: 0; color: var(--c-text); cursor: pointer; }
        .sub-toggle .i { transition: transform .2s; }
        .is-open > .sub-toggle .i { transform: rotate(180deg); }
        .hero-in { grid-template-columns: 1fr; gap: 2rem; }
        .hero-art { order: -1; }
        .arch { width: min(62vw, 240px); }
        .topbar-note { display: none; }
        .layout.has-sidebar .sidebar, .layout.has-sidebar-right .sidebar { grid-template-columns: minmax(0, 1fr); }
}
/* موبایل */
@media (max-width: 720px) {
        :root { --fs-base: 16px; }
        .m-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .posts-grid, .posts-grid.cols-2, .posts-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
        .has-lead > .card:first-child { grid-column: auto; flex-direction: column; }
        .has-lead > .card:first-child .card-media { aspect-ratio: 16 / 10; min-height: 0; }
        .has-lead > .card:first-child .card-body { padding: 1.1rem 1.3rem 1.2rem; }
        .has-lead > .card:first-child .card-title { font-size: 1.15rem; }
        .footer-grid { grid-template-columns: minmax(0, 1fr); }
        .post-nav { grid-template-columns: 1fr; }
        .pn-next, .pn-prev { grid-column: auto; grid-row: auto; text-align: start; }
        .container { padding-inline: 16px; }
        .mainbar-in { min-height: 68px; }
        .brand-tag { display: none; }
        .topbar { font-size: .76rem; }
        .mode-toggle span span { display: none; }
        .single, .comments-area { border-radius: var(--r); }
        .posts-slider > .card { flex: 0 0 88%; }
        .slider-nav { display: none; }
}
@media (max-width: 420px) { .m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-actions .btn { flex: 1 1 100%; } }

@media (prefers-reduced-motion: reduce) {
        *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
        .site-header, .site-footer, .sidebar, .reader-tools, .comments-area, .related, .post-nav, .to-top, .progress, .slider-nav { display: none !important; }
        body { background: #fff; color: #000; } .page-banner { background: none; color: #000; padding: 0; } .banner-title, .crumbs { color: #000; }
}
