/* FarsiAmoozi design layer for Kadence (2026). Colours come from the Kadence palette (Customizer > Colors). */

/* 1. Tokens */
:root {
	--fa-accent: #f2a516;
	--fa-accent-hover: #e0950a;
	--fa-accent-ink: #2b1d00;
	--fa-line: #e3e7f3;
	--fa-radius: 14px;
	--fa-radius-lg: 22px;
	--fa-shadow: 0 1px 2px rgba(23, 33, 90, .05), 0 8px 24px rgba(23, 33, 90, .07);
	--fa-shadow-hover: 0 2px 4px rgba(23, 33, 90, .06), 0 14px 32px rgba(23, 33, 90, .12);
	--fa-prose: 760px;
}

/* 2. Base */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.rtl, .fa-page { line-height: 1.95; }
h1, h2, h3, h4 { color: var(--global-palette3); line-height: 1.45; letter-spacing: 0; }
h1 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); }
h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
a { text-underline-offset: .2em; }
::selection { background: var(--fa-accent); color: var(--fa-accent-ink); }
:focus-visible { outline: 3px solid var(--fa-accent); outline-offset: 2px; border-radius: 4px; }
.fa-lang-en, [lang="en"] { direction: ltr; text-align: start; }
.fa-lang-en { unicode-bidi: isolate; }
.entry-content img, .entry-content iframe, .entry-content video { border-radius: var(--fa-radius); }

/* 3. Header */
#masthead .site-main-header-wrap .site-header-row-container-inner { border-bottom: 1px solid var(--fa-line); background: rgba(255, 255, 255, .96); }
.main-navigation .primary-menu-container > ul > li.menu-item > a { font-weight: 600; border-radius: 999px; padding-inline: .9em; }
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a { color: var(--global-palette1); background: var(--global-palette7); }
.header-navigation .header-menu-container ul ul.sub-menu { border-radius: var(--fa-radius); box-shadow: var(--fa-shadow-hover); overflow: hidden; padding: 6px 0; }
.header-button-wrap .header-button { border-radius: 999px; font-weight: 700; background: var(--fa-accent); color: var(--fa-accent-ink); border: 0; }
.header-button-wrap .header-button:hover { background: var(--fa-accent-hover); color: var(--fa-accent-ink); }
#mobile-drawer .drawer-inner { background: #fff; }
.mobile-navigation ul li > a, .mobile-navigation ul li .drawer-nav-drop-wrap > a { color: var(--global-palette3); font-weight: 600; }

/* 4. Breadcrumbs and page title */
.kadence-breadcrumbs, .rank-math-breadcrumb { font-size: .875rem; color: var(--global-palette5); margin-bottom: .5em; }
.kadence-breadcrumbs a, .rank-math-breadcrumb a { color: var(--global-palette5); text-decoration: underline; text-decoration-color: rgba(90, 97, 128, .45); text-underline-offset: 3px; }
.kadence-breadcrumbs a:hover, .rank-math-breadcrumb a:hover { color: var(--global-palette1); text-decoration-color: currentColor; }
/* Breadcrumb parts easy to tell apart (owner request, 28 Nov 2026): all grey (owner: keep it grey), links underlined, light separator, current page not underlined; one line, each part cut with "…" when long. */
.rank-math-breadcrumb .separator { flex: none; color: #aab0c6; padding-inline: .35em; }
.rank-math-breadcrumb .last { color: var(--global-palette5); }
.rank-math-breadcrumb p { display: flex; align-items: baseline; margin: 0; white-space: nowrap; }
.rank-math-breadcrumb p > a, .rank-math-breadcrumb .last { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rank-math-breadcrumb p > a:first-child { flex: none; }
.rank-math-breadcrumb .last { min-width: 4em; }

/* 5. Buttons */
.wp-block-button__link, .button, input[type="submit"], button[type="submit"] { border-radius: 999px; font-weight: 700; padding: .8em 1.6em; transition: background-color .2s, box-shadow .2s, transform .2s; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: var(--fa-shadow); }
.wp-block-button.is-style-fa-accent .wp-block-button__link, .fa-btn-accent .wp-block-button__link { background: var(--fa-accent); color: var(--fa-accent-ink); }
.wp-block-button.is-style-fa-accent .wp-block-button__link:hover, .fa-btn-accent .wp-block-button__link:hover { background: var(--fa-accent-hover); color: var(--fa-accent-ink); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: var(--global-palette1); }

/* 6. Page sections (built pages use full-width layout) */
.fa-hero { background: linear-gradient(180deg, var(--global-palette7) 0%, var(--global-palette9) 100%); padding: clamp(40px, 7vw, 96px) 20px clamp(32px, 5vw, 64px); }
.fa-hero h1 { margin-top: 0; }
.fa-hero .fa-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--global-palette5); max-width: 680px; margin-inline: auto; }
.fa-hero .wp-block-buttons { margin-top: 1.5em; }
.fa-section { padding: clamp(36px, 6vw, 80px) 20px; }
.fa-section.fa-alt { background: var(--global-palette8); }
.fa-section > h2:first-child { margin-top: 0; }
.fa-prose { max-width: var(--fa-prose); margin-inline: auto; }
.fa-kicker { color: var(--global-palette1); font-weight: 700; font-size: .9rem; margin-bottom: .25em; }

/* 7. Cards */
.fa-cards { gap: 20px; }
.fa-card { background: #fff; border: 1px solid var(--fa-line); border-radius: var(--fa-radius-lg); padding: 24px; box-shadow: var(--fa-shadow); transition: box-shadow .2s, transform .2s; height: 100%; }
.fa-card:hover { box-shadow: var(--fa-shadow-hover); transform: translateY(-2px); }
.fa-card h3 { margin-top: 0; }
.fa-card p:last-child { margin-bottom: 0; }
.fa-card a { font-weight: 700; }

/* 8. Call to action band */
.fa-cta-band { background: var(--global-palette1); color: #fff; border-radius: var(--fa-radius-lg); padding: clamp(28px, 5vw, 56px) 24px; text-align: center; }
.fa-cta-band h2, .fa-cta-band p { color: #fff; }
.fa-cta-band .wp-block-button__link { background: var(--fa-accent); color: var(--fa-accent-ink); }
.fa-cta-band .wp-block-button__link:hover { background: var(--fa-accent-hover); }

/* 9. FAQ (Rank Math FAQ block) */
.rank-math-block .rank-math-list { display: grid; gap: 12px; }
.rank-math-faq-item, .rank-math-block .rank-math-list-item { background: #fff; border: 1px solid var(--fa-line); border-radius: var(--fa-radius); padding: 18px 22px; }
.entry-content .rank-math-block .rank-math-question { font-size: 1.05rem; margin: 0 0 .4em; }
.entry-content .rank-math-block .rank-math-answer p:last-child { margin-bottom: 0; }

/* 10. Tables */
.entry-content table { border-collapse: collapse; width: 100%; background: #fff; border-radius: var(--fa-radius); overflow: hidden; box-shadow: 0 0 0 1px var(--fa-line); }
.entry-content :is(th, td) { padding: 10px 14px; border-bottom: 1px solid var(--fa-line); }
.entry-content th { background: var(--global-palette7); color: var(--global-palette3); }
.wp-block-table { overflow-x: auto; }

/* 11. Lesson and activity pages (mu-plugin fa-learning) */
.fa-video { margin: 0 0 1.5em; }
.fa-yt { position: relative; aspect-ratio: 16 / 9; background: #0d1236; border-radius: var(--fa-radius-lg); overflow: hidden; box-shadow: var(--fa-shadow); }
.fa-yt iframe, .fa-yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.fa-yt-facade { padding: 0; margin: 0; background: #0d1236; cursor: pointer; display: block; }
.fa-yt-facade img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: .92; transition: opacity .2s; }
.fa-yt-facade:hover img { opacity: 1; }
.fa-yt-play { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--fa-accent); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.fa-yt-play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -13px 0 0 -8px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--fa-accent-ink); }
.fa-video figcaption { text-align: center; color: var(--global-palette5); font-size: .9rem; margin-top: .6em; }
.fa-video-menu, .fa-lesson-list { background: #fff; border: 1px solid var(--fa-line); border-radius: var(--fa-radius); padding: 12px 18px; margin: 0 0 1.5em; }
.fa-video-menu summary, .fa-lesson-list summary { cursor: pointer; font-weight: 700; color: var(--global-palette3); }
.fa-lesson-list ol { margin: .75em 0 0; padding-inline-start: 1.4em; columns: 2 220px; column-gap: 24px; }
.fa-lesson-list li { break-inside: avoid; margin-bottom: .3em; }
.fa-lesson-list a { text-decoration: none; }
.fa-lesson-list [aria-current] { font-weight: 700; color: var(--global-palette3); }
.fa-video-alt, .fa-help, .fa-back { font-size: .95rem; }
.fa-acts { margin: 2.5em 0; }
.fa-act-grid { list-style: none; margin: 1em 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.fa-act a { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 16px 12px; background: #fff; border: 1px solid var(--fa-line); border-radius: var(--fa-radius); text-align: center; text-decoration: none; color: var(--global-palette3); font-weight: 600; font-size: .95rem; line-height: 1.6; box-shadow: var(--fa-shadow); transition: box-shadow .2s, transform .2s, border-color .2s; }
.fa-act a:hover { border-color: var(--global-palette1); box-shadow: var(--fa-shadow-hover); transform: translateY(-2px); }
.fa-act-icon img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; }
.fa-h5p { background: #fff; border: 1px solid var(--fa-line); border-radius: var(--fa-radius-lg); padding: clamp(8px, 2vw, 20px); margin: 1.5em 0; box-shadow: var(--fa-shadow); }
.fa-h5p iframe { border-radius: 0; }
.fa-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 2em 0; }
.fa-pn a { display: block; padding: 14px 18px; background: #fff; border: 1px solid var(--fa-line); border-radius: var(--fa-radius); text-decoration: none; color: var(--global-palette3); font-weight: 700; transition: border-color .2s, box-shadow .2s; }
.fa-pn a:hover { border-color: var(--global-palette1); box-shadow: var(--fa-shadow); }
.fa-pn small { display: block; color: var(--global-palette5); font-weight: 400; font-size: .8rem; }
.fa-pn-next { grid-column: 2; text-align: end; }
@media (max-width: 600px) { .fa-pn { grid-template-columns: 1fr; } .fa-pn-next { grid-column: 1; } }

/* 12. Help-video lightbox (mu-plugin fa-compat) */
.fa-yt-dialog { border: 0; border-radius: var(--fa-radius-lg); padding: 0; width: min(900px, 94vw); background: #000; }
.fa-yt-dialog::backdrop { background: rgba(10, 14, 40, .75); }

/* 13. Forum (bbPress) */
#bbpress-forums { font-size: 1rem; }
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results { border: 1px solid var(--fa-line); border-radius: var(--fa-radius); overflow: hidden; background: #fff; }
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer { background: var(--global-palette7); border-color: var(--fa-line); color: var(--global-palette3); }
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic { border-top: 1px solid var(--fa-line); padding: 12px 10px; }
#bbpress-forums div.odd, #bbpress-forums ul.odd { background: #fff; }
#bbpress-forums div.even, #bbpress-forums ul.even { background: var(--global-palette8); }
#bbpress-forums .bbp-forum-title, #bbpress-forums .bbp-topic-permalink { font-weight: 700; font-size: 1.05rem; }
#bbpress-forums div.bbp-reply-header, #bbpress-forums div.bbp-topic-header { background: var(--global-palette7); border-color: var(--fa-line); }
#bbpress-forums fieldset.bbp-form { border: 1px solid var(--fa-line); border-radius: var(--fa-radius); padding: 16px 20px; }
.bbp-breadcrumb { font-size: .875rem; }
/* Forum images (functions.php): banner above each forum title in forum lists */
#bbpress-forums a.fa-forum-banner { display: block; width: 100%; max-width: 240px; margin: 0 0 10px; }
#bbpress-forums a.fa-forum-banner img { display: block; width: 100%; height: auto; border-radius: 10px; }
/* Forum home (/Community/) hero (functions.php): text beside the photo, same look as the split hero (.fa-hero-split) of the other pages */
.forum-archive-hero-section { overflow-x: clip; }
.forum-archive-hero-section .forum-archive-title { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; text-align: start; padding-block: clamp(28px, 6vw, 80px) clamp(36px, 6vw, 80px); }
.forum-archive-title .fa-forum-hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.forum-archive-title .fa-forum-hero-text h1 { font-size: clamp(1.65rem, 1.15rem + 1.7vw, 2.5rem); line-height: 1.55; margin: 0 0 .45em; }
.forum-archive-title .fa-forum-hero-text .fa-lead { order: 1; margin: 0 0 1.2em; color: var(--global-palette5); font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); line-height: 1.9; }
.forum-archive-title .fa-forum-hero-text .bbp-search-form { order: 2; width: 100%; }
.fa-forum-hero-img { margin: 0; position: relative; isolation: isolate; }
.fa-forum-hero-img::before { content: ""; position: absolute; inset-block-end: -16px; inset-inline-end: -16px; width: 62%; height: 62%; border-radius: 28px; background: linear-gradient(135deg, var(--fa-accent), #ffd27a); opacity: .55; z-index: -1; }
.fa-forum-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 56px rgba(23, 33, 90, .2); }
@media (max-width: 781px) {
	.forum-archive-hero-section .forum-archive-title { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
	.fa-forum-hero-img::before { inset-block-end: -10px; inset-inline-end: -10px; }
}

/* 14. Footer */
.site-footer { background: #151c4d; color: #d9ddf2; }
.site-footer .site-footer-row-container-inner { background: transparent; border: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--fa-accent); }
.site-footer .footer-html { font-size: .85rem; line-height: 1.9; color: #b9bfdc; }
.site-footer .footer-navigation .menu > li > a { padding: .35em .8em; }
.site-footer .footer-social-wrap .social-button { background: rgba(255, 255, 255, .1); color: #fff; border-radius: 50%; }
.site-footer .footer-social-wrap .social-button:hover { background: var(--fa-accent); color: var(--fa-accent-ink); }

/* 15. Contact form (mu-plugin fa-learning) */
.fa-form { display: grid; gap: 14px; max-width: 620px; }
.fa-form label { font-weight: 600; display: block; margin-bottom: 4px; }
.fa-form :is(input[type="text"], input[type="email"], select, textarea) { width: 100%; border: 1px solid #cfd5ea; border-radius: 10px; padding: .7em .9em; background: #fff; }
.fa-form :is(input, select, textarea):focus { border-color: var(--global-palette1); outline: 2px solid var(--global-palette7); }
.fa-form .fa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fa-form-ok, .fa-form-err { border-radius: var(--fa-radius); padding: 14px 18px; }
.fa-form-ok { background: #e9f8ef; color: #135c32; }
.fa-form-err { background: #fdecec; color: #8a1c1c; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; transform: none !important; } }

/* 16. Refinements */
.header-button-wrap .header-button { white-space: nowrap; }
.fa-hero .rank-math-breadcrumb { text-align: center; }
.fa-hero .rank-math-breadcrumb p { justify-content: center; }
.fa-hero + .fa-section:not(.fa-alt), .fa-section:not(.fa-alt) + .fa-section:not(.fa-alt) { padding-top: 0; }
.fa-cards.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.entry-content .wp-block-table :is(th, td) { border: 0; border-bottom: 1px solid var(--fa-line); }
.entry-content .wp-block-table thead { border-bottom: 0; }
.fa-lesson-grid { list-style: none; margin: 1em 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; counter-reset: fa-l; }
.fa-lesson-grid li { counter-increment: fa-l; margin: 0; }
.fa-lesson-grid a { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto 1fr; align-items: center; gap: 12px; height: 100%; padding: 0 16px 14px; overflow: hidden; background: #fff; border: 1px solid var(--fa-line); border-radius: var(--fa-radius); text-decoration: none; color: var(--global-palette3); font-weight: 600; line-height: 1.6; box-shadow: var(--fa-shadow); transition: border-color .2s, box-shadow .2s, transform .2s; }
.fa-lesson-grid a::before { content: counter(fa-l); flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--global-palette7); color: var(--global-palette1); font-weight: 700; font-size: .9rem; }
/* Lesson numbers: Western digits (1, 2, 3) by default, Persian digits on Persian pages (.fa-page), as for the numbered steps. */
.fa-page .fa-lesson-grid a::before { content: counter(fa-l, persian); }
.fa-lesson-grid a:hover { border-color: var(--global-palette1); box-shadow: var(--fa-shadow-hover); transform: translateY(-2px); }
/* Lesson cards: picture on top (16:9), then the number and the title, centred across and down the space left under the picture. A thin line and a very light tint set the title area apart from the picture. Lesson titles have a line in the page language, then a smaller line in the other language (.fa-tl). */
.fa-lc-img { order: -1; grid-column: 1 / -1; margin: 0 -16px 2px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--global-palette7); border-bottom: 1px solid var(--fa-line); }
.fa-lesson-grid a:has(.fa-lc-img) { background: #f7f8fc; }
.fa-lesson-grid a:has(.fa-lc-img)::before { background: #fff; box-shadow: 0 0 0 1px var(--fa-line); }
.fa-lc-img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.fa-lesson-grid a:not(:has(.fa-lc-img)) { grid-template-rows: 1fr; padding-top: 14px; }
.fa-tl { display: block; }
.fa-tl + .fa-tl { font-size: .88em; font-weight: 500; color: var(--global-palette5); }
.rtl .fa-tl { text-align: right; }
.rtl .fa-pn-next .fa-tl { text-align: left; }
.fa-lesson-grid .fa-lc-t .fa-tl { text-align: center; text-wrap: balance; }
/* The title lines (and on phones the number) spread evenly down the space under the picture, so shorter titles do not bunch up in the middle. */
.fa-lesson-grid .fa-lc-t { align-self: stretch; display: flex; flex-direction: column; justify-content: space-evenly; gap: 6px; }
/* Kadence gives lists inside posts 2em of start padding (".rtl .single-content ol"); the lesson and activity grids need none, or the cards sit off-centre. */
.rtl .single-content :is(.fa-lesson-grid, .fa-act-grid), .single-content :is(.fa-lesson-grid, .fa-act-grid) { padding: 0; }
/* Phones: two cards per row; the number moves to a small circle above the title, so the title gets the full width and the picture stays uncovered. */
@media (max-width: 600px) {
	.fa-lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.fa-lesson-grid a { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 10px 10px; font-size: .9rem; line-height: 1.5; }
	.fa-lesson-grid .fa-lc-img { margin: 0 -10px; }
	.fa-lesson-grid a::before { display: none; }
	.fa-lesson-grid .fa-lc-t::before { content: counter(fa-l); display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--fa-line); color: var(--global-palette1); font-weight: 700; font-size: .75rem; line-height: 1; }
	.fa-page .fa-lesson-grid .fa-lc-t::before { content: counter(fa-l, persian); }
}
.single-fa_lesson .entry-content-wrap, .single-fa_activity .entry-content-wrap, .single-post .entry-content-wrap { max-width: 880px; margin-inline: auto; }

/* Kadence zeroes side padding on .entry-content .alignfull; keep the 20px gutter on mobile */
.entry-content .alignfull.fa-hero, .entry-content .alignfull.fa-section, .entry-content .alignfull.fa-cta-band { padding-left: 20px; padding-right: 20px; }
/* Mobile: wide tables scroll sideways instead of breaking words letter by letter */
.entry-content .wp-block-table :is(th, td) { overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (max-width: 600px) { .entry-content .wp-block-table table { min-width: 540px; } }
/* Text links inside the blue CTA band must stay visible */
.fa-cta-band a:not(.wp-block-button__link) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Home hero photo */
.fa-hero .fa-hero-img { margin: clamp(24px, 4vw, 40px) auto 0; }
.fa-hero .fa-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--fa-radius-lg); box-shadow: var(--fa-shadow); }

/* ===== Design v2 — sample on the front page (body class fa-v2), then every page once approved ===== */
.fa-v2 {
	--v2-blue: #2f6fde; --v2-blue-bg: #e8f0fe;
	--v2-teal: #0f9478; --v2-teal-bg: #e0f5ee; --v2-teal-ink: #0b7660;
	--v2-orange: #d97e06; --v2-orange-bg: #fff0d9; --v2-orange-ink: #9a5700;
	--v2-purple: #6e4fd5; --v2-purple-bg: #eee9fd;
	--v2-shadow: 0 1px 2px rgba(23, 33, 90, .06), 0 12px 32px rgba(23, 33, 90, .09);
	--v2-shadow-hover: 0 2px 4px rgba(23, 33, 90, .07), 0 18px 40px rgba(23, 33, 90, .14);
}
.fa-ic-book { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5V5a2 2 0 0 1 2-2h14v15H6.5A2.5 2.5 0 0 0 4 20.5 2.5 2.5 0 0 0 6.5 23H20v-5M8 7h8M8 11h6'/%3E%3C/svg%3E"); }
.fa-ic-exam { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6v3H9zM8 4.5H5v17h14v-17h-3M9 14l2 2 4-4'/%3E%3C/svg%3E"); }
.fa-ic-cap { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5zM6 11.2V16c0 1.6 2.7 3 6 3s6-1.4 6-3v-4.8M22 9v6'/%3E%3C/svg%3E"); }
.fa-ic-live { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h12v12H3zM15 10.5l6-3.5v10l-6-3.5'/%3E%3C/svg%3E"); }
.fa-ic-star { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E"); }
.fa-ic-game { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8h10a5 5 0 0 1 0 10c-1.8 0-2.6-1.5-3.5-2.5h-3C9.6 16.5 8.8 18 7 18A5 5 0 0 1 7 8zM8 11v4M6 13h4M16 12h.01M18 14h.01'/%3E%3C/svg%3E"); }
.fa-ic-globe { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 1 0 0-18zM3.5 9h17M3.5 15h17M12 3c2.6 2.5 3.9 5.5 3.9 9s-1.3 6.5-3.9 9c-2.6-2.5-3.9-5.5-3.9-9S9.4 5.5 12 3'/%3E%3C/svg%3E"); }
.fa-ic-kids { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 1 0 0-18zM8.5 14.5c1.9 2 5.1 2 7 0M9 9.5h.01M15 9.5h.01'/%3E%3C/svg%3E"); }
.fa-ic-gift { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h18v4H3zM5 12v9h14v-9M12 8v13M12 8C10.5 4 7 3.5 7 6s3 2 5 2M12 8c1.5-4 5-4.5 5-2s-3 2-5 2'/%3E%3C/svg%3E"); }
.fa-ic-chat { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20.5l1.4-4.9A8 8 0 1 1 21 12zM8.5 12h.01M12 12h.01M15.5 12h.01'/%3E%3C/svg%3E"); }
.fa-ic-pencil { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l4.5-1 11-11a2.1 2.1 0 0 0-3-3l-11 11zM14.5 6.5l3 3'/%3E%3C/svg%3E"); }
.fa-ic-video { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 1 0 0-18zM10 8.5v7l6-3.5z'/%3E%3C/svg%3E"); }

/* Hero: soft colour wash, text beside the photo on wide screens */
.fa-v2 .fa-hero { background: radial-gradient(55% 75% at 100% 0%, #fff1d6 0%, rgba(255, 241, 214, 0) 70%), radial-gradient(50% 70% at 0% 100%, #e3edff 0%, rgba(227, 237, 255, 0) 70%), linear-gradient(180deg, #f8faff 0%, #fff 100%); }
.fa-v2 .fa-hero-split { padding-top: clamp(28px, 6vw, 80px); padding-bottom: clamp(36px, 6vw, 80px); }
.fa-v2 .fa-hero-cols { gap: clamp(28px, 5vw, 64px); margin: 0; }
.fa-v2 .fa-hero-split h1 { font-size: clamp(1.65rem, 1.15rem + 1.7vw, 2.5rem); line-height: 1.55; margin-bottom: .45em; }
.fa-v2 .fa-hero-split .fa-lead { margin-inline: 0; font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); line-height: 1.9; }
.fa-v2 .fa-hero-split .wp-block-buttons { margin-top: 1.6em; gap: 12px; }
/* Page label above the title: plain text with a thin orange bar at its start, no frame, so it does not look like a button (owner choice, 28 Nov 2026: sample 3). */
.fa-v2 .fa-kicker { width: fit-content; border-inline-start: 3px solid var(--fa-accent); padding-block: .1em; padding-inline-start: .7em; font-size: .85rem; letter-spacing: .02em; margin-bottom: .7em; }
.fa-v2 .fa-kicker.has-text-align-center { margin-inline: auto; }
.fa-v2 .fa-hero-split .fa-hero-img { margin: 0; position: relative; isolation: isolate; }
.fa-v2 .fa-hero-split .fa-hero-img::before { content: ""; position: absolute; inset-block-end: -16px; inset-inline-end: -16px; width: 62%; height: 62%; border-radius: 28px; background: linear-gradient(135deg, var(--fa-accent), #ffd27a); opacity: .55; z-index: -1; }
.fa-v2 .fa-hero-split .fa-hero-img img { border-radius: 28px; box-shadow: 0 24px 56px rgba(23, 33, 90, .2); }
.fa-v2 .fa-badges { list-style: none; padding: 0; margin: 1.5em 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fa-v2 .fa-badges li { display: inline-flex; align-items: center; gap: .5em; margin: 0; padding: .15em 0; font-size: .88rem; font-weight: 600; color: var(--global-palette3); }
.fa-v2 .fa-badges li::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--v2-teal); flex: none; }
.fa-v2 .fa-badges li:nth-child(2)::before { background: var(--fa-accent); }
.fa-v2 .fa-badges li:nth-child(3)::before { background: var(--v2-blue); }
.fa-v2 .fa-badges li:nth-child(4)::before { background: var(--v2-purple); }
/* Mobile: badges smaller and tighter so they take two short lines (owner request, 28 Nov 2026) */
@media (max-width: 767px) { .fa-v2 .fa-badges { gap: 4px 14px; margin-top: 1em; } .fa-v2 .fa-badges li { font-size: .8rem; padding: 0; gap: .4em; line-height: 1.4; } }

/* Buttons: a little larger, with a soft glow on the main one */
.fa-v2 .entry-content .wp-block-button__link { padding: .85em 1.6em; font-size: 1rem; }
.fa-v2 .wp-block-button.is-style-fa-accent .wp-block-button__link { box-shadow: 0 8px 20px rgba(242, 165, 22, .35); }
.fa-v2 .fa-hero .wp-block-button.is-style-outline .wp-block-button__link { background: #fff; }

/* Section headings with a short accent bar */
.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > h2, .fa-v2 :is(.fa-box, .fa-box > .wp-block-group__inner-container) > h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem); }
.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > h2::after, .fa-v2 :is(.fa-box, .fa-box > .wp-block-group__inner-container) > h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; margin-top: .5em; background: linear-gradient(90deg, var(--fa-accent), #ffd27a); }
.fa-v2 .fa-section { padding-top: clamp(44px, 7vw, 88px); padding-bottom: clamp(44px, 7vw, 88px); }
.fa-v2 .fa-hero + .fa-section:not(.fa-alt), .fa-v2 .fa-section:not(.fa-alt) + .fa-section:not(.fa-alt) { padding-top: clamp(20px, 3vw, 40px); }
.fa-v2 .fa-section.fa-alt { background: linear-gradient(180deg, #f3f6ff 0%, #f9faff 100%); }

/* Cards: colour per card, icon tile, colour bar on top */
.fa-v2 .fa-cards { gap: 22px; }
.fa-v2 .fa-card { --c: var(--v2-blue); --cb: var(--v2-blue-bg); position: relative; border: 0; border-top: 5px solid var(--c); border-radius: 22px; padding: 26px 24px 24px; box-shadow: var(--v2-shadow); }
.fa-v2 .fa-card:hover { box-shadow: var(--v2-shadow-hover); transform: translateY(-4px); }
.fa-v2 .fa-cards > :nth-child(4n+2) { --c: var(--v2-teal); --cb: var(--v2-teal-bg); --ci: var(--v2-teal-ink); }
.fa-v2 .fa-cards > :nth-child(4n+3) { --c: var(--v2-orange); --cb: var(--v2-orange-bg); --ci: var(--v2-orange-ink); }
.fa-v2 .fa-cards > :nth-child(4n+4) { --c: var(--v2-purple); --cb: var(--v2-purple-bg); }
.fa-v2 .fa-card a { color: var(--ci, var(--c)); text-underline-offset: 3px; }
.fa-v2 :is(.fa-card, .fa-card > .wp-block-group__inner-container) > p:last-child > a:only-child { display: inline-block; padding-block: .5em; text-decoration: none; }
.fa-v2 :is(.fa-card, .fa-card > .wp-block-group__inner-container) > p:last-child > a:only-child:hover { text-decoration: underline; }
.fa-v2 :is(.fa-card, .fa-card > .wp-block-group__inner-container) > p:last-child > a:only-child::after { content: " ←"; content: " ←" / ""; }
.fa-v2:not(.fa-page) :is(.fa-card, .fa-card > .wp-block-group__inner-container) > p:last-child > a:only-child::after { content: " →"; content: " →" / ""; }
.fa-v2 .fa-card a:focus-visible, .fa-lang-switch > a:focus-visible { outline: 2px solid var(--global-palette1); outline-offset: 2px; }
.fa-v2 .fa-card:focus-within { box-shadow: var(--v2-shadow-hover); }
.fa-v2 .fa-panel { background: linear-gradient(180deg, var(--cb) 0%, #fff 55%); }
.fa-v2 .fa-panels { margin-block: 1.6em; }

/* Icon tile: ::before is the tile, ::after is the icon (mask, so it takes the card colour) */
.fa-v2 .fa-ic { position: relative; padding-top: 96px; }
.fa-v2 .fa-ic::before { content: ""; position: absolute; top: 26px; inset-inline-start: 24px; width: 54px; height: 54px; border-radius: 16px; background: var(--cb, var(--v2-blue-bg)); }
.fa-v2 .fa-ic::after { content: ""; position: absolute; top: 40px; inset-inline-start: 38px; width: 26px; height: 26px; background: var(--c, var(--v2-blue)); -webkit-mask: var(--fa-ic) center / contain no-repeat; mask: var(--fa-ic) center / contain no-repeat; forced-color-adjust: none; }

/* Steps (numbered lists) and option lists */
.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ol.wp-block-list { list-style: none; counter-reset: fa-step; padding: 0; margin-inline: 0; display: grid; gap: 14px; }
.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ol.wp-block-list > li { counter-increment: fa-step; position: relative; margin: 0; background: #fff; border-radius: 18px; padding: 16px 20px; padding-inline-start: 72px; box-shadow: var(--v2-shadow); }
.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ol.wp-block-list > li::before { content: counter(fa-step); position: absolute; inset-inline-start: 18px; top: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--fa-accent); color: var(--fa-accent-ink); }
.fa-v2.fa-page :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ol.wp-block-list > li::before { content: counter(fa-step, persian); }
.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ol.wp-block-list > li:nth-child(4n+2)::before { background: var(--v2-teal-ink); color: #fff; }
.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ol.wp-block-list > li:nth-child(4n+3)::before { background: var(--v2-blue); color: #fff; }
.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ol.wp-block-list > li:nth-child(4n+4)::before { background: var(--v2-purple); color: #fff; }
.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ul.wp-block-list { list-style: none; padding: 0; margin-inline: 0; display: grid; gap: 12px; }
.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ul.wp-block-list > li { position: relative; margin: 0; background: #fff; border: 1px solid var(--fa-line); border-radius: 16px; padding: 14px 18px; padding-inline-start: 56px; }
.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ul.wp-block-list > li::before { content: ""; position: absolute; inset-inline-start: 18px; top: 17px; width: 24px; height: 24px; border-radius: 50%; background: var(--v2-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Highlight box (for example the free sample) */
.fa-v2 .fa-box { --c: var(--v2-orange); --cb: var(--v2-orange-bg); background: #fff; border: 2px dashed #f6c66a; border-radius: 26px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--v2-shadow); }
.fa-v2 .fa-box.fa-ic { padding-top: clamp(24px, 4vw, 40px); padding-inline-start: clamp(24px, 4vw, 40px); }
@media (min-width: 700px) {
	.fa-v2 .fa-box.fa-ic { padding-inline-start: 120px; }
	.fa-v2 .fa-box.fa-ic::before { top: 40px; inset-inline-start: 36px; width: 62px; height: 62px; border-radius: 18px; }
	.fa-v2 .fa-box.fa-ic::after { top: 56px; inset-inline-start: 52px; width: 30px; height: 30px; }
}
@media (max-width: 699px) {
	.fa-v2 .fa-box.fa-ic { padding-top: 100px; }
	.fa-v2 .fa-box.fa-ic::before { top: 28px; inset-inline-start: 24px; }
	.fa-v2 .fa-box.fa-ic::after { top: 42px; inset-inline-start: 38px; }
}

/* FAQ */
.fa-v2 :is(.rank-math-faq-item, .rank-math-list-item) { position: relative; border: 0; border-radius: 18px; box-shadow: var(--v2-shadow); padding: 20px 22px; padding-inline-start: 70px; margin-bottom: 14px; }
.fa-v2 :is(.rank-math-faq-item, .rank-math-list-item)::before { content: "؟"; content: "؟" / ""; position: absolute; inset-inline-start: 20px; top: 18px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: var(--v2-purple-bg); color: var(--v2-purple); }
.fa-v2:not(.fa-page) :is(.rank-math-faq-item, .rank-math-list-item)::before { content: "?"; content: "?" / ""; }
.fa-v2 .rank-math-question { margin-top: 0; font-size: 1.08rem; }

/* Call-to-action band */
.fa-v2 .fa-cta-band { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, var(--global-palette1) 0%, #3d5ee0 100%); box-shadow: 0 22px 50px rgba(30, 42, 120, .28); }
.fa-v2 .fa-cta-band::before, .fa-v2 .fa-cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); z-index: -1; }
.fa-v2 .fa-cta-band::before { width: 260px; height: 260px; top: -90px; inset-inline-start: -70px; }
.fa-v2 .fa-cta-band::after { width: 180px; height: 180px; bottom: -70px; inset-inline-end: -40px; background: rgba(242, 165, 22, .22); }

@media (max-width: 781px) {
	.fa-v2 .fa-hero-split { padding-top: 24px; }
	.fa-v2 .fa-hero-split .fa-hero-img::before { inset-block-end: -10px; inset-inline-end: -10px; }
}
@media (max-width: 480px) {
	.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ol.wp-block-list > li { padding-inline-start: 60px; }
	.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ul.wp-block-list > li { padding-inline-start: 50px; }
}
.fa-v2 .fa-hero-split { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { .fa-v2 .fa-card { transition: none; } .fa-v2 .fa-card:hover { transform: none; } }

/* Language button in the main and mobile menus (all pages) */
.header-navigation .menu-item.fa-lang-switch > a { direction: inherit; margin-inline-start: .5em; padding: .45em 1em; border: 0; border-radius: 999px; background: var(--global-palette7); color: var(--global-palette1); font-size: 15px; font-weight: 700; }
.header-navigation .menu-item.fa-lang-switch > a:hover { background: var(--fa-line); }
.mobile-navigation .menu-item.fa-lang-switch > a { direction: inherit; width: fit-content; margin: 12px 16px; padding: .45em 1.2em; border: 0; border-radius: 999px; background: var(--global-palette7); color: var(--global-palette1); font-weight: 700; }
/* Globe icon before the language name (owner choice, 28 Nov 2026: sample 2) */
:is(.header-navigation, .mobile-navigation) .menu-item.fa-lang-switch > a::before { content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-inline-end: .4em; vertical-align: -.18em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c2.6 2.8 3.9 6 3.9 9.5s-1.3 6.7-3.9 9.5M12 2.5C9.4 5.3 8.1 8.5 8.1 12s1.3 6.7 3.9 9.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c2.6 2.8 3.9 6 3.9 9.5s-1.3 6.7-3.9 9.5M12 2.5C9.4 5.3 8.1 8.5 8.1 12s1.3 6.7 3.9 9.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Footer: social icons on top, then the menu, then the copyright; all centered (all pages) */
#colophon .site-top-footer-inner-wrap { padding-top: 36px; padding-bottom: 6px; }
#colophon .site-middle-footer-inner-wrap { padding-top: 6px; padding-bottom: 22px; }
#colophon .site-bottom-footer-inner-wrap { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
#colophon .footer-navigation .menu { justify-content: center; }
#colophon .footer-navigation a { color: #dfe3f7; font-size: 15px; }
#colophon .footer-navigation a:hover, #colophon .footer-navigation a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
#colophon .footer-social-wrap .social-button:focus-visible, #colophon .footer-navigation a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Footer v3 (owner request): social icons on white, above the navy bar; navy icons. Disclaimer wraps at a readable width. */
#colophon .site-top-footer-wrap { background: #fff; border-top: 0; }
#colophon .site-top-footer-inner-wrap { padding-top: 16px; padding-bottom: 16px; }
#colophon .site-middle-footer-inner-wrap { padding-top: 18px; padding-bottom: 12px; }
#colophon .site-bottom-footer-inner-wrap { padding-top: 14px; padding-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
#colophon .footer-html-inner { line-height: 1.7; }
#colophon .site-top-footer-wrap .footer-social-wrap .social-button { background: #fff; color: #151c4d; border: 1.5px solid rgba(21, 28, 77, .2); }
#colophon .site-top-footer-wrap .footer-social-wrap .social-button:hover { background: #151c4d; color: #fff; border-color: #151c4d; }
#colophon .site-top-footer-wrap .footer-social-wrap .social-button:focus-visible { outline: 2px solid #151c4d; outline-offset: 2px; }
#colophon .footer-html-inner { max-width: 760px; margin-inline: auto; }

/* Mobile menu: indent submenu items on the reading side (right in Persian, left in English). */
#mobile-site-navigation ul ul.sub-menu { padding-left: 0; padding-inline-start: 14px; }

/* Fonts (licensed files from the main site, in assets/fonts): IRANSans for all text, Persian and English, and IRANSansDN Bold for Persian letters in headings. Kadence typography settings use "FA IRANSans" for text and "FA Heading", "FA IRANSans" for headings; English letters in headings fall back to IRANSans Bold (same Latin shapes as IRANSansDN). */
@font-face { font-family: "FA IRANSans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IRANSansWeb.woff2") format("woff2"); }
@font-face { font-family: "FA IRANSans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/IRANSansWeb-Bold.woff2") format("woff2"); }
@font-face { font-family: "FA Heading"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/IRANSansDN-Bold.woff2") format("woff2"); unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }

/* Split hero (pages with a hero photo): breadcrumb aligned with the text column */
.fa-v2 .fa-hero-split .rank-math-breadcrumb { text-align: start; }
.fa-v2 .fa-hero-split .rank-math-breadcrumb p { justify-content: flex-start; }

/* Split hero on mobile (columns stacked): hero buttons centred */
@media (max-width: 781px) {
	.fa-v2 .fa-hero-split .wp-block-buttons { justify-content: center; }
}

/* Menu v2 (owner approval, 28 Nov 2026). Colours, sizes and sticky header are in the Kadence Customizer; this block adds what Kadence has no setting for. */
/* Items grouped under the course above them: class fa-menu-child in the menu editor. A small corner mark that mirrors itself in RTL. */
.header-navigation ul ul li.fa-menu-child > a { padding-inline-start: 2em; font-size: 14px; color: var(--global-palette5); }
.mobile-navigation ul li.fa-menu-child > a { padding-inline-start: 1.6em; font-size: 15px; color: var(--global-palette5); }
:is(.header-navigation, .mobile-navigation) li.fa-menu-child > a::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-inline-end: .5em; border-inline-start: 2px solid currentColor; border-bottom: 2px solid currentColor; vertical-align: .2em; opacity: .85; }
/* Mobile header contact button: same look as the desktop header button */
.mobile-header-button-wrap .mobile-header-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em; border: 0; border-radius: 999px; background: var(--fa-accent); color: var(--fa-accent-ink); font-size: 15px; font-weight: 700; white-space: nowrap; }
.mobile-header-button-wrap .mobile-header-button:hover { background: var(--fa-accent-hover); color: var(--fa-accent-ink); }
/* Desktop header contact button: smaller than before (owner choice, 28 Nov 2026: sample 2) */
#masthead .header-button-wrap .header-button { font-size: 16px; padding: .6em 1.3em; }
/* Touch targets of at least 44px: menu button, close button and submenu arrows */
#mobile-header .menu-toggle-open, #mobile-drawer .drawer-header .drawer-toggle { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
#mobile-drawer .drawer-sub-toggle { min-width: 44px; min-height: 44px; }
/* Mobile menu: submenu items lighter than the main items */
#mobile-site-navigation ul ul li > a { font-weight: 400; }
/* Keyboard focus in the header and the mobile menu: navy ring (the orange ring is too light on white) */
:is(#masthead, #mobile-drawer) :is(a, button):focus-visible { outline-color: var(--global-palette1); }
/* Sticky header (desktop): in-page links stop below it */
@media (min-width: 1025px) { html { scroll-padding-top: 80px; } }

/* List icons: a list whose every item has a clear topic shows that topic's icon instead of the check (classes fa-li-ic + fa-ic-* added in functions.php, farsiamoozi_list_icons). Same icon set as the cards above; the icons below are the extra topics. */
.fa-ic-tap { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3l5.5 15 2.2-6.3L19 9.5zM12.7 11.7L20 19'/%3E%3C/svg%3E"); }
.fa-ic-read { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h5.5A3.5 3.5 0 0 1 12 8.5V20a2.5 2.5 0 0 0-2.5-2.5H3zM21 5h-5.5A3.5 3.5 0 0 0 12 8.5V20a2.5 2.5 0 0 1 2.5-2.5H21z'/%3E%3C/svg%3E"); }
.fa-ic-listen { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18v-5a8 8 0 0 1 16 0v5M4 15h3v6H5.5A1.5 1.5 0 0 1 4 19.5zM20 15h-3v6h1.5a1.5 1.5 0 0 0 1.5-1.5z'/%3E%3C/svg%3E"); }
.fa-ic-mic { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6a3 3 0 0 1 6 0v5a3 3 0 0 1-6 0zM5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21'/%3E%3C/svg%3E"); }
.fa-ic-words { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3h12v13H8zM16 16v5H4V8h4M11 7.5h6M11 11h4'/%3E%3C/svg%3E"); }
.fa-ic-home { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7.5 9 7.5M5.5 9v11.5h4.5v-6h4v6h4.5V9'/%3E%3C/svg%3E"); }
.fa-ic-calendar { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5h16V21H4zM4 10h16M8.5 3v4M15.5 3v4'/%3E%3C/svg%3E"); }
.fa-ic-file { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6v18h12V7zM14 3v4h4M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
.fa-ic-bag { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3L4 7v14h16V7l-2-4zM4 7h16M16 11a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.fa-ic-film { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11h16v9H4zM4 11L3.2 7.6l14.6-3.4.8 3.4zM8.2 6.6l2.4 3.1M13 5.5l2.4 3.1'/%3E%3C/svg%3E"); }
.fa-ic-plane { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5c.8 0 1.4.7 1.4 1.5v5.2l7.1 4.3v2.3l-7.1-2.3v4.7l2 1.5V21l-3.4-1-3.4 1v-1.3l2-1.5v-4.7l-7.1 2.3v-2.3l7.1-4.3V4c0-.8.6-1.5 1.4-1.5z'/%3E%3C/svg%3E"); }
.fa-ic-ball { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 1 0 0-18zM12 8.5l3.3 2.4-1.3 3.9h-4l-1.3-3.9zM12 8.5V5M15.3 10.9l3.2-1M14 14.8l2 2.7M10 14.8l-2 2.7M8.7 10.9l-3.2-1'/%3E%3C/svg%3E"); }
.fa-ic-clock { --fa-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 1 0 0-18zM12 7v5l3.5 2'/%3E%3C/svg%3E"); }
.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ul.wp-block-list > li.fa-li-ic::before { width: 28px; height: 28px; top: 14px; inset-inline-start: 16px; background-image: none; }
.fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ul.wp-block-list > li.fa-li-ic::after { content: ""; position: absolute; top: 20px; inset-inline-start: 22px; width: 16px; height: 16px; background: #fff; -webkit-mask: var(--fa-ic) center / contain no-repeat; mask: var(--fa-ic) center / contain no-repeat; forced-color-adjust: none; }
@media (max-width: 480px) { .fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ul.wp-block-list > li.fa-li-ic { padding-inline-start: 54px; } }
@media (forced-colors: active) { .fa-v2 :is(.fa-section, .fa-section > .wp-block-group__inner-container) > ul.wp-block-list > li.fa-li-ic::before { forced-color-adjust: none; } }

/* Alphabet hub audit fixes (29 Nov 2026): H1 lines of even length, darker breadcrumb separator (contrast), bigger tap areas without moving the layout. */
.fa-hero h1 { text-wrap: balance; }
.rank-math-breadcrumb .separator { color: var(--global-palette5); }
.rank-math-breadcrumb a { display: inline-block; padding-block: 10px; margin-block: -10px; }
#colophon .footer-social-wrap .social-button { min-width: 44px; min-height: 44px; }
#colophon .footer-navigation .menu > li > a { display: inline-flex; align-items: center; min-height: 44px; }

/* 17. Courses and forums (functions.php, 30 Nov 2026): forum box at the end of course pages and lessons, course line on forum pages, related lessons on topics, lesson choice on the new-topic form */
.fa-course-forum, .fa-lesson-forum { margin: 2.5em 0; padding: 22px 24px; background: var(--global-palette8); border: 1px solid var(--fa-line); border-radius: var(--fa-radius-lg); }
.fa-course-forum { box-sizing: border-box; width: min(var(--fa-prose), calc(100% - 40px)); margin: 0 auto clamp(36px, 6vw, 64px); }
.fa-course-forum h2, .fa-lesson-forum h2 { margin: 0 0 .4em; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); }
.fa-course-forum p, .fa-lesson-forum p { margin: 0 0 1em; }
.fa-course-forum .fa-cf-btns, .fa-lesson-forum .fa-cf-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.fa-cf-btn { display: inline-flex; align-items: center; min-height: 44px; padding: .5em 1.4em; border: 2px solid var(--global-palette1); border-radius: 999px; background: var(--global-palette1); color: #fff; font-weight: 700; text-decoration: none; }
.fa-cf-btn:hover, .fa-cf-btn:focus-visible { background: var(--global-palette2); border-color: var(--global-palette2); color: #fff; }
.fa-cf-btn.fa-cf-btn-alt { background: #fff; color: var(--global-palette1); }
.fa-cf-btn.fa-cf-btn-alt:hover, .fa-cf-btn.fa-cf-btn-alt:focus-visible { background: var(--global-palette7); color: var(--global-palette1); border-color: var(--global-palette1); }
body .fa-lesson-forum ul.fa-lf-list { list-style: none; margin: 0 0 1.2em; padding: 0; }
.fa-lf-list li { margin: 0 0 10px; padding: 12px 16px; background: #fff; border: 1px solid var(--fa-line); border-radius: var(--fa-radius); }
.fa-lf-list a { color: var(--global-palette3); font-weight: 700; text-decoration: none; }
.fa-lf-list a:hover { color: var(--global-palette1); text-decoration: underline; }
.fa-lf-meta { display: block; color: var(--global-palette5); font-size: .85rem; }
#bbpress-forums .fa-forum-course { margin: 0 0 1em; padding: 10px 16px; background: var(--global-palette7); border-radius: var(--fa-radius); font-size: 1rem; }
#bbpress-forums .fa-related-lessons { margin: 0 0 1.2em; padding: 14px 18px; background: var(--global-palette7); border: 1px solid var(--fa-line); border-radius: var(--fa-radius); font-size: 1rem; }
#bbpress-forums .fa-related-lessons .fa-rl-h { margin: 0 0 .3em; color: var(--global-palette3); font-weight: 700; }
#bbpress-forums .fa-related-lessons ul { margin: 0; padding-inline-start: 1.2em; }
#bbpress-forums .fa-related-lessons li { margin: .2em 0; }
#bbpress-forums .fa-forum-login { margin: 1em 0; padding: 12px 16px; background: var(--global-palette7); border-radius: var(--fa-radius); font-size: 1rem; }
.fa-sep { display: inline-block; color: var(--global-palette5); padding-inline: .2em; }
#bbpress-forums fieldset.fa-topic-lessons { margin: 0 0 1em; padding: 10px 14px; border: 1px solid var(--fa-line); border-radius: var(--fa-radius); }
#bbpress-forums fieldset.fa-topic-lessons legend { padding: 0 .3em; font-weight: 700; }
#bbpress-forums fieldset.fa-topic-lessons legend span { color: var(--global-palette5); font-weight: 400; }
.fa-tl-list { display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; }
.fa-tl-list label { display: flex; align-items: center; gap: .6em; min-height: 40px; padding: 4px 6px; border-radius: 8px; cursor: pointer; }
.fa-tl-list label:hover { background: var(--global-palette7); }
.fa-tl-list input { flex: none; width: 18px; height: 18px; margin: 0; }

/* 18. Forum interface language (functions.php, 2 Dec 2026): Posts, titles and the form fields take the direction of their own text, so an English post stays left-to-right in the Persian forum and a Persian post right-to-left in the English one. */
#bbpress-forums :is(.bbp-topic-content, .bbp-reply-content, .bbp-forum-content) :is(p, li, blockquote, h2, h3, h4, h5, h6, pre),
#bbpress-forums :is(.bbp-topic-content, .bbp-reply-content, .bbp-forum-content, a.bbp-topic-permalink, a.bbp-forum-title),
#bbpress-forums :is(textarea, input[type="text"]) { unicode-bidi: plaintext; text-align: start; }
/* Kadence's bbPress styles are left-to-right only: in the Persian forum the author column (avatar) and the gap beside the posts go to the right, and the "back to forum" arrow points right. Phones (480px and less) keep bbPress's own stacked layout. */
@media (min-width: 481px) {
	.rtl #bbpress-forums :is(div.bbp-reply-author, div.bbp-topic-author) { float: right; text-align: right; }
	.rtl #bbpress-forums :is(div.bbp-forum-content, div.bbp-reply-content, div.bbp-topic-content) { margin-left: 0; margin-right: 80px; }
}
@media (max-width: 480px) {
	.rtl #bbpress-forums .bbp-body :is(div.bbp-forum-content, div.bbp-reply-content, div.bbp-topic-content) { margin-left: 10px; margin-right: 10px; }
	.rtl #bbpress-forums .bbp-body :is(div.bbp-reply-author, div.bbp-topic-author) { padding-left: 0; }
	.rtl #bbpress-forums .bbp-body :is(div.bbp-reply-author, div.bbp-topic-author) img.avatar { left: auto; right: 0; }
}
.rtl #bbpress-forums li.bbp-header div.bbp-reply-content { margin-left: 0; margin-right: 140px; }
.rtl .bbpress-back-to-forum .kadence-svg-iconset svg { transform: scaleX(-1); }

/* 19. Privacy (functions.php, 2 Dec 2026): videos from YouTube or Aparat wait for «Load video»; (i) button with the YouTube note next to lesson videos; «Forget my choices» button on the privacy pages. */
.fa-consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 220px; padding: 24px; text-align: center; background: var(--global-palette8); border: 1px solid var(--fa-line); border-radius: var(--fa-radius-lg); color: var(--global-palette3); }
.fa-consent p { margin: 0; max-width: 46ch; font-size: .9375rem; line-height: 1.7; }
.fa-yt .fa-consent { position: absolute; inset: 0; min-height: 0; border: 0; border-radius: 0; background: #0d1236; color: #fff; }
.fa-yt .fa-consent a { color: #fff; }
.wp-has-aspect-ratio .wp-block-embed__wrapper > .fa-consent { position: absolute; inset: 0; min-height: 0; padding: 16px; }
.fa-consent-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--fa-accent); color: var(--fa-accent-ink); font: inherit; font-weight: 700; cursor: pointer; }
.fa-consent-btn:focus-visible { outline: 3px solid var(--global-palette1); outline-offset: 2px; }
.fa-privacy-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 1.5em; }
.fa-yt-info { position: relative; display: inline-flex; align-items: center; vertical-align: middle; }
.fa-yt-info-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--global-palette4); cursor: pointer; }
.fa-yt-info-btn:hover, .fa-yt-info.is-open .fa-yt-info-btn { color: var(--global-palette1); }
.fa-yt-info-btn:focus-visible { outline: 3px solid var(--global-palette1); outline-offset: 1px; }
.fa-yt-tip { display: none; position: absolute; top: calc(100% + 6px); inset-inline-start: -6px; z-index: 30; width: max-content; max-width: min(300px, 80vw); padding: 10px 12px; border: 1px solid var(--fa-line); border-radius: 10px; background: #fff; color: var(--global-palette3); box-shadow: 0 6px 20px rgba(13, 18, 54, .14); font-size: .8125rem; font-weight: 400; line-height: 1.7; text-align: start; white-space: normal; }
.fa-yt-tip::before { content: ""; position: absolute; inset-inline: 0; top: -8px; height: 8px; }
.fa-yt-tip a { color: var(--global-palette1); text-decoration: underline; }
.fa-yt-info.is-open .fa-yt-tip { display: block; }
@media (hover: hover) { .fa-yt-info:hover .fa-yt-tip { display: block; } }
.fa-yt-info-row { display: flex; margin: 0 0 8px; }
.fa-help .fa-yt-info { margin-inline-start: 4px; }
@media (max-width: 600px) { .fa-video-extras, .fa-yt-info-row, .fa-help { position: relative; } .fa-yt-info { position: static; } .fa-yt-tip { inset-inline: 0; width: auto; max-width: none; } }

/* 20. Forum lists as cards (functions.php, 2 Dec 2026): /Community/ and parent forums. Each forum is a card (photo, name, description, groups as buttons, numbers line); two cards per row from 768px, one on phones. The table header, footer and the count / last-post columns of bbPress are hidden; the numbers are in the card's last line. The whole card opens the forum (the title link covers it); group buttons and links in the last line stay separate. */
#bbpress-forums ul.bbp-forums { border: 0; border-radius: 0; overflow: visible; background: none; }
#bbpress-forums ul.bbp-forums > li.bbp-header,
#bbpress-forums ul.bbp-forums > li.bbp-footer { display: none; }
#bbpress-forums ul.bbp-forums > li.bbp-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 1.5em; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum { position: relative; display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--fa-line); border-radius: var(--fa-radius-lg); background: #fff; box-shadow: var(--fa-shadow); overflow: hidden; transition: box-shadow .2s, transform .2s; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum:hover { box-shadow: var(--fa-shadow-hover); transform: translateY(-2px); }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum:focus-within { outline: 3px solid var(--global-palette1); outline-offset: 3px; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum > li:not(.bbp-forum-info) { display: none; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum > li.bbp-forum-info { display: flex; flex-direction: column; flex: 1 1 auto; float: none; width: auto; margin: 0; padding: 20px 22px; text-align: start; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum a.fa-forum-banner { width: auto; max-width: none; margin: -20px -22px 18px; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum a.fa-forum-banner img { width: 100%; height: auto; aspect-ratio: 720 / 238; object-fit: cover; border-radius: 0; }
/* Forum names follow the page direction here (the Persian forum shows Persian names, e.g. «GCSE فارسی: …»), not the direction of their first letter as in section 18. */
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum a.bbp-forum-title { color: var(--global-palette3); font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); font-weight: 700; line-height: 1.5; text-decoration: none; unicode-bidi: isolate; overflow-wrap: anywhere; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum a.bbp-forum-title::after { content: ""; position: absolute; inset: 0; z-index: 0; }
/* Everything else that can be clicked stays above the card link: links or a password form in the description, the subscribe toggle (profile > Subscriptions), group buttons, links in the last line. */
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum :is(div.bbp-forum-content a, div.bbp-forum-content form, .bbp-row-actions) { position: relative; z-index: 1; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum:hover a.bbp-forum-title { color: var(--global-palette1); }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum a.bbp-forum-title:focus-visible { outline: 0; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum div.bbp-forum-content { position: static; margin: .4em 0 0; color: var(--global-palette5); font-size: 1rem; line-height: 1.8; } /* static: bbPress positions it, which would put it above the card link */
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum div.bbp-forum-content:empty { display: none; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum div.bbp-forum-content > :last-child { margin-bottom: 0; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum ul.bbp-forums-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; border: 0; list-style: none; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum ul.bbp-forums-list li { display: block; margin: 0; font-size: inherit; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum ul.bbp-forums-list li::after { content: none; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum a.bbp-forum-link { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--global-palette7); color: var(--global-palette3); font-size: .9375rem; font-weight: 600; line-height: 1.5; text-decoration: none; unicode-bidi: isolate; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum a.bbp-forum-link:hover { background: var(--global-palette1); color: #fff; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum a.bbp-forum-link:focus-visible { outline: 3px solid var(--global-palette1); outline-offset: 2px; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum p.fa-forum-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: auto 0 0; padding-top: 18px; color: var(--global-palette5); font-size: .9375rem; line-height: 1.6; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum p.fa-forum-stats::before { content: ""; flex: 0 0 100%; margin-bottom: 12px; border-top: 1px solid var(--fa-line); }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum p.fa-forum-stats span { unicode-bidi: isolate; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum p.fa-forum-stats a { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; color: var(--global-palette1); text-decoration: underline; text-underline-offset: 3px; }
#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum p.fa-forum-stats a.fa-forum-first { font-weight: 700; }
@media (max-width: 767px) {
	#bbpress-forums ul.bbp-forums > li.bbp-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum > li.bbp-forum-info { padding: 16px 18px; }
	#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum a.fa-forum-banner { margin: -16px -18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
	#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum { transition: none; }
	#bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum:hover { transform: none; }
}

/* Short language button in the mobile header (3 Dec 2026, owner): text only («EN» or «فا»), no globe icon, next to the contact button. Shortcode [fa_lang_switch] in the Kadence "HTML" item of the mobile header (Customizer > Header > Mobile); desktop keeps the button in the menu. */
#mobile-header .mobile-html-inner { display: flex; align-items: center; }
#mobile-header .mobile-html-inner p { margin: 0; }
#mobile-header .fa-lang-short { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .75em; border-radius: 999px; background: var(--global-palette7); color: var(--global-palette1); font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
/* Persian letters look smaller than Latin capitals at the same size. */
#mobile-header .fa-lang-short:lang(fa) { font-size: 17px; }
#mobile-header .fa-lang-short:hover { background: var(--fa-line); color: var(--global-palette1); }
#mobile-header .fa-lang-short:focus-visible { outline: 2px solid var(--global-palette1); outline-offset: 2px; }
/* While the short button is in the mobile header, the language button at the end of the mobile menu is not shown (browsers without :has() show both). */
body:has(#mobile-header .fa-lang-short) #mobile-drawer .menu-item.fa-lang-switch { display: none; }
/* Very narrow phones (360px): a little less padding on the contact button, so the language button keeps a gap from the logo. */
@media (max-width: 380px) { #mobile-header .mobile-header-button-wrap .mobile-header-button { padding: 0 .8em; } }
/* Globe drawn faintly behind «EN» / «فا» (owner, 3 Dec 2026: same size, but with the globe so it reads as a language button). Same globe as the desktop button; only where CSS masks work (else a plain square would show). */
#mobile-header .fa-lang-short { position: relative; isolation: isolate; }
#mobile-header .fa-lang-short:lang(fa) { font-size: 18px; }
@supports ((-webkit-mask: url("x")) or (mask: url("x"))) {
	#mobile-header .fa-lang-short::before { content: ""; position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; z-index: -1; background: currentColor; opacity: .2; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c2.6 2.8 3.9 6 3.9 9.5s-1.3 6.7-3.9 9.5M12 2.5C9.4 5.3 8.1 8.5 8.1 12s1.3 6.7 3.9 9.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c2.6 2.8 3.9 6 3.9 9.5s-1.3 6.7-3.9 9.5M12 2.5C9.4 5.3 8.1 8.5 8.1 12s1.3 6.7 3.9 9.5'/%3E%3C/svg%3E") center / contain no-repeat; }
}

/* Contact form v2 (3 Dec 2026): tick lists, hints, errors */
.fa-form { gap: 20px; }
.fa-form > p, .fa-form > fieldset { margin: 0; }
.fa-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fa-form legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.fa-form .fa-hint { display: block; font-weight: 400; font-size: .9em; color: #5a6275; margin-top: 2px; }
.fa-form ul.fa-choice-list, .single-content .fa-form ul.fa-choice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fa-form .fa-choice-list li { margin: 0; }
.fa-form .fa-choice-list label { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 400; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cfd5ea; border-radius: 10px; background: #fff; cursor: pointer; line-height: 1.5; overflow-wrap: anywhere; }
.fa-form .fa-choice-list input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--global-palette1); }
.fa-form .fa-choice-list label:has(input:checked) { border-color: var(--global-palette1); background: #f1f3fb; }
.fa-form .fa-choice-list input:focus-visible { outline: 2px solid var(--global-palette1); outline-offset: 2px; }
@media (min-width: 640px) { .fa-form .fa-choice-list.fa-cols { grid-template-columns: 1fr 1fr; } }
.fa-form .fa-field-err { display: block; color: #8a1c1c; font-size: .92em; margin-top: 6px; }
.fa-form :is(input, textarea)[aria-invalid="true"] { border-color: #c62828; }
.fa-form .fa-choice.fa-invalid .fa-choice-list label { border-color: #e3a3a3; }
.fa-form .fa-form-note { font-size: .92em; color: #5a6275; }
.fa-form .fa-req { color: #c62828; font-weight: 700; }
.fa-form-ok, .fa-form-err { margin-bottom: 20px; }
.fa-form-err p { margin: 0; font-weight: 600; }
.fa-form-err ul, .single-content div.fa-form-err ul { margin: 6px 0 0; padding: 0; padding-inline-start: 1.2em; }
.fa-form-err a { color: inherit; text-decoration: underline; }
.fa-form-err:focus { outline: 2px solid #8a1c1c; outline-offset: 2px; }
#fa-form, .fa-form-err, .fa-form :is(input, textarea, fieldset) { scroll-margin-top: 110px; }

/* Hero with three buttons: one row on wide desktop (phase 25, owner request 2026-12-03) */
@media (min-width: 1200px) {
	.fa-v2 .fa-hero .wp-block-buttons:has(> .wp-block-button:nth-child(3)) { gap: 10px; }
	.fa-v2 .fa-hero .wp-block-buttons:has(> .wp-block-button:nth-child(3)) .wp-block-button__link { font-size: 15px; padding-inline: 1em; }
}
