/*
Theme Name: وکیل ـ Vakil
Theme URI: https://example.com/vakil
Author: طراحی‌شده برای دفتر وکالت
Description: قالب اختصاصی وکلا و دفاتر حقوقی. پس‌زمینه مشکی، راست‌چین، بهینه برای سئو و دسترس‌پذیری.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vakil
Tags: rtl-language-support, translation-ready, custom-menu, accessibility-ready, blog, one-column, right-sidebar
*/

/* ---------------------------------------------------------
   ۱. فونت‌ها
   وزیرمتن — نزدیک‌ترین خانواده به حروف‌نگاری لوگو.
   برای سرعت بیشتر و استقلال از CDN، فایل‌های فونت را دانلود
   و در پوشه fonts/ قالب قرار دهید و مسیرها را جایگزین کنید.
--------------------------------------------------------- */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* ---------------------------------------------------------
   ۲. توکن‌های طراحی
   طیف آبی مستقیماً از لوگو گرفته شده است:
   #003A6B سرمه اصلی لوگو، #1B5886 آبی فولادی نقش آدمک.
   دو تُن روشن‌تر برای متن و لهجه اضافه شده، چون رنگ‌های
   خود لوگو روی مشکی کنتراست کافی ندارند (۱٫۸ و ۲٫۸ به ۱).
--------------------------------------------------------- */
:root {
  --zamine:      #000000;   /* پس‌زمینه اصلی */
  --sath:        #06192A;   /* سطح سرمه‌ای کم‌رمق */
  --sath-2:      #0B2740;
  --matn:        #EAF1F6;   /* متن اصلی — ۱۸٫۴ به ۱ */
  --matn-2:      #93A7B6;   /* متن ثانویه — ۸٫۴ به ۱ */

  --abi-tire:    #003A6B;   /* سرمه لوگو — سطوح و قاب‌ها */
  --abi-miani:   #1B5886;   /* آبی فولادی لوگو */
  --abi:         #4A9BD6;   /* لهجه اصلی — ۷ به ۱ */
  --abi-roshan:  #8CC5EE;   /* حالت هاور — ۱۱٫۳ به ۱ */

  --khat:        rgba(74, 155, 214, 0.24);
  --khat-narm:   rgba(234, 241, 246, 0.10);
  --khata:       #E88B7D;
  --tayid:       #7FC29B;

  --font-titr: 'Vazirmatn', system-ui, sans-serif;
  --font-matn: 'Vazirmatn', system-ui, -apple-system, sans-serif;

  --avaz-1: clamp(2.3rem, 1.4rem + 4vw, 4.1rem);
  --avaz-2: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem);
  --avaz-3: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  --avaz-4: 1.125rem;
  --avaz-p: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --avaz-k: 0.875rem;

  --arz: 1180px;
  --arz-matn: 68ch;
  --faz: clamp(4rem, 8vw, 7rem);
  --gerd: 4px;
  --gerd-b: 10px;

  --gozar: 180ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------
   ۳. پایه
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--zamine);
  color: var(--matn);
  font-family: var(--font-matn);
  font-size: var(--avaz-p);
  line-height: 1.85;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titr);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.6em;
  color: var(--matn);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--avaz-1); line-height: 1.2; }
h2 { font-size: var(--avaz-2); }
h3 { font-size: var(--avaz-3); font-weight: 700; }
h4 { font-size: var(--avaz-4); }

p { margin: 0 0 1.2em; max-width: var(--arz-matn); }

a { color: var(--abi-roshan); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--matn); }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { padding-inline-start: 1.4em; }

blockquote {
  margin: 2rem 0;
  padding: 0.4rem 1.6rem 0.4rem 0;
  border-inline-start: 3px solid var(--abi);
  color: var(--matn-2);
  font-size: 1.05em;
}

code, pre { font-family: 'Vazirmatn', monospace; background: var(--sath-2); }
pre { padding: 1rem; border-radius: var(--gerd); overflow-x: auto; direction: ltr; text-align: left; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--khat-narm); text-align: right; }
th { color: var(--abi); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--khat-narm); margin: 3rem 0; }

/* دسترس‌پذیری: فوکوس همیشه دیده شود */
:focus-visible {
  outline: 3px solid var(--abi-roshan);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--abi); color: #000; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  top: -100px;
  transform: translateX(50%);
  z-index: 999;
  background: var(--abi);
  color: #000;
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  border-radius: 0 0 var(--gerd-b) var(--gerd-b);
  transition: top var(--gozar);
}
.skip-link:focus { top: 0; color: #000; }

/* ---------------------------------------------------------
   ۴. چیدمان
--------------------------------------------------------- */
.pichesh {
  width: min(100% - 2.5rem, var(--arz));
  margin-inline: auto;
}

.bakhsh { padding-block: var(--faz); }

/* موتیف اصلی: خط حاشیه اوراق قضایی */
.hashiye {
  position: relative;
  padding-inline-start: 1.75rem;
}
.hashiye::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 2px;
  background: linear-gradient(to bottom, var(--abi), rgba(74, 155, 214, 0));
}

.sar-bakhsh { margin-bottom: 3rem; max-width: 62ch; }
.sar-bakhsh p { color: var(--matn-2); margin-bottom: 0; }

/* ---------------------------------------------------------
   ۵. سربرگ و منو
--------------------------------------------------------- */
.sarbarg {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--khat-narm);
}

.sarbarg__daron {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.neshan { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.neshan__mohr {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border: 1.5px solid var(--abi);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--abi);
  font-family: var(--font-titr);
  font-weight: 800;
  font-size: 1.1rem;
}
.neshan__nam {
  font-family: var(--font-titr);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--matn);
  line-height: 1.25;
  display: block;
}
.neshan__zir {
  font-size: 0.78rem;
  color: var(--matn-2);
  line-height: 1.3;
  display: block;
}


/* لوگوی سفارشی در سربرگ تیره
   لوگوی سرمه‌ای روی مشکی دیده نمی‌شود؛ نسخه روشن را آپلود کنید.
   فایل logo-light.png همراه قالب برای همین ساخته شده است. */
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { max-height: 54px; width: auto; }
@media (max-width: 782px) { .custom-logo { max-height: 44px; } }

.navbar { display: flex; align-items: center; gap: 1.75rem; }

.menu-asli { display: flex; align-items: center; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.menu-asli li { position: relative; }
.menu-asli a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: var(--matn);
  text-decoration: none;
  font-size: 1rem;
  border-radius: var(--gerd);
  transition: color var(--gozar), background var(--gozar);
}
.menu-asli a:hover,
.menu-asli a:focus-visible { color: var(--abi-roshan); background: rgba(74, 155, 214, 0.10); }
.menu-asli .current-menu-item > a,
.menu-asli .current_page_item > a,
.menu-asli .current-menu-ancestor > a { color: var(--abi); }
.menu-asli .current-menu-item > a::after,
.menu-asli .current_page_item > a::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--abi);
  margin-top: 4px;
}

/* زیرمنو */
.menu-asli .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 220px;
  background: var(--sath);
  border: 1px solid var(--khat);
  border-radius: var(--gerd-b);
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--gozar), transform var(--gozar), visibility var(--gozar);
}
.menu-asli li:hover > .sub-menu,
.menu-asli li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.kolid-menu {
  display: none;
  background: transparent;
  border: 1px solid var(--khat);
  border-radius: var(--gerd);
  color: var(--matn);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  line-height: 0;
}
.kolid-menu svg { width: 24px; height: 24px; }
.kolid-menu .bastan { display: none; }
.kolid-menu[aria-expanded="true"] .bastan { display: block; }
.kolid-menu[aria-expanded="true"] .bazkardan { display: none; }

/* ---------------------------------------------------------
   ۶. دکمه‌ها
--------------------------------------------------------- */
.dokme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-matn);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--gerd-b);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--gozar), color var(--gozar), border-color var(--gozar);
}
.dokme--asli { background: var(--abi); color: #00121F; }
.dokme--asli:hover { background: var(--abi-roshan); color: #00121F; }
.dokme--khali { border-color: var(--khat); color: var(--matn); background: transparent; }
.dokme--khali:hover { border-color: var(--abi); color: var(--abi-roshan); background: rgba(74, 155, 214, 0.08); }

/* ---------------------------------------------------------
   ۷. قهرمان صفحه نخست
--------------------------------------------------------- */
.ghahreman { padding-block: clamp(3.5rem, 8vw, 6.5rem) var(--faz); }

.ghahreman__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.ghahreman__parvane {
  display: inline-block;
  color: var(--abi);
  font-size: 0.9rem;
  border: 1px solid var(--khat);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
}

.ghahreman h1 { margin-bottom: 1.2rem; }
.ghahreman__lid {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--matn-2);
  max-width: 52ch;
  margin-bottom: 2.2rem;
}

.ghahreman__dokmeha { display: flex; flex-wrap: wrap; gap: 1rem; }

/* کارت اعتماد کنار قهرمان */
.etemad {
  background: linear-gradient(160deg, var(--sath-2), var(--sath));
  border: 1px solid var(--abi-tire);
  border-radius: var(--gerd-b);
  padding: 1.75rem;
}
.etemad h2 { font-size: 1.15rem; margin-bottom: 1.25rem; color: var(--abi); }
.etemad dl { margin: 0; display: grid; gap: 1.1rem; }
.etemad dt { font-size: 0.82rem; color: var(--matn-2); margin-bottom: 0.15rem; }
.etemad dd {
  margin: 0;
  font-family: var(--font-titr);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--matn);
}
.etemad dd small { font-size: 0.85rem; font-weight: 400; color: var(--matn-2); }

/* ---------------------------------------------------------
   ۸. خدمات
--------------------------------------------------------- */
.khadamat__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--khat-narm);
  border: 1px solid var(--khat-narm);
  border-radius: var(--gerd-b);
  overflow: hidden;
}
.khadmat-item {
  background: var(--zamine);
  padding: 2rem 1.75rem;
  transition: background var(--gozar);
}
.khadmat-item:hover, .khadmat-item:focus-within { background: var(--sath); box-shadow: inset 2px 0 0 var(--abi); }
.khadmat-item h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.khadmat-item h3 a { color: inherit; text-decoration: none; }
.khadmat-item h3 a:hover { color: var(--abi-roshan); }
.khadmat-item p { color: var(--matn-2); font-size: 0.98rem; margin: 0; }
.khadmat-item__neshane {
  width: 34px; height: 34px;
  color: var(--abi);
  margin-bottom: 1.1rem;
}

/* ---------------------------------------------------------
   ۹. مراحل همکاری (توالی واقعی، پس شماره‌گذاری معنا دارد)
--------------------------------------------------------- */
.marahel {
  list-style: none;
  counter-reset: gam;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}
.marahel li { counter-increment: gam; position: relative; padding-top: 2.6rem; }
.marahel li::before {
  content: counter(gam, persian);
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--abi);
  border-radius: 50%;
  color: var(--abi);
  font-family: var(--font-titr);
  font-size: 0.95rem;
}
.marahel h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.marahel p { color: var(--matn-2); font-size: 0.96rem; margin: 0; }

/* ---------------------------------------------------------
   ۱۰. وبلاگ و آرشیو
--------------------------------------------------------- */
.matalab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem 2rem;
}

.matlab {
  border-top: 1px solid var(--khat-narm);
  padding-top: 1.5rem;
}
.matlab__tasvir {
  display: block;
  margin-bottom: 1.1rem;
  border-radius: var(--gerd-b);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.matlab__tasvir img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.matlab__tasvir:hover img { transform: scale(1.03); }
.matlab h2, .matlab h3 { font-size: 1.22rem; margin-bottom: 0.55rem; }
.matlab h2 a, .matlab h3 a { color: var(--matn); text-decoration: none; }
.matlab h2 a:hover, .matlab h3 a:hover { color: var(--abi-roshan); }
.matlab__meta { font-size: 0.85rem; color: var(--matn-2); margin-bottom: 0.7rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.matlab__cholase { color: var(--matn-2); font-size: 0.97rem; }
.matlab__bishtar { font-size: 0.92rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--khat); padding-bottom: 2px; }

/* تک نوشته */
.noshte { max-width: 78ch; margin-inline: auto; }
.noshte__sar { margin-bottom: 2.5rem; }
.noshte__meta { color: var(--matn-2); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; }
.noshte__matn > * { max-width: none; }
.noshte__matn h2 { margin-top: 2.4rem; }
.noshte__matn h3 { margin-top: 1.8rem; }
.noshte__matn img { border-radius: var(--gerd-b); margin-block: 1.6rem; }
.noshte__matn ul, .noshte__matn ol { margin-bottom: 1.4rem; }
.noshte__matn li { margin-bottom: 0.5rem; }

.tasvir-shakhes { border-radius: var(--gerd-b); overflow: hidden; margin-bottom: 2.5rem; }

/* راه نما (breadcrumb) */
.rahnama {
  font-size: 0.85rem;
  color: var(--matn-2);
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--khat-narm);
  margin-bottom: 2.5rem;
}
.rahnama ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.rahnama li:not(:last-child)::after { content: '‹'; margin-inline-start: 0.5rem; color: var(--abi); }
.rahnama a { color: var(--matn-2); text-decoration: none; }
.rahnama a:hover { color: var(--abi-roshan); }

/* صفحه‌بندی */
.navigation.pagination { margin-top: 3.5rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.page-numbers {
  min-width: 44px;
  padding: 0.6rem 0.9rem;
  text-align: center;
  border: 1px solid var(--khat-narm);
  border-radius: var(--gerd);
  color: var(--matn);
  text-decoration: none;
}
.page-numbers:hover { border-color: var(--abi); color: var(--abi-roshan); }
.page-numbers.current { background: var(--abi); color: #000; border-color: var(--abi); font-weight: 700; }

.post-navigation { margin-top: 3.5rem; border-top: 1px solid var(--khat-narm); padding-top: 2rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.post-navigation a { text-decoration: none; color: var(--matn); }
.post-navigation a:hover { color: var(--abi-roshan); }

/* ---------------------------------------------------------
   ۱۱. فرم تماس
--------------------------------------------------------- */
.tamas__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.form-tamas { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.92rem; font-weight: 600; }
.field .lazem { color: var(--abi); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--sath);
  border: 1px solid var(--khat-narm);
  border-radius: var(--gerd);
  color: var(--matn);
  font-family: var(--font-matn);
  font-size: 1rem;
  transition: border-color var(--gozar);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--khat); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--abi); outline-offset: 1px; }
.field textarea { min-height: 160px; resize: vertical; }
.field .rahnamayi { font-size: 0.82rem; color: var(--matn-2); }
.hp-field { position: absolute; left: -9999px; }

.payam {
  padding: 1rem 1.25rem;
  border-radius: var(--gerd);
  border-inline-start: 3px solid;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.payam--ok { background: rgba(127,176,105,0.10); border-color: var(--tayid); }
.payam--khata { background: rgba(226,114,91,0.10); border-color: var(--khata); }

.etelaat-tamas { background: linear-gradient(160deg, var(--sath-2), var(--sath)); border: 1px solid var(--abi-tire); border-radius: var(--gerd-b); padding: 1.9rem; }
.etelaat-tamas h2 { font-size: 1.2rem; color: var(--abi); }
.etelaat-tamas dl { display: grid; gap: 1.25rem; margin: 0; }
.etelaat-tamas dt { font-size: 0.82rem; color: var(--matn-2); margin-bottom: 0.2rem; }
.etelaat-tamas dd { margin: 0; font-size: 1.02rem; }
.etelaat-tamas dd a { color: var(--matn); text-decoration: none; }
.etelaat-tamas dd a:hover { color: var(--abi-roshan); }

/* ---------------------------------------------------------
   ۱۲. پرسش‌های متداول
--------------------------------------------------------- */
.faq { display: grid; gap: 0.75rem; max-width: 80ch; }
.faq details {
  border: 1px solid var(--khat-narm);
  border-radius: var(--gerd-b);
  background: var(--sath);
}
.faq summary {
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--abi); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { border-bottom: 1px solid var(--khat-narm); }
.faq .pasokh { padding: 1.2rem 1.4rem; color: var(--matn-2); }
.faq .pasokh p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------
   ۱۳. نوار فراخوان و پابرگ
--------------------------------------------------------- */
.farakhan {
  border-block: 1px solid var(--khat);
  background: var(--sath);
}
.farakhan__daron {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding-block: 3rem;
}
.farakhan h2 { margin-bottom: 0.4rem; }
.farakhan p { color: var(--matn-2); margin: 0; }

.pabarg { padding-block: 3.5rem 2rem; }
.pabarg__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--khat-narm);
}
.pabarg h2 { font-size: 1rem; color: var(--abi); margin-bottom: 1rem; }
.pabarg p { color: var(--matn-2); font-size: 0.94rem; }
.pabarg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.pabarg a { color: var(--matn-2); text-decoration: none; font-size: 0.95rem; }
.pabarg a:hover { color: var(--abi-roshan); }
.pabarg__payin {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--matn-2);
}
.salb-masouliat {
  font-size: 0.82rem;
  color: var(--matn-2);
  border: 1px solid var(--khat-narm);
  border-radius: var(--gerd);
  padding: 0.9rem 1.1rem;
  margin-top: 1.5rem;
  max-width: none;
}

/* ---------------------------------------------------------
   ۱۴. کناره و ابزارک‌ها
--------------------------------------------------------- */
.mohtava-kenar { display: grid; grid-template-columns: 1fr 320px; gap: 3.5rem; align-items: start; }
.kenar .widget { margin-bottom: 2.5rem; }
.kenar .widget-title { font-size: 1.02rem; color: var(--abi); margin-bottom: 1rem; }
.kenar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.kenar a { color: var(--matn-2); text-decoration: none; }
.kenar a:hover { color: var(--abi-roshan); }

.search-form { display: flex; gap: 0.5rem; }
.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--sath);
  border: 1px solid var(--khat-narm);
  border-radius: var(--gerd);
  color: var(--matn);
  font-family: var(--font-matn);
}
.search-form button {
  padding: 0.75rem 1.2rem;
  background: var(--abi);
  color: #000;
  border: 0;
  border-radius: var(--gerd);
  font-family: var(--font-matn);
  font-weight: 600;
  cursor: pointer;
}

/* ---------------------------------------------------------
   ۱۵. واکنش‌گرایی
--------------------------------------------------------- */
@media (max-width: 980px) {
  .ghahreman__grid { grid-template-columns: 1fr; }
  .tamas__grid { grid-template-columns: 1fr; }
  .mohtava-kenar { grid-template-columns: 1fr; gap: 3rem; }
  .pabarg__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) {
  .kolid-menu { display: block; }
  .navbar { gap: 0.75rem; }
  .navbar .dokme { display: none; }

  .menu-asli {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--zamine);
    border-bottom: 1px solid var(--khat);
    padding: 1rem 1.25rem 2rem;
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
    display: none;
  }
  .menu-asli.baz { display: flex; }
  .menu-asli a { padding: 1rem 0.25rem; border-bottom: 1px solid var(--khat-narm); font-size: 1.1rem; }
  .menu-asli .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; background: transparent; padding: 0 1rem;
  }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .pabarg__grid { grid-template-columns: 1fr; gap: 2rem; }
  .farakhan__daron { flex-direction: column; align-items: flex-start; }
}

/* حرکت کمتر برای کاربرانی که ترجیح می‌دهند */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .matlab__tasvir:hover img { transform: none; }
}

/* چاپ */
@media print {
  .sarbarg, .pabarg, .farakhan, .kolid-menu { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}

/* کلاس‌های استاندارد وردپرس */
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text { font-size: 0.85rem; color: var(--matn-2); text-align: center; margin-top: 0.5rem; }
.sticky .matlab { border-top-color: var(--abi); }
