/* ==========================================================================
   فارسی ۱۰۰ — سیستم طراحی (طرح ترکیبی + حالت شب سرمه‌ای/فیروزه‌ای)
   Mobile first. Loaded after Flatsome. Every colour is a token.
   ========================================================================== */

@font-face { font-family: "Vazir"; src: url("fonts/Vazir-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazir"; src: url("fonts/Vazir-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazir"; src: url("fonts/Vazir-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazir"; src: url("fonts/Vazir-Black.woff") format("woff"); font-weight: 900; font-display: swap; }

/* ---------- tokens: light (طرح ترکیبی) ---------- */
:root {
  --f100-font: "Vazir", Tahoma, sans-serif;
  --f100-bg: #f4f7f8;          /* page */
  --f100-surface: #ffffff;     /* cards */
  --f100-surface-2: #eef3f4;   /* inputs, soft blocks */
  --f100-ink: #0f2a30;         /* text */
  --f100-muted: #5d6f73;
  --f100-line: #dfe7e9;
  --f100-teal: #00737e;        /* brand, links, primary buttons */
  --f100-teal-2: #00838f;
  --f100-on-teal: #ffffff;
  --f100-sky: #ddf4f6;         /* soft teal tint */
  --f100-magenta: #b8286f;     /* sale, highlights */
  --f100-on-magenta: #ffffff;
  --f100-yellow: #fbd831;      /* badges, CTA on dark */
  --f100-on-yellow: #1e1a00;
  --f100-night: #0f2a30;       /* dark panels inside light theme */
  --f100-on-night: #eef6f7;
  --f100-sale-bg: #b8286f;
  --f100-sale-ink: #ffffff;
  --f100-good: #1b7f4b;
  --f100-bad: #b3261e;
  --f100-radius: 18px;
  --f100-radius-sm: 12px;
  --f100-shadow: 0 1px 2px rgba(15, 42, 48, .06), 0 6px 20px rgba(15, 42, 48, .06);
  color-scheme: light;
}

/* ---------- tokens: dark (حالت شب سرمه‌ای با فیروزه‌ای) ---------- */
html[data-f100-theme="dark"] {
  --f100-bg: #0f1420;
  --f100-surface: #182033;
  --f100-surface-2: #141b2b;
  --f100-ink: #eef2f7;
  --f100-muted: #a3aec2;
  --f100-line: #26304a;
  --f100-teal: #22c7d6;
  --f100-teal-2: #8fe6ee;
  --f100-on-teal: #0b1a22;
  --f100-sky: #1c3440;
  --f100-magenta: #f062a8;
  --f100-on-magenta: #1a0b14;
  --f100-yellow: #fbd831;
  --f100-on-yellow: #1e1a00;
  --f100-night: #141b2b;
  --f100-on-night: #eef2f7;
  --f100-sale-bg: #2a1a2c;
  --f100-sale-ink: #eef2f7;
  --f100-good: #5fd39a;
  --f100-bad: #ff8a80;
  --f100-shadow: none;
  color-scheme: dark;
}

/* ==========================================================================
   Global: typography and Flatsome base
   ========================================================================== */
body, button, input, select, textarea, .nav > li > a, h1, h2, h3, h4, h5, h6, .heading-font, .alt-font {
  font-family: var(--f100-font) !important;
}
body { background: var(--f100-bg); color: var(--f100-ink); }
/* Right-aligned text (no justify): even word spacing on phones. */
.entry-content p, .entry-content li, .entry-content td, .entry-content blockquote, .f100 p {
  text-align: right !important;
  text-justify: auto;
  line-height: 2;
}
.entry-content { font-size: 1.05rem; }
.entry-content h2, .entry-content h3 { line-height: 1.6; text-wrap: balance; }
a { color: var(--f100-teal); }
:focus-visible { outline: 3px solid var(--f100-yellow); outline-offset: 2px; }

/* Ad slots: reserve height so ads do not push the article down (CLS).
   Wrap each ad code in <div class="f100-ad"> … </div>. */
.f100-ad { min-height: 280px; display: grid; place-items: center; margin: 16px 0; background: var(--f100-surface-2); border-radius: var(--f100-radius-sm); overflow: hidden; }
.f100-ad--banner { min-height: 100px; }

/* ==========================================================================
   Dark mode for Flatsome containers (only when the visitor picks dark)
   ========================================================================== */
html[data-f100-theme="dark"] body,
html[data-f100-theme="dark"] #wrapper,
html[data-f100-theme="dark"] #main,
html[data-f100-theme="dark"] .page-wrapper,
html[data-f100-theme="dark"] .blog-wrapper,
html[data-f100-theme="dark"] .shop-container { background: var(--f100-bg) !important; color: var(--f100-ink); }
html[data-f100-theme="dark"] .header-wrapper,
html[data-f100-theme="dark"] .header-main,
html[data-f100-theme="dark"] .header-top,
html[data-f100-theme="dark"] .header-bottom,
html[data-f100-theme="dark"] .header-bg-color,
html[data-f100-theme="dark"] .stuck .header-main { background-color: var(--f100-surface-2) !important; color: var(--f100-ink); border-color: var(--f100-line) !important; }
html[data-f100-theme="dark"] .nav-dropdown,
html[data-f100-theme="dark"] .off-canvas .mfp-content,
html[data-f100-theme="dark"] .off-canvas-left .mfp-content,
html[data-f100-theme="dark"] .off-canvas-right .mfp-content,
html[data-f100-theme="dark"] .mfp-content .searchform { background-color: var(--f100-surface) !important; color: var(--f100-ink); }
html[data-f100-theme="dark"] .nav > li > a,
html[data-f100-theme="dark"] .nav-dropdown li a,
html[data-f100-theme="dark"] .header-nav .icon,
html[data-f100-theme="dark"] .mobile-nav a,
html[data-f100-theme="dark"] .nav-sidebar li a { color: var(--f100-ink) !important; }
html[data-f100-theme="dark"] h1, html[data-f100-theme="dark"] h2, html[data-f100-theme="dark"] h3,
html[data-f100-theme="dark"] h4, html[data-f100-theme="dark"] h5, html[data-f100-theme="dark"] h6,
html[data-f100-theme="dark"] .entry-title, html[data-f100-theme="dark"] .product-title,
html[data-f100-theme="dark"] .entry-content, html[data-f100-theme="dark"] label,
html[data-f100-theme="dark"] .breadcrumbs, html[data-f100-theme="dark"] .widget-title { color: var(--f100-ink) !important; }
html[data-f100-theme="dark"] .entry-meta, html[data-f100-theme="dark"] .post-meta,
html[data-f100-theme="dark"] .is-small, html[data-f100-theme="dark"] small { color: var(--f100-muted) !important; }
html[data-f100-theme="dark"] .box, html[data-f100-theme="dark"] .box-text,
html[data-f100-theme="dark"] .col-inner.box-shadow-1, html[data-f100-theme="dark"] .widget,
html[data-f100-theme="dark"] .comment-list .comment-inner, html[data-f100-theme="dark"] .product-small .box-text,
html[data-f100-theme="dark"] .woocommerce-tabs, html[data-f100-theme="dark"] .accordion-inner,
html[data-f100-theme="dark"] .tab-panels { background-color: var(--f100-surface) !important; color: var(--f100-ink); }
html[data-f100-theme="dark"] .section-bg, html[data-f100-theme="dark"] .section .bg-fill { background-color: var(--f100-bg) !important; background-image: none !important; }
html[data-f100-theme="dark"] input:not([type="submit"]):not([type="button"]), html[data-f100-theme="dark"] select,
html[data-f100-theme="dark"] textarea { background: var(--f100-surface-2) !important; color: var(--f100-ink) !important; border-color: var(--f100-line) !important; }
html[data-f100-theme="dark"] table, html[data-f100-theme="dark"] td, html[data-f100-theme="dark"] th { border-color: var(--f100-line) !important; color: var(--f100-ink); }
html[data-f100-theme="dark"] th { background: var(--f100-surface-2) !important; }
html[data-f100-theme="dark"] blockquote { background: var(--f100-surface) !important; color: var(--f100-ink); border-color: var(--f100-teal) !important; }
html[data-f100-theme="dark"] .footer-wrapper, html[data-f100-theme="dark"] .footer-1,
html[data-f100-theme="dark"] .footer-2, html[data-f100-theme="dark"] .absolute-footer { background-color: #0b0f19 !important; color: var(--f100-muted) !important; }
html[data-f100-theme="dark"] .is-divider { background-color: var(--f100-line) !important; }
html[data-f100-theme="dark"] a:not(.button):not(.f100-btn):not(.f100-tile) { color: var(--f100-teal); }
html[data-f100-theme="dark"] .button.primary, html[data-f100-theme="dark"] button.primary,
html[data-f100-theme="dark"] .button.alt { background-color: var(--f100-teal) !important; color: var(--f100-on-teal) !important; }
html[data-f100-theme="dark"] img { filter: brightness(.92); }
html[data-f100-theme="dark"] .ez-toc-container, html[data-f100-theme="dark"] #ez-toc-container { background: var(--f100-surface) !important; border-color: var(--f100-line) !important; }
html[data-f100-theme="dark"] #ez-toc-container a { color: var(--f100-ink) !important; }

/* ==========================================================================
   Components (prefix .f100-)
   ========================================================================== */
.f100 { direction: rtl; text-align: right; color: var(--f100-ink); font-family: var(--f100-font); }
.f100 *, .f100 *::before, .f100 *::after { box-sizing: border-box; }
.f100-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.f100-hero > *, .f100-stack > *, .f100-sale > *, .f100-quiz > * { min-width: 0; }
.f100-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Buttons */
.f100-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px; border: 0;
  font: 700 1rem/1 var(--f100-font); text-decoration: none !important; cursor: pointer;
  background: var(--f100-teal); color: var(--f100-on-teal) !important;
}
.f100-btn--light { background: var(--f100-surface); color: var(--f100-ink) !important; }
.f100-btn--yellow { background: var(--f100-yellow); color: var(--f100-on-yellow) !important; }
.f100-btn--magenta { background: var(--f100-magenta); color: var(--f100-on-magenta) !important; }
.f100-badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: var(--f100-yellow); color: var(--f100-on-yellow); font-size: .8rem; font-weight: 700; line-height: 1.8;
}
.f100-h2 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--f100-ink); }
.f100-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.f100-head-row a { font-size: .9rem; font-weight: 700; }

/* Theme toggle */
.f100-toggle {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--f100-line); background: var(--f100-surface); color: var(--f100-ink); cursor: pointer; padding: 0;
}
.f100-toggle svg { width: 20px; height: 20px; }
.f100-toggle .f100-moon { display: block; }
.f100-toggle .f100-sun { display: none; }
html[data-f100-theme="dark"] .f100-toggle .f100-moon { display: none; }
html[data-f100-theme="dark"] .f100-toggle .f100-sun { display: block; }
.f100-toggle svg, .f100-toggle svg * { stroke: currentColor; }
/* v1.2.4: the toggle reads the colour behind it (set by JS) and gets a contrasting look. */
.f100-toggle.f100-tg-ondark { background: rgba(255, 255, 255, .14) !important; border: 1px solid rgba(255, 255, 255, .6) !important; color: #fff !important; box-shadow: none !important; }
.f100-toggle.f100-tg-onlight { background: #eef4f4 !important; border: 1px solid #b9cfcf !important; color: #0f2a30 !important; box-shadow: none !important; }
.f100-toggle.f100-tg-ondark:hover { background: rgba(255, 255, 255, .26) !important; }
.f100-toggle svg, .f100-toggle svg * { stroke: currentColor !important; fill: none !important; }
/* Mobile: one round button that floats at the bottom-left of every page; toggles inside the header are hidden there. */
.f100-fab { display: none !important; }
@media (max-width: 849px) {
  .f100-toggle:not(.f100-fab) { display: none !important; }
  .f100-fab {
    display: grid !important; position: fixed; left: 14px; bottom: 90px; z-index: 9990; width: 46px; height: 46px; border-radius: 50% !important;
    background: #0f766e !important; color: #fff !important; border: 2px solid #fff !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .28) !important;
  }
  html[data-f100-theme="dark"] .f100-fab { background: #134e4a !important; border-color: #5eead4 !important; }
}
.f100-quiz-q { white-space: pre-line; }

/* Hero: headline, search, grade picker */
.f100-hero {
  background: var(--f100-teal); color: var(--f100-on-teal);
  border-radius: 0 0 28px 28px; padding: 28px 16px 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
}
html[data-f100-theme="dark"] .f100-hero { background: var(--f100-surface-2); color: var(--f100-ink); border-bottom: 1px solid var(--f100-line); }
.f100-hero h1 { margin: 0; color: inherit !important; font-size: clamp(1.6rem, 6.5vw, 2.4rem); line-height: 1.55; font-weight: 900; text-wrap: balance; }
.f100-hero p { margin: 0; opacity: .92; line-height: 1.9; }
.f100-search { display: flex; align-items: center; gap: 8px; background: var(--f100-surface); border-radius: 16px; padding: 6px 6px 6px 8px; border: 1px solid var(--f100-line); }
.f100-search input[type="search"] {
  flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important;
  font: 400 1rem var(--f100-font); color: var(--f100-ink) !important; height: 44px; margin: 0; padding: 0 8px;
}
.f100-search button { min-height: 40px; padding: 0 16px; border-radius: 12px; }
.f100-grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.f100-grade {
  display: grid; place-items: center; min-height: 54px; border-radius: 14px; text-decoration: none !important;
  font-weight: 800; font-size: 1.05rem; color: var(--f100-on-teal) !important;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
}
.f100-grade.is-current { background: var(--f100-surface); color: var(--f100-teal) !important; }
html[data-f100-theme="dark"] .f100-grade { background: var(--f100-surface); border-color: var(--f100-line); color: var(--f100-ink) !important; }
html[data-f100-theme="dark"] .f100-grade.is-current { background: var(--f100-teal); color: var(--f100-on-teal) !important; }
.f100-grade small { display: block; font-weight: 500; font-size: .75rem; opacity: .8; }

/* Sale box (فصل امتحان) */
.f100-sale {
  border-radius: var(--f100-radius); padding: 20px 18px; display: grid; gap: 10px;
  background: var(--f100-sale-bg); color: var(--f100-sale-ink);
}
html[data-f100-theme="dark"] .f100-sale { border: 1px solid #5a2e52; }
.f100-sale h3 { margin: 0; color: inherit !important; font-size: 1.2rem; font-weight: 800; line-height: 1.6; }
.f100-sale p { margin: 0; opacity: .92; }
.f100-sale .f100-badge { justify-self: start; }
.f100-sale-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.f100-price { font-weight: 800; font-size: 1.1rem; }
.f100-sale .f100-btn { background: var(--f100-surface); color: var(--f100-ink) !important; }
html[data-f100-theme="dark"] .f100-sale .f100-btn { background: var(--f100-magenta); color: var(--f100-on-magenta) !important; }
.f100-sale--cream { background: #fff4e5; color: #3b2a12; border: 1px solid #f3d9b0; }
.f100-sale--cream .f100-btn { background: #c2410c; color: #fff !important; }
html[data-f100-theme="dark"] .f100-sale--cream { background: #2b2116; color: var(--f100-ink); border-color: #4a3826; }

/* Section tiles («از کجا شروع کنی؟») */
.f100-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 850px) { .f100-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.f100-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 120px;
  padding: 16px 14px; border-radius: var(--f100-radius); text-decoration: none !important; min-width: 0;
}
.f100-tile b { font-size: 1.05rem; font-weight: 800; }
.f100-tile span { font-size: .82rem; opacity: .9; line-height: 1.7; }
.f100-tile--teal { background: var(--f100-teal); color: var(--f100-on-teal) !important; }
.f100-tile--magenta { background: var(--f100-magenta); color: var(--f100-on-magenta) !important; }
.f100-tile--ink { background: var(--f100-night); color: var(--f100-on-night) !important; }
.f100-tile--yellow { background: var(--f100-yellow); color: var(--f100-on-yellow) !important; }
.f100-tile--sky { background: var(--f100-sky); color: var(--f100-teal) !important; }
.f100-tile--white { background: var(--f100-surface); color: var(--f100-ink) !important; border: 1px solid var(--f100-line); }
/* In dark mode tiles become calm cards with a coloured stripe. */
html[data-f100-theme="dark"] .f100-tile { background: var(--f100-surface) !important; color: var(--f100-ink) !important; border: 1px solid var(--f100-line); }
html[data-f100-theme="dark"] .f100-tile::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--f100-teal); }
html[data-f100-theme="dark"] .f100-tile--magenta::before { background: var(--f100-magenta); }
html[data-f100-theme="dark"] .f100-tile--yellow::before { background: var(--f100-yellow); }
html[data-f100-theme="dark"] .f100-tile span { color: var(--f100-muted); }

/* Quick test («تست امروز») */
.f100-quiz { background: var(--f100-night); color: var(--f100-on-night); border-radius: var(--f100-radius); padding: 18px 16px; display: grid; gap: 12px; }
html[data-f100-theme="dark"] .f100-quiz { background: var(--f100-surface); border: 1px solid var(--f100-line); }
.f100-quiz h3 { margin: 0; color: inherit !important; font-size: 1.1rem; font-weight: 800; }
.f100-quiz p { margin: 0; }
.f100-quiz-meta { font-size: .8rem; opacity: .75; }
.f100-quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f100-quiz-opt {
  min-height: 48px; border-radius: 12px; font: 600 1rem var(--f100-font); cursor: pointer;
  background: rgba(255, 255, 255, .06); color: inherit; border: 1px solid rgba(255, 255, 255, .22);
}
html[data-f100-theme="dark"] .f100-quiz-opt { background: var(--f100-surface-2); border-color: var(--f100-line); }
.f100-quiz-opt.is-right { background: var(--f100-good) !important; color: #fff; border-color: transparent; }
.f100-quiz-opt.is-wrong { background: var(--f100-bad) !important; color: #fff; border-color: transparent; }
.f100-quiz-more { color: var(--f100-yellow) !important; font-weight: 700; }

/* Popular list */
.f100-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f100-list a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--f100-surface); border: 1px solid var(--f100-line); text-decoration: none !important; color: var(--f100-ink) !important;
}
.f100-list .f100-rank {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  font-weight: 800; background: var(--f100-sky); color: var(--f100-teal);
}
.f100-list li:nth-child(2) .f100-rank { background: var(--f100-magenta); color: var(--f100-on-magenta); }
.f100-list li:nth-child(3) .f100-rank { background: var(--f100-yellow); color: var(--f100-on-yellow); }
.f100-list .f100-txt { display: grid; min-width: 0; flex: 1; }
.f100-list .f100-txt b { font-weight: 700; line-height: 1.7; }
.f100-list .f100-txt small { color: var(--f100-muted); font-size: .8rem; }
.f100-list .f100-chev { color: var(--f100-muted); }

/* Author / teacher box (E-E-A-T) */
.f100-author { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--f100-radius); background: var(--f100-surface); border: 2px solid var(--f100-teal); }
.f100-avatar { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--f100-sky); color: var(--f100-teal); font-weight: 800; overflow: hidden; }
.f100-avatar img { width: 100%; height: 100%; object-fit: cover; }
.f100-author b { display: block; }
.f100-author span { color: var(--f100-muted); font-size: .88rem; line-height: 1.8; }

/* Lesson page header */
.f100-lesson-head { display: grid; gap: 8px; padding: 6px 0 14px; border-bottom: 1px solid var(--f100-line); }
.f100-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--f100-muted); list-style: none; margin: 0; padding: 0; }
.f100-crumbs li + li::before { content: "›"; margin-left: 6px; color: var(--f100-muted); }
.f100-lesson-head h1 { margin: 0; font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 900; line-height: 1.5; color: var(--f100-ink) !important; }
.f100-lesson-head p { margin: 0; color: var(--f100-muted); }
.f100-reviewed { display: flex; gap: 10px; align-items: center; font-size: .85rem; }
.f100-reviewed .f100-avatar { width: 40px; height: 40px; border-radius: 12px; font-size: .9rem; }
.f100-reviewed small { color: var(--f100-muted); display: block; }

/* Audio */
.f100-audio { display: grid; gap: 8px; padding: 14px; border-radius: var(--f100-radius); background: var(--f100-surface); border: 1px solid var(--f100-line); }
.f100-audio b { font-weight: 700; }
.f100-audio audio { width: 100%; }

/* Section nav (sticky chips; content stays on one page for SEO) */
.f100-secnav {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 0; margin: 0; list-style: none; background: var(--f100-bg);
}
.f100-secnav::-webkit-scrollbar { display: none; }
.f100-secnav a {
  flex: none; display: inline-block; padding: 6px 14px; border-radius: 999px; white-space: nowrap; font-size: .9rem; font-weight: 700;
  background: var(--f100-surface); border: 1px solid var(--f100-line); color: var(--f100-ink) !important; text-decoration: none !important;
}
.f100-secnav a.is-active { background: var(--f100-teal); border-color: var(--f100-teal); color: var(--f100-on-teal) !important; }
.admin-bar .f100-secnav { top: 46px; }
@media (min-width: 783px) { .admin-bar .f100-secnav { top: 32px; } }

/* Verse + meaning card */
.f100-verse { display: grid; gap: 10px; padding: 16px; margin: 0 0 12px; border-radius: var(--f100-radius); background: var(--f100-surface); border: 1px solid var(--f100-line); }
.f100-verse-text { font-weight: 800; font-size: 1.1rem; line-height: 2.1; padding-bottom: 10px; border-bottom: 1px solid var(--f100-line); }
.f100-beyt { display: grid; grid-template-columns: 1fr; text-align: center; }
@media (min-width: 600px) { .f100-beyt { grid-template-columns: 1fr 1fr; gap: 24px; } }
.f100-verse-label { font-size: .8rem; font-weight: 800; color: var(--f100-teal); }
.f100-verse-meaning { margin: 0; line-height: 2; }
.f100-words { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.f100-words li { padding: 3px 10px; border-radius: 8px; background: var(--f100-surface-2); font-size: .85rem; }
.f100-words b { font-weight: 700; }

/* Previous / next lesson */
.f100-lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f100-lesson-nav a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--f100-surface); border: 1px solid var(--f100-line); text-decoration: none !important; color: var(--f100-ink) !important; }
.f100-lesson-nav small { color: var(--f100-muted); }
.f100-lesson-nav .is-next { text-align: left; }

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

/* ==========================================================================
   v1.1 — پوستۀ Flatsome: بدون هیچ کوتاه‌کد روی کل سایت اعمال می‌شود
   ========================================================================== */
body.f100-on { line-height: 1.9; -webkit-font-smoothing: antialiased; }

/* Header: brand bar with readable contrast (white on #00737e is 5:1) */
.f100-on .header-bottom, .f100-on .header-bottom.nav-dark, .f100-on .header-bottom-nav { background-color: var(--f100-teal) !important; }
.f100-on .header-bottom .nav > li > a, .f100-on .header-bottom .nav > li > a .icon-angle-down { color: var(--f100-on-teal) !important; font-weight: 700; }
.f100-on .header-bottom .nav > li > a:hover { background: rgba(255, 255, 255, .14); border-radius: 10px; }
.f100-on .header-main { border-bottom: 1px solid var(--f100-line); }
.f100-on .header-wrapper.stuck .header-main { box-shadow: var(--f100-shadow); }

/* Buttons and forms */
.f100-on .button, .f100-on button.button, .f100-on input[type="submit"] { border-radius: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.f100-on .button.primary, .f100-on .button:not(.is-outline):not(.secondary):not(.alt):not(.is-link) { background-color: var(--f100-teal); color: var(--f100-on-teal); border-color: var(--f100-teal); }
.f100-on .button.secondary { background-color: var(--f100-magenta); color: var(--f100-on-magenta); border-color: var(--f100-magenta); }
.f100-on input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .f100-on select, .f100-on textarea { border-radius: 12px; border-color: var(--f100-line); box-shadow: none; }

/* Article typography: one clear hierarchy, short lines on phones */
.f100-on.single-post .entry-title, .f100-on .entry-title { font-weight: 900; line-height: 1.6; text-wrap: balance; }
.f100-on .entry-content { max-width: 44rem; margin-inline: auto; }
.f100-on .entry-content h2 {
  font-size: 1.4rem; font-weight: 900; margin: 2.2em 0 .7em;
  padding-inline-start: .7em; border-inline-start: 5px solid var(--f100-teal);
}
.f100-on .entry-content h3 { font-size: 1.18rem; font-weight: 800; margin: 1.8em 0 .5em; color: var(--f100-teal); }
.f100-on .entry-content img { border-radius: 14px; height: auto; max-width: 100%; }
.f100-on .entry-content blockquote {
  border: 0; border-inline-start: 4px solid var(--f100-yellow); background: var(--f100-sky);
  padding: 12px 16px; border-radius: 12px; margin: 1.4em 0; color: var(--f100-ink);
}
.f100-on .entry-content ul, .f100-on .entry-content ol { margin-inline-start: 1.4em; }
/* v1.2: tables stay tables (no inner scrollbar). Wide ones get a wrapper that scrolls sideways (see JS). */
.f100-on .entry-content table { display: table; max-width: 100%; border-collapse: collapse; height: auto !important; }
.f100-on .entry-content table tr, .f100-on .entry-content table td { height: auto !important; }
.f100-tablewrap { max-width: 100%; overflow-x: auto; margin: 1em 0; }
.f100-on .entry-content td, .f100-on .entry-content th { padding: 8px 10px; border: 1px solid var(--f100-line); vertical-align: top; }
.f100-on .entry-content th { background: var(--f100-surface-2); }
.f100-on .entry-content strong { font-weight: 800; }

/* Easy Table of Contents */
.f100-on #ez-toc-container, .f100-on .ez-toc-container {
  border: 1px solid var(--f100-line); border-radius: 16px; background: var(--f100-surface); box-shadow: none; padding: 12px 16px; width: 100%;
}
.f100-on #ez-toc-container a { color: var(--f100-ink); text-decoration: none; line-height: 2; }
.f100-on #ez-toc-container a:hover { color: var(--f100-teal); }

/* Blog cards, sidebar, footer */
.f100-on .post-item .box:not(.box-overlay):not(.box-shade), .f100-on .blog-archive .box:not(.box-overlay):not(.box-shade), .f100-on .box-blog-post:not(.box-overlay):not(.box-shade) {
  border-radius: var(--f100-radius); overflow: hidden; background: var(--f100-surface); box-shadow: var(--f100-shadow);
}
.f100-on .badge-outline .badge-inner { border-radius: 999px; }
.f100-on .footer-wrapper, .f100-on .footer-1, .f100-on .footer-2 { background-color: var(--f100-night); color: var(--f100-on-night); }
.f100-on .absolute-footer { background-color: #0a1c20; color: var(--f100-on-night); }
.f100-on .footer-wrapper a { color: var(--f100-yellow); }

/* Lesson exam block sits at the end of the article */
.f100-on #azmoon { margin-top: 2.4em; scroll-margin-top: 70px; }

/* Phones */
@media (max-width: 549px) {
  .f100-on .entry-content { font-size: 1.02rem; padding-inline: 2px; }
  .f100-on .entry-content h2 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .f100-on * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   v1.2 — اصلاح‌ها
   ========================================================================== */

/* Dark mode: white boxes of Flatsome/editor become dark cards, so light text stays readable.
   The JS marks any other light box it finds (f100-dk-surface) and dark inline text (f100-dk-ink). */
html[data-f100-theme="dark"] .article-inner,
html[data-f100-theme="dark"] .blog-single .large-10,
html[data-f100-theme="dark"] .blog-single .large-12,
html[data-f100-theme="dark"] .blog-single .large-9,
html[data-f100-theme="dark"] .entry-header,
html[data-f100-theme="dark"] .entry-content,
html[data-f100-theme="dark"] .page-inner,
html[data-f100-theme="dark"] .col-inner.box-shadow-2,
html[data-f100-theme="dark"] .col-inner.box-shadow-3,
html[data-f100-theme="dark"] .f100-dk-surface { background-color: var(--f100-surface) !important; }
html[data-f100-theme="dark"] .f100-dk-ink { color: var(--f100-ink) !important; }
html[data-f100-theme="dark"] .f100-dk-onlight { color: #0f2a30 !important; }
html[data-f100-theme="dark"] .entry-content td, html[data-f100-theme="dark"] .entry-content tr { background-color: transparent !important; }

/* Section chips: sit on the article card; on computers they wrap onto two lines instead of hiding. */
.f100-on .entry-content .f100-secnav { background: var(--f100-surface); }
@media (min-width: 850px) {
  .f100-secnav { flex-wrap: wrap; overflow: visible; }
}

/* Poems written as tables → beyt layout (the JS adds .f100-poem only to tables that look like verse). */
.f100-on .entry-content table.f100-poem {
  display: block; width: 100%; margin: 1.2em 0; padding: 14px 18px; border: 1px solid var(--f100-line) !important;
  border-inline-start: 4px solid var(--f100-teal) !important; border-radius: 16px; background: var(--f100-surface) !important; overflow: visible;
}
.f100-on .entry-content table.f100-poem tbody { display: block; }
.f100-on .entry-content table.f100-poem tr {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.5em; padding: .2em 0; border: 0 !important;
}
.f100-on .entry-content table.f100-poem td {
  border: 0 !important; padding: 0 !important; width: auto !important; background: transparent !important;
  font-weight: 700; font-size: 1.08rem; line-height: 2.2; text-align: center !important; white-space: normal; color: var(--f100-ink);
}
.f100-on .entry-content table.f100-poem td.f100-empty { display: none; }
.f100-on .entry-content table.f100-poem tr.f100-sep { display: block; text-align: center; color: var(--f100-muted); line-height: 1.6; }
.f100-on .entry-content table.f100-poem tr.f100-sep td { display: block; font-weight: 400; }
@media (max-width: 599px) {
  .f100-on .entry-content table.f100-poem { padding: 10px 14px; }
  .f100-on .entry-content table.f100-poem tr { grid-template-columns: minmax(0, 1fr); padding: .35em 0; }
  .f100-on .entry-content table.f100-poem tr + tr:not(.f100-sep) { border-top: 1px dashed var(--f100-line) !important; }
  .f100-on .entry-content table.f100-poem td:not(.f100-empty) { text-align: right !important; }
  .f100-on .entry-content table.f100-poem td:not(.f100-empty) ~ td:not(.f100-empty) { text-align: left !important; }
}

/* Home tiles: an odd last tile fills the row, so phones show no lonely box. */
.f100-tiles > .f100-tile:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 96px; }
@media (min-width: 850px) {
  .f100-tiles > .f100-tile:last-child:nth-child(odd) { grid-column: auto; min-height: 120px; }
  .f100-tiles > .f100-tile:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}

/* دانشنامه lists */
.f100-daneshnameh { display: grid; gap: 28px; margin: 12px 0 24px; }
.f100-daneshnameh .f100-head-row small { color: var(--f100-muted); }
.f100-note { padding: 10px 14px; border-radius: 12px; background: #fff4e5; color: #3b2a12; }

/* Faradars course cards */
.f100-courses { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 600px) { .f100-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.f100-course {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--f100-radius);
  background: var(--f100-surface); border: 1px solid var(--f100-line); color: var(--f100-ink) !important; text-decoration: none !important;
}
.f100-course img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0 !important; display: block; }
.f100-course-body { display: grid; gap: 6px; padding: 12px 14px 14px; align-content: start; }
.f100-course-body > span:not(.f100-badge):not(.f100-course-cta) { color: var(--f100-muted); font-size: .88rem; line-height: 1.8; }
.f100-course .f100-badge { justify-self: start; }
.f100-badge--paid { background: var(--f100-magenta); color: var(--f100-on-magenta); }
.f100-course-cta { margin-top: 4px; font-weight: 800; color: var(--f100-teal); }
.f100-courses-box { margin-top: 2.4em; }

/* Search, account and night mode in the teal bar — only while the upper header is off screen. */
.f100-bartools { display: none; align-items: center; gap: 4px; margin-inline-start: auto; position: relative; }
.f100-show-bartools .f100-bartools { display: flex; }
.f100-bartools .f100-bt {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0;
  background: rgba(255, 255, 255, .14); color: var(--f100-on-teal) !important; cursor: pointer; padding: 0;
}
.f100-bartools .f100-bt:hover { background: rgba(255, 255, 255, .26); }
.f100-bartools .f100-bt svg { width: 20px; height: 20px; }
.f100-bt-form { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 50; width: min(320px, 80vw); }
.f100-bt-form[hidden] { display: none; }
.f100-bt-form input {
  width: 100%; box-sizing: border-box; height: 44px; border-radius: 12px; border: 1px solid var(--f100-line);
  background: var(--f100-surface); color: var(--f100-ink); padding: 0 14px; font: inherit; box-shadow: var(--f100-shadow);
}

/* v1.2.1: day mode — white text left on a white box becomes dark (JS adds .f100-lt-ink). */
html:not([data-f100-theme="dark"]) .f100-lt-ink, html:not([data-f100-theme="dark"]) .f100-lt-ink a { color: var(--f100-ink) !important; }
html:not([data-f100-theme="dark"]) a.f100-lt-ink { color: var(--f100-teal) !important; }

/* Course cards without a picture, ratings, reviews */
.f100-course-ph {
  display: grid; place-items: center; align-content: center; gap: 4px; aspect-ratio: 16 / 9; color: var(--f100-on-teal);
  background: linear-gradient(135deg, var(--f100-teal), #0b4f57);
}
.f100-course-ph.is-paid { background: linear-gradient(135deg, var(--f100-magenta), #5b1e48); color: var(--f100-on-magenta); }
.f100-course-ph svg { width: 44px; height: 44px; }
.f100-course-ph b { font-size: .8rem; letter-spacing: .02em; opacity: .9; }
.f100-course-rate { color: #b7791f; font-weight: 800; font-size: .9rem; }
.f100-course-rate small { color: var(--f100-muted); font-weight: 400; }
.f100-reviews-sum { color: var(--f100-muted); font-size: .9rem; margin: 0; }
.f100-reviews-sum span { color: #b7791f; }
.f100-reviews-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 600px) { .f100-reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .f100-reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.f100-review { margin: 0; padding: 14px 16px; border-radius: var(--f100-radius); background: var(--f100-surface); border: 1px solid var(--f100-line); }
.f100-review blockquote { margin: 0 0 8px; padding: 0; border: 0; background: none; font-size: .98rem; line-height: 1.9; color: var(--f100-ink); }
.f100-review blockquote::before { content: "«"; color: var(--f100-teal); font-weight: 900; }
.f100-review blockquote::after { content: "»"; color: var(--f100-teal); font-weight: 900; }
.f100-review figcaption { color: var(--f100-muted); font-size: .85rem; }
.f100-reviews-src { color: var(--f100-muted); font-size: .8rem; margin: 0; }

/* v1.2.5: syllable signs in prosody tables */
.f100-syl { font-family: Tahoma, Arial, sans-serif; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }

/* v1.2.6 */
.f100-toggle.f100-dup { display: none !important; }
.f100-on .entry-content table.f100-poem tr.f100-sep.f100-prose { text-align: justify; }
.f100-on .entry-content table.f100-poem tr.f100-sep.f100-prose td { text-align: justify !important; }
.f100-long { display: inline-block; width: 1em; height: 0; border-top: 2px solid currentColor; vertical-align: middle; margin: 0 .18em; }
.f100-syl { direction: rtl; }
.f100-syl > span { unicode-bidi: isolate; }
.f100-syl .f100-u { margin: 0 .18em; }

/* v1.2.7: compact course cards (thumbnail beside text) */
/* فارسی ۱۰۰ — کارت‌های دورۀ فرادرس با تصویر کوچک (تصویر کنار متن، نه بالای آن) */
.f100-course {
  grid-template-columns: 180px minmax(0, 1fr);
  grid-template-rows: none;
  align-items: center;
}
.f100-course img,
.f100-course-ph {
  width: 168px;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-inline-start: 12px;
  border-radius: 10px !important;
  align-self: center;
}
.f100-course-ph svg { width: 30px; height: 30px; }
.f100-course-body { padding: 12px 14px; gap: 4px; }
.f100-course-body > b { font-size: .98rem; line-height: 1.7; }
@media (max-width: 480px) {
  .f100-course { grid-template-columns: 122px minmax(0, 1fr); }
  .f100-course img, .f100-course-ph { width: 112px; margin-inline-start: 10px; }
  .f100-course-body { padding: 10px 12px; }
}
