/*
Theme Name: طرح فردا (Tarhe Farda)
Theme URI: https://tarhefardaa.ir
Author: TES Factory
Description: قالب سفارشی مدرسه‌ی طراحی لباس «طرح فردا» (نسل فردا) — ساخته‌شده از دیزاین‌سیستم قفل‌شده (wp-factory/engine/sites/tarhefardaa/DESIGN.md). فونت‌ها self-hosted.
Version: 1.2.3
Requires PHP: 8.1
Text Domain: tarhefardaa
*/

/* ── فونت‌های self-hosted (بدون CDN — قاعده‌ی DESIGN.md) ── */
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-Variable.woff2') format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/CormorantGaramond-normal-300_700.woff2') format('woff2-variations'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/CormorantGaramond-italic-300_700.woff2') format('woff2-variations'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-normal-200_800.woff2') format('woff2-variations'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('fonts/SpaceMono-normal-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('fonts/SpaceMono-normal-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ════════════════════════════════════════════════════════════════════════
   طرح فردا (tarhefardaa.ir) — صفحه‌ی نخست · دیزاین‌سیستم قفل‌شده‌ی نسل فردا
   منبع توکن‌ها (verbatim): wp-factory/engine/sites/tarhefardaa/design-system/
   لی‌اوت: بازآفرینی دقیق رفرنس Lumora با رنگ/تایپ برند (زرد #FFF200 اکسنت)
   ⚠️ در پورت وردپرس: فونت‌ها self-hosted می‌شوند (اینجا CDN فقط برای پیش‌نمایش)
   ════════════════════════════════════════════════════════════════════════ */


/* ── TOKENS (کپی از tokens/*.css — تغییر ممنوع بدون تأیید) ──────────────── */
:root {
  --yellow-050: #FEFCE0; --yellow-100: #FEF9B8; --yellow-200: #FEF47A;
  --yellow-300: #FFEE3D; --yellow-400: #FFF200; --yellow-500: #F2E000;
  --yellow-600: #C9B800; --yellow-700: #8F8200;

  --paper: #FAF6EE; --paper-2: #F3ECDF; --paper-3: #ECE3D2;
  --sand: #E4D9C4;  --sand-2: #D6C8AE;

  --ink-900: #1A1813; --ink-800: #2B281F; --ink-700: #423D31;
  --ink-500: #6E685A; --ink-400: #8C8574; --ink-300: #B4AB96;
  --white: #FFFFFF;

  --clay-100: #F3E4DE; --clay-300: #E3C4BB; --clay-500: #C98F80; --clay-700: #9A5F51;
  --olive-700: #2E362A; --olive-500: #45503C;

  --success-500: #3F7A57; --danger-500: #BE4432; --info-500: #4A6C8C;

  --bg: var(--paper); --bg-raised: var(--paper-2); --bg-inset: var(--paper-3);
  --surface-card: var(--white); --surface-ink: var(--ink-900);
  --border: var(--sand); --border-strong: var(--sand-2); --border-ink: var(--ink-900);
  --text: var(--ink-900); --text-heading: var(--ink-700); --text-muted: var(--ink-500);
  --text-subtle: var(--ink-400); --text-on-accent: var(--ink-900); --text-on-ink: var(--paper);
  --accent: var(--yellow-400); --accent-strong: var(--yellow-500);
  --accent-wash: var(--yellow-050); --accent-ink: var(--yellow-700);
  --focus-ring: var(--ink-900); --focus-halo: rgba(255, 242, 0, 0.55);

  --font-display: 'Cormorant Garamond', 'Vazirmatn', Georgia, serif;
  --font-sans: 'Manrope', 'Vazirmatn', ui-sans-serif, system-ui, sans-serif;
  --font-fa: 'Vazirmatn', 'Manrope', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --fs-display-1: 88px; --fs-display-2: 64px; --fs-h1: 44px; --fs-h2: 34px;
  --fs-h3: 26px; --fs-h4: 20px; --fs-body-lg: 18px; --fs-body: 16px;
  --fs-sm: 14px; --fs-xs: 12.5px; --fs-eyebrow: 11.5px;
  --lh-heading: 1.14; --lh-body: 1.6; --ls-eyebrow: 0.22em;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px;
  --space-9: 48px; --space-10: 64px; --space-11: 80px; --space-12: 96px;
  --page-max: 1240px; --page-gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(56px, 8vw, 128px); --content-narrow: 680px;

  --radius-xs: 6px; --radius-sm: 10px; --radius-md: 16px; --radius-lg: 24px;
  --radius-xl: 32px; --radius-2xl: 44px; --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(26,24,19,.06);
  --shadow-sm: 0 2px 6px -2px rgba(26,24,19,.10);
  --shadow-md: 0 10px 26px -12px rgba(26,24,19,.18);
  --shadow-lg: 0 26px 60px -22px rgba(26,24,19,.24);
  --shadow-yellow: 0 12px 30px -12px rgba(255,242,0,.55);
  --ease-out: cubic-bezier(.22,.61,.36,1); --ease-soft: cubic-bezier(.34,1.4,.64,1);
  --dur-fast: 140ms; --dur-base: 220ms; --dur-slow: 360ms;
}

/* ── پایه ────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-fa); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 5px var(--focus-halo); border-radius: var(--radius-xs); }
.icon { display: inline-flex; flex: none; }
.icon svg { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.container { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--page-gutter); }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ink-500);
}
/* eyebrow فارسی: tracking عریض mono برای فارسی مناسب نیست */
.eyebrow--fa { font-family: var(--font-fa); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: none; }

/* ── دکمه‌ها (pill) ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: var(--radius-pill); font-family: var(--font-fa);
  font-weight: 700; transition: transform var(--dur-fast) var(--ease-out),
  background var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 30px; font-size: 15.5px; }
.btn-md { padding: 11px 22px; font-size: 14px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-ink { background: var(--ink-900); color: var(--text-on-ink); }
.btn-ink:hover { background: var(--ink-700); box-shadow: var(--shadow-sm); }
.btn-yellow { background: var(--accent); color: var(--text-on-accent); }
.btn-yellow:hover { background: var(--accent-strong); box-shadow: var(--shadow-yellow); }
.btn-paper { background: var(--surface-card); color: var(--ink-900); border: 1px solid var(--border-strong); }
.btn-paper:hover { border-color: var(--ink-900); }
.btn-ghost-dark { background: transparent; color: var(--paper); border: 1.5px solid rgba(250,246,238,.45); }
.btn-ghost-dark:hover { border-color: var(--paper); background: rgba(250,246,238,.08); }
.icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: none; background: transparent; color: var(--ink-800);
  font-size: 19px; transition: background var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--paper-2); }

/* ── هدر ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,246,238,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 28px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name b { font-size: 18px; font-weight: 800; color: var(--ink-900); }
.brand-name span { font-family: var(--font-sans); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-400); }
.site-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--ink-500); transition: color var(--dur-fast); }
.site-nav a:hover { color: var(--ink-900); }
.site-nav a.is-active { color: var(--ink-900); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 6px; }

/* ── هیرو ────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero .container {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center;
  padding-block: var(--space-9) var(--space-10);
}
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.hero-copy .eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-title { font-size: clamp(38px, 4.6vw, 58px); font-weight: 800; line-height: 1.22; color: var(--ink-900); }
.hero-title .hl { background: linear-gradient(transparent 64%, var(--yellow-300) 64%); }
.hero-title-en {
  direction: ltr; text-align: right; unicode-bidi: isolate;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(20px, 2vw, 26px); color: var(--ink-500); margin-top: 10px;
}
.hero-sub { font-size: 16.5px; color: var(--ink-700); line-height: 2; max-width: 430px; margin-top: 20px; }
.hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; gap: 34px; margin-top: 42px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-chip {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 20px; color: var(--ink-800); flex: none;
}
.trust-chip.t-yellow { background: var(--yellow-100); }
.trust-chip.t-clay { background: var(--clay-100); }
.trust-chip.t-paper { background: var(--paper-3); }
.trust-item b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-900); }
.trust-item span { font-size: 11.5px; color: var(--ink-500); }

/* تزئین خطی (line-art) گوشه‌ی هیرو */
.hero-deco { position: absolute; top: 84px; inset-inline-start: calc(var(--page-gutter) * .35); color: var(--ink-300); }
.hero-deco svg { width: 74px; height: 110px; stroke: currentColor; fill: none; stroke-width: 1.1; stroke-linecap: round; }

/* ستون بصری هیرو: قوس‌های clay پشت عکس + کارت شناور */
.hero-visual { position: relative; height: 540px; }
.hero-arch {
  position: absolute; inset-inline-end: 2%; top: 4%; width: 82%; height: 92%;
  background: var(--clay-300); border-radius: 999px 999px var(--radius-xl) var(--radius-xl);
}
.hero-arch-2 {
  position: absolute; inset-inline-end: 0; bottom: 2%; width: 34%; height: 44%;
  background: var(--paper-3); border-radius: 999px 999px 0 999px;
}
/* specificity دوکلاسه لازم است: .photo (پایین‌تر در فایل) position:relative می‌گذارد */
.hero-visual .hero-photo {
  position: absolute; inset-inline-end: 12%; top: 12%; bottom: 0; width: 62%;
  border-radius: 999px 999px var(--radius-xl) var(--radius-xl); overflow: hidden;
}
.rating-badge {
  position: absolute; top: 26px; inset-inline-start: 2%;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink-900); color: var(--paper); border-radius: var(--radius-pill);
  padding: 8px 15px; font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow-md);
}
.rating-badge .icon { color: var(--accent); font-size: 14px; }
.float-card {
  position: absolute; bottom: 34px; inset-inline-start: 0; width: 218px;
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px; box-shadow: var(--shadow-lg);
}
.float-card .heart {
  position: absolute; top: 20px; inset-inline-end: 20px; width: 32px; height: 32px;
  background: var(--surface-card); border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 15px; color: var(--ink-700); box-shadow: var(--shadow-xs);
}
.float-card .tile { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 10px; }
.float-card b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-900); }
.float-card .code { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ink-400); }
.float-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.float-card .price { font-size: 13px; font-weight: 800; color: var(--ink-900); }
.float-card .price small { font-size: 10px; font-weight: 400; color: var(--ink-500); }
.float-dots { display: flex; gap: 5px; justify-content: center; margin-top: 12px; }
.float-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--sand-2); }
.float-dots i.on { background: var(--ink-700); }

/* ── placeholder عکس (عکاسی هنوز تحویل نشده) ────────────────────────────── */
.photo {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; overflow: hidden;
}
.photo::after {
  content: attr(data-label); font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .05em; color: currentColor; opacity: .8; direction: ltr;
}
.photo .icon { font-size: 24px; opacity: .85; }
.photo-clay { background: linear-gradient(140deg, #EDD6CF, #E3C4BB 60%, #D8B3A8); color: var(--clay-700); }
.photo-clay-deep { background: linear-gradient(150deg, #DFB5A8, #C98F80 60%, #BA8172); color: rgba(255,250,246,.9); }
.photo-paper { background: linear-gradient(140deg, #F3ECDF, #E9DFCB); color: var(--clay-700); }
.photo-olive { background: linear-gradient(140deg, #6E7A62, #45503C); color: rgba(255,255,255,.75); }
.photo-ink { background: linear-gradient(140deg, #2B281F, #1A1813); color: rgba(255,255,255,.72); }

/* ── پنل مسیرهای آموزشی (Shop by Category) ──────────────────────────────── */
.section-cats { padding-block: 0 var(--space-10); }
.cats-panel {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 34px 38px 30px;
}
.cats-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.cats-head h2 { font-size: 24px; font-weight: 800; color: var(--ink-900); }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-700); transition: color var(--dur-fast); }
.link-more:hover { color: var(--accent-ink); }
.cats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 13px;
  padding: 12px 6px; border-radius: var(--radius-md); background: transparent; border: none;
  transition: background var(--dur-fast) var(--ease-out);
}
.cat:hover { background: var(--paper); }
.cat-circle {
  width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  color: var(--ink-800); background: var(--paper-2);
  transition: transform var(--dur-base) var(--ease-soft), border-color var(--dur-fast);
}
.cat:hover .cat-circle { transform: translateY(-4px); border-color: var(--sand-2); }
.cat b { font-size: 14.5px; font-weight: 700; color: var(--ink-900); }
.cat span { font-size: 12px; color: var(--ink-400); }

/* ── باند تخفیف (Spring Sale) ────────────────────────────────────────────── */
.section-promo { padding-block: 0 var(--space-10); }
.promo {
  position: relative; background: var(--olive-700); color: var(--paper);
  border-radius: var(--radius-xl); overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
}
.promo-copy { padding: clamp(32px, 4.5vw, 56px); }
.promo-copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow-300); margin-bottom: 14px; }
.promo-copy .eyebrow .icon { font-size: 13px; }
.promo-copy h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.3; }
.promo-copy p { font-size: 15px; line-height: 2; color: rgba(250,246,238,.72); max-width: 380px; margin-top: 12px; }
.promo-copy .btn { margin-top: 24px; }
.promo-visual { position: relative; align-self: stretch; min-height: 300px; }
.promo-visual .photo { position: absolute; inset: 0; }
.promo-burst {
  position: absolute; z-index: 2; top: 50%; inset-inline-start: -66px; transform: translateY(-50%);
  width: 148px; height: 148px; border-radius: 50%; background: var(--accent);
  color: var(--text-on-accent); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; box-shadow: var(--shadow-yellow);
}
.promo-burst small { font-size: 12px; font-weight: 700; }
.promo-burst b { font-size: 34px; font-weight: 800; line-height: 1; }
.promo-burst span { font-size: 12px; font-weight: 700; }

/* ── دوره‌های جدید (New Arrivals) ────────────────────────────────────────── */
.section-new { padding-block: 0 var(--space-10); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { font-size: 26px; font-weight: 800; color: var(--ink-900); }
.section-head .eyebrow { display: block; margin-bottom: 8px; }
.new-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.course-card {
  display: block; position: relative; background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course-card .photo { aspect-ratio: 1 / 1; }
.course-card .heart {
  position: absolute; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px;
  background: var(--surface-card); border-radius: 50%; border: none; display: flex;
  align-items: center; justify-content: center; font-size: 14px; color: var(--ink-700);
  box-shadow: var(--shadow-xs);
}
.course-card .heart:hover { color: var(--danger-500); }
.course-body { padding: 14px 15px 16px; }
.course-body .code { font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; color: var(--ink-400); text-transform: uppercase; }
.course-body b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink-900); margin-top: 4px; }
.course-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.course-meta .price { font-size: 13.5px; font-weight: 800; color: var(--ink-900); }
.course-meta .price small { font-size: 10.5px; font-weight: 400; color: var(--ink-500); }
.level-dots { display: flex; gap: 4px; }
.level-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--paper-3); border: 1px solid var(--sand-2); }
.level-dots i.on { background: var(--yellow-400); border-color: var(--yellow-600); }

/* ── خبرنامه (Join the Circle) ───────────────────────────────────────────── */
.section-news { padding-block: 0 var(--space-9); }
.newsletter {
  background: var(--clay-100); border-radius: var(--radius-lg);
  padding: 26px 34px; display: flex; align-items: center; gap: 24px;
}
.news-chip {
  width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--ink-900);
  color: var(--paper); display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex: none;
}
.newsletter b { display: block; font-size: 17px; font-weight: 800; color: var(--ink-900); }
.newsletter p { font-size: 12.5px; color: var(--ink-500); margin-top: 3px; }
.news-form { display: flex; gap: 10px; margin-inline-start: auto; flex: none; }
.news-form input {
  width: min(320px, 34vw); padding: 13px 22px; border-radius: var(--radius-pill);
  border: 1px solid var(--sand-2); background: var(--surface-card);
  font-family: var(--font-fa); font-size: 13.5px; color: var(--ink-900);
}
.news-form input::placeholder { color: var(--ink-400); }
.news-form input:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; box-shadow: 0 0 0 5px var(--focus-halo); }

/* ── نوار ارزش‌ها (footer strip) ─────────────────────────────────────────── */
.value-strip { border-top: 1px solid var(--border); }
.value-strip .container {
  display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 30px;
}
.value {
  display: flex; align-items: center; gap: 14px; padding-inline: 26px;
  border-inline-start: 1px solid var(--border);
}
.value:first-child { border-inline-start: none; padding-inline-start: 0; }
.value .icon { font-size: 26px; color: var(--ink-800); }
.value b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-900); }
.value span { font-size: 11.5px; color: var(--ink-500); }

.copyright { border-top: 1px solid var(--border); }
.copyright .container {
  display: flex; align-items: center; justify-content: space-between; padding-block: 18px;
}
.copyright span { font-size: 12px; color: var(--ink-400); }
.copyright .en { font-family: var(--font-sans); letter-spacing: .04em; }

/* ── ریسپانسیو ───────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .new-grid { grid-template-columns: repeat(3, 1fr); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .value-strip .container { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .value:nth-child(odd) { border-inline-start: none; padding-inline-start: 0; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero .container { grid-template-columns: 1fr; padding-block-start: var(--space-7); }
  .hero-visual { height: 440px; }
  .hero-deco { display: none; }
  .promo { grid-template-columns: 1fr; }
  .promo-visual { min-height: 220px; }
  .promo-burst { top: -60px; inset-inline-start: 50%; transform: translateX(50%); width: 120px; height: 120px; }
  .promo-burst b { font-size: 26px; }
  .newsletter { flex-direction: column; align-items: flex-start; }
  .news-form { margin-inline-start: 0; width: 100%; }
  .news-form input { flex: 1; width: auto; }
}
@media (max-width: 620px) {
  .new-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-trust { flex-direction: column; gap: 16px; }
  .hero-cta { flex-wrap: wrap; }
  .value-strip .container { grid-template-columns: 1fr; }
  .value { border-inline-start: none; padding-inline: 0; }
}
/* ════════════════════════════════════════════════════════════════════════
   صفحات داخلی: کاتالوگ دوره‌ها + جزئیات دوره
   کامپوننت‌ها آینه‌ی components/ دیزاین‌سیستم‌اند (Tag/Badge/Tabs/Alert/Dialog)
   ════════════════════════════════════════════════════════════════════════ */

/* ── breadcrumb + سر صفحه ── */
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-400); margin-bottom: 22px; }
.breadcrumb a { color: var(--ink-500); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--ink-900); }
.breadcrumb .sep { color: var(--ink-300); }
.breadcrumb .current { color: var(--ink-900); font-weight: 600; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-head h1 { font-size: 40px; font-weight: 800; color: var(--ink-900); margin-top: 8px; }
.page-main { padding-block: var(--space-9) 0; }

/* ── input جستجو ── */
.search-box { position: relative; width: 300px; }
.search-box input {
  width: 100%; padding: 12px 44px 12px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface-card);
  font-family: var(--font-fa); font-size: 13.5px; color: var(--ink-900);
}
.search-box input::placeholder { color: var(--ink-400); }
.search-box input:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; box-shadow: 0 0 0 5px var(--focus-halo); }
.search-box .icon { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); font-size: 17px; color: var(--ink-400); pointer-events: none; }

/* ── چیپ‌های دسته (Tag) ── */
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-fa);
  font-size: 13.5px; font-weight: 500; line-height: 1; padding: 9px 15px;
  border-radius: var(--radius-pill); background: var(--surface-card); color: var(--ink-800);
  border: 1.5px solid var(--border-strong); cursor: pointer; user-select: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.tag:hover { border-color: var(--ink-900); }
.tag.selected { background: var(--ink-900); color: var(--text-on-ink); border-color: var(--ink-900); }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-fa);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1;
  padding: 5px 12px; border-radius: var(--radius-pill); white-space: nowrap;
}
.badge-sm { font-size: 11px; padding: 4px 9px; }
.badge-accent { background: var(--accent); color: var(--text-on-accent); border: 1px solid var(--accent); }
.badge-neutral { background: var(--paper-3); color: var(--ink-700); border: 1px solid var(--sand-2); }
.badge-clay { background: var(--clay-100); color: var(--clay-700); border: 1px solid var(--clay-300); }
.badge-ink { background: var(--ink-900); color: var(--text-on-ink); border: 1px solid var(--ink-900); }
.badge .mono { font-family: var(--font-mono); letter-spacing: .05em; }

/* ── چیدمان کاتالوگ ── */
.catalog-layout { display: grid; grid-template-columns: 230px 1fr; gap: 34px; align-items: start; }
.filter-card {
  position: sticky; top: 90px; background: var(--surface-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px;
}
.filter-card h3 { font-size: 14px; font-weight: 700; color: var(--ink-900); margin-bottom: 14px; }
.filter-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink-800); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  width: 19px; height: 19px; border-radius: var(--radius-xs); flex: none;
  border: 1.5px solid var(--sand-2); background: var(--surface-card);
  display: flex; align-items: center; justify-content: center; color: transparent;
  font-size: 13px; transition: all var(--dur-fast) var(--ease-out);
}
.check:hover .box { border-color: var(--ink-900); }
.check input:checked + .box { background: var(--ink-900); border-color: var(--ink-900); color: var(--paper); }
.check input:focus-visible + .box { outline: 2px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 5px var(--focus-halo); }
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; appearance: none; padding: 11px 16px; padding-inline-end: 38px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface-card); font-family: var(--font-fa); font-size: 13.5px;
  color: var(--ink-900); cursor: pointer;
}
.select-wrap::after { content: '▾'; position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-400); font-size: 12px; pointer-events: none; }
.filter-clear {
  margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--border);
}
.filter-clear button {
  width: 100%; background: transparent; border: none; border-radius: var(--radius-pill);
  padding: 9px; font-family: var(--font-fa); font-size: 13px; font-weight: 700;
  color: var(--ink-500); transition: all var(--dur-fast);
}
.filter-clear button:hover { background: var(--paper-2); color: var(--ink-900); }
.result-count { font-size: 13.5px; color: var(--ink-500); margin-bottom: 16px; }

/* ── کارت کامل دوره (کاتالوگ) ── */
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.c-card {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.c-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.c-card .media { position: relative; }
.c-card .photo { aspect-ratio: 4 / 3; }
.c-card .media .badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; }
.c-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.c-card .code { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); }
.c-card h3 { font-size: 21px; font-weight: 700; color: var(--ink-900); }
.c-card .desc { font-size: 13.5px; color: var(--ink-500); line-height: 1.8; }
.c-card .meta { display: flex; align-items: center; gap: 14px; margin-top: 4px; color: var(--ink-500); font-size: 12.5px; }
.c-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.c-card .meta .icon { font-size: 15px; }
.c-card .foot {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border);
}
.c-card .price { font-size: 17px; font-weight: 800; color: var(--ink-900); }
.c-card .price small { font-size: 12px; font-weight: 400; color: var(--ink-500); }
.c-card .more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.empty-state {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-card);
  text-align: center; padding: 48px; color: var(--ink-500); display: none;
}
.empty-state .icon { font-size: 30px; color: var(--ink-400); display: inline-flex; margin-bottom: 10px; }

/* ── جزئیات دوره: هیرو ── */
.detail-hero { background: var(--bg-raised); border-bottom: 1px solid var(--border); }
.detail-hero .container { padding-block: var(--space-8); }
.detail-hero .grid { display: grid; grid-template-columns: 1fr .85fr; gap: 44px; align-items: center; }
.detail-hero .badges { display: flex; gap: 8px; margin-bottom: 16px; }
.detail-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--ink-900); line-height: 1.3; margin-bottom: 10px; }
.detail-hero .en {
  direction: ltr; text-align: right; unicode-bidi: isolate;
  font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--ink-500); margin-bottom: 16px;
}
.detail-hero .desc { font-size: 16px; color: var(--ink-700); line-height: 2; max-width: 460px; }
.detail-hero .meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; }
.detail-hero .meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-700); }
.detail-hero .meta .icon { font-size: 17px; color: var(--ink-500); }
.detail-hero .photo { aspect-ratio: 4 / 3.4; border-radius: var(--radius-xl); }

/* ── جزئیات دوره: بدنه ── */
.detail-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start;
  padding-block: var(--space-8) 0;
}
.tabs { display: flex; gap: 28px; border-bottom: 1.5px solid var(--border); margin-bottom: 28px; }
.tab-btn {
  position: relative; background: transparent; border: none; padding: 0 0 14px;
  font-family: var(--font-fa); font-size: 15px; font-weight: 500; color: var(--text-muted);
  transition: color var(--dur-base) var(--ease-out);
}
.tab-btn::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 3px;
  background: var(--accent); border-radius: 3px; transform: scaleX(0);
  transition: transform var(--dur-base) var(--ease-out);
}
.tab-btn.active { color: var(--ink-900); font-weight: 700; }
.tab-btn.active::after { transform: scaleX(1); }
.tab-panel { display: none; font-size: 15.5px; color: var(--ink-700); line-height: 2.1; }
.tab-panel.active { display: block; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-block: 24px; }
.feature {
  display: flex; align-items: center; gap: 10px; background: var(--bg-raised);
  border-radius: var(--radius-md); padding: 14px 16px;
}
.feature .tick {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent);
  color: var(--ink-900); display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex: none;
}
.feature b { font-size: 14.5px; font-weight: 600; color: var(--ink-900); }

.alert { display: flex; gap: 12px; border-radius: var(--radius-md); padding: 16px 18px; font-size: 14px; line-height: 1.9; }
.alert b { display: block; font-weight: 700; margin-bottom: 2px; }
.alert-info { background: var(--info-100); color: var(--ink-800); border: 1px solid var(--info-500); }
.alert-info .icon { color: var(--info-500); font-size: 19px; margin-top: 3px; }
.alert-success { background: var(--success-100); color: var(--ink-800); border: 1px solid var(--success-500); }
.alert-success .icon { color: var(--success-500); font-size: 19px; margin-top: 3px; }

/* ── آکاردئون سرفصل‌ها ── */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-card); }
.acc-item + .acc-item { border-top: 1px solid var(--border); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: none; padding: 18px 20px; font-family: var(--font-fa);
  font-size: 15px; font-weight: 700; color: var(--ink-900); text-align: start;
}
.acc-head .mark { font-size: 18px; font-weight: 400; color: var(--ink-400); transition: transform var(--dur-base) var(--ease-soft); }
.acc-item.open .acc-head .mark { transform: rotate(45deg); }
.acc-body { display: none; padding: 0 20px 18px; font-size: 14px; color: var(--ink-500); line-height: 2; }
.acc-item.open .acc-body { display: block; }

/* ── استاد ── */
.teacher-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-card); padding: 28px; display: flex; gap: 20px; align-items: center; }
.avatar {
  width: 76px; height: 76px; border-radius: 50%; flex: none;
  background: var(--clay-100); color: var(--clay-700); border: 2px solid var(--surface-card);
  box-shadow: 0 0 0 2px var(--sand-2); display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800;
}
.teacher-card h3 { font-size: 22px; font-weight: 700; color: var(--ink-900); margin-bottom: 4px; }
.teacher-card .role { font-size: 14px; color: var(--ink-500); margin-bottom: 12px; }
.teacher-card p { font-size: 14.5px; color: var(--ink-700); line-height: 1.9; }

/* ── کارت ثبت‌نام sticky ── */
.enroll-card {
  position: sticky; top: 90px; background: var(--surface-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-md);
}
.enroll-card .price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.enroll-card .price-row b { font-size: 30px; font-weight: 800; color: var(--ink-900); }
.enroll-card .price-row span { font-size: 13px; color: var(--ink-500); }
.enroll-card .note { font-size: 12.5px; color: var(--ink-500); margin-bottom: 18px; }
.enroll-card .btn { width: 100%; }
.enroll-card .btn + .btn { margin-top: 10px; }
.enroll-facts { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.enroll-facts span { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-700); }
.enroll-facts .icon { font-size: 17px; color: var(--ink-400); }

/* ── دیالوگ ثبت‌نام (تنها جای blur طبق دیزاین‌سیستم) ── */
.dialog-backdrop {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(26, 24, 19, .55); backdrop-filter: blur(3px);
}
.dialog-backdrop.open { display: flex; }
.dialog {
  width: min(440px, 100%); background: var(--surface-card);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.dialog-head b { font-size: 17px; font-weight: 800; color: var(--ink-900); }
.dialog-close { background: transparent; border: none; font-size: 18px; color: var(--ink-400); width: 34px; height: 34px; border-radius: 50%; }
.dialog-close:hover { background: var(--paper-2); color: var(--ink-900); }
.dialog-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 22px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-800); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 11px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-card);
  font-family: var(--font-fa); font-size: 14px; color: var(--ink-900);
}
.field input::placeholder { color: var(--ink-400); }
.field input:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; box-shadow: 0 0 0 5px var(--focus-halo); }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { background: var(--paper-2); }

/* ── ریسپانسیو صفحات داخلی ── */
@media (max-width: 1080px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .enroll-card { position: static; }
}
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-card { position: static; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .search-box { width: 100%; }
  .detail-hero .grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════════
   صفحات: اساتید · رویدادها · درباره و تماس
   ════════════════════════════════════════════════════════════════════════ */

.page-intro { font-size: 15.5px; color: var(--ink-500); line-height: 2; max-width: 560px; margin-top: 12px; }

/* ── اساتید ── */
.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.t-card {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.t-card .photo { aspect-ratio: 4 / 3.6; }
.t-card .body { padding: 20px 22px 22px; }
.t-card h3 { font-size: 20px; font-weight: 700; color: var(--ink-900); }
.t-card .role { font-size: 13px; color: var(--accent-ink); font-weight: 700; margin-top: 3px; }
.t-card .bio { font-size: 13.5px; color: var(--ink-500); line-height: 1.9; margin-top: 10px; }
.t-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.t-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--ink-500);
}
.t-card .foot .more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-900); }

/* ── باند CTA جوهری (تدریس/رزرو) ── */
.cta-band {
  position: relative; overflow: hidden; background: var(--surface-ink); color: var(--text-on-ink);
  border-radius: var(--radius-2xl); padding: clamp(32px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band::before {
  content: ''; position: absolute; inset-inline-end: -60px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: var(--accent); opacity: .14; filter: blur(10px);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.4; }
.cta-band p { font-size: 15px; color: rgba(250,246,238,.7); line-height: 2; max-width: 480px; margin-top: 10px; }
.cta-band .btn { position: relative; z-index: 1; flex: none; }

/* ── رویدادها ── */
.event-featured {
  position: relative; background: var(--olive-700); color: var(--paper);
  border-radius: var(--radius-xl); overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; margin-bottom: 34px;
}
.event-featured .copy { padding: clamp(30px, 4vw, 52px); }
.event-featured h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.4; margin-top: 12px; }
.event-featured p { font-size: 14.5px; line-height: 2; color: rgba(250,246,238,.72); max-width: 420px; margin-top: 10px; }
.event-featured .meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.event-featured .meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(250,246,238,.85); }
.event-featured .visual { position: relative; align-self: stretch; min-height: 280px; }
.event-featured .visual .photo { position: absolute; inset: 0; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.e-card {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.e-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.e-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.date-chip {
  width: 64px; border-radius: var(--radius-md); background: var(--bg-raised);
  border: 1px solid var(--border); text-align: center; padding: 9px 6px 10px; flex: none;
}
.date-chip b { display: block; font-size: 22px; font-weight: 800; color: var(--ink-900); line-height: 1.1; }
.date-chip span { font-size: 11.5px; color: var(--ink-500); }
.e-card h3 { font-size: 18px; font-weight: 700; color: var(--ink-900); line-height: 1.5; }
.e-card .desc { font-size: 13.5px; color: var(--ink-500); line-height: 1.9; flex: 1; }
.e-card .meta { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--ink-700); }
.e-card .meta span { display: inline-flex; align-items: center; gap: 7px; }
.e-card .meta .icon { font-size: 15px; color: var(--ink-400); }
.e-card .foot { padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

/* ── درباره ── */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; margin-top: 34px; }
.about-grid .photo { aspect-ratio: 4 / 3.2; border-radius: var(--radius-xl); }
.about-copy p { font-size: 15.5px; color: var(--ink-700); line-height: 2.1; }
.about-copy p + p { margin-top: 14px; }
.stats-row { display: flex; gap: 40px; margin-top: 28px; }
.stats-row b { display: block; font-size: 28px; font-weight: 800; color: var(--ink-900); }
.stats-row span { font-size: 13px; color: var(--ink-500); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.why-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.why-card .chip {
  width: 50px; height: 50px; border-radius: var(--radius-md); background: var(--accent-wash);
  color: var(--ink-800); display: flex; align-items: center; justify-content: center; font-size: 23px; margin-bottom: 16px;
}
.why-card h3 { font-size: 17px; font-weight: 700; color: var(--ink-900); margin-bottom: 8px; }
.why-card p { font-size: 13.5px; color: var(--ink-500); line-height: 1.95; }

/* ── تماس ── */
.contact-layout { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; margin-top: 34px; }
.contact-form {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.contact-form h3 { font-size: 19px; font-weight: 800; color: var(--ink-900); margin-bottom: 18px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .field + .field, .contact-form .row2 + .field { margin-top: 14px; }
.field textarea {
  width: 100%; min-height: 120px; resize: vertical; padding: 12px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface-card); font-family: var(--font-fa); font-size: 14px; color: var(--ink-900);
}
.field textarea::placeholder { color: var(--ink-400); }
.field textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; box-shadow: 0 0 0 5px var(--focus-halo); }
.contact-form .btn { margin-top: 18px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.info-card h4 { font-size: 14px; font-weight: 800; color: var(--ink-900); margin-bottom: 14px; }
.info-card .rows { display: flex; flex-direction: column; gap: 12px; }
.info-card .rows span { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-700); line-height: 1.8; }
.info-card .rows .icon { font-size: 17px; color: var(--ink-400); margin-top: 3px; }
.info-card .rows .ltr { direction: ltr; unicode-bidi: isolate; font-family: var(--font-sans); }
.map-tile { aspect-ratio: 4 / 2.6; border-radius: var(--radius-lg); }

/* ── ریسپانسیو صفحات جدید ── */
@media (max-width: 1080px) {
  .teacher-grid, .event-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .about-grid, .contact-layout { grid-template-columns: 1fr; }
  .event-featured { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .teacher-grid, .event-grid, .why-grid { grid-template-columns: 1fr; }
  .contact-form .row2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── v1.1: عکس واقعی (featured image) داخل ظرف placeholder ── */
.photo.has-img::after, .photo.has-img > .icon { display: none; }
.photo > img.tf-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* پنل مسیرها: تعداد ترم‌ها داینامیک است */
.cats-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

/* ── v1.2: محتوای آموزشی (بلاگ) ── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card {
  display: flex; flex-direction: column; background: var(--surface-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.p-card .media { position: relative; }
.p-card .photo { aspect-ratio: 16 / 10; }
.p-card .media .badges { position: absolute; top: 12px; inset-inline-start: 12px; }
.p-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-card h3 { font-size: 18px; font-weight: 700; color: var(--ink-900); line-height: 1.6; }
.p-card .desc { font-size: 13.5px; color: var(--ink-500); line-height: 1.9; flex: 1; }
.p-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border);
}
.p-card .date { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-500); }
.p-card .date .icon { font-size: 14px; color: var(--ink-400); }
.p-card .more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }

.post-single { max-width: var(--content-narrow); margin-inline: auto; }
.post-head { text-align: start; margin-block: var(--space-4) var(--space-7); }
.post-head .badge { margin-bottom: 16px; }
.post-head h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: var(--ink-900); line-height: 1.45; margin-top: 14px; }
.post-meta { display: flex; gap: 20px; margin-top: 16px; }
.post-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-500); }
.post-meta .icon { font-size: 15px; color: var(--ink-400); }
.post-hero { aspect-ratio: 16 / 9; border-radius: var(--radius-xl); margin-bottom: var(--space-8); }

.post-body { font-size: 16px; color: var(--ink-700); line-height: 2.1; }
.post-body p { margin-bottom: 18px; }
.post-body h2 { font-size: 24px; font-weight: 800; color: var(--ink-900); margin: 34px 0 14px; }
.post-body h3 { font-size: 19px; font-weight: 700; color: var(--ink-900); margin: 28px 0 12px; }
.post-body ul, .post-body ol { padding-inline-start: 22px; margin-bottom: 18px; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--text-link); text-decoration: underline; text-decoration-color: var(--yellow-400); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-body a:hover { color: var(--text-link-hover); }
.post-body blockquote {
  border-inline-start: 3px solid var(--yellow-400); background: var(--bg-raised);
  border-radius: var(--radius-md); padding: 18px 22px; margin-block: 22px;
  font-family: var(--font-fa); color: var(--ink-800);
}
.post-body img { border-radius: var(--radius-md); }
.post-foot { margin-top: var(--space-8); padding-top: 22px; border-top: 1px solid var(--border); }
.post-more { margin-top: var(--space-11); }

.pagination, .navigation.pagination { margin-top: var(--space-8); }
.nav-links { display: flex; gap: 8px; justify-content: center; }
.nav-links .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding-inline: 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong);
  background: var(--surface-card); color: var(--ink-800); font-size: 14px; font-weight: 700;
}
.nav-links .page-numbers.current { background: var(--ink-900); color: var(--text-on-ink); border-color: var(--ink-900); }
.nav-links a.page-numbers:hover { border-color: var(--ink-900); }

@media (max-width: 1080px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* ── v1.2.2: فیگور برش‌خورده (PNG شفاف) روی قوس‌های هیرو — کمپوزیسیون رفرنس ── */
.hero-cutout {
  position: absolute; bottom: 0; inset-inline-start: 50%; transform: translateX(50%);
  height: 106%; width: auto; max-width: none; z-index: 1;
  filter: drop-shadow(0 18px 30px rgba(26, 24, 19, .16));
}
.rating-badge, .float-card { z-index: 2; }

/* فیگور دوم هیرو — پشت و سمت inline-end (چپ در RTL)، کمی کوچک‌تر */
.hero-cutout-2 {
  position: absolute; bottom: 0; inset-inline-end: -2%;
  height: 84%; width: auto; max-width: none; z-index: 0;
  filter: drop-shadow(0 14px 24px rgba(26, 24, 19, .14));
}
@media (max-width: 620px) { .hero-cutout-2 { display: none; } }
