/* =========================================
   PMX/PMW Modern CSS v3 – Full Bundle
   شامل همه آیتم‌ها + بهینه‌سازی
   ========================================= */

/* ========== Tokens ========== */
:root {
  /* Legacy color aliases (برای سازگاری) */
  --color-yellow: #ffcd02;
  --color-yellow-light: #fffde7;
  --color-blue-dark: #1a237e;
  --color-red: #d32f2f;

  /* Brand & Base */
  --acc: #2563eb;
  --acc2: #7fd3ff;
  --yel: #f59e0b;
  --yel2: #facc15;
  --primary-color: #1a3c6e;
  --hover-color: #2a67b3;
  --txt: #0f172a;
  --mut: #64748b;
  --bg: #ffffff;
  --card: #f8fafc;
  --bd: #e9eef5;

  /* PMF */
  --pmf-border: rgba(255, 255, 255, .25);
  --pmf-white: #fff;
  --pmf-muted: rgba(255, 255, 255, .65);
  --pmf-accent: var(--color-yellow);
  --pmf-btn: var(--color-yellow);
  --pmf-btn-ghost: rgba(255, 255, 255, .12);

  /* Shadows */
  --shadow-soft: 0 2px 8px rgba(26, 35, 126, .07);
  --shadow-light: 0 1px 4px rgba(26, 35, 126, .06);
  --sh: 0 10px 30px rgba(15, 23, 42, .08);
  --sh-xs: 0 1px 4px rgba(15,23,42,.06);
  --sh-sm: 0 6px 16px rgba(15,23,42,.08);
  --sh-md: 0 10px 30px rgba(15,23,42,.12);
  --sh-lg: 0 14px 36px rgba(15,23,42,.18);

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
  --grad-hover: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);

  /* Typography */
  --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-fa: 'IRANSans', var(--font-family), system-ui, sans-serif;

  /* UI helpers */
  --radius: 14px;
  --radius-pill: 999px;
  --transition: all .25s cubic-bezier(.2,.6,.2,1);
}

/* Optional dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#0b1220; --card:#0f172a; --bd:#1f2a3a; --txt:#e5e7eb; --mut:#9aa6b2;
    --grad-hero: linear-gradient(135deg, #0e1726 0%, #0c1421 100%);
    --grad-hover: linear-gradient(135deg, rgba(37,99,235,.15) 0%, rgba(56,189,248,.15) 100%);
  }
}

/* ========== Fonts: IRANSans (modern formats) ========== */
/* مسیرها را مطابق پروژه تنظیم کنید */
/* ========== Fonts: IRANSans – مسیر دقیق با اسم فایل‌های واقعی ========== */
/* مسیر مطلق + نام دقیق فایل */
/* ========== Fonts: IRANSans – مسیر کاملاً درست و بدون مشکل ========== */
@font-face {
  font-family: 'IRANSans';
  src: url('/wp-content/themes/blocksy-child/assets/fonts/woff2/IRANSansWeb.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('/wp-content/themes/blocksy-child/assets/fonts/woff2/IRANSansWeb_Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('/wp-content/themes/blocksy-child/assets/fonts/woff2/IRANSansWeb_Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('/wp-content/themes/blocksy-child/assets/fonts/woff2/IRANSansWeb_Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* ========== Reset/Base ========== */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; direction: rtl; text-align: right;
  font-family: var(--font-family);
  color: var(--txt); background: var(--bg); line-height: 1.8;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
:where(img, svg, video) { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--acc); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.content, .pmx-body, .pmw-body { content-visibility: auto; contain-intrinsic-size: 1px 1000px; }

/* فارسی‌سازی هوشمند */
html:lang(fa) body { font-family: var(--font-fa); }

/* ========== Icons (FA) ========== */
.fas, .far, .fa { font-family: "Font Awesome 5 Free"; }
.fab { font-family: "Font Awesome 5 Brands"; }

/* ========== Utilities/Layout ========== */
.container { width: min(1200px, 92%); margin-inline: auto; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.col-lg-5, .col-lg-7 { flex: 1 1 100%; }
@media (min-width: 992px) {
  .col-lg-5 { flex: 0 0 41.666%; }
  .col-lg-7 { flex: 0 0 58.333%; }
}
.text-center { text-align: center; }
.mb-30 { margin-bottom: 30px; }

/* ========== Panel blur (side, theme) ========== */
[data-behaviour*="side"] .ct-panel-inner {
  background: color-mix(in srgb, #000 8%, transparent);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

/* ========== Taxonomy Pills ========== */
.ct-custom-taxonomies a {
  display: inline-block; padding: 6px 16px;
  border-radius: var(--radius-pill); background: #282827; color: #fff;
  transition: transform .2s ease, background .2s ease;
}
.ct-custom-taxonomies a:hover { background: #313131; transform: translateY(-1px); }

/* ========== Typography exceptions (icons/images) ========== */
.fas, .far, .fab, .fa,
.contact-detail i, .pmf-contact-list i {
  font-size: 16px; line-height: 1; width: 20px; height: 20px;
  text-align: center; vertical-align: middle; flex-shrink: 0;
}

/* images and svg icons */
img[src*="corp-protection-3.svg"],
img[alt*="آدرس"], img[alt*="تلفن"], img[alt*="ایمیل"], img[alt*="ساعت"],
.contact-item img, .article-card img, .testimonial img {
  width: auto; height: auto; max-width: none;
  image-rendering: crisp-edges; border: none; flex-shrink: 0;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block; padding: 12px 24px;
  border-radius: var(--radius-pill); background: var(--acc); color: #fff; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); background: #1f4fe0; }

/* ========== Woodmart Title enhancement (optional) ========== */
.wd-entities-title.wd-post-title.title {
  font-family: var(--font-fa); font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  font-weight: 800; color: var(--txt); line-height: 1.3; text-align: center;
  position: relative; padding-bottom: .6rem; margin: 0 auto 1.25rem; max-width: 90%;
}
.wd-entities-title.wd-post-title.title::after {
  content: ""; position: absolute; inset-inline-start: 50%; transform: translateX(-50%);
  bottom: 0; width: 60px; height: 4px; border-radius: 3px; background: var(--color-yellow);
  transition: width .25s ease, background .25s ease;
}
.wd-entities-title.wd-post-title.title:hover { color: var(--hover-color); }
.wd-entities-title.wd-post-title.title:hover::after { width: 100px; background: var(--hover-color); }

/* ========== Hero ========== */
.hero {
  background: var(--grad-hero);
  min-height: clamp(260px, 36vh, 480px);
  display: grid; place-items: center; text-align: center;
  border-radius: var(--radius); box-shadow: var(--sh-md);
  margin: 16px auto; width: min(1200px, 92%); overflow: hidden;
}
.hero-title {
  margin: 0; font-weight: 900; letter-spacing: -.02em; color: #0b1220;
  font-size: clamp(1.6rem, 2.6vw + 1rem, 3rem);
}
/* legacy hero-year (در صورت نیاز) */
.hero-year {
  font-size: clamp(4rem, 12vw, 11rem); font-weight: 800;
  color: rgba(255,255,255,.16); letter-spacing: -0.03em; line-height: 1; margin: 0;
}

/* ========== Stats Section ========== */
.stats-section {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 32px; padding: clamp(24px, 5vw, 56px) 0; background: #f9f9f9;
}
.stats-image {
  flex: 1 1 360px; max-width: 520px; border-radius: 16px; overflow: hidden; box-shadow: var(--sh-sm); background: #fff;
}
.stats-image img { width: 100%; height: auto; object-fit: cover; }
.stats-grid {
  flex: 1 1 480px; display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stat-box {
  background: #fff; border-radius: 12px; box-shadow: var(--sh-xs);
  padding: 22px 18px; text-align: center; transition: var(--transition);
}
.stat-box h3 {
  margin: 0 0 6px; font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-weight: 900; color: #0e91e3; line-height: 1;
}
.stat-box p { margin: 0; color: #555; font-weight: 600; }
.stat-box:hover { transform: translateY(-4px); box-shadow: var(--sh-md); background: linear-gradient(180deg, #0e91e3, #55b4df); color: #fff; }
.stat-box:hover h3, .stat-box:hover p { color: #fff; }

/* ========== Article Section ========== */
.article-section { padding: clamp(24px, 4vw, 48px) 0; }
.article-title { margin: 0 0 10px; font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 900; }
.article-text { margin: 0 0 16px; color: #4b5563; }
.article-img { border-radius: 12px; box-shadow: var(--sh-sm); display: block; width: 100%; }

/* ========== Articles Grid: 3-cols + first-two wide ========== */
.articles-section { padding: clamp(16px, 4vw, 28px) 0; }
.articles-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; margin-top: 12px;
}
.article-card {
  grid-column: span 2; background: #fff; border-radius: 12px; padding: 18px; text-align: center;
  box-shadow: var(--sh-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:nth-child(-n+2) { grid-column: span 3; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.article-card img {
  inline-size: 84px; block-size: 84px; border-radius: 50%; border: 3px solid #eef0f1; margin: 0 auto 12px;
}
.article-card h3 { margin: 8px 0 6px; font-size: 1.05rem; font-weight: 800; }
.article-card p { margin: 0 0 10px; color: #666; }
.article-card a { color: #0e91e3; font-weight: 700; }

@media (max-width: 992px) {
  .articles-grid { grid-template-columns: repeat(4, 1fr); }
  .article-card { grid-column: span 2; }
  .article-card:nth-child(-n+2) { grid-column: span 4; }
}
@media (max-width: 680px) {
  .articles-grid { grid-template-columns: 1fr; gap: 18px; }
  .article-card { grid-column: 1 / -1; }
}

/* ========== Testimonials ========== */
.testimonials { background: #f9f9f9; padding: clamp(24px, 5vw, 56px) 0; }
.testimonials h3 { margin: 0 0 10px; font-size: 1rem; color: #475569; font-weight: 800; }
.testimonial-slider {
  list-style: none; margin: 0; padding: 16px 0; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
}
.testimonial {
  min-width: 300px; background: #fff; border-radius: 12px; box-shadow: var(--sh-xs); padding: 18px; scroll-snap-align: start;
}
.testimonial img { inline-size: 60px; block-size: 60px; border-radius: 50%; margin: 0 0 10px; }
.testimonial p { margin: 0 0 6px; color: #4b5563; }
.testimonial strong { color: #0b1220; }

/* ========== Timeline (curved connectors, RTL-friendly) ========== */
.timeline-section {
  background: linear-gradient(to bottom, #0e91e3, #8ad2ff);
  color: #fff; position: relative; padding: clamp(28px, 6vw, 64px) 0; overflow: hidden;
}
.timeline-content { position: relative; }
.timeline-content::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 4px; border-radius: 2px;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.95) 0 16px, rgba(255,255,255,.35) 16px 32px);
}
.timeline-item { position: relative; margin: clamp(18px, 3vw, 28px) 0; min-height: 80px; }
.timeline-card {
  width: min(520px, 46%); background: #fff; color: #0b1220; border-radius: 14px; box-shadow: var(--sh-md);
  padding: 16px 18px; transition: transform .2s ease, box-shadow .2s ease;
}
.timeline-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.timeline-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; }
.timeline-card p { margin: 0; color: #475569; line-height: 1.9; }
.timeline-item.left .timeline-card { margin-right: auto; }
.timeline-item.right .timeline-card { margin-left: auto; }
.timeline-dot {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  inline-size: 14px; block-size: 14px; background: #fff; border: 3px solid var(--color-yellow); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,255,255,.22);
}
/* Curved connectors */
.timeline-item.left::after,
.timeline-item.right::after {
  content: ""; position: absolute; top: calc(50% - var(--curve, 52px));
  width: var(--curve, 52px); height: var(--curve, 52px); border-top: 2px solid rgba(255,255,255,.95);
}
.timeline-item.left::after { right: 50%; border-right: 2px solid rgba(255,255,255,.95); border-radius: 0 var(--curve,52px) 0 0; }
.timeline-item.right::after { left: 50%; border-left: 2px solid rgba(255,255,255,.95); border-radius: var(--curve,52px) 0 0 0; }

@media (max-width: 820px) {
  .timeline-content::before { left: 18px; transform: none; }
  .timeline-card { width: 100%; padding-inline-start: 22px; margin: 0; }
  .timeline-dot { left: 18px; transform: translate(-50%, -50%); }
  .timeline-item::after { display: none; }
  .timeline-item .timeline-card::before {
    content: ""; position: absolute; top: 16px; left: -26px;
    width: 26px; height: 18px; border-bottom: 2px solid rgba(255,255,255,.85); border-left: 2px solid rgba(255,255,255,.85);
    border-radius: 0 0 0 18px;
  }
}

/* ========== Footer ========== */
.footer-top {
  background: linear-gradient(to bottom, #0e91e3, #8ad2ff);
  color: #fff; position: relative; padding: clamp(28px, 5vw, 56px) 0;
}
.contact-info { margin: 0 0 10px; font-size: clamp(1.6rem, 3.2vw, 2.8rem); font-weight: 900; }
.contact-grid {
  display: grid; gap: 20px; margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.contact-col h4 { margin: 14px 0 8px; font-weight: 900; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-item img { inline-size: 34px; block-size: 34px; flex: 0 0 34px; }

/* ========== Table (responsive) ========== */
.table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.25em 0; }
.table-wrapper table {
  width: 100%; border-collapse: collapse; background: var(--pmf-white); border-radius: 12px; box-shadow: var(--shadow-soft);
  font-size: 16px; overflow: hidden;
}
.table-wrapper th, .table-wrapper td {
  padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--color-yellow-light); word-break: break-word;
}
.table-wrapper th {
  background: var(--color-yellow); color: var(--color-blue-dark); font-weight: 800; font-size: 17px; letter-spacing: .3px;
}
.table-wrapper tr:last-child td { border-bottom: none; }
.table-wrapper tr:hover td { background: var(--color-yellow-light); transition: background .2s ease; }
@media (max-width: 768px) {
  .table-wrapper thead { display: none; }
  .table-wrapper tr { display: grid; gap: 6px; margin-bottom: 12px; border: 1px solid var(--bd); border-radius: 10px; padding: 10px; box-shadow: var(--shadow-light); }
  .table-wrapper td { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 0; border-bottom: 1px solid #f0f0f0; }
  .table-wrapper td:last-child { border-bottom: 0; }
  .table-wrapper td::before { content: attr(data-label); font-weight: 700; color: var(--color-blue-dark); flex: 0 0 45%; text-align: right; }
  .table-wrapper td span { flex: 1; text-align: left; direction: ltr; color: #333; }
}

/* ========== Forminator (Module ID نمونه) ========== */
#forminator-module-106663 {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); padding: 24px; max-width: 560px; margin: 2em auto;
}
#forminator-module-106663 .forminator-input,
#forminator-module-106663 .forminator-textarea,
#forminator-module-106663 .forminator-select {
  border: 1.5px solid var(--color-yellow); border-radius: 10px; padding: 12px 14px; font-size: 16px;
  background: var(--color-yellow-light); color: var(--color-blue-dark); margin-bottom: 14px; transition: border-color .2s, background .2s;
}
#forminator-module-106663 .forminator-input:focus,
#forminator-module-106663 .forminator-textarea:focus,
#forminator-module-106663 .forminator-select:focus {
  border-color: var(--color-blue-dark); background: #fff; outline: 0;
}
#forminator-module-106663 .forminator-label { color: var(--color-blue-dark); font-weight: 800; font-size: 15px; margin-bottom: 6px; display: block; }
#forminator-module-106663 .forminator-button {
  background: var(--color-yellow); color: #002b45; border: 0; border-radius: 10px; padding: 12px 22px; font-size: 16px; font-weight: 800;
  box-shadow: var(--shadow-soft); cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
#forminator-module-106663 .forminator-button:hover { background: var(--color-blue-dark); color: #fff; transform: translateY(-1px); }
#forminator-module-106663 .forminator-response-message {
  background: var(--color-yellow-light); border-inline-start: 5px solid var(--color-yellow); border-radius: 10px; padding: 12px 14px; font-size: 15px; margin-bottom: 12px;
}
#forminator-module-106663 .forminator-error-message { color: var(--color-red); font-size: 14px; margin-top: 4px; }
@media (max-width: 600px) {
  #forminator-module-106663 { padding: 16px; }
  #forminator-module-106663 .forminator-button { width: 100%; }
}

/* ========== Hide featured image in single post (optional) ========== */
.single-post .single-post-image,
.single-post .wp-post-image { display: none !important; }
.single-post .post-date { position: static !important; margin-bottom: 10px; }

/* ========== PMF Top Bar v2 ========== */
.pmf-top--v2 {
  --pmf-logo-size: 120px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center;
  padding: 14px 0 18px; border-bottom: 1px solid var(--pmf-border);
}
.pmf-top--v2 .pmf-search { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid var(--pmf-border); border-radius: 10px; padding: 8px; backdrop-filter: blur(2px); }
.pmf-top--v2 .pmf-search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--pmf-white); font-size: 14px; padding: 6px 8px; }
.pmf-top--v2 .pmf-search input::placeholder { color: var(--pmf-muted); }
.pmf-top--v2 .pmf-search button { background: var(--pmf-btn); border: 0; color: #002b45; font-weight: 700; border-radius: 8px; padding: 8px 12px; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.pmf-top--v2 .pmf-search button:hover { transform: translateX(-1px); opacity: .95; }
.pmf-top--v2 .pmf-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.pmf-top--v2 .pmf-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--pmf-btn); color: #002b45; text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 8px; transition: transform .15s ease, opacity .15s ease; }
.pmf-top--v2 .pmf-btn:hover { transform: translateY(-1px); opacity: .95; }
.pmf-top--v2 .pmf-btn.is-ghost { background: var(--pmf-btn-ghost); color: var(--pmf-white); border: 1px solid var(--pmf-border); }
.pmf-top--v2 .pmf-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pmf-top--v2 .pmf-contact-list li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.9; font-size: 14px; }
.pmf-top--v2 .pmf-contact-list i { color: var(--pmf-accent); width: 18px; text-align: center; margin-top: 4px; }

/* ========== PMX/PMW Common Blocks ========== */
.pmx-article, .pm-work-ie {
  --acc:#2563eb; --acc2:#7fd3ff; --yel:#f59e0b; --yel2:#facc15;
  --txt:#0f172a; --mut:#64748b; --card:#f8fafc; --bd:#e9eef5; --sh:0 10px 30px rgba(15,23,42,.08);
  font-size: 16px; line-height: 1.85; color: var(--txt);
}
.pmx-container, .pmw-container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* Hero PMX/PMW */
.pmx-hero, .pmw-hero {
  background: var(--grad-hero); padding: 28px 0; border-radius: 14px; box-shadow: var(--sh); margin: 8px 0 18px;
}
.pmx-title, .pmw-hero h1 { margin: 0 0 6px; font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 800; }
.pmx-sub, .pmw-hero .pmw-sub { margin: 0 0 10px; color: var(--mut); }
.pmx-hero-grid, .pmw-hero-grid { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pmx-btn, .pmw-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--bd); color: var(--txt);
  text-decoration: none; box-shadow: var(--sh); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.pmx-btn::after, .pmw-btn::after { content: "›"; color: var(--acc); }
.pmx-btn:hover, .pmw-btn:hover { transform: translateY(-2px); border-color: var(--acc); box-shadow: 0 12px 28px rgba(37, 99, 235, .12); }
.pmx-btn--filled, .pmw-btn--filled { background: linear-gradient(180deg, var(--yel2), var(--yel)); border-color: var(--yel); color: #111827; }
@media (max-width: 920px) { .pmx-hero-grid, .pmw-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .pmx-hero-grid, .pmw-hero-grid { grid-template-columns: 1fr; } }

/* Grid/Related */
.pmx-grid, .pmw-grid { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pmx-grid a, .pmw-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); border: 1.5px solid rgba(37, 99, 235, .25);
  border-radius: 14px; padding: 12px 16px; font-size: 15px; font-weight: 500; color: var(--txt); text-decoration: none; box-shadow: 0 6px 16px rgba(15, 23, 42, .08); transition: all .25s ease;
}
.pmx-grid a::after, .pmw-grid a::after { content: "↗"; color: var(--acc); font-weight: bold; margin-inline-start: auto; }
.pmx-grid a:hover, .pmw-grid a:hover { background: var(--grad-hover); border-color: var(--acc); color: #1e293b; box-shadow: 0 8px 20px rgba(37, 99, 235, .2); transform: translateY(-3px) scale(1.02); }
@media (max-width: 680px) { .pmx-grid, .pmw-grid { grid-template-columns: 1fr; } }

/* Cards */
.pmx-cards, .pmw-cards {
  list-style: none; padding: 0; margin: 12px 0 4px; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pmx-cards a, .pmw-cards a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid rgba(100, 116, 139, .25); border-radius: 14px; padding: 12px 16px; font-size: 15px; font-weight: 500; color: var(--txt); box-shadow: 0 6px 16px rgba(15, 23, 42, .08); text-decoration: none; transition: all .25s ease;
}
.pmx-cards a::after, .pmw-cards a::after { content: "›"; color: var(--acc); font-weight: bold; }
.pmx-cards a:hover, .pmw-cards a:hover { background: var(--grad-hover); border-color: var(--acc); color: #1e293b; box-shadow: 0 8px 20px rgba(37, 99, 235, .2); transform: translateY(-3px) scale(1.02); }
@media (max-width: 920px) { .pmx-cards, .pmw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .pmx-cards, .pmw-cards { grid-template-columns: 1fr; } }

/* Pills */
.pmx-pill, .pmw-pill { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pmx-pill a, .pmw-pill a {
  display: inline-block; background: linear-gradient(135deg, #ffffff 0%, #f9fafc 100%);
  border: 1.5px solid rgba(37, 99, 235, .4); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--txt); text-decoration: none; box-shadow: 0 4px 12px rgba(37, 99, 235, .08); transition: all .25s ease;
}
.pmx-pill a:hover, .pmw-pill a:hover { background: linear-gradient(135deg, var(--acc) 0%, #3b82f6 100%); color: #fff; border-color: var(--acc); box-shadow: 0 6px 18px rgba(37, 99, 235, .25); transform: translateY(-2px); }

/* Accordion */
.pmx-acc, .pmw-acc { margin: 14px 0; font-size: 16px; line-height: 1.85; color: var(--txt); }
.pmx-acc-item, .pmw-acc-item { background: #fff; border: 1px solid var(--bd); border-radius: 12px; overflow: hidden; box-shadow: var(--sh); margin-bottom: 8px; }
.pmx-acc-item summary, .pmw-acc-item summary {
  list-style: none; cursor: pointer; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(180deg, #fff, #fbfdff);
}
.pmx-acc-item summary::-webkit-details-marker, .pmw-acc-item summary::-webkit-details-marker { display: none; }
.pmx-acc-item summary span, .pmw-acc-item summary span { font-weight: 700; color: #0b1220; }
.pmx-acc-item summary i, .pmw-acc-item summary i { width: 16px; height: 16px; position: relative; flex: 0 0 16px; }
.pmx-acc-item summary i::before, .pmx-acc-item summary i::after, .pmw-acc-item summary i::before, .pmw-acc-item summary i::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--acc); transition: .2s; border-radius: 1px;
}
.pmx-acc-item summary i::before, .pmw-acc-item summary i::before { width: 12px; height: 2px; }
.pmx-acc-item summary i::after, .pmw-acc-item summary i::after { width: 2px; height: 12px; }
.pmx-acc-item[open] summary i::after, .pmw-acc-item[open] summary i::after { transform: scaleY(0); }
.pmx-acc-panel, .pmw-acc-panel { padding: 10px 14px 14px; background: #fff; }
.pmw-acc-intro { margin: 0 0 10px; color: var(--mut); }
.pmw-acc-list { display: grid; gap: 10px; }
.pmw-acc-foot { margin: 10px 2px 0; color: var(--mut); font-size: 14px; }

/* External links hint */
.pmx-article a[target="_blank"]::after, .pm-work-ie a[target="_blank"]::after {
  content: "↗"; font-size: 12px; margin-inline: 4px; color: var(--acc);
}

/* Anchor offset */
.pmx-article [id], .pm-work-ie [id] { scroll-margin-top: 110px; }

/* TOC (LuckyWP) */
.pmx-article .lwptoc, .pm-work-ie .lwptoc {
  background: #fff; border: 1px solid var(--bd); border-radius: 12px; box-shadow: var(--sh); padding: 12px 14px; margin: 12px 0;
}
.pmx-article .lwptoc_title, .pm-work-ie .lwptoc_title { margin: 0 0 6px; font-weight: 700; color: #0b1220; }
.pmx-article .lwptoc_items a, .pm-work-ie .lwptoc_items a { color: var(--txt); }
.pmx-article .lwptoc_items a:hover, .pm-work-ie .lwptoc_items a:hover { color: var(--acc); }
@media (max-width: 767px) { .lwptoc, .lwptoc_i { display: none !important; } }

/* Video Card */
.pmw-video-card {
  max-width: 640px; margin: 20px auto; display: block; border-radius: 12px; overflow: hidden; background: #000; box-shadow: var(--sh);
}
.pmw-video-card video {
  width: 640px; height: 360px; max-width: 100%; display: block; margin: auto; object-fit: contain; background: #000;
}
@media (max-width: 767px) {
  .pmw-video-card { max-width: 100%; }
  .pmw-video-card video { width: 100%; height: auto; }
}
.pmw-video-card > div { padding: 16px 20px; background: var(--card); color: var(--txt); border-top: 1px solid var(--bd); }
.pmw-video-card h3 { margin: 0 0 8px; color: var(--txt); font-weight: 700; font-size: 18px; }
.pmw-video-card p { margin: 0; color: var(--mut); font-size: 15px; line-height: 1.6; }

/* ========== Misc helpers ========== */
.stats-image img, .article-img, .hero img { object-fit: cover; border-radius: inherit; }
.contact-item img { width: 40px; height: 40px; margin-left: 20px; }
@media (max-width: 768px) {
  .contact-item img { width: 30px; height: 30px; margin-left: 15px; }
}
@media (max-width: 576px) {
  .contact-item img { width: 25px; height: 25px; margin-left: 10px; }
}

/* Responsive tweaks for headings (legacy) */
@media (max-width: 992px) {
  .stats-section { flex-direction: column; text-align: center; }
  .stats-image { order: -1; max-width: 100%; }
}/* ========================================= PMF Footer – فقط ریسپانسیو + فاصله (بدون تغییر رنگ/لوگو) ========================================= */

/* فقط ساختار و فاصله — رنگ‌ها دست‌نخورده */
.pmf-top {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 32px !important;
  padding: 40px 5% !important; /* فاصله کناری */
  font-family: 'Vazirmatn', sans-serif !important;
  direction: rtl !important;
}

/* ستون‌ها */
.pmf-search-block,
.pmf-contacts {
  flex: 1 1 380px !important;
}

/* لوگو — اندازه اصلی حفظ می‌شه */
.pmf-logo-large img {
  height: auto !important;
  max-height: 80px !important;
  width: auto !important;
}

/* ========================================= RESPONSIVE – موبایل ========================================= */
@media (max-width: 992px) {
  .pmf-top {
    flex-direction: column !important;
    text-align: center !important;
    padding: 36px 6% !important;
  }
  .pmf-ctas { justify-content: center !important; }
  .pmf-search-block,
  .pmf-contacts { flex: 1 1 auto !important; }
}

@media (max-width: 576px) {
  .pmf-top {
    padding: 32px 8% !important; /* فاصله 8% از کناره‌ها */
    gap: 28px !important;
  }
  .pmf-search {
    flex-direction: column !important;
  }
  .pmf-search input {
    border-radius: 50px 50px 0 0 !important;
  }
  .pmf-search button {
    border-radius: 0 0 50px 50px !important;
    padding: 12px !important;
  }
  .pmf-btn {
    font-size: 0.9rem !important;
    padding: 8px 16px !important;
  }
  .pmf-logo-large img {
    max-height: 65px !important; /* کمی کوچیک‌تر در موبایل، اما خوانا */
  }
  .pmf-contact-list li,
  .pmf-social {
    justify-content: center !important;
  }
  .pmf-social a {
    width: 38px !important;
    height: 38px !important;
  }
}
p {
  text-align: justify !important;
  hyphens: auto !important;           /* برای شکستن کلمات طولانی */
  line-height: 1.8 !important;        /* خوانایی بهتر */
}
/* دسکتاپ: متن + تصویر کنار هم و هم‌تراز وسط */
@media (min-width: 992px) {
  #work-permit-ca .row {
    display: grid;
    grid-template-columns: 41.666% 58.333%; /* col-lg-5 / col-lg-7 */
    align-items: center;
    gap: 32px;
  }
  #work-permit-ca .col-lg-5,
  #work-permit-ca .col-lg-7 { flex: 0 0 auto; width: auto; }

  #work-permit-ca .article-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;     /* نسبت تصویر؛ قابل تغییر */
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  #work-permit-ca .article-title { margin-bottom: 12px; }
  #work-permit-ca .article-text  { margin-bottom: 18px; }
}

/* موبایل/تبلت: متن بالاتر از تصویر برای خوانایی بهتر */
@media (max-width: 991.98px) {
  #work-permit-ca .row {
    display: flex;
    flex-direction: column-reverse;
    gap: 16px;
  }
  #work-permit-ca .article-img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }
}
/* گوشه‌های نرم برای بخش مقاله + تایم‌لاین */
.article-section .article-img {
  border-radius: 16px; /* می‌تونی 14/18/20 هم تست کنی */
}

/* اگر تصویر بخش آمار هم می‌خوای نرم باشه */
.stats-image {
  border-radius: 16px;
}
.stats-image img {
  border-radius: inherit; /* همون مقدار container */
}

/* کارت‌های تایم‌لاین */
.timeline-section .timeline-card {
  border-radius: 16px;
}
/* اگر داخل تایم‌لاین عکس می‌ذاری: */
.timeline-section .timeline-card img {
  border-radius: 12px;
  display: block;
}

/* در موبایل کمی ظریف‌تر */
@media (max-width: 680px) {
  .article-section .article-img,
  .stats-image,
  .timeline-section .timeline-card {
    border-radius: 12px;
  }
}
/* نوار بالای منو - تماس سریع پارس مهاجرت */
.pmx-top-message{
  position: sticky; top: 0; z-index: 1200;
  inset-inline: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px 16px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(14,145,227,.97), rgba(85,180,223,.97));
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 6px 18px rgba(14,145,227,.22);
  border-radius: 0 0 12px 12px; /* گوشه‌های نرم پایین */
  font-size: 15px;
}

.pmx-top-text{
  text-wrap: balance;
}

.pmx-top-call{
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffffff;
  color: #0b1220;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pmx-top-call:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
}

.pmx-top-ico{
  width: 18px; height: 18px;
  color: #0e91e3; fill: currentColor;
}
.pmx-top-number{
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
}

/* موبایل: تمرکز روی دکمه تماس */
@media (max-width: 640px){
  .pmx-top-message{ padding: 10px 12px; justify-content: space-between; }
  .pmx-top-text{ display: none; }
}

/* احترام به کاهش حرکت */
@media (prefers-reduced-motion: reduce){
  .pmx-top-call{ transition: none; }
}