/*
Theme Name: بلاگ مشهد رزرو
Theme URI: https://mashhadreserve.com/blog
Author: مشهد رزرو
Description: قالب اختصاصی بلاگ مشهد رزرو — هم‌سبک و هم‌رنگ با سایت اصلی (طلایی/زغالی، فونت ایران‌سنس).
Version: 1.3.1
Text Domain: mrblog
*/

/* ایران‌سنس (FaNum — ارقام فارسی)، هم‌سان با سایت اصلی و پنل. پنج وزن استاتیک با بازه‌ی font-weight
   پیوسته: ۴۰۰–۴۹۹ معمولی، ۵۰۰–۵۹۹ مدیوم، ۶۰۰ به بالا بولد (بدون bold مصنوعی). */
@font-face {
  font-family: "IRANSans";
  src: url("assets/fonts/iransans-fanum-ultralight.woff2") format("woff2"),
       url("assets/fonts/iransans-fanum-ultralight.woff") format("woff");
  font-style: normal;
  font-weight: 100 299;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src: url("assets/fonts/iransans-fanum-light.woff2") format("woff2"),
       url("assets/fonts/iransans-fanum-light.woff") format("woff");
  font-style: normal;
  font-weight: 300 399;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src: url("assets/fonts/iransans-fanum-regular.woff2") format("woff2"),
       url("assets/fonts/iransans-fanum-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400 499;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src: url("assets/fonts/iransans-fanum-medium.woff2") format("woff2"),
       url("assets/fonts/iransans-fanum-medium.woff") format("woff");
  font-style: normal;
  font-weight: 500 599;
  font-display: swap;
}
@font-face {
  font-family: "IRANSans";
  src: url("assets/fonts/iransans-fanum-bold.woff2") format("woff2"),
       url("assets/fonts/iransans-fanum-bold.woff") format("woff");
  font-style: normal;
  font-weight: 600 1000;
  font-display: swap;
}

:root {
  --charcoal: #232421;
  --charcoal-2: #2b2c29;
  --gold: #d7ab5a;
  --gold-light: #f0c961;
  --gold-soft: #f7dea4;
  --gold-dark: #b98528;
  --ink: #34342f;
  --muted: #77746d;
  --paper: #fbfaf7;
  --line: #e8e3da;
  --container: 1180px;
  --shadow: 0 18px 55px rgba(40, 36, 29, .12), 0 2px 8px rgba(40, 36, 29, .08);
  --shadow-lift: 0 24px 60px rgba(35, 32, 27, .16), 0 3px 10px rgba(35, 32, 27, .05);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: "IRANSans", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

@keyframes mrb-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== هدر/فوتر واقعی سایت اصلی (mrblog_get_site_chrome → site/chrome.php) =====
   .site-header خودِ سایت position:absolute و شفاف است (روی هیروی هر صفحه سوار می‌شود؛
   نگاه کن site/assets/styles.css و site/assets/inner-pages.css .inner-hero) — این‌جا
   هیرویی در کار نیست، پس یک باند تیره‌ی طلایی/زغالی هم‌رنگ (همون گرادیانِ .inner-hero
   سایت، فقط کوتاه‌تر) زیرش می‌گذاریم: هم پس‌زمینه برای متن سفید هدر فراهم می‌کند هم
   containing block برای موقعیت absolute هدر می‌سازد. اندازه‌اش از همون متغیرهای واقعی
   سایت (--header-top/--header-height، از استایل‌شیت فچ‌شده) می‌آید، نه عدد هاردکد جدا،
   تا اگر ارتفاع هدر روی سایت عوض شد این‌جا هم خودکار هماهنگ بماند. */
.mrb-site-header-band {
  position: relative;
  min-height: calc(var(--header-top, 10px) + var(--header-height, 72px) + 22px);
  background:
    radial-gradient(circle at 14% 30%, rgba(215, 171, 90, .16), transparent 32%),
    radial-gradient(circle at 84% 76%, rgba(215, 171, 90, .11), transparent 27%),
    linear-gradient(135deg, #181917, #2d2e2a 64%, #20211e);
}

/* ===== هدر/فوتر دستیِ قدیمی (جایگزین شده با بالا) — CSSاش بی‌ضرر می‌ماند، چیزی دیگر
   این کلاس‌ها را رندر نمی‌کند؛ فقط برای مرجع/rollback سریع پاک نشده. ===== */
/* ===== Header ===== */
.mrb-header-spacer { height: 0; }

.mrb-header {
  position: fixed;
  top: 12px;
  right: 0;
  left: 0;
  z-index: 200;
}

.mrb-header-inner {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 14px 8px 20px;
  color: #fff;
  background: rgba(24, 25, 23, .96);
  border: 1px solid rgba(231, 185, 103, .3);
  border-radius: 22px;
  box-shadow: 0 15px 45px rgba(15, 14, 12, .35), inset 0 0 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.mrb-brand { display: flex; align-items: center; flex: 0 0 auto; }
.mrb-brand img { width: 40px; height: 52px; object-fit: contain; }

.mrb-badge {
  margin-inline-start: 6px;
  padding: 4px 13px;
  font-size: 12px;
  font-weight: 700;
  color: #191914;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-dark));
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(7, 7, 6, .25);
}

.mrb-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 8px; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.mrb-nav::-webkit-scrollbar { display: none; }
.mrb-nav a {
  position: relative;
  padding: 9px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  border-radius: 12px;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.mrb-nav a:hover, .mrb-nav a.is-active { color: #fff; background: rgba(255, 255, 255, .07); }

.mrb-cta {
  flex: 0 0 auto;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 800;
  color: #24231f;
  background: linear-gradient(135deg, var(--gold-soft), #d9a846);
  border: 1px solid #e2b75e;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(7, 7, 6, .28), inset 0 1px 0 rgba(255, 255, 255, .34);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.mrb-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #f7dea4, #e7b967);
  box-shadow: 0 11px 25px rgba(7, 7, 6, .3), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.mrb-cta:active { transform: translateY(0) scale(.985); }

.mrb-menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--gold-light);
  background: rgba(231, 185, 103, .1);
  border: 1px solid rgba(231, 185, 103, .32);
  border-radius: 12px;
}
.mrb-menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 900px) {
  .mrb-nav { display: none; }
  .mrb-menu-toggle { display: grid; }
  .mrb-header-inner { padding: 6px 10px 6px 14px; }
  .mrb-badge { display: none; }
}
@media (max-width: 560px) { .mrb-cta { display: none; } }

.mrb-mobile-menu {
  width: min(calc(100% - 32px), var(--container));
  margin: 8px auto 0;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 2px;
  background: rgba(24, 25, 23, .98);
  border: 1px solid rgba(231, 185, 103, .3);
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(15, 14, 12, .35);
}
.mrb-mobile-menu.is-open { display: flex; }
.mrb-mobile-menu a { padding: 12px 14px; color: rgba(255,255,255,.86); border-radius: 10px; font-size: 15px; }
.mrb-mobile-menu a:hover { background: rgba(255,255,255,.06); }

/* ===== Dark editorial hero (هم‌سبک با inner-hero سایت اصلی) ===== */
.mrb-hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 96px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 24%, rgba(215, 171, 90, .18), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(215, 171, 90, .12), transparent 30%),
    linear-gradient(135deg, #171816, #2d2e2a 64%, #201f1c);
}
.mrb-hero::before, .mrb-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(231, 185, 103, .16);
  border-radius: 50%;
  pointer-events: none;
}
.mrb-hero::before { width: 460px; height: 460px; top: -230px; left: -110px; }
.mrb-hero::after { width: 280px; height: 280px; right: 6%; bottom: -180px; }

.mrb-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; text-align: center; animation: mrb-rise .6s ease both; }

.mrb-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--gold-light); font-size: 13px; font-weight: 800; letter-spacing: -.1px;
}
.mrb-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 99px; }

.mrb-hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -1.4px;
  color: #fff;
}
.mrb-hero h1 b { color: var(--gold-light); font-weight: 800; }

.mrb-hero p { margin: 0 auto; max-width: 540px; color: rgba(255,255,255,.72); font-size: 16px; line-height: 2; }

.mrb-hero-search {
  margin: 34px auto 0;
  max-width: 480px;
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(231, 185, 103, .28);
  border-radius: 18px;
  backdrop-filter: blur(6px);
}
.mrb-hero-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  background: transparent;
  border: 0;
}
.mrb-hero-search input::placeholder { color: rgba(255,255,255,.45); }
.mrb-hero-search button {
  flex: 0 0 auto;
  padding: 0 22px;
  font-weight: 800;
  font-size: 14px;
  color: #24231f;
  background: linear-gradient(135deg, var(--gold-soft), #d9a846);
  border-radius: 13px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mrb-hero-search button:hover { transform: translateY(-1px); }

@media (max-width: 680px) {
  .mrb-hero { padding: 128px 0 60px; }
  .mrb-hero::before { width: 260px; height: 260px; top: -140px; left: -80px; }
  .mrb-hero::after { width: 180px; height: 180px; }
  .mrb-hero-search { flex-direction: column; padding: 10px; }
  .mrb-hero-search button { padding: 12px; }
}

/* ===== Page shell / blog listing ===== */
.mrb-shell { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.mrb-listing { padding: 54px 0 0; }
.mrb-page { padding: 130px 0 70px; }

.mrb-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.mrb-section-title h2 { margin: 0; font-size: 21px; font-weight: 800; color: var(--charcoal); }
.mrb-section-title span:not(.mrb-dot) { color: var(--muted); font-size: 13.5px; }
.mrb-dot { position: relative; width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); box-shadow: 0 0 0 4px rgba(215,171,90,.14); }

/* نوار باریک دسته‌بندی — یک ردیف مینیمال زیر هیرو، بدون شلوغی */
.mrb-cat-strip {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 4px; margin: -28px auto 0; padding: 6px;
  overflow-x: auto; scrollbar-width: none; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lift);
}
.mrb-cat-strip::-webkit-scrollbar { display: none; }
.mrb-cat-strip-item {
  flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding: 10px 16px;
  font-size: 13.5px; font-weight: 700; color: var(--ink); border-radius: 11px; white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.mrb-cat-strip-item b { font-size: 11px; font-weight: 700; color: var(--muted); }
.mrb-cat-strip-item:hover { background: rgba(215,171,90,.08); color: var(--gold-dark); }
.mrb-cat-strip-item.is-active { color: #191914; background: linear-gradient(135deg, var(--gold-soft), var(--gold-dark)); }
.mrb-cat-strip-item.is-active b { color: rgba(25,25,20,.6); }
@media (max-width: 680px) { .mrb-cat-strip { margin-top: 28px; justify-content: flex-start; } }

.mrb-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; padding-bottom: 70px; }
@media (max-width: 640px) { .mrb-post-grid { grid-template-columns: 1fr; } }

.mrb-card {
  position: relative;
  isolation: isolate;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  animation: mrb-rise .5s ease both;
}
.mrb-card::before {
  content: ""; position: absolute; z-index: 5; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, rgba(215,171,90,0), var(--gold) 45%, rgba(215,171,90,.15));
  opacity: 0; transition: opacity .2s ease;
}
.mrb-card:hover { border-color: #dcc287; box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.mrb-card:hover::before { opacity: 1; }

.mrb-card-thumb { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--charcoal), var(--charcoal-2)); }
.mrb-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.mrb-card:hover .mrb-card-thumb img { transform: scale(1.06); }
.mrb-card-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,13,.02), transparent 55%, rgba(20,20,17,.4)); pointer-events: none; }
.mrb-card-thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.mrb-card-thumb-fallback svg { width: 34px; height: 34px; opacity: .35; stroke: var(--gold-light); fill: none; stroke-width: 1.6; }

.mrb-chip {
  position: absolute; z-index: 2; top: 14px; right: 14px;
  padding: 5px 12px; font-size: 11.5px; font-weight: 800; color: #191914;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-dark));
  border-radius: 999px; box-shadow: 0 6px 16px rgba(7,7,6,.28);
}

.mrb-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.mrb-card-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.mrb-card-meta svg { width: 13px; height: 13px; stroke: var(--gold-dark); fill: none; stroke-width: 2; }
.mrb-card h2 { margin: 0; font-size: 18.5px; font-weight: 800; line-height: 1.55; color: var(--charcoal); }
.mrb-card h2 a:hover { color: var(--gold-dark); }
.mrb-card-excerpt { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; flex: 1; }
.mrb-card-more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 2px; font-size: 13.5px; font-weight: 800; color: var(--gold-dark); transition: gap .18s ease; }
.mrb-card:hover .mrb-card-more { gap: 10px; }

/* ===== گرید ویژه‌ی سردبیری — عکس تمام‌قاب + متن روی عکس، سبک مجله‌ی واقعی ===== */
.mrb-feature-section { padding: 50px 0 6px; }

.mrb-feature-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; height: 560px; }
.mrb-feature-grid--solo { grid-template-columns: 1fr; height: 420px; }

.mrb-feature-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; border-radius: 24px; color: #fff; background: var(--charcoal-2);
  box-shadow: var(--shadow-lift); isolation: isolate;
}
.mrb-feature-media {
  position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center;
  background-color: var(--charcoal-2); transform: scale(1.001); transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.mrb-feature-card:hover .mrb-feature-media { transform: scale(1.08); }
.mrb-feature-card.no-photo .mrb-feature-media {
  background-image:
    radial-gradient(circle at 25% 20%, rgba(215,171,90,.22), transparent 45%),
    linear-gradient(150deg, #2b2c29, #1b1c19 70%);
}
.mrb-feature-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(10,10,9,.92) 0%, rgba(10,10,9,.55) 42%, rgba(10,10,9,.05) 72%, transparent 100%);
}
.mrb-feature-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 20px 22px 0; }
.mrb-feature-top .mrb-chip { position: static; }
.mrb-chip--ghost { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); box-shadow: none; border: 1px solid rgba(255,255,255,.25); }
.mrb-feature-body { position: relative; z-index: 2; padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 10px; }
.mrb-feature-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); }
.mrb-feature-meta svg { width: 13px; height: 13px; stroke: var(--gold-light); fill: none; stroke-width: 2; flex: 0 0 auto; }
.mrb-feature-body b { font-weight: 800; line-height: 1.5; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.mrb-feature-excerpt { font-size: 14px; line-height: 1.85; color: rgba(255,255,255,.78); max-width: 92%; }

.mrb-feature-card--big .mrb-feature-body b { font-size: clamp(22px, 2.6vw, 30px); }
.mrb-feature-stack { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.mrb-feature-card--small { flex: 1; }
.mrb-feature-card--small .mrb-feature-body b { font-size: 16.5px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.mrb-feature-card--small .mrb-feature-top { padding: 16px 18px 0; }
.mrb-feature-card--small .mrb-feature-body { padding: 16px 18px 18px; }

@media (max-width: 900px) {
  .mrb-feature-grid { grid-template-columns: 1fr; height: auto; }
  .mrb-feature-grid--solo { height: 300px; }
  .mrb-feature-card--big { height: 340px; }
  .mrb-feature-stack { flex-direction: row; }
  .mrb-feature-card--small { height: 190px; }
}
@media (max-width: 560px) {
  .mrb-feature-stack { flex-direction: column; }
  .mrb-feature-card--small { height: 170px; }
}

.mrb-pagination { display: flex; justify-content: center; gap: 8px; padding: 10px 0 80px; flex-wrap: wrap; }
.mrb-pagination a, .mrb-pagination span {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--ink);
  transition: border-color .18s ease, color .18s ease;
}
.mrb-pagination .current { color: #fff; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); border-color: var(--gold-dark); }
.mrb-pagination a:hover { border-color: var(--gold); color: var(--gold-dark); }

.mrb-empty { max-width: 620px; margin: 0 auto 70px; padding: 40px 30px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.mrb-empty p { color: var(--muted); font-size: 15px; line-height: 1.9; margin: 0 0 20px; }

/* ===== Reading progress bar ===== */
.mrb-progress { position: fixed; top: 0; right: 0; left: 0; z-index: 300; height: 3px; background: rgba(35,32,27,.06); }
.mrb-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); transition: width .1s linear; }

/* ===== Single post ===== */
.mrb-single-hero {
  position: relative; overflow: hidden; padding: 158px 0 86px; color: #fff; text-align: center;
  background-color: #201f1c; background-size: cover; background-position: center;
}
.mrb-single-hero-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 14% 24%, rgba(215, 171, 90, .2), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(215, 171, 90, .13), transparent 30%),
    linear-gradient(135deg, rgba(21, 22, 20, .88), rgba(45, 46, 42, .82) 64%, rgba(30, 29, 26, .92));
}
.mrb-single-hero.has-photo .mrb-single-hero-overlay {
  background:
    radial-gradient(circle at 14% 24%, rgba(215, 171, 90, .22), transparent 34%),
    linear-gradient(180deg, rgba(18, 18, 16, .55) 0%, rgba(20, 20, 18, .78) 60%, rgba(20, 20, 18, .94) 100%);
}
.mrb-single-hero::before, .mrb-single-hero::after {
  content: ""; position: absolute; z-index: 1; border: 1px solid rgba(231, 185, 103, .18); border-radius: 50%; pointer-events: none;
}
.mrb-single-hero::before { width: 420px; height: 420px; top: -210px; left: -100px; }
.mrb-single-hero::after { width: 260px; height: 260px; right: 8%; bottom: -170px; }
.mrb-single-hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; animation: mrb-rise .6s ease both; }
@media (max-width: 680px) { .mrb-single-hero { padding: 122px 0 56px; } }
.mrb-single-hero h1 { margin: 16px 0 14px; font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; line-height: 1.4; letter-spacing: -1px; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.mrb-single-meta { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; color: rgba(255,255,255,.7); font-size: 13.5px; font-weight: 600; }
.mrb-single-meta .dot { opacity: .5; }

.mrb-single { padding: 46px 0 70px; }

.mrb-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 54px; align-items: start; max-width: 1040px; }
@media (max-width: 960px) { .mrb-single-grid { grid-template-columns: minmax(0, 1fr); max-width: none; } }

.mrb-single-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 960px) { .mrb-single-aside { position: static; } }

.mrb-toc { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.mrb-toc h2 { margin: 0 0 12px; font-size: 14px; font-weight: 800; color: var(--charcoal); }
.mrb-toc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }
.mrb-toc a { display: block; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; color: var(--muted); line-height: 1.6; border-inline-start: 2px solid transparent; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.mrb-toc a:hover { color: var(--gold-dark); background: rgba(215,171,90,.07); border-inline-start-color: var(--gold); }
.mrb-toc a.is-active { color: var(--gold-dark); font-weight: 800; background: rgba(215,171,90,.1); border-inline-start-color: var(--gold-dark); }
.mrb-toc .mrb-toc-lvl3 a { padding-inline-start: 22px; font-size: 12.8px; }

.mrb-aside-cta {
  padding: 24px 22px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 20% 0%, rgba(215,171,90,.12), transparent 50%), linear-gradient(160deg, #1c1d1a, #2b2c29);
  border: 1px solid rgba(215,171,90,.3); border-radius: 18px; color: #fff;
}
.mrb-aside-cta h3 { margin: 10px 0 8px; font-size: 16.5px; font-weight: 800; }
.mrb-aside-cta p { margin: 0 0 16px; font-size: 13px; color: rgba(255,255,255,.68); line-height: 1.8; }
.mrb-aside-cta .mrb-cta { display: inline-flex; box-shadow: none; }

.mrb-single-thumb { max-width: 100%; margin: 0 0 40px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lift); }
.mrb-single-thumb img { width: 100%; display: block; }

.mrb-content { max-width: 740px; margin: 0 auto; font-size: 16.5px; line-height: 2.05; color: var(--ink); }
.mrb-single-main .mrb-content { max-width: none; margin: 0; }
.mrb-content--dropcap > p:first-of-type::first-letter {
  float: right; margin: 6px 0 0 12px; font-size: 58px; font-weight: 800; line-height: .8;
  color: var(--gold-dark); font-family: Georgia, "Times New Roman", serif;
}
.mrb-content h2 { margin: 44px 0 16px; font-size: 25px; font-weight: 800; color: var(--charcoal); }
.mrb-content h3 { margin: 34px 0 14px; font-size: 19.5px; font-weight: 800; color: var(--charcoal); }
.mrb-content p { margin: 0 0 20px; }
.mrb-content a { color: var(--gold-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mrb-content img { border-radius: 18px; margin: 12px 0 28px; box-shadow: var(--shadow); }
.mrb-content blockquote {
  position: relative; margin: 32px 0; padding: 20px 26px; border-inline-start: 4px solid var(--gold);
  background: rgba(215, 171, 90, .07); border-radius: 0 16px 16px 0; color: var(--charcoal); font-weight: 700; font-size: 17px;
}
.mrb-content ul, .mrb-content ol { margin: 0 0 20px; padding-inline-start: 26px; }
.mrb-content li { margin-bottom: 9px; }
.mrb-content li::marker { color: var(--gold-dark); }
.mrb-content pre, .mrb-content code { background: #f4f1ea; border-radius: 8px; }
.mrb-content pre { padding: 16px; overflow-x: auto; }
.mrb-content code { padding: 2px 6px; }
.mrb-content hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.mrb-author-box {
  display: flex; align-items: flex-start; gap: 16px; max-width: 740px; margin: 48px auto 0; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.mrb-author-box { color: inherit; }
.mrb-author-box:hover { border-color: #dcc287; box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.mrb-author-box img { border-radius: 50%; border: 2px solid rgba(215,171,90,.4); flex: 0 0 auto; }
.mrb-author-kicker { display: block; font-size: 11.5px; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .3px; }
.mrb-author-box h3 { margin: 3px 0 6px; font-size: 16px; font-weight: 800; color: var(--charcoal); }
.mrb-author-box p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--muted); }

.mrb-share { display: flex; align-items: center; gap: 10px; max-width: 740px; margin: 46px auto 0; padding-top: 26px; border-top: 1px solid var(--line); }
.mrb-share span { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.mrb-share a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--gold-dark); transition: border-color .18s ease, background .18s ease; }
.mrb-share a:hover { border-color: var(--gold); background: rgba(215,171,90,.08); }
.mrb-share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.mrb-back-cta {
  max-width: 740px; margin: 50px auto 0; padding: 34px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(215,171,90,.14), transparent 34%),
    linear-gradient(100deg, #1c1d1a 0%, #2b2c29 50%, #1c1d1a 100%);
  border: 1px solid rgba(215, 171, 90, .3); border-radius: 22px; color: #fff;
}
.mrb-back-cta h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; }
.mrb-back-cta p { margin: 0 0 20px; color: rgba(255,255,255,.72); font-size: 15px; }
.mrb-back-cta a {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; font-weight: 800; font-size: 14.5px; color: #24231f;
  background: linear-gradient(135deg, var(--gold-soft), #d9a846); border-radius: 14px;
  box-shadow: 0 10px 24px rgba(7,7,6,.3); transition: transform .2s ease;
}
.mrb-back-cta a:hover { transform: translateY(-2px); }

.mrb-related { margin: 60px 0 0; }
.mrb-related .mrb-section-title { margin-bottom: 20px; }
.mrb-related .mrb-section-title h2 { font-size: 19px; }
.mrb-related .mrb-section-title { position: relative; }
.mrb-slider-nav { margin-inline-start: auto; display: flex; gap: 6px; }
.mrb-slider-nav button {
  width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 10px; color: var(--gold-dark); transition: border-color .18s ease, background .18s ease;
}
.mrb-slider-nav button:hover { border-color: var(--gold); background: rgba(215,171,90,.08); }
.mrb-slider-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.mrb-related-slider {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
  margin: 0 -2px; scrollbar-width: none;
}
.mrb-related-slider::-webkit-scrollbar { display: none; }
.mrb-related-card {
  flex: 0 0 auto; width: 240px; scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mrb-related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #dcc287; }
.mrb-related-thumb { position: relative; display: block; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--charcoal), var(--charcoal-2)); overflow: hidden; }
.mrb-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mrb-related-thumb .mrb-card-thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.mrb-related-thumb .mrb-card-thumb-fallback svg { width: 26px; height: 26px; opacity: .35; stroke: var(--gold-light); fill: none; stroke-width: 1.6; }
.mrb-related-body { padding: 13px 15px 16px; display: flex; flex-direction: column; gap: 6px; }
.mrb-related-body b { font-size: 14px; font-weight: 800; line-height: 1.6; color: var(--charcoal); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mrb-related-body small { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ===== تگ‌ها ===== */
.mrb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.mrb-tags a { padding: 6px 14px; font-size: 12.5px; font-weight: 700; color: var(--gold-dark); background: rgba(215,171,90,.08); border: 1px solid rgba(215,171,90,.25); border-radius: 999px; transition: background .18s ease, border-color .18s ease; }
.mrb-tags a:hover { background: rgba(215,171,90,.15); border-color: var(--gold); }

/* ===== ناوبری مقاله‌ی قبلی/بعدی ===== */
.mrb-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 46px; }
.mrb-post-nav:empty { display: none; margin: 0; }
@media (max-width: 600px) { .mrb-post-nav { grid-template-columns: 1fr; } }
.mrb-post-nav-item {
  padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; overflow: hidden;
}
.mrb-post-nav-item:hover { border-color: #dcc287; box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.mrb-post-nav-item span { display: block; font-size: 11.5px; font-weight: 700; color: var(--gold-dark); margin-bottom: 6px; }
.mrb-post-nav-item b { font-weight: 700; }
.mrb-post-nav-item a { font-size: 14px; font-weight: 700; color: var(--charcoal); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mrb-post-nav-next { text-align: left; }

/* ===== مدال آیکن دسته‌بندی ===== */
.mrb-cat-hero-icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 14px;
  border-radius: 16px; color: var(--gold-light);
  background: linear-gradient(135deg, rgba(215,171,90,.18), rgba(215,171,90,.05));
  border: 1px solid rgba(231,185,103,.35);
}
.mrb-cat-hero-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Author archive hero ===== */
.mrb-author-hero-avatar-wrap { position: relative; display: inline-flex; margin-bottom: 14px; }
.mrb-author-hero-avatar-wrap::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold-light), transparent 30%, transparent 70%, var(--gold-light));
  opacity: .8; animation: mrb-spin 6s linear infinite;
}
@keyframes mrb-spin { to { transform: rotate(360deg); } }
.mrb-author-hero-avatar { position: relative; border-radius: 50%; border: 3px solid #171816; box-shadow: 0 10px 30px rgba(0,0,0,.4); display: block; }
.mrb-author-stats { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.mrb-author-stat {
  padding: 12px 22px; text-align: center; background: rgba(255,255,255,.06); border: 1px solid rgba(231,185,103,.25);
  border-radius: 14px; min-width: 130px;
}
.mrb-author-stat b { display: block; font-size: 20px; font-weight: 800; color: var(--gold-light); }
.mrb-author-stat span { font-size: 12px; color: rgba(255,255,255,.65); font-weight: 600; }
.mrb-author-stat--link:hover { background: rgba(255,255,255,.1); }

/* ===== Comments ===== */
.mrb-comments { max-width: 740px; margin: 0 auto; }
.mrb-comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.mrb-comment-list .children { list-style: none; margin: 16px 0 0; padding-inline-start: 34px; display: flex; flex-direction: column; gap: 16px; border-inline-start: 2px solid var(--line); }
@media (max-width: 560px) {
  .mrb-comment-list .children { padding-inline-start: 14px; }
  .mrb-comment { padding: 15px; }
  .mrb-comment-row { gap: 10px; }
}

.mrb-comment { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.mrb-comment-row { display: flex; align-items: flex-start; gap: 13px; }
.mrb-comment-avatar { border-radius: 50%; flex: 0 0 auto; border: 2px solid rgba(215,171,90,.3); }
.mrb-comment-body { min-width: 0; flex: 1; }
.mrb-comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.mrb-comment-head b { font-size: 14.5px; font-weight: 800; color: var(--charcoal); }
.mrb-comment-head time { font-size: 12px; color: var(--muted); }
.mrb-comment-author-badge { padding: 2px 10px; font-size: 11px; font-weight: 700; color: #191914; background: linear-gradient(135deg, var(--gold-soft), var(--gold-dark)); border-radius: 999px; }
.mrb-comment-pending { margin: 0 0 8px; font-size: 12.5px; color: var(--gold-dark); font-weight: 700; }
.mrb-comment-text { font-size: 14.5px; line-height: 1.95; color: var(--ink); }
.mrb-comment-text p { margin: 0 0 10px; }
.mrb-comment-reply { margin-top: 8px; }
.mrb-comment-reply a { font-size: 12.5px; font-weight: 800; color: var(--gold-dark); }
.mrb-comment-reply a:hover { text-decoration: underline; }
.mrb-comments-closed { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 14px; text-align: center; }

.mrb-comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-top: 20px; }
@media (max-width: 600px) { .mrb-comment-form { grid-template-columns: 1fr; } }
.mrb-field { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.mrb-field--full { grid-column: 1 / -1; }
.mrb-field label { font-size: 13px; font-weight: 700; color: var(--charcoal); }
.mrb-field input, .mrb-field textarea {
  padding: 12px 15px; font: inherit; font-size: 14.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; resize: vertical;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.mrb-field input:focus, .mrb-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,171,90,.15); }
.comment-form-cookies-consent { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 0; }
.mrb-comment-form .mrb-cta { grid-column: 1 / -1; justify-self: start; border: 1px solid #e2b75e; }
.comment-reply-title { margin: 0; font-size: 19px; font-weight: 800; color: var(--charcoal); }
.comment-reply-title small a { font-size: 12px; font-weight: 600; color: var(--gold-dark); margin-inline-start: 10px; }

/* ===== Elementor content ===== */
.mrb-elementor-wrap { max-width: 100%; }
.mrb-elementor-wrap .elementor { font-family: "IRANSans", Tahoma, Arial, sans-serif; }

/* ===== Footer ===== */
.mrb-footer {
  position: relative; overflow: hidden; margin-top: 0; padding: 54px 0 0; color: rgba(255,255,255,.76);
  background:
    radial-gradient(circle at 8% 10%, rgba(255,255,255,.035), transparent 28%),
    radial-gradient(circle at 80% 120%, rgba(215,171,90,.07), transparent 35%),
    linear-gradient(100deg, #1c1d1a 0%, #2b2c29 50%, #1c1d1a 100%);
  border-top: 1px solid rgba(215, 171, 90, .25);
}
.mrb-footer-main { display: grid; grid-template-columns: minmax(240px, 1.3fr) repeat(2, minmax(140px, .8fr)); gap: 36px; padding-bottom: 32px; }
@media (max-width: 780px) { .mrb-footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mrb-footer-main { grid-template-columns: 1fr; } }

.mrb-footer-logo { width: 190px; padding: 5px 8px; background: #fbfaf7; border: 1px solid rgba(215,171,90,.42); border-radius: 9px; display: block; margin-bottom: 16px; }
.mrb-footer-brand p { margin: 0 0 10px; font-size: 14px; line-height: 1.9; max-width: 360px; }
.mrb-footer-brand b { color: var(--gold-light); font-size: 13.5px; }
.mrb-footer-socials { display: flex; gap: 8px; margin-top: 16px; }
.mrb-footer-socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(215,171,90,.35); border-radius: 10px; color: var(--gold-light); transition: background .18s ease, transform .18s ease; }
.mrb-footer-socials a:hover { background: rgba(215,171,90,.12); transform: translateY(-2px); }
.mrb-footer-socials svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.mrb-footer-col h2 { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: #fff; }
.mrb-footer-col a { display: block; padding: 6px 0; font-size: 13.8px; color: rgba(255,255,255,.68); transition: color .18s ease; }
.mrb-footer-col a:hover { color: var(--gold-light); }

.mrb-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: rgba(255,255,255,.55);
}
.mrb-footer-bottom a { color: var(--gold-light); font-weight: 700; }

/* ===== Single post — mobile hardening (grid min-content blowout fix) ===== */
.mrb-single-main, .mrb-single-aside { min-width: 0; }
.mrb-content { overflow-wrap: anywhere; }
.mrb-content img, .mrb-content video, .mrb-content iframe, .mrb-content figure { max-width: 100%; height: auto; }
.mrb-content table { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 680px) {
  .mrb-content { font-size: 16px; line-height: 1.95; }
  .mrb-content--dropcap > p:first-of-type::first-letter { float: none; margin: 0; font-size: inherit; line-height: inherit; font-family: inherit; color: inherit; }
  .mrb-content h2 { font-size: 22px; margin-top: 36px; }
  .mrb-content h3 { font-size: 18px; }
}
