/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.13.15
Description: Child theme for the Psychology Home of Tehran site.
Text Domain: hello-elementor-child
*/

/* Vazirmatn, self-hosted (one variable file for all weights). Licence: fonts/OFL.txt */
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Fallback for pages Elementor doesn't style; Elementor's Site Settings override it. */
body { font-family: "Vazirmatn", Tahoma, sans-serif; }

/* Focus ring for keyboard users: 3px slate, 3px gap (CLAUDE.md §3, §8). ':root' outranks Hello's reset 'a:focus-visible'. */
:root :focus-visible, :root [tabindex]:not([tabindex="-1"]):focus-visible { outline: 3px solid #35566B; outline-offset: 3px; } /* the second selector outranks the reset's [tabindex] rule (phone menu links and toggle were black, found 14 Oct) */
/* A linked V4 paragraph puts its <a> inside the paragraph: the link takes the paragraph's min-height (44px touch targets, §3). */
.e-paragraph-base > .e-paragraph-link-base { min-height: inherit; display: flex; align-items: center; column-gap: .3em; } /* the gap stands in for the space a flex box drops (footer «۱۱۵ اورژانس پزشکی», 20 Oct) */

/* Elementor gives every V4 box width:100%; inside the header and footer, nested boxes fit their content
   unless they have their own width (the V4 style panel can't set width:auto). */
.elementor-location-header .e-con .e-con,
.elementor-location-footer .e-con .e-con { --width: auto; }

/* Header stays at the top while scrolling (below the admin bar when logged in). */
.elementor-location-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 40; }
/* Under 600 px WordPress lets the admin bar scroll away (it is no longer fixed), so the header sticks to the very top; it left a
   46 px see-through strip for logged-in editors on phones (Fatemeh, 14 Oct). */
@media (max-width: 600px) { .elementor-location-header { top: 0; } }
/* The sticky header had no background, so the page showed through it while scrolling (Fatemeh, 11 Oct): page colour,
   a little see-through, with the content behind blurred. Without backdrop-filter support it is simply 92% page colour. */
.elementor-location-header { background: rgba(250, 246, 242, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* Header menu (Elementor Nav Menu): design-system type and colours. */
.elementor-location-header .elementor-nav-menu--main .elementor-item { white-space: nowrap; } /* a menu item never breaks over two lines */
.elementor-location-header .elementor-nav-menu--main .elementor-item { font-family: Vazirmatn; font-size: 17px; font-weight: 500; color: #2A1F1B; padding: 0 13px; text-decoration: underline 2px transparent; text-underline-offset: 6px; transition: color .15s, text-decoration-color .15s; }
.elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
.elementor-location-header .elementor-nav-menu--main .elementor-item-active { color: #8E3A1F; text-decoration-color: currentColor; }
/* Header links (top bar phones and text links, main menu) are 15–20px tall: 15px of invisible padding, cancelled by a negative
   margin, makes the tap area 44px+ without moving anything (Fatemeh, 10 Oct: keep the bar's look). */
.elementor-location-header a:is([href^="tel:"], .e-paragraph-link-base),
.elementor-location-header .elementor-nav-menu--main .elementor-item { padding-block: 15px; margin-block: -15px; }
/* «درخواست نوبت مشاوره» (the centre's label, 10 Oct) leaves no room for the name beside the logo under ~440px: the name is
   hidden visually there but still read by screen readers. Only in the header that has the button (not the request page's). */
@media (max-width: 439px), (min-width: 1025px) and (max-width: 1279px) { /* 1025–1279 (e.g. iPad Pro 13 at 1032): the six menu items wrapped to two lines (Fatemeh, 12 Oct) */
  .elementor-location-header:has(.e-button-base) a[href="/"] > .e-paragraph-base { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* The menu fills the space between the logo and the button; on tablet and mobile it shrinks to its round button, placed last. */
.elementor-location-header .elementor-widget-nav-menu { flex-grow: 1; }
@media (max-width: 1024px) {
  .elementor-location-header .elementor-widget-nav-menu { flex-grow: 0; order: 2; }
}

/* Tablet and phone menu (redesigned 14 Oct; Fatemeh: the edge-to-edge sheet looked unprofessional and covered the bar). A round
   menu button; the list is a white card under the bar with the site's 28 px corners and a soft brown shadow. Phones: the bar's
   width; tablets: 400 px under the button. It fades in and drops 8 px into place: Elementor's vertical stretch squashed the shape. */
.elementor-location-header .elementor-menu-toggle { margin: 0; width: 44px; height: 44px; border: 1.5px solid #86766D; border-radius: 999px; background: #FFFFFF; color: #2A1F1B; }
.elementor-location-header .elementor-nav-menu--dropdown { position: fixed; top: auto; left: 16px !important; right: auto !important; width: min(400px, calc(100vw - 32px)) !important; /* !important: Elementor writes width and right as an inline style */ margin-top: 60px; padding: 8px; border: 1px solid #EBE1D8; border-radius: 28px; background: #FFFFFF; box-shadow: 0 16px 40px rgba(42, 31, 27, .16); overflow-y: auto; overscroll-behavior: contain; }
.elementor-location-header .elementor-nav-menu--toggle .elementor-menu-toggle + .elementor-nav-menu__container.elementor-nav-menu--dropdown { max-height: calc(100dvh - 124px); transform: none; animation: none; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.elementor-location-header .elementor-nav-menu--toggle .elementor-menu-toggle:not(.elementor-active) + .elementor-nav-menu__container.elementor-nav-menu--dropdown { opacity: 0; visibility: hidden; transform: translateY(-8px); }
/* Rows: 17 px, a sand rounded highlight on hover, brick for the current page; no lines between rows. */
.elementor-location-header .elementor-nav-menu--dropdown .elementor-nav-menu { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.elementor-location-header .elementor-nav-menu--dropdown .elementor-nav-menu > li { flex: 1 0 100%; }
.elementor-location-header .elementor-nav-menu--dropdown .elementor-item { min-height: 48px; padding: 0 16px; border-radius: 16px; display: flex; align-items: center; font-family: Vazirmatn; font-size: 17px; font-weight: 600; color: #2A1F1B; }
.elementor-location-header .elementor-nav-menu--dropdown .elementor-item:hover { background: #F1E8E0; color: #8E3A1F; }
.elementor-location-header .elementor-nav-menu--dropdown .elementor-item.elementor-item-active { color: #8E3A1F; }
.elementor-location-header .elementor-nav-menu--dropdown .elementor-item:focus-visible { outline-offset: -3px; } /* the card scrolls, so a ring outside a row would be clipped */
/* The top bar's contents (Fatemeh, 14 Oct): menu items with class menu-drawer (Appearance → Menus), hidden in the computer menu.
   The two numbers share one sand box (call rows: hand-drawn phone, brick) with the days under them; then دربارهٔ ما · تماس با ما ·
   سؤالات متداول as one row of small sand pills. */
.elementor-location-header .elementor-nav-menu--main .menu-drawer { display: none; }
.elementor-location-header .elementor-nav-menu--dropdown .menu-call { background: #F1E8E0; }
.elementor-location-header .elementor-nav-menu--dropdown .menu-drawer-first { margin-top: 8px; padding-top: 6px; border-radius: 20px 20px 0 0; }
.elementor-location-header .elementor-nav-menu--dropdown .menu-call:not(.menu-drawer-first) { margin-top: -2px; padding-bottom: 12px; border-radius: 0 0 20px 20px; }
.elementor-location-header .elementor-nav-menu--dropdown .menu-call > .elementor-item { margin-block: 0; gap: 10px; color: #8E3A1F; font-weight: 700; }
.elementor-location-header .elementor-nav-menu--dropdown .menu-call > .elementor-item:hover { background: rgba(255, 255, 255, .6); }
/* Elementor's hover pointer owns ::before (absolute, and opacity 0 through a rule with four :not() checks), hence the !important. */
.elementor-location-header .elementor-nav-menu--dropdown .menu-call > .elementor-item::before { content: "" / ""; position: static; opacity: 1 !important; transform: none; width: 24px; height: 24px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M10 4.9 C 8.2 5.3, 5.8 7, 5.5 9.7 C 5.1 15.6, 13.3 25.9, 21.9 26.9 C 24.5 27.2, 26.5 25.1, 27.3 23.3 L 22.7 18.9 L 19.5 21.1 C 16.1 19.5, 12.8 16.3, 11.2 12.9 L 13.5 9.7 Z' fill='%23B5A582' fill-opacity='.35' stroke='%232A1F1B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.elementor-location-header .menu-note { display: block; padding: 0 50px 0 16px; color: #6A5A52; font-size: 15px; line-height: 1.6; }
.elementor-location-header .elementor-nav-menu--dropdown .elementor-nav-menu > li.menu-sub { flex: 1 1 0; margin-top: 8px; }
.elementor-location-header .elementor-nav-menu--dropdown .menu-sub > .elementor-item { min-height: 44px; padding: 0 10px; justify-content: center; border-radius: 999px; background: #F1E8E0; font-size: 15px; font-weight: 500; white-space: nowrap; }

/* Footer column titles stay 17px on every screen (the site-wide H2 is 28-36px). */
.elementor-location-footer .e-con .e-heading-base { font-size: 17px; }

/* Footer menus. */
.elementor-location-footer .elementor-nav-menu--main .elementor-item { font-family: Vazirmatn; font-size: 15px; font-weight: 400; color: #2A1F1B; min-height: 44px; padding: 0; display: flex; align-items: center; }
.elementor-location-footer .elementor-nav-menu--main .elementor-item:hover { color: #8E3A1F; }

/* ---- Homepage shapes the V4 style panel can't express (hooked by global classes) ---- */

/* Hero title: the design's hand-drawn brick pen stroke under the <u> words. */
.hero-title { text-wrap: balance; }
.hero-title u { text-decoration: none; white-space: nowrap; padding-bottom: .15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 22' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 36 8, 72 16, 113 12 S 188 6, 229 11 C 257 14, 280 8, 297 12' fill='none' stroke='%238E3A1F' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M22 18 C 76 14, 146 19, 208 15 C 242 13, 266 17, 284 15' fill='none' stroke='%238E3A1F' stroke-width='1.6' stroke-linecap='round' opacity='.5'/%3E%3C/svg%3E") bottom / 100% .42em no-repeat; }

/* Hero photo: the sand cut-out in the top-left corner that holds «کارگاه‌های پیش رو», with curved inner corners. */
.hero-notch { --width: auto; top: 0; left: 0; z-index: 2; background: #F1E8E0; border-bottom-right-radius: 28px; }
/* The 12 px sand gap belongs on the photo side (right and below), as on the thumbnail notch; the converter had put it on the
   frame side, so «کارگاه‌های پیش رو» touched the photo (Fatemeh, 14 Oct; lesson 29). */
.elementor .hero-notch { padding: 0 12px 12px 0; }
.hero-notch::before, .hero-notch::after { content: ""; position: absolute; width: 28px; height: 28px;
  background: radial-gradient(circle at 100% 100%, transparent 27.5px, #F1E8E0 28px); }
.hero-notch::before { top: 0; right: -28px; }
.hero-notch::after { bottom: -28px; left: 0; }

/* Hero photo: sand cut-out in the bottom-right corner holding the photo thumbnails (they overlap into the text side on desktop). */
.hero-notch-br { --width: auto; position: absolute; right: 0; bottom: 0; z-index: 2; background: #F1E8E0; border-top-left-radius: 28px; padding: 12px 0 0 12px; }
.hero-notch-br::before, .hero-notch-br::after { content: ""; position: absolute; width: 28px; height: 28px;
  background: radial-gradient(circle at 0 0, transparent 27.5px, #F1E8E0 28px); }
.hero-notch-br::before { bottom: 0; left: -28px; }
.hero-notch-br::after { top: -28px; right: 0; }
.hero-notch-br > .e-con { --width: auto; display: flex; gap: 8px; padding: 0; }
@media (min-width: 1025px) { .hero-notch-br > .e-con { margin-right: -140px; } } /* up to 1024 px the hero is one column (16 Oct) */
.hero-notch-br .hero-thumb-btn { width: 104px; height: 104px; flex: none; padding: 0; border: 3px solid #FFFFFF; border-radius: 20px; overflow: hidden; background: #EBE1D8; cursor: pointer; }
.hero-notch-br .hero-thumb-btn:hover { background: #EBE1D8; }
.hero-notch-br .hero-thumb-btn[aria-pressed="true"] { border-color: #8E3A1F; }
.hero-thumb-btn .hero-thumb { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; }
@media (max-width: 767px) { .hero-notch-br .hero-thumb-btn { width: 72px; height: 72px; } }
/* Hero slideshow (14 Oct): a soft fade between photos, and the pause / play button after the thumbnails (hero-switcher.js). */
.hero-photo { transition: opacity .4s ease; }
.hero-photo.is-fading { opacity: 0; }
.elementor .hero-notch-br .hero-pause { width: 44px; height: 44px; flex: none; align-self: center; padding: 0; border: 1.5px solid #EBE1D8; border-radius: 50%; background: #FFFFFF; color: #2A1F1B; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.elementor .hero-notch-br .hero-pause:hover { background: #F1E8E0; color: #2A1F1B; }
.hero-pause svg { width: 22px; height: 22px; }

/* Organic blob shape (number badges, illustration backgrounds). */
.blob { border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; }

/* The whole card is clickable through its "more" link. */
/* Links inside card titles keep the title's colour (the V4 default link style is brick). */
.elementor .card-link a { color: inherit; }
.card-link a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 28px; }

/* Pillar card illustration: stands on the blob and rises above it. */
.pillar-ill { left: 50%; bottom: 6px; transform: translateX(-50%); height: calc(100% + 40px); width: auto; max-width: 100%; object-fit: contain; object-position: 50% 100%; }

/* Concern tiles: the decorative circled arrow (top-left), hidden from screen readers. */
.concern-tile::before { content: "←" / ""; position: absolute; top: 20px; left: 20px; width: 36px; height: 36px; box-sizing: border-box;
  border: 1.5px solid #8E3A1F; border-radius: 999px; color: #8E3A1F; display: flex; align-items: center; justify-content: center; font-size: 16px; }
/* The topic under the parent's sentence, as a sand chip (Fatemeh, 13 Oct: the topics read as labels; sand = not a pillar). */
.concern-tile > span:nth-child(2) { align-self: flex-start; padding: 4px 14px; border-radius: 999px; background: #F1E8E0; color: #2A1F1B; }

/* Workshop card (loop item «کارت کارگاه»): leaf-shaped photo corners and the pillar chip's pastel. */
.leaf-sm { border-radius: 12px 56px 12px 56px; }
.e-loop-item.pillar-child .pillar-chip { background-color: #F6E2D6; }
.e-loop-item.pillar-parenting .pillar-chip { background-color: #E4ECE6; }
.e-loop-item.pillar-training .pillar-chip { background-color: #EDE4F0; }

/* Loop Grid with the CSS class "wk-loop": on phones the cards become a sideways swipe row, as in the design. */
@media (max-width: 767px) {
  .wk-loop .elementor-loop-container { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 12px; }
  .wk-loop .e-loop-item { flex: 0 0 84%; scroll-snap-align: start; }
}

/* ---- Practitioner page (single template «صفحهٔ مشاور») ---- */

/* Breadcrumb links fill the 44 px row, so the touch target is 44 px tall (not just the text). */
.elementor .crumbs a { min-height: 44px; display: inline-flex; align-items: center; }

/* Chip lists: the plugin stores each list as plain <span> items; the container's class styles them. */
.elementor .chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.elementor .chip-list span { min-height: 32px; padding: 0 12px; border-radius: 999px; background: #F1E8E0; color: #2A1F1B; font-size: 15px; font-weight: 600; display: flex; align-items: center; white-space: nowrap; }
.elementor .chips-outline span { background: #FFFFFF; border: 1px solid #EBE1D8; color: #6A5A52; font-weight: 400; padding: 0 14px; }
.elementor .chips-lg { gap: 10px; }
.elementor .chips-lg span { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* Plain lists stored the same way: one line each (session types), or bullet points (degrees). */
.elementor .stack-list span { display: block; padding: 8px 0; font-weight: 600; }
.elementor .stack-list span + span { border-top: 1px solid #EBE1D8; }
.elementor .deg-list span { display: list-item; margin-right: 18px; }

/* Portrait: leaf-shaped corners, and the pastel circle behind it (colour from the practitioner's first pillar). */
.leaf-md { border-radius: 16px 72px 16px 72px; }
.prac-blob { width: 62%; aspect-ratio: 1; border-radius: 50%; background: #F1E8E0; left: -14px; bottom: -14px; }
.pillar-child .prac-blob { background: #F6E2D6; }
.pillar-parenting .prac-blob { background: #E4ECE6; }
.pillar-training .prac-blob { background: #EDE4F0; }

/* Practitioner card: «مشاهدهٔ صفحه ←» at the bottom, silent for screen readers (the name link already says where it goes).
   Position and size are set because Elementor styles a V4 box's pseudo-elements (lesson 14). */
/* «مشاوران» list (final-Practitioners, «آینده» frame: 6+ practitioners): 3 cards a row (Loop Grid a1b2c31: 3/2/1), each card
   stacked, the photo the card's full width in 4:5 with the pastel circle behind it. */
.elementor .elementor-element-a1b2c31 .elementor-element-6fa4943e { flex-direction: column; }
.elementor .elementor-element-a1b2c31 .elementor-element-d43fb1a { width: 100%; aspect-ratio: 4 / 5; }
.prac-none { margin: 0; font-size: 17px; line-height: 1.9; color: #6A5A52; } /* no practitioner for this filter */
.elementor .prac-none a { min-height: 44px; display: inline-flex; align-items: center; color: #8E3A1F; font-weight: 700; }
.elementor .prac-none a:hover { color: #5E2412; text-decoration: underline; text-underline-offset: 6px; }
/* Practitioner card on phones (Fatemeh, 12 Oct; changes the approved card): the photo fills the card's width, square so the card
   stays short (the photo already keeps the face in view: object-position 50% 20%); the pastel circle peeks out 12px, inside the
   card's 16px padding. d43fb1a = the photo frame in loop item «کارت مشاور» #311. */
@media (max-width: 767px) {
  .elementor .elementor-311 .elementor-element-d43fb1a { width: 100%; aspect-ratio: 1; }
}
/* «مشاوران دیگر» carousel on practitioner single page (Fatemeh, 19 Oct): exactly two cards fit across on desktop */
.prac-others-sec { width: 100%; max-width: 1200px; margin: 40px auto 0; padding: 0; }
.prac-others-sec .mag-row { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 20px; scrollbar-width: none; }
.prac-others-sec .mag-row::-webkit-scrollbar { display: none; }
.prac-others-sec .prac-other-col {
  flex: 0 0 calc((100% - 24px) / 2);
  min-width: 0;
  scroll-snap-align: start;
}
.prac-others-sec .prac-other-col .elementor-311 { width: 100%; height: 100%; }
@media (max-width: 1024px) {
  .prac-others-sec .prac-other-col { flex: 0 0 calc((100% - 16px) / 2); }
}
@media (max-width: 767px) {
  .prac-others-sec .prac-other-col { flex: 0 0 88%; }
}
.prac-more::after { content: "مشاهدهٔ صفحه ←" / ""; position: static; width: auto; height: auto; margin-top: auto; padding-top: 6px; font-size: 17px; font-weight: 700; color: #8E3A1F; }

/* Workshop page (#323). The pillar chip takes the pillar pastel (the page <body> carries pillar-*). */
body.pillar-child .elementor .ws-pillar { background-color: #F6E2D6; }
body.pillar-parenting .elementor .ws-pillar { background-color: #E4ECE6; }
body.pillar-training .elementor .ws-pillar { background-color: #EDE4F0; }
/* An empty field takes no space; a section whose list is empty is hidden with its heading. */
.elementor .hide-empty:empty { display: none; }
/* The workshop page's main button only exists for an open or full دوره (Elementor pads buttons with whitespace, so :empty can't catch it). */
body:not(.state-open):not(.state-full):not(.state-soon) .elementor .btn-primary.hide-empty { display: none; }
.elementor .ws-sec:has(> .learn-list:empty, > .plan-list:empty) { display: none; }
/* «چه یاد می‌گیرید؟»: hand-drawn tick (icon-06) in a sand circle; 2 columns on wide screens. */
.elementor .learn-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; max-width: 1000px; }
.elementor .learn-list > span { display: flex; align-items: flex-start; gap: 12px; font-size: 18px; line-height: 1.85; }
.learn-list > span::before { content: "" / ""; flex: none; width: 32px; height: 32px; margin-top: 1px; border-radius: 50%;
  background: #F1E8E0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 16.9 C 9.3 19.1, 11.3 21.3, 13.2 23.7 C 16.4 17.6, 20.5 12.3, 25.6 7.9' fill='none' stroke='%232A1F1B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
/* «برنامهٔ جلسه‌ها»: numbered circles (Persian digits, silent for screen readers: the label already says «جلسهٔ ۱»). */
.elementor .plan-list { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-block: 1.5px dashed #EBE1D8; counter-reset: s; }
.elementor .plan-list > span { counter-increment: s; position: relative; min-height: 56px; padding-inline-start: 54px; display: flex; flex-direction: column; justify-content: center; line-height: 1.6; }
.plan-list > span::before { content: counter(s, persian) / ""; position: absolute; inset-inline-start: 0; top: 8px; width: 40px; height: 40px; border-radius: 50%; background: #F1E8E0; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.elementor .plan-list > span > span:first-child { font-size: 15px; color: #6A5A52; }
.elementor .plan-list > span > b { font-size: 18px; font-weight: 700; }
.elementor .plan-list > span > b + span { font-size: 16px; color: #6A5A52; }
@media (max-width: 767px) {
  .elementor .learn-list { grid-template-columns: minmax(0, 1fr); }
  .elementor .learn-list > span { font-size: 17px; }
}

/* Workshop page part 2. A section is hidden when its shortcode prints nothing or its Loop Grid finds nothing. */
.elementor .ws-sec:has(.elementor-shortcode:empty, .e-loop-nothing-found-message) { display: none; }
/* «دوره‌های این کارگاه» rows ([pht_cohorts]). */
.ws-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 120px; }
.ws-row { background: #FFFFFF; border: 1.5px solid #EBE1D8; border-radius: 24px; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ws-row > div { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ws-row b { font-size: 18px; font-weight: 700; line-height: 1.6; }
.ws-row > div > span { font-size: 15px; line-height: 1.7; color: #6A5A52; }
.ws-chip { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid #2A1F1B; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }
.ws-open .ws-chip { border-color: #1F6B45; color: #1F6B45; }
.ws-done { background: transparent; border-style: dashed; }
.ws-done b { color: #6A5A52; }
.elementor .ws-reg { min-height: 48px; padding: 0 24px; border: none; border-radius: 999px; background: #8E3A1F; color: #FFFFFF; font: 700 16px/1 Vazirmatn, sans-serif; cursor: pointer; white-space: nowrap; }
.elementor .ws-reg:hover { background: #5E2412; color: #FFFFFF; }
.elementor .ws-wait { min-height: 44px; padding: 0; border: none; background: none; color: #8E3A1F; font: 700 17px/1 Vazirmatn, sans-serif; cursor: pointer; white-space: nowrap; }
.elementor .ws-wait:hover { background: none; color: #8E3A1F; text-decoration: underline; text-underline-offset: 6px; }
/* «سؤال‌های این کارگاه» ([pht_faq]): the browser's own <details> accordion, with + / − drawn by CSS. */
.elementor-shortcode:has(> .ws-faq) { border-top: 1.5px dashed #EBE1D8; }
.ws-faq { border-bottom: 1.5px dashed #EBE1D8; }
.ws-faq summary { min-height: 96px; padding: 16px 8px; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; border-radius: 24px; }
.ws-faq summary::-webkit-details-marker { display: none; }
.ws-faq summary::after { content: "+" / ""; flex: none; width: 32px; text-align: center; font-size: 28px; font-weight: 300; line-height: 1; }
.ws-faq[open] summary::after { content: "−" / ""; }
.elementor .ws-faq :is(h2, h3) { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.6; }
.ws-faq p { margin: 0; padding: 0 8px 28px 64px; font-size: 17px; line-height: 1.95; max-width: 760px; }
/* «عکس‌هایی از دوره‌های قبل» ([pht_photos]). */
.ws-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ws-photos li { aspect-ratio: 4 / 3; border-radius: 12px 56px 12px 56px; overflow: hidden; background: #F1E8E0; }
.ws-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) {
  .ws-row { padding: 16px 18px; }
  .ws-faq summary { min-height: 80px; }
  .elementor .ws-faq :is(h2, h3) { font-size: 18px; }
  .ws-faq p { padding: 0 8px 24px; }
  .ws-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* State chip colour follows the featured دوره (state-* on the card, or on <body> of a workshop page). Green = open. */
.state-full .elementor .state-chip, .state-running .elementor .state-chip, .state-closed .elementor .state-chip, .state-soon .elementor .state-chip,
.elementor .e-loop-item.state-soon .state-chip, .elementor .e-loop-item.state-full .state-chip, .elementor .e-loop-item.state-running .state-chip, .elementor .e-loop-item.state-closed .state-chip { border-color: #2A1F1B; color: #2A1F1B; }
.state-done .elementor .state-chip, .elementor .e-loop-item.state-done .state-chip { border-color: #6A5A52; color: #6A5A52; }
.elementor .e-loop-item.state-open .state-chip { border-color: #1F6B45; color: #1F6B45; }
/* Workshops list (#340): tabs and filter pills ([pht_ws_filters]), all plain links. */
.elementor-shortcode:has(> .ws-tabs) { display: flex; flex-direction: column; gap: 24px; }
.ws-tabs { display: flex; gap: 28px; border-bottom: 1.5px solid #EBE1D8; }
.elementor .ws-tab { min-height: 52px; padding: 0 4px; margin-bottom: -1.5px; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; color: #6A5A52; font-size: 18px; font-weight: 600; }
.elementor .ws-tab:hover { color: #2A1F1B; }
.elementor .ws-tab[aria-current] { border-bottom-color: #8E3A1F; color: #2A1F1B; font-weight: 800; }
.ws-filters { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.ws-filters > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ws-legend { font-size: 15px; font-weight: 700; color: #6A5A52; }
.ws-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.elementor .ws-pill { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #86766D; background: #FFFFFF; color: #2A1F1B; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.elementor .ws-pill:hover { border-color: #8E3A1F; color: #2A1F1B; }
.elementor .ws-pill[aria-current] { border-color: #8E3A1F; background: #8E3A1F; color: #FFFFFF; }
.ws-pill[aria-current]::before { content: "✓" / ""; font-weight: 800; }
/* A Loop Grid that found nothing takes no space (its empty message box is 60 px tall otherwise). */
.elementor .elementor-widget-loop-grid:has(.e-loop-nothing-found-message) { display: none; }
/* Messages when the list is empty ([pht_ws_empty]). */
.ws-nomatch { margin: 0; font-size: 17px; line-height: 1.8; }
.elementor .ws-nomatch a { min-height: 44px; display: inline-flex; align-items: center; color: #8E3A1F; font-weight: 700; }
.ws-empty { margin-top: 24px; background: #EDE4F0; border-radius: 32px 220px 32px 220px; padding: 64px 72px; display: flex; align-items: center; gap: 32px 48px; }
.ws-empty img { width: 240px; height: auto; flex: none; }
.elementor .ws-empty h2 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.6; }
@media (max-width: 767px) {
  .ws-tabs { gap: 20px; }
  .ws-empty { flex-direction: column; border-radius: 24px 120px 24px 120px; padding: 40px 22px 32px; }
  .ws-empty img { width: 180px; }
  .elementor .ws-empty h2 { font-size: 20px; }
}

/* Our forms (Gravity Forms, class .pht-form). Colours, radius and label sizes come from the plugin's gform_default_styles;
   the rest of final-Forms is here. Error icon = hand-drawn icon-10 «خطا». */
.gform_wrapper form.pht-form .gform_required_legend:empty { display: none; }
.gform_wrapper form.pht-form .gfield_label { font-weight: 700; line-height: 1.6; }
form.pht-form { --gf-ctrl-label-font-size-req: 16px; }
/* Focus ring = slate 3 px with a 3 px gap, like the rest of the site (Gravity Forms would draw it in the button colour). */
form.pht-form { --gf-ctrl-outline-color-focus: #35566B; }
.gform_wrapper.gform-theme form.pht-form :is(input, select, textarea, button):focus-visible { outline: 3px solid #35566B; outline-offset: 3px; } /* «(ضروری)» at 16 px, never under 15 */
.gform_wrapper form.pht-form .gfield_required { color: #6A5A52; font-weight: 500; font-size: 16px; }
.gform_wrapper form.pht-form .gfield_consent_label .gfield_required { display: none; } /* the design's consent line has no «(ضروری)»; the box keeps aria-required */
.gform_wrapper form.pht-form .gfield input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .gform_wrapper form.pht-form .gfield select { min-height: 52px; font-size: 17px; }
.gform_wrapper form.pht-form .gfield_error input:not([type="checkbox"]), .gform_wrapper form.pht-form .gfield_error select { border: 2px solid #B3261E; }
.gform_wrapper form.pht-form .gfield_validation_message, .gform_wrapper form.pht-form .validation_message { color: #B3261E; font-size: 15px; font-weight: 600; line-height: 1.7; display: flex; gap: 6px; align-items: flex-start; background: none; border: 0; padding: 0; }
.gform_wrapper form.pht-form .gfield_validation_message::before, .gform_wrapper form.pht-form .validation_message::before { content: "" / ""; flex: none; width: 20px; height: 20px; margin-top: 3px; background: currentColor;
  -webkit-mask: url("/wp-content/uploads/2026/10/icon-10.svg") center / contain no-repeat; mask: url("/wp-content/uploads/2026/10/icon-10.svg") center / contain no-repeat; }
/* Consent line: the checkbox, «با حریم خصوصی موافقم» and the privacy link, above a thin line.
   The same box and row for the optional tick «مشاورهٔ فوری» (Gravity Forms checkbox field, 10 Oct). */
.gform_wrapper form.pht-form .gfield--type-consent { border-top: 1px solid #EBE1D8; padding-top: 14px; }
.gform_wrapper form.pht-form :is(.ginput_container_consent, .gfield--type-checkbox .gchoice) { min-height: 44px; display: flex; align-items: center; gap: 12px; }
.gform_wrapper form.pht-form :is(.ginput_container_consent, .gfield--type-checkbox) input[type="checkbox"] { width: 22px; height: 22px; margin: 0; accent-color: #2A1F1B; }
.gform_wrapper form.pht-form :is(.ginput_container_consent, .gfield--type-checkbox) label { font-size: 16px; font-weight: 600; }
.gform_wrapper.gform-theme form.pht-form .gfield--type-consent .gfield_description, .gform_wrapper.gform-theme form.pht-form .gfield_consent_description_text { border: 0; padding: 0; margin: 0; background: none; max-height: none; overflow: visible; } /* a plain link, as in the design */
.gform_wrapper.gform-theme form.pht-form :is(.ginput_container_consent, .gfield--type-checkbox) input[type="checkbox"] { border-radius: 4px; inline-size: 22px; block-size: 22px; min-inline-size: 22px; min-block-size: 22px; padding: 0; } /* the Elementor kit pads every input by 16 px */ /* square box, not the 16 px field radius */
.gform_wrapper form.pht-form .gfield--type-consent .gfield_description a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
/* Submit: full-width brick pill; sand while locked (pht-forms.js), with the hint under it. */
.gform_wrapper form.pht-form .gform_footer { flex-direction: column; align-items: stretch; gap: 10px; }
.gform_wrapper.gform-theme form.pht-form .gform_footer button.gform_button { --gf-local-height: 56px; --gf-local-min-height: 56px; width: 100%; min-height: 56px; border-radius: 999px; font-size: 18px; font-weight: 700; }
.gform_wrapper.gform-theme form.pht-form .gform_footer button.gform_button:hover { --gf-local-bg-color: #5E2412; --gf-local-color: #FFFFFF; background-color: #5E2412; color: #FFFFFF; }
.gform_wrapper.gform-theme form.pht-form .gform_footer button.gform_button[aria-disabled="true"] { --gf-local-bg-color: #EBE1D8; --gf-local-color: #6A5A52; background-color: #EBE1D8; color: #6A5A52; cursor: not-allowed; } /* Gravity Forms paints through its own variables */
.pht-lock-hint { margin: 0; text-align: center; font-size: 15px; line-height: 1.7; color: #6A5A52; }
/* After sending: centred illustration and message. */
.pht-sent { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 8px 0; }
.pht-sent img { width: 100%; max-width: 340px; height: auto; }
.elementor .pht-sent h2 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.5; }
.pht-sent p { margin: 0; font-size: 17px; line-height: 1.85; color: #6A5A52; }
.elementor .pht-sent a { min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; font-weight: 600; }

/* Workshop pre-registration dialog ([pht_register_dialog], native <dialog>; final-Forms part 2). Close icon = hand-drawn icon-07. */
.ws-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 32px; border: 0; border-radius: 28px; background: #FFFFFF; color: #2A1F1B; box-shadow: 0 24px 64px rgba(42, 31, 27, .25); }
.ws-dialog[open] { display: flex; flex-direction: column; gap: 22px; }
.ws-dialog::backdrop { background: rgba(42, 31, 27, .5); }
.ws-dialog button.ws-dialog-close { position: absolute; top: 20px; left: 20px; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1.5px solid #86766D; background: #FFFFFF; cursor: pointer; }
.ws-dialog button.ws-dialog-close::before { content: ""; position: absolute; inset: 10px; background: #2A1F1B; -webkit-mask: url("/wp-content/uploads/2026/10/icon-07.svg") center / contain no-repeat; mask: url("/wp-content/uploads/2026/10/icon-07.svg") center / contain no-repeat; }
.ws-dialog button.ws-dialog-close:hover { border-color: #2A1F1B; background: #FFFFFF; }
.ws-dialog-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 4px; }
.ws-dialog-head img { width: 30px; height: 30px; }
.ws-dialog-head h2 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.45; }
.ws-dialog-pick { background: #F1E8E0; border-radius: 20px; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.ws-dialog-pick > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-dialog-pick b { font-size: 18px; font-weight: 800; line-height: 1.6; }
.ws-full-chip { min-height: 26px; padding: 0 10px; border-radius: 999px; border: 1.5px solid #2A1F1B; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; }
.ws-full-chip[hidden] { display: none; }
.ws-dialog-pick p { margin: 0; font-size: 15px; line-height: 1.7; color: #6A5A52; }
.ws-dialog-help { margin: 0; text-align: center; font-size: 15px; line-height: 1.75; color: #6A5A52; }
/* Sent, inside the dialog: green hand-drawn tick (icon-06), message, «بستن». */
.pht-sent-icon { width: 56px; height: 56px; background: #1F6B45; -webkit-mask: url("/wp-content/uploads/2026/10/icon-06.svg") center / contain no-repeat; mask: url("/wp-content/uploads/2026/10/icon-06.svg") center / contain no-repeat; }
.pht-sent--dialog h3 { margin: 0; font-size: 22px; font-weight: 800; }
.ws-dialog button.ws-dialog-close-text { min-height: 44px; padding: 0 24px; border-radius: 999px; border: 1.5px solid #86766D; background: #FFFFFF; color: #2A1F1B; font: 600 16px/1 Vazirmatn, sans-serif; cursor: pointer; }
.ws-dialog button.ws-dialog-close-text:hover { border-color: #2A1F1B; background: #FFFFFF; color: #2A1F1B; }
@media (max-width: 767px) {
  .ws-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 20px 16px 40px; border-radius: 0; background: #FAF6F2; box-shadow: none; }
  .ws-dialog-close { top: 14px; left: 14px; }
}

/* Homepage section 7: the practitioner collage ([pht_team_collage]; final-Homepage «نسخهٔ آینده», the design's default).
   Desktop: cards at the design's fixed spots (set inline by the plugin) around the centred heading.
   Tablet/phone: heading, a grid of cards, then «همهٔ مشاوران ←». */
.team-collage { position: relative; height: 760px; width: 100%; max-width: 1200px; margin: 0 auto; }
.team-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 440px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.elementor .team-center h2 { margin: 0; font-size: 36px; font-weight: 800; line-height: 1.4; text-wrap: balance; }
.team-center p { margin: 0; font-size: 19px; font-weight: 500; line-height: 1.8; }
.elementor .team-collage a.team-all { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: #8E3A1F; font-size: 17px; font-weight: 700; }
.elementor .team-collage a.team-all:hover { text-decoration: underline; text-underline-offset: 6px; }
.elementor .team-collage a.team-slot { position: absolute; display: flex; flex-direction: column; gap: 8px; color: #2A1F1B; }
.team-slot img { display: block; width: 100%; height: var(--h); object-fit: cover; object-position: 50% 20%; border-radius: 20px; background: #EBE1D8; }
.team-slot span { font-size: 15px; font-weight: 700; line-height: 1.5; }
/* The two lead doctors (redesign 7 Oct): equal size, mirrored leaf-shaped frames facing each other across the heading. */
.elementor .team-collage a.team-slot--lead { width: clamp(230px, 23vw, 280px); gap: 12px; }
.team-slot--lead img { height: auto; aspect-ratio: 4 / 5; }
.team-slot--lead-r img { border-radius: 16px 72px 16px 72px; }
.team-slot--lead-l img { border-radius: 72px 16px 72px 16px; }
.team-slot--lead span { font-size: 17px; font-weight: 800; text-align: center; } /* centred under both: the pair stays symmetric */
.team-slot span { overflow-wrap: anywhere; }
.elementor .team-collage a.team-slot:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* Duo mode: exactly 2 lead practitioners (Dr. Mortazavi & Dr. Saffar Harandi; Fatemeh, 19 Oct) */
.elementor .team-collage.team-collage--duo {
  height: auto !important;
  min-height: 400px;
  display: grid !important;
  grid-template-columns: clamp(230px, 22vw, 280px) minmax(320px, 480px) clamp(230px, 22vw, 280px) !important;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 40px 0 20px;
}

.elementor .team-collage.team-collage--duo .team-center {
  position: static !important;
  transform: none !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.elementor .team-collage.team-collage--duo a.team-slot {
  position: static !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.elementor .team-collage.team-collage--duo a.team-slot.team-slot--lead-r {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.elementor .team-collage.team-collage--duo a.team-slot.team-slot--lead-l {
  grid-column: 3 !important;
  grid-row: 1 !important;
}

@media (max-width: 960px) {
  .elementor .team-collage.team-collage--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 16px !important;
    padding: 32px 16px !important;
  }

  .elementor .team-collage.team-collage--duo .team-center {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    display: flex !important;
  }

  .elementor .team-collage.team-collage--duo a.team-slot.team-slot--lead-r {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .elementor .team-collage.team-collage--duo a.team-slot.team-slot--lead-l {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  .elementor .team-collage.team-collage--duo a.team-all {
    display: inline-flex !important;
    margin-top: 8px !important;
  }
}
@media (max-width: 1024px) {
  .team-collage { height: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 12px; }
  .team-center { display: contents; }
  .team-center h2, .team-center p { grid-column: 1 / -1; text-align: center; }
  .elementor .team-center h2 { font-size: 30px; line-height: 1.35; }
  .team-center p { font-size: 17px; }
  .elementor .team-collage a.team-all { grid-column: 1 / -1; justify-self: center; order: 1; }
  .elementor .team-collage a.team-slot { position: static; width: auto !important; } /* the plugin's inline desktop spot is ignored here */
  .team-slot img { height: auto; aspect-ratio: 4 / 5; }
  .elementor .team-collage a.team-slot--lead { width: auto; }
}
@media (max-width: 767px) {
  .elementor .team-collage a.team-slot:nth-of-type(n+7) { display: none; } /* phones show up to 6, as in the design */
}
/* Homepage section 8 «ویدیو و پادکست» ([pht_media]): 3 episode cards beside 2 video cards (Fatemeh, 12 Oct: each episode
   on its own; was the «والدکست» card). Under 1180 px (as in the design) they stack, 2 cards a row down to 900 px. */
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; max-width: 1200px; color: #2A1F1B; }
.media-grid > :only-child { grid-column: 1 / -1; }
.elementor .e-con > .elementor-widget-shortcode:has(.media-grid) { width: 100%; max-width: 1200px; } /* Elementor shrinks a widget to its content (as for .vp) */
.media-vid { position: relative; display: flex; background: #FFFFFF; border: 1px solid #EBE1D8; box-shadow: 0 8px 24px rgba(42, 31, 27, .06); }
.media-kind { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 700; line-height: 1.6; color: #6A5A52; }
.media-blob { flex: none; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; background: #F1E8E0; color: #2A1F1B; }
.media-blob svg { width: 32px; height: 32px; }
.elementor .media-grid h3 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.5; text-wrap: balance; }
/* The podcast player (pht_player: episode page and episode cards; plays the MP3 in place; pht-media.js). The kit paints every <button>, hence the strong selectors. */
.media-play { margin-top: auto; display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 28px; background: #F1E8E0; color: #2A1F1B; }
.elementor .pht-player button.media-play-btn { flex: none; width: 56px; height: 56px; padding: 0; border: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #8E3A1F; color: #FFFFFF; cursor: pointer; }
.elementor .pht-player button.media-play-btn:hover { background: #5E2412; }
.media-play-btn svg + svg, .media-play-btn[aria-pressed="true"] svg:first-child { display: none; } /* play icon, or pause while playing */
.media-play-btn[aria-pressed="true"] svg + svg { display: block; margin: 0; }
.media-play svg, .media-poster-play svg { width: 22px; height: 22px; margin-left: 3px; } /* play always points right (DS); nudged to look centred */
.media-play-text { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; } /* one line: time now, bar, length (centred with the button); the episode page's label sits above */
.media-play-text b { grid-column: 1 / -1; }
.media-play-text .media-bar { order: 2; }
.media-time span:first-child { order: 1; }
.media-time span:last-child { order: 3; }
.media-bar { height: 6px; border-radius: 999px; background: #FFFFFF; overflow: hidden; }
.media-bar span { display: block; width: 0; height: 100%; border-radius: 999px; background: #2A1F1B; }
.media-time { display: contents; } /* its two times join the line above */
.media-time span { min-width: 2.6em; font-size: 15px; font-weight: 600; line-height: 1.4; color: #6A5A52; text-align: center; } /* min-width: the bar doesn't jump as the time grows */
.media-vids { display: flex; flex-direction: column; gap: 24px; }
.media-vid { flex: 1 1 0; align-items: stretch; gap: 18px; padding: 16px; border-radius: 28px; }
.media-vid:hover { box-shadow: inset 0 0 0 2px #8E3A1F, 0 8px 24px rgba(42, 31, 27, .06); }
.media-poster { position: relative; flex: none; width: 132px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 12px 56px 12px 56px; background: #F1E8E0; }
.media-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Episode card (pht_episode_card; Fatemeh, 12 Oct): small picture, pillar chip, title (the link covers the card, opening the
   episode's page) and its own player row, raised above that link so «پخش» plays here. */
.media-epc { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 16px; border: 1px solid #EBE1D8; border-radius: 28px; background: #FFFFFF; box-shadow: 0 8px 24px rgba(42, 31, 27, .06); color: #2A1F1B; }
.media-epc:hover { box-shadow: inset 0 0 0 2px #8E3A1F, 0 8px 24px rgba(42, 31, 27, .06); }
.media-epc-top { display: flex; align-items: flex-start; gap: 14px; }
.media-epc-art { position: relative; flex: none; width: 72px; aspect-ratio: 1; overflow: hidden; border-radius: 8px 28px 8px 28px; background: #F1E8E0; }
.media-epc-art img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.media-epc-text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.elementor .media-epc h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.5; text-wrap: pretty; }
.elementor .media-epc h3 a { color: #2A1F1B; }
.media-epc h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.media-epc h3 a:focus-visible { outline: none; } /* the ring goes round the whole card instead */
.media-epc:has(h3 a:focus-visible) { outline: 3px solid #35566B; outline-offset: 3px; }
.media-epc-text p { margin: 0; font-size: 15px; line-height: 1.7; color: #6A5A52; }
.media-epc .media-play { position: relative; z-index: 1; margin: 0; padding: 10px 14px 10px 10px; }
.elementor .media-epc button.media-play-btn { width: 48px; height: 48px; }
.media-poster-play { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #FFFFFF; color: #2A1F1B; }
.media-poster-play svg { width: 20px; height: 20px; }
.media-dur { position: absolute; bottom: 10px; left: 10px; height: 28px; padding: 0 10px; display: flex; align-items: center; border-radius: 999px; background: #FFFFFF; font-size: 15px; font-weight: 700; }
.media-vid-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; padding: 6px 4px; }
.media-vid .media-blob { width: 56px; height: 56px; }
.media-vid .media-blob svg { width: 28px; height: 28px; }
.media-chip { height: 32px; padding: 0 12px; display: flex; align-items: center; border-radius: 999px; background: #F1E8E0; font-size: 15px; font-weight: 600; color: #2A1F1B; white-space: nowrap; }
.elementor .media-vid h3 a { color: #2A1F1B; }
.media-vid h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole card opens the video */
.media-vid h3 a:focus-visible { outline: none; } /* the ring goes round the whole card instead */
.media-vid:has(h3 a:focus-visible) { outline: 3px solid #35566B; outline-offset: 3px; }
/* Fatemeh, 15 Oct: the body was centred, so chip, title and this line sat at different heights on each card. Now the chip row is
   on top, the title under it, and this line at the bottom of every card. */
.media-vid-body > p { margin: auto 0 0; font-size: 15px; line-height: 1.7; color: #6A5A52; }
/* Pastel = pillar tag only: the blob, the chip and the episode picture take the pillar tint. */
.pillar-child :is(.media-blob, .media-chip), .media-epc.pillar-child .media-epc-art { background: #F6E2D6; }
.pillar-parenting :is(.media-blob, .media-chip), .media-epc.pillar-parenting .media-epc-art { background: #E4ECE6; }
.pillar-training :is(.media-blob, .media-chip), .media-epc.pillar-training .media-epc-art { background: #EDE4F0; }
@media (max-width: 1179px) {
  .media-grid { grid-template-columns: minmax(0, 1fr); }
  .media-vids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .media-vids { grid-template-columns: minmax(0, 1fr); gap: 16px; } /* two side by side get too narrow for the titles */
}
@media (max-width: 767px) {
  .media-poster { width: 112px; }
  .media-vid { gap: 14px; }
  .media-vid .media-blob { display: none; } /* Fatemeh, 21 Oct: the icon squeezed the pillar chip off the card; the poster's play button says «video» already */
  .elementor .media-grid h3 { font-size: 20px; }
}

/* Video page ([pht_video] in the «صفحهٔ ویدیو» template; final-Magazine frames 3–4). Vertical: player 405 px beside the details;
   horizontal: the player (16:9, up to 960 px) under the title. Phones: one column. */
.elementor .e-con > .elementor-widget-shortcode:has(.vp) { width: 100%; } /* Elementor shrinks a widget to its content; the page must fill the width */
.vp { width: 100%; max-width: 1280px; margin: 0 auto; padding: 8px 40px 96px; display: flex; flex-direction: column; gap: 32px; color: #2A1F1B; }
.vp-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 15px; color: #6A5A52; }
.elementor .vp-crumbs a { min-height: 44px; display: inline-flex; align-items: center; color: #6A5A52; }
.elementor .vp-crumbs a:hover { color: #8E3A1F; text-decoration: underline; text-underline-offset: 4px; }
.vp-crumbs [aria-current] { color: #2A1F1B; font-weight: 600; }
/* «بازگشت به …» (pht-media.js; only when the visitor came from another page of this site): the far end of the breadcrumb row. */
.vp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.elementor a.vp-back { margin-right: auto; max-width: min(420px, 100%); min-height: 44px; display: inline-block; line-height: 44px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #8E3A1F; font-size: 15px; font-weight: 700; }
.elementor a.vp-back:hover { color: #5E2412; text-decoration: underline; text-underline-offset: 4px; }
.vp-back span { margin-left: 6px; }
@media (max-width: 767px) { .elementor a.vp-back { display: none; } } /* phones have the system back; the extra row pushed the content down */
.vp-top { display: grid; grid-template-columns: 405px minmax(0, 1fr); gap: 64px; align-items: start; }
/* Vertical videos: the title block comes first in the markup; wider screens put the player beside it and the rest
   (the second row takes any extra height, so no gap opens under the title). Phones: title, player, rest (below). */
.vp--vert .vp-top { grid-template-areas: "player head" "player info"; grid-template-rows: auto 1fr; row-gap: 20px; }
.vp--vert .vp-top > .vp-head { grid-area: head; }
.vp--vert .vp-top > .vp-player { grid-area: player; }
.vp--vert .vp-top > .vp-info { grid-area: info; }
.vp--horiz .vp-top { grid-template-columns: minmax(0, 1fr); }
.vp-player { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 720px; overflow: hidden; border-radius: 24px; background: #2A1F1B; }
.vp--horiz .vp-player { aspect-ratio: 16 / 9; max-width: 960px; max-height: none; border-radius: 28px; }
.vp-player img, .vp-player video, .vp-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.vp-player video { object-fit: contain; }
.vp-player video::cue { font-family: Vazirmatn, sans-serif; font-size: 17px; line-height: 1.6; } /* Persian captions in the site's font */
.elementor .vp .vp-player button.vp-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; } /* strong: the kit paints every <button> */
.vp-play > span { width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #FFFFFF; color: #2A1F1B; box-shadow: 0 6px 20px rgba(42, 31, 27, .25); }
.vp-play svg { width: 30px; height: 30px; margin-left: 4px; } /* play points right (DS), nudged to look centred */
.elementor .vp .vp-player button.vp-play:hover > span { background: #F1E8E0; }
.elementor .vp .vp-player button.vp-play:focus-visible { outline: 3px solid #FFFFFF; outline-offset: -6px; } /* white ring on the dark cover */
.vp-dur { position: absolute; left: 14px; bottom: 14px; height: 30px; padding: 0 11px; display: flex; align-items: center; border-radius: 999px; background: #FFFFFF; font-size: 15px; font-weight: 700; }
.elementor .vp a.vp-fallback { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-height: 48px; padding: 0 22px; display: flex; align-items: center; white-space: nowrap; border-radius: 999px; background: #FFFFFF; color: #8E3A1F; font-size: 17px; font-weight: 700; } /* when a short's link can't be fetched */
.elementor .vp a.vp-fallback:hover { color: #5E2412; text-decoration: underline; text-underline-offset: 4px; }
.vp-info { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.vp-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.vp .media-kind { gap: 12px; }
.vp .media-blob { width: 56px; height: 56px; }
.vp .media-blob svg { width: 28px; height: 28px; }
.elementor .vp h1 { margin: 0; font-size: 48px; font-weight: 800; line-height: 1.4; text-wrap: balance; }
.vp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; line-height: 1.7; color: #6A5A52; }
.vp-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.vp-meta svg { width: 18px; height: 18px; color: #2A1F1B; }
.elementor .vp-meta a { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: #2A1F1B; font-size: 16px; font-weight: 700; }
.elementor .vp-meta a:hover { color: #8E3A1F; text-decoration: underline; text-underline-offset: 4px; }
.vp-meta img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.vp-sec { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.elementor .vp-sec h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 36px; font-weight: 800; line-height: 1.45; }
.vp-sec h2 svg { width: 22px; height: 22px; flex: none; }
.vp-tr { margin: 0; max-width: 68ch; font-size: 17px; line-height: 1.9; }
.vp-rel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.vp--horiz .vp-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vp-next { padding-top: 32px; display: flex; flex-direction: column; align-items: center; }
.vp-next > h2 { align-self: center; }
.vp-next-in { width: 100%; max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.vp-next-in .elementor-311 { width: 100%; }
.elementor .vp .vp-next-in > a.vp-book { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; padding: 12px 28px; text-align: center; line-height: 1.5; border-radius: 999px; background: #8E3A1F; color: #FFFFFF; font-size: 17px; font-weight: 700; box-sizing: border-box; }
.elementor .vp .vp-next-in > a.vp-book:hover { background: #5E2412; color: #FFFFFF; text-decoration: none; }
/* Two practitioners side by side (an article's «قدم بعدی», 10 Nov); one column under 1024 px (the cards get too narrow). */
.vp-next-pair { width: 100%; max-width: 1000px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } /* stretch: both columns as tall as the taller one */
.vp-next-pair .elementor-311 { flex: 1; display: flex; flex-direction: column; } /* the card fills its column, so the two buttons line up at the bottom */
.vp-next-pair .elementor-311 > .e-con { flex: 1; }
@media (max-width: 1023px) { .vp-next-pair { grid-template-columns: minmax(0, 1fr); } }

/* Enriched practitioner details in «قدم بعدی» */
.vp-prac-extra { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px dashed #EBE1D8; margin-top: 4px; }
.vp-prac-approach { margin: 0; font-size: 15px; line-height: 1.8; color: #6A5A52; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vp-extra-lbl { color: #2A1F1B; font-weight: 700; margin-left: 6px; }
.vp-prac-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 15px; color: #6A5A52; }
.vp-prac-licence { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.vp-prac-licence svg { width: 17px; height: 17px; color: #8E3A1F; flex: none; }
.vp-prac-ages { display: inline-flex; align-items: center; gap: 6px; }
.vp-prac-ages span:not(.vp-extra-lbl) { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; background: #F1E8E0; font-size: 15px; font-weight: 600; color: #2A1F1B; }

/* Fallback sand banner when video has no connected practitioner (Fatemeh, 19 Oct; Photo 2) */
.vp-book-banner { width: 100%; background: #F1E8E0; border-radius: 28px; padding: 48px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; box-sizing: border-box; }
.vp-book-banner .vp-banner-leaf svg { width: 24px; height: 24px; color: #8E3A1F; }
.vp-book-banner h2 { margin: 0; font-size: 28px; font-weight: 800; color: #2A1F1B; line-height: 1.4; }
.vp-book-banner p { margin: 0; font-size: 17px; line-height: 1.8; color: #6A5A52; max-width: 52ch; }
.elementor .vp a.vp-banner-btn { margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 36px; border-radius: 999px; background: #8E3A1F; color: #FFFFFF; font-size: 17px; font-weight: 700; text-decoration: none; }
.elementor .vp a.vp-banner-btn:hover { background: #5E2412; color: #FFFFFF; text-decoration: none; }
/* The vertical player stays in view beside the text while scrolling (UX review 12 Oct), just under the 110 px sticky header. */
@media (min-width: 768px) { .vp--vert .vp-top > .vp-player { position: sticky; top: 120px; } }
@media (max-width: 1024px) {
  .vp-top { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 767px) {
  .vp { padding: 4px 16px 56px; gap: 24px; }
  .vp-top, .vp--horiz .vp-rel { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .vp--vert .vp-top { grid-template-areas: "head" "player" "info"; grid-template-rows: auto; } /* phones: title above the player (Fatemeh, 12 Oct) */
  .vp-player { max-height: 675px; }
  .elementor .vp h1 { font-size: 32px; }
  .elementor .vp-sec h2 { font-size: 28px; }
}

/* Podcast episode page ([pht_episode] in «صفحهٔ قسمت پادکست»; final-Magazine frame 5). Shares the .vp frame, breadcrumb and
   section titles with the video page, and the player with the homepage card. Each episode stands alone (10 Oct). */
.media-play-text b { display: block; font-size: 15px; font-weight: 700; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-top { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: center; }
.ep-cover { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 16px 72px 16px 72px; background: #F1E8E0; }
.ep-cover img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.pillar-child .ep-cover { background: #F6E2D6; }
.pillar-parenting .ep-cover { background: #E4ECE6; }
.pillar-training .ep-cover { background: #EDE4F0; }
.ep-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ep-info > svg { width: 30px; height: 30px; }
.ep-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ep-chips li { height: 32px; padding: 0 14px; display: flex; align-items: center; border-radius: 999px; background: #F1E8E0; font-size: 15px; font-weight: 600; white-space: nowrap; }
.elementor .vp a.ep-show { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: #8E3A1F; font-size: 16px; font-weight: 700; }
.elementor .vp a.ep-show:hover { color: #5E2412; text-decoration: underline; text-underline-offset: 4px; }
.ep-show svg { width: 22px; height: 22px; }
.ep-guest { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.8; }
.elementor .ep-guest a { color: #2A1F1B; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.elementor .ep-guest a:hover { color: #8E3A1F; }
.ep-player { width: 100%; max-width: 640px; }
.ep-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; }
.ep-main { min-width: 0; max-width: 68ch; display: flex; flex-direction: column; gap: 32px; }
.ep-body:has(> .ep-main:empty) { grid-template-columns: minmax(0, 340px); } /* no about text or transcript yet: the info box sits where reading starts */
.ep-about p { margin: 0 0 1em; font-size: 17px; line-height: 1.9; }
.ep-tr { border-top: 1.5px dashed #EBE1D8; }
.elementor .ep-tr summary h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.6; }
.ep-aside { position: sticky; top: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; border: 1px solid #EBE1D8; border-radius: 28px; background: #FFFFFF; }
.elementor .ep-aside h2, .elementor .ep-aside h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.6; color: #6A5A52; }
.ep-aside dl { margin: 0; }
.ep-aside dl div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1.5px dashed #EBE1D8; font-size: 16px; line-height: 1.6; }
.ep-aside dt { flex: 0 0 96px; color: #6A5A52; }
.ep-aside dd { margin: 0; min-width: 0; font-weight: 700; }
.ep-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-topic { height: 32px; padding: 0 12px; display: flex; align-items: center; border-radius: 999px; background: #F1E8E0; font-size: 15px; font-weight: 600; } /* topics are sand; only the pillar is pastel */
.ep-next-card { max-width: 400px; }
@media (max-width: 1024px) {
  .ep-top { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
  .ep-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}
@media (max-width: 767px) {
  .ep-top, .ep-body, .ep-body:has(> .ep-main:empty) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ep-cover { width: 200px; }
  .ep-guest { font-size: 17px; }
  .ep-aside { position: static; }
  .ep-next-card { max-width: none; }
}

/* «مجله» hub ([pht_magazine] on the page «مجله»; final-Magazine frames 1 and 6). Frame and breadcrumb from the video page (.vp),
   tabs and pills from the workshop list (.ws-tabs / .ws-pill), cards from the homepage. */
.mag-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mag-head > svg { width: 30px; height: 30px; }
.mag-head p { margin: 0; max-width: 640px; font-size: 20px; font-weight: 500; line-height: 1.85; color: #6A5A52; }
.mag-filters { display: flex; flex-direction: column; gap: 20px; }
.mag-panel { display: flex; flex-direction: column; gap: 64px; }
.mag-sec-head { display: flex; align-items: center; gap: 16px; }
.mag-arrows { margin-right: auto; display: flex; gap: 8px; } /* margin-right: pushes them to the far side (left) in RTL */
.elementor button.mag-arrow { width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border: 1.5px solid #86766D; border-radius: 50%; background: #FFFFFF; color: #2A1F1B; font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.elementor button.mag-arrow:hover { border-color: #2A1F1B; background: #FFFFFF; color: #2A1F1B; }
.mag-row { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 8px; padding: 8px 8px 20px; margin: 0 -8px; } /* 8 px: room for the cards' focus ring (17 Oct) */
.mag-row > div { flex: 0 0 420px; min-width: 0; display: flex; scroll-snap-align: start; }
.mag-row .media-vid { flex: 1; }
.mag-row > div > * { flex: 1; min-width: 0; } /* article and episode cards fill their slot too (17 Oct: rows for all three types) */
.mag-arrows[hidden] { display: none; } /* a row that fits needs no arrows (pht-media.js 1.14.0) */
.mag-arts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mag-arts > div { display: flex; min-width: 0; }
.mag-art { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 22px; border: 1px solid #EBE1D8; border-radius: 28px; background: #FFFFFF; }
.mag-art:hover { box-shadow: inset 0 0 0 2px #8E3A1F; }
.mag-art-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px 56px 12px 56px; background: #F1E8E0; }
.mag-art-cover img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; } /* the whole illustration inside the frame (Fatemeh, 15 Oct: «cover» cut heads at the top edge); as on the article page */
.mag-art-chip { display: flex; padding: 0 8px; }
.elementor .mag-art h3 { margin: 0; padding: 0 8px; font-size: 24px; font-weight: 700; line-height: 1.5; text-wrap: pretty; }
.elementor .mag-art h3 a { color: #2A1F1B; }
.mag-art h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 28px; } /* the whole card opens the article */
.mag-art h3 a:focus-visible { outline: none; }
.mag-art:has(h3 a:focus-visible) { outline: 3px solid #35566B; outline-offset: 3px; }
.mag-art-meta { margin-top: auto; padding: 0 8px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.8; color: #6A5A52; }
.mag-art-meta span { display: flex; align-items: center; gap: 8px; }
.mag-art-meta svg { width: 18px; height: 18px; flex: none; color: #2A1F1B; }
.elementor .mag-more { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: #8E3A1F; font-size: 17px; font-weight: 700; } /* gap: a flex box drops the space before «←» (13 Oct) */
.elementor .mag-more:hover { color: #5E2412; text-decoration: underline; text-underline-offset: 6px; }
.mag-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 0 8px; }
.mag-empty img { width: 180px; height: auto; }
.mag-empty p { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.6; }
.elementor .mag-empty a { min-height: 44px; display: inline-flex; align-items: center; color: #8E3A1F; font-size: 17px; font-weight: 700; }
.elementor .mag-empty a:hover { color: #5E2412; text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 1024px) {
  .mag-arts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .mag-head p { font-size: 17px; }
  .mag-panel { gap: 48px; }
  .mag-row > div { flex-basis: min(330px, 88vw); }
  .mag-arts { grid-template-columns: minmax(0, 1fr); }
  .elementor .mag-art h3 { font-size: 20px; }
  .mag-empty img { width: 150px; }
  .mag-empty p { font-size: 20px; }
}

/* Article page ([pht_article] in «صفحهٔ مقاله»; final-Magazine frame 2). Frame, breadcrumb, meta row, section titles and
   «قدم بعدی» from the video page (.vp); topic chips from the episode page; related cards from the hub. */
.art-head { max-width: 920px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.art-chip { display: flex; align-items: center; gap: 12px; }
.art-chip svg { width: 22px; height: 22px; }
.vp-meta svg { flex: none; }
.elementor .vp-meta a.art-rev { display: inline; min-height: 0; font-size: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.art-cover { position: relative; margin: 0; aspect-ratio: 16 / 7; overflow: hidden; border-radius: 32px 220px 32px 220px; background: #F1E8E0; }
.art-cover img.wp-post-image { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.art-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: start; }
.art-main { min-width: 0; max-width: 68ch; display: flex; flex-direction: column; gap: 40px; font-size: 17px; line-height: 1.9; }
/* «بینش‌های کلیدی»: the pillar's pastel, brick dots. */
.art-ins { padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; border-radius: 28px; background: #F1E8E0; }
.pillar-child.art-ins { background: #F6E2D6; }
.pillar-parenting.art-ins { background: #E4ECE6; }
.pillar-training.art-ins { background: #EDE4F0; }
.elementor .art-ins h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.5; }
.art-ins ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.art-ins li { display: flex; gap: 12px; align-items: flex-start; }
.art-ins li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 13px; border-radius: 50%; background: #8E3A1F; }
/* The text itself (WordPress blocks). Titles stop below the sticky header when a contents link jumps to them. */
.art-text > * { margin: 0 0 14px; }
.elementor .art-text h2 { margin: 40px 0 14px; font-size: 36px; font-weight: 800; line-height: 1.45; scroll-margin-top: 120px; }
.elementor .art-text h2:first-child { margin-top: 0; }
.elementor .art-text h3 { margin: 22px 0 6px; font-size: 24px; font-weight: 700; line-height: 1.5; }
.art-text :is(ul, ol) { padding: 0 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.art-text li::marker { color: #8E3A1F; font-weight: 700; }
.art-text blockquote { margin: 12px 0 26px; padding: 4px 24px 4px 0; border-right: 4px solid #8E3A1F; font-size: 24px; font-weight: 700; line-height: 1.75; }
.art-text blockquote p { margin: 0; }
/* «کدام به دغدغهٔ شما نزدیک‌تر است؟» (mid-article): white box, sand chips that open the «مجله» list for that concern. */
.art-text .art-cn { margin: 26px 0; padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; border: 1px solid #EBE1D8; border-radius: 28px; background: #FFFFFF; }
.elementor .art-text .art-cn h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.6; }
.art-text .art-cn ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; } /* chips side by side (article lists are one-per-line) */
.elementor .art-cn a { min-height: 44px; padding: 8px 18px; display: flex; align-items: center; gap: 8px; border-radius: 999px; background: #F1E8E0; color: #2A1F1B; font-size: 16px; font-weight: 600; line-height: 1.5; }
.elementor .art-cn a:hover { color: #2A1F1B; text-decoration: underline; text-underline-offset: 5px; }
.art-cn a span { color: #8E3A1F; }
/* Editor style «فهرست تیک‌دار»: the list as a white box, each item with the hand-drawn tick (icon-06) in a sand circle. */
.art-text ul.is-style-pht-checklist { list-style: none; margin: 12px 0 26px; padding: 20px 28px; gap: 8px; border: 1.5px solid #EBE1D8; border-radius: 24px; background: #FFFFFF; }
.art-text .is-style-pht-checklist li, .cn-signs li { position: relative; padding-right: 40px; }
.art-text .is-style-pht-checklist li::before, .cn-signs li::before { content: "" / ""; position: absolute; top: 3px; right: 0; width: 28px; height: 28px; border-radius: 50%; background: #F1E8E0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 16.9 C 9.3 19.1, 11.3 21.3, 13.2 23.7 C 16.4 17.6, 20.5 12.3, 25.6 7.9' fill='none' stroke='%232A1F1B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
/* Editor style «گفت‌وگوی نمونه»: a group of paragraphs as the sand sample-conversation box. */
.art-text .is-style-pht-dialogue { margin: 12px 0 26px; padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; border-radius: 24px; background: #F1E8E0; }
.art-text .is-style-pht-dialogue > * { margin: 0; }
.art-text .is-style-pht-dialogue strong { font-weight: 800; }
/* Table of contents: a sticky white box beside the text on desktop; a folded list on tablets and phones. */
.art-toc { position: sticky; top: 120px; padding: 22px 22px 16px; display: flex; flex-direction: column; gap: 8px; border: 1px solid #EBE1D8; border-radius: 28px; background: #FFFFFF; }
.elementor .art-toc h2 { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.6; color: #6A5A52; }
.art-toc ol, .art-toc-fold ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.elementor .art-toc a { min-height: 44px; padding: 6px 14px 6px 0; display: flex; align-items: center; border-right: 3px solid #EBE1D8; color: #2A1F1B; font-size: 16px; font-weight: 500; line-height: 1.6; }
.elementor .art-toc a[aria-current] { border-right-color: #8E3A1F; font-weight: 700; }
.elementor .art-toc a:hover { color: #8E3A1F; text-decoration: underline; text-underline-offset: 4px; }
.art-toc a span { display: none; } /* numbers only in the folded list */
.art-toc-fold { display: none; border-top: 1.5px dashed #EBE1D8; }
.art-toc-fold summary { min-height: 72px; font-size: 20px; font-weight: 700; line-height: 1.6; }
.art-toc-fold ol { padding: 0 8px 18px; }
.elementor .art-toc-fold a { min-height: 44px; padding: 8px 0; display: flex; align-items: baseline; gap: 10px; color: #2A1F1B; font-size: 17px; font-weight: 500; }
.elementor .art-toc-fold a:hover { color: #8E3A1F; text-decoration: underline; text-underline-offset: 4px; }
.art-toc-fold a span { color: #6A5A52; font-size: 15px; }
/* «قدم بعدی»: workshop card 5 parts, practitioner card + button 7 parts (design). */
.art-step { margin: 0; max-width: 68ch; font-size: 17px; line-height: 1.9; }
.art-next { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.art-next > .vp-next-in:only-child { grid-column: 1 / -1; }
.art-next .ep-next-card { max-width: none; }
/* «منابع»: numbered, links brick and underlined. */
.art-src { max-width: 68ch; }
.art-src ol { margin: 0; padding: 0 22px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.9; }
.elementor .art-src a { display: block; min-height: 44px; padding: 4px 0; color: #8E3A1F; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; } /* the whole line is the link: 44 px touch target */
.elementor .art-src a:hover { color: #5E2412; }
/* Topics and sharing. */
.art-foot { display: flex; flex-wrap: wrap; gap: 20px 56px; align-items: flex-start; padding-top: 28px; border-top: 1px solid #EBE1D8; }
.art-foot > div { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.elementor .art-foot h2 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.6; color: #6A5A52; }
.art-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.elementor .art-share :is(a, button) { min-height: 44px; padding: 0 16px; display: flex; align-items: center; border: 1.5px solid #86766D; border-radius: 999px; background: #FFFFFF; color: #2A1F1B; font: 600 15px/1.5 Vazirmatn, sans-serif; cursor: pointer; } /* strong: the kit paints every <button> */
.elementor .art-share :is(a, button):hover { border-color: #2A1F1B; background: #FFFFFF; color: #2A1F1B; text-decoration: underline; text-underline-offset: 4px; }
.elementor .art-share [hidden] { display: none; }
.art-share [role="status"], .pht-copy [role="status"] { font-size: 15px; font-weight: 600; color: #2A1F1B; }
.art-share [role="status"].is-ok, .pht-copy [role="status"].is-ok { color: #1F6B45; }
@media (max-width: 1024px) {
  .art-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .art-toc { display: none; }
  .art-toc-fold { display: block; }
  .art-next { grid-template-columns: minmax(0, 1fr); }
  .art-next .ep-next-card { max-width: 400px; }
}
@media (max-width: 767px) {
  .art .vp-crumbs li:nth-last-child(-n+2) { display: none; } /* the title is the H1 right below (design: phones end at «مجله») */
  .art-cover { aspect-ratio: 4 / 3; border-radius: 16px 72px 16px 72px; }
  .art-ins, .art-text .art-cn, .art-text ul.is-style-pht-checklist, .art-text .is-style-pht-dialogue { padding: 20px 18px; }
  .elementor .art-text h2 { font-size: 28px; }
  .elementor .art-text h3 { font-size: 20px; }
  .art-text blockquote { font-size: 20px; }
  .art-next .ep-next-card { max-width: none; }
}

/* Page numbers under a Loop Grid (workshops list). */
.elementor .elementor-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.elementor .elementor-pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1.5px solid #86766D; color: #2A1F1B; font-size: 16px; font-weight: 600; }
.elementor .elementor-pagination .page-numbers.current { background: #8E3A1F; border-color: #8E3A1F; color: #FFFFFF; }
.elementor .elementor-pagination a.page-numbers:hover { border-color: #8E3A1F; }

/* «رویکرد من در جلسه»: hand-drawn brick frame with a large « on its top edge. */
.approach-frame { --width: auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200' preserveAspectRatio='none'%3E%3Cpath d='M22 6 C 160 2, 420 9, 578 5 C 593 6, 596 18, 595 30 C 597 80, 592 140, 596 174 C 596 189, 586 195, 572 194 C 420 197, 180 191, 26 195 C 11 195, 4 186, 5 172 C 3 120, 8 70, 4 28 C 4 13, 10 6, 22 6 Z' fill='none' stroke='%238E3A1F' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.approach-frame::before { content: "«" / ""; position: absolute; inset: -22px 28px auto auto; width: auto; height: auto; background: #FAF6F2; padding: 0 8px; font-size: 48px; font-weight: 800; line-height: 1; color: #8E3A1F; }

/* Side box: thin wavy divider under the bold specialty line. */
.cred-line::after { content: ""; display: block; height: 8px; margin-top: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 8' preserveAspectRatio='none'%3E%3Cpath d='M2 4 C 60 2, 120 6, 180 3.5 S 270 5, 298 4' fill='none' stroke='%23EBE1D8' stroke-width='1.6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 8px no-repeat; }

/* Side column stays in view while scrolling on desktop; small headings stay 15px on every screen. */
@media (min-width: 1025px) { .aside-sticky { position: sticky; top: 24px; } }
.elementor .e-con .h-17 { font-size: 17px; } /* a 17 px heading on every screen (box titles like «دربارهٔ این دوره») */
.elementor .e-con .h-small { font-size: 15px; font-weight: 700; color: #6A5A52; line-height: 1.6; }

/* Visitors who ask their device for less motion get none. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Booking path as numbered steps (the centre, 10 Oct). The number sits inside each step title (steps-oneoff.php), so screen
   readers hear «۱ امروز»; the titles carry the global class «path-step». Default: an inline circle before the title
   (request page «بعد از ارسال»). */
.path-step > span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-inline-end: 6px; border: 2px solid #8E3A1F; border-radius: 999px; background: #FAF6F2; color: #8E3A1F; font: 800 16px/1 Vazirmatn, sans-serif; vertical-align: middle; }
/* Homepage section 9: the circle sits on the hand-drawn line, 64px above the title (the grid's top padding), at the step's start. */
h3.path-step > span:first-child { position: absolute; top: -68px; right: 0; width: 44px; height: 44px; margin: 0; font-size: 18px; }
@media (max-width: 767px) {
  /* Phone: the line is vertical, 24px from the right edge; the titles start 48px in. A 36px circle on the line leaves 6px. */
  h3.path-step > span:first-child { top: -2px; right: -42px; width: 36px; height: 36px; font-size: 16px; }
}

/* «دربارهٔ ما», phones: the sand jump links to each service (About design). Ink text like a chip, brick outline on hover. */
.elementor nav[aria-label="خدمات این صفحه"] a { color: #2A1F1B; }
.elementor nav[aria-label="خدمات این صفحه"] > span:hover { box-shadow: inset 0 0 0 1.5px #8E3A1F; }

/* «کپی نشانی» on «تماس با ما» ([pht_copy], pht-media.js): brick text button as in the Contact design; its status line shares the article's
   rules («نشانی کپی شد» in green). Strong selector: the kit paints every <button>. */
.pht-copy { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.elementor .pht-copy button { min-height: 44px; padding: 0 4px; border: 0; border-radius: 8px; background: none; color: #8E3A1F; font: 700 17px/1.5 Vazirmatn, sans-serif; cursor: pointer; }
.elementor .pht-copy button:hover { background: none; color: #5E2412; text-decoration: underline; text-underline-offset: 5px; }

/* Site search ([pht_search] in «نتایج جست‌وجو»; Search design, 13 Oct) and the search form shared with the 404 page. */
.sr { gap: 40px; }
.sr-head { display: flex; flex-direction: column; gap: 16px; }
.sr-head h1 { margin: 0; display: flex; align-items: flex-start; gap: 12px; font-size: 48px; line-height: 1.4; }
.sr-head h1 > svg { width: 26px; height: 26px; flex: none; margin-top: 18px; }
.sr-head p { margin: 0; font-size: 17px; font-weight: 600; color: #6A5A52; }
.sr-form { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 680px; }
.sr-form label { font-size: 16px; font-weight: 700; line-height: 1.6; color: #2A1F1B; }
.sr-form > div { display: flex; flex-wrap: wrap; gap: 12px; }
.elementor .sr-form input { flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 20px; border: 1.5px solid #86766D; border-radius: 16px; background: #FFFFFF; color: #2A1F1B; font: 17px/1.5 Vazirmatn, sans-serif; }
/* Strong selectors: the kit paints every <button>. Outline beside the 404's brick request button; brick on the search page. */
.elementor .sr-form button { height: 56px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid #2A1F1B; border-radius: 999px; background: #FFFFFF; color: #2A1F1B; font: 700 17px/1.5 Vazirmatn, sans-serif; cursor: pointer; }
.elementor .sr-form button:hover { background: #F1E8E0; color: #2A1F1B; }
.elementor .sr-form button.is-primary { border-color: #8E3A1F; background: #8E3A1F; color: #FFFFFF; }
.elementor .sr-form button.is-primary:hover { border-color: #5E2412; background: #5E2412; color: #FFFFFF; }
.sr-form button svg { width: 22px; height: 22px; }
.sr-list { list-style: none; margin: 0; padding: 0; max-width: 880px; border-bottom: 1px solid #EBE1D8; }
.sr-list li { border-top: 1px solid #EBE1D8; padding: 24px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sr-type { min-height: 32px; padding: 0 14px; border-radius: 999px; background: #F1E8E0; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; }
.sr-list h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.6; }
.elementor .sr-list h2 a { min-height: 44px; display: inline-flex; align-items: center; color: #2A1F1B; }
.elementor .sr-list h2 a:hover { color: #8E3A1F; text-decoration: underline; text-underline-offset: 5px; }
.sr-list p { margin: 0; font-size: 17px; line-height: 1.9; color: #6A5A52; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.sr-list mark { background: none; color: #2A1F1B; font-weight: 800; }
.sr-results { display: flex; flex-direction: column; gap: 32px; }
.sr-pages ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.elementor .sr-pages .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1.5px solid #86766D; background: #FFFFFF; color: #2A1F1B; font-size: 17px; font-weight: 600; }
.elementor .sr-pages a.page-numbers:hover { border-color: #8E3A1F; }
.elementor .sr-pages .page-numbers.current { border-color: #8E3A1F; background: #8E3A1F; color: #FFFFFF; } /* brick like the site's other page links */
.elementor .sr-pages :is(.prev, .next).page-numbers { border: 0; background: none; padding: 0 8px; gap: 8px; color: #8E3A1F; font-weight: 700; }
.elementor .sr-pages :is(.prev, .next).page-numbers:hover { color: #5E2412; text-decoration: underline; text-underline-offset: 5px; }
.sr-empty { max-width: 880px; padding: 40px; border-radius: 28px; background: #F1E8E0; display: flex; flex-direction: column; gap: 20px; }
.sr-empty p { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.8; }
.sr-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.elementor .sr-pill { min-height: 44px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; white-space: nowrap; color: #2A1F1B; font-size: 16px; font-weight: 600; }
.elementor .sr-pill:hover { color: #2A1F1B; text-decoration: underline; text-underline-offset: 5px; }
.sr-pill--child { background: #F6E2D6; } .sr-pill--parenting { background: #E4ECE6; } .sr-pill--training { background: #EDE4F0; }
@media (max-width: 767px) {
  .sr { gap: 28px; }
  .sr-head h1 { font-size: 32px; }
  .sr-head h1 > svg { margin-top: 10px; }
  .elementor .sr-form button { width: 100%; }
  .sr-list p { -webkit-line-clamp: 2; }
  .sr-empty { padding: 24px; }
}
/* 404 page: the suggestion chips are ink text (Elementor gives links brick), underlined on hover, as in the 404 design. */
.elementor nav[aria-label="پیشنهادها"] a { color: #2A1F1B; }
.elementor nav[aria-label="پیشنهادها"] a:hover { color: #2A1F1B; text-decoration: underline; text-underline-offset: 5px; }

/* Header search ([pht_search_toggle], 13 Oct). Computers and tablets: a round outline magnifier in the bar (like the phone menu
   button), between the menu and the brick button; tablets put it next to the menu toggle. Phones: no room beside the brick
   button, so it hides and the menu's «جست‌وجو» row (menu item class menu-search) opens the popup instead. */
.elementor-location-header .elementor-widget-shortcode:has(.sr-open) { flex: none; width: auto; }
.elementor .sr-open { width: 48px; height: 48px; padding: 0; display: flex; align-items: center; justify-content: center; border: 1.5px solid #86766D; border-radius: 999px; background: #FFFFFF; color: #2A1F1B; cursor: pointer; }
.elementor .sr-open:hover { border-color: #8E3A1F; background: #FFFFFF; color: #8E3A1F; }
.sr-open svg { width: 24px; height: 24px; }
@media (max-width: 1024px) {
  .elementor-location-header .elementor-widget-shortcode:has(.sr-open) { order: 1; }
  .elementor .sr-open { width: 44px; height: 44px; }
}
/* Phones: only the button hides; the box stays rendered (out of the row) because the popup lives inside it. */
@media (max-width: 767px) { .elementor-location-header .elementor-widget-shortcode:has(.sr-open) { position: absolute; } .elementor .sr-open { display: none; } }
@media (min-width: 768px) { .elementor-location-header .menu-search { display: none !important; } }
/* 1025–1279: menu links 13 → 9 px each side, and the bar's gaps 36 → 16 px, so the magnifier fits on the one menu row (measured at 1032). */
@media (min-width: 1025px) and (max-width: 1439px) {
  .elementor-location-header .elementor-nav-menu--main .elementor-item { padding-inline: 9px; }
  .elementor-location-header .e-con:has(> .elementor-widget-shortcode .sr-open) { gap: 16px; } /* the bar's 36 px gaps, now two of them */
}

/* The popup: a white card under the header (a top sheet on phones, so the keyboard never covers the field), dark backdrop,
   page behind it locked. No padding on <dialog> itself: a click that lands on it is a click on the backdrop. */
.sr-dialog { width: min(640px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: 96px auto auto; padding: 0; border: 0; border-radius: 28px; background: #FFFFFF; color: #2A1F1B; box-shadow: 0 24px 64px rgba(42, 31, 27, .18); overscroll-behavior: contain; }
.sr-dialog::backdrop { background: rgba(42, 31, 27, .5); }
@media (min-width: 1025px) { .sr-dialog { margin-top: 124px; } } /* below the sand bar + header bar (110 px), not over it */
html:has(.sr-dialog[open]) { overflow: hidden; }
.sr-dialog-in { position: relative; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.sr-dialog .sr-form { max-width: none; }
.sr-dialog-hint { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: #6A5A52; }
.sr-dialog form[method="dialog"] { position: absolute; top: 20px; left: 20px; }
.elementor .sr-close { width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: #F1E8E0; color: #2A1F1B; cursor: pointer; }
.elementor .sr-close:hover { background: #EBE1D8; color: #2A1F1B; }
.sr-close svg { width: 22px; height: 22px; }
@media (max-width: 767px) {
  .sr-dialog { width: calc(100% - 16px); margin-top: 8px; }
  .sr-dialog-in { padding: 24px 20px; }
  .sr-dialog form[method="dialog"] { top: 12px; left: 12px; }
}

/* 404 page: the back-link slot ([pht_back_slot]) takes no room while empty; with the link it is one 44 px row at the top. */
.pht-back-slot:empty { display: none; }
@media (max-width: 767px) { .pht-back-slot { display: none; } } /* phones hide the link (system back), so the row goes too, or the column's gap stays */

/* Pillar hubs ([pht_hub], 13 Oct): the pillar's tint carries the header panel only (pastel = pillar), everything else is the site's
   usual page, sand and white. Frame, section headings, rows and grids come from the «مجله» page (.vp, .vp-sec, .mag-*). */
.hub--child { --tint: #F6E2D6; } .hub--parenting { --tint: #E4ECE6; } .hub--training { --tint: #EDE4F0; }
.hub { gap: 80px; }
.hub-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding: 40px 56px 48px; border-radius: 40px; background: var(--tint); }
.hub-head-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.hub-head h1 { margin: 0; display: flex; align-items: flex-start; gap: 12px; font-size: 48px; line-height: 1.4; text-wrap: balance; }
.hub-head h1 > svg { width: 26px; height: 26px; flex: none; margin-top: 20px; }
.hub-head p { margin: 0; max-width: 62ch; font-size: 19px; line-height: 1.9; }
.elementor .hub-cta { min-height: 56px; padding: 0 32px; margin-top: 6px; display: inline-flex; align-items: center; border-radius: 999px; background: #8E3A1F; color: #FFFFFF; font-size: 17px; font-weight: 700; }
.elementor .hub-cta:hover { background: #5E2412; color: #FFFFFF; }
.hub-photo { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; background: #F1E8E0; }
.hub-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-sub { margin: 0 0 14px; font-size: 17px; line-height: 1.9; color: #6A5A52; }
.hub-concerns { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px; align-items: start; }
.hub-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.elementor .hub-chip { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; background: #F1E8E0; color: #2A1F1B; font-size: 16px; font-weight: 600; white-space: nowrap; }
.elementor .hub-chip:hover { color: #2A1F1B; box-shadow: inset 0 0 0 1.5px #8E3A1F; }
.hub-callout { padding: 28px 32px; border: 1px solid #EBE1D8; border-radius: 28px; background: #FFFFFF; }
.hub-callout h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.6; }
.hub-callout p { margin: 0; font-size: 17px; line-height: 1.9; }
.hub-services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hub-svc { padding: 28px 32px; border: 1px solid #EBE1D8; border-radius: 28px; background: #FFFFFF; display: flex; flex-direction: column; gap: 10px; }
.hub-svc-ic { width: 56px; height: 56px; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #F1E8E0; color: #2A1F1B; }
.hub-svc-ic svg { width: 30px; height: 30px; }
.hub-svc h3 { margin: 0; font-size: 22px; line-height: 1.55; }
.hub-svc p { margin: 0; font-size: 17px; line-height: 1.9; }
.hub-svc .hub-note { margin-top: 6px; padding: 14px 18px; border-radius: 20px; background: #F1E8E0; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.85; }
.hub-note svg { width: 28px; height: 28px; flex: none; }
.hub-pracs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hub-ws { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hub-pracs > div, .hub-ws > div { display: flex; min-width: 0; }
.hub-pracs > div > *, .hub-ws > div > * { flex: 1; }
.hub-empty { margin: 0; padding: 24px 28px; border-radius: 28px; background: #F1E8E0; font-size: 18px; font-weight: 600; line-height: 1.8; }
@media (max-width: 1024px) {
  .hub-head { grid-template-columns: minmax(0, 1fr); padding: 32px 32px 40px; }
  .hub-photo { max-width: 520px; }
  .hub-concerns, .hub-pracs { grid-template-columns: minmax(0, 1fr); }
  .hub-ws { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .hub { gap: 56px; }
  .hub-head { padding: 24px 20px 28px; border-radius: 28px; gap: 24px; }
  .hub-head h1 { font-size: 32px; }
  .hub-head h1 > svg { margin-top: 12px; }
  .hub-head p { font-size: 17px; }
  .elementor .hub-cta { align-self: stretch; justify-content: center; }
  .hub-services, .hub-ws { grid-template-columns: minmax(0, 1fr); }
  .hub-svc, .hub-callout { padding: 24px 20px; }
}
/* Hub endings (13 Oct, Fatemeh: no copy of the homepage steps): FAQ, then the short sand panel from «تماس با ما»; training: a quiet link. */
.hub:not(.hub-end) { padding-bottom: 80px; } .hub-end { padding-top: 0; } /* the two parts read as one page: the same 80 px as between sections */
@media (max-width: 767px) { .hub:not(.hub-end) { padding-bottom: 56px; } }
.hub-book { padding: 56px 40px; border-radius: 40px; background: #F1E8E0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.elementor .hub-book h2 { margin: 0; font-size: 36px; line-height: 1.5; }
.hub-book > p { margin: 0; max-width: 56ch; font-size: 17px; line-height: 1.9; }
.elementor .hub-book .hub-cta { margin-top: 8px; align-self: center; }
.hub-phone { color: #6A5A52; font-size: 15px !important; }
.elementor .hub-phone a { min-height: 44px; display: inline-flex; align-items: center; color: #8E3A1F; font-weight: 700; }
.elementor .hub-phone a:hover { color: #5E2412; text-decoration: underline; text-underline-offset: 4px; }
/* Training hub: topic and approach tags (not links: sand, no hover), the certificate box, the courses anchor below the sticky header. */
.hub-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 960px; }
.hub-tags li { min-height: 44px; padding: 6px 18px; border-radius: 22px; background: #F1E8E0; display: flex; align-items: center; font-size: 16px; font-weight: 600; line-height: 1.7; }
.hub-certs { max-width: 880px; padding: 24px 28px; border-radius: 28px; background: #F1E8E0; display: flex; gap: 16px; align-items: flex-start; }
.hub-certs svg { width: 36px; height: 36px; flex: none; }
.hub-certs p { margin: 0; font-size: 17px; line-height: 1.9; }
#hub-courses { scroll-margin-top: 120px; }
@media (max-width: 767px) {
  .hub-book { padding: 40px 20px; border-radius: 28px; }
  .elementor .hub-book h2 { font-size: 28px; }
  .elementor .hub-book .hub-cta { align-self: stretch; }
  .hub-certs { padding: 20px; }
}
/* Workshop card (#267): the «گواهی: …» chip (element c3rt1f01, 13 Oct). Sand like the other non-pillar chips; gone when the
   workshop has no certificate (the field «گواهی» is empty, so the label is empty). */
.elementor [data-id="c3rt1f01"] { border-color: transparent; background: #F1E8E0; color: #2A1F1B; font-weight: 600; }
.elementor [data-id="c3rt1f01"]:empty { display: none; }
/* Concern pages ([pht_concern], 13 Oct): quieter than the hubs, no tinted panel. The article page's header; a reading column for the
   parent's sentence, the text, the signs (sand box, hand-drawn ticks in white circles) and «چه وقت کمک بگیریم؟»; the request card
   in white (the hubs' panel is sand). */
/* Concern pages ([pht_concern], 13 Oct; 2-column layout 19 Oct, Fatemeh; Photo 2) */
.cn > :is(.vp-sec, .cn-ask, .cn-rel) { margin-top: 32px; }
.cn-hero {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.elementor .cn-ill {
  position: relative;
  width: 208px;
  height: 176px;
  margin: 0;
  flex: none;
}
.cn-ill .pht-cn-blob { inset: 16px 0 0; background: var(--t1, #F6E2D6); }
.cn-ill.pillar-parenting .pht-cn-blob { background: var(--t2, #E4ECE6); }
.cn-ill.pillar-training .pht-cn-blob { background: var(--t3, #EDE4F0); }
.cn-ill img {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  height: 172px;
  width: auto;
  max-width: 204px;
  object-fit: contain;
  object-position: 50% 100%;
}
.cn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: start;
  width: 100%;
  max-width: 1200px;
  margin-top: 24px;
}
.cn-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 17px;
  line-height: 1.9;
}
.cn-quote { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.75; }
.cn-text > * { margin: 0 0 14px; }
.cn-text > :last-child { margin-bottom: 0; }

.cn-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 120px;
}
.cn-side .vp-sec { margin-top: 0; }
.cn-side .vp-sec h2 { font-size: 22px; margin-bottom: 12px; }
.cn-signs { list-style: none; margin: 0; padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; border-radius: 28px; background: #F1E8E0; }
.cn-signs li::before { background-color: #FFFFFF; }
.elementor .cn-when { margin: 0; }
.elementor .cn-when h2 { margin: 0 0 10px; font-size: 22px; font-weight: 800; line-height: 1.6; }

@media (max-width: 1024px) {
  .elementor .cn-ill { width: 172px; height: 146px; }
  .cn-ill img { height: 142px; max-width: 168px; }
  .cn-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .cn-side {
    position: static;
  }
}
@media (max-width: 767px) {
  .cn-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .elementor .cn-ill { width: 160px; height: 136px; margin-inline: auto; }
  .cn-ill img { height: 132px; max-width: 156px; }
  .cn > :is(.vp-sec, .cn-ask, .cn-rel) { margin-top: 24px; }
  .cn-quote { font-size: 20px; }
  .cn-signs { padding: 20px 18px; }
}
/* «مجوزهای مرکز» on «دربارهٔ ما» ([pht_licences], 15 Oct): white cards, 3 a row (2 on tablets, 1 on phones). The heading comes from
   .vp-sec; each logo shows whole in a 64 px box, else the hand-drawn seal on sand; «استعلام ←» is the «more» link (.mag-more). */
/* Elementor makes every jump smooth (html { scroll-behavior: smooth }). On a fresh page load that animation was cut off while the
   page settled, so a link to a section of another page (/درباره-ما/#licences) stayed at the top (found 15 Oct). Now a jump on load
   is instant; jumps after a click inside the page (focus is inside it) stay smooth. Reduced motion: never smooth (rule below). */
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
#licences { scroll-margin-top: 120px; } /* the homepage ribbon's link lands below the sticky header */
.lic-sec { gap: 28px; }
.lic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lic { padding: 24px; border: 1px solid #EBE1D8; border-radius: 28px; background: #FFFFFF; display: flex; gap: 16px; align-items: center; } /* name centred beside its mark, one line or two (17 Oct) */
.lic-logo { width: 64px; height: 64px; flex: none; display: flex; align-items: center; justify-content: center; }
/* Every mark sits in a circle (15 Oct): logos and the seal look like one set. White cards: sand circles; the ribbon and footer (sand): white. */
.lic-logo { border-radius: 50%; background: #F1E8E0; color: #2A1F1B; }
.lic-logo img { width: 70%; height: 70%; object-fit: contain; }
.lic-seal svg { width: 36px; height: 36px; }
.lic-text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.lic-text p { margin: 0; }
.lic-org { font-size: 17px; font-weight: 700; line-height: 1.8; }
.lic-num { font-size: 15px; line-height: 1.8; color: #6A5A52; }
@media (max-width: 1024px) { .lic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .lic-list { grid-template-columns: minmax(0, 1fr); }
  .lic { padding: 20px; }
}
/* The same permits on the homepage ribbon ([pht_licences look="strip"], on the ribbon's sand, so the seal sits on white) and in the
   footer ([pht_licences look="mini"], logos only). Every item links to the block above. Computers: equal cells across the row, like
   the old 4-cell ribbon; tablets: wrapped and centred; phones: one per line, on the right. Hover: the name turns brick, underlined. */
.lic-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; justify-items: center; }
.elementor .lic-strip-item { min-height: 44px; display: flex; align-items: center; gap: 12px; border-radius: 12px; color: #2A1F1B; font-size: 17px; font-weight: 600; line-height: 1.6; }
.elementor .lic-strip-item:hover { color: #2A1F1B; }
.elementor .lic-strip-item:hover .lic-strip-name { color: #8E3A1F; text-decoration: underline; text-underline-offset: 6px; }
.lic-strip-logo, .lic-mini-logo { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; }
.lic-strip-logo img, .lic-mini-logo img { width: 70%; height: 70%; object-fit: contain; }
.lic-strip-logo, .lic-mini-logo { border-radius: 50%; background: #FFFFFF; color: #2A1F1B; }
/* Ribbon and footer (Fatemeh, 15 Oct): the logos in one dark ink tone, like the hand-drawn seal; the About cards keep the colours.
   brightness(0) turns every visible part of the logo dark; the logo files have no white parts (checked), so the shape stays readable. */
.lic-strip-logo img, .lic-mini-logo img { filter: brightness(0); opacity: .85; }
.lic-strip-seal svg, .lic-mini-seal svg { width: 24px; height: 24px; }
.elementor .lic-mini { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; }
@media (max-width: 1024px) { .lic-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; } }
@media (max-width: 767px) { .lic-strip { flex-direction: column; align-items: flex-start; gap: 4px; } }
/* Homepage parent quote (section 5): the two leaves sit exactly on the tips of the frame's lines (Fatemeh, 14 Oct: they were off and
   small). The leaf drawing is 24 x 32 units with its stem base at (2.9, 28.4); Elementor drew its box 22 x 65 and centred the leaf in
   it, 17 px too low. Now the box has the drawing's own shape, the stem base is the turning point, and it lands on the tip: left line
   ends 56 % down the frame's left edge, right line 44 % down its right edge. --s = size (1.5 x the design's 22 px). */
.elementor [data-id="202922e7"], .elementor [data-id="2810daee"] { --s: 1.5; width: calc(24px * var(--s)); height: calc(32px * var(--s)); transform-origin: calc(2.9px * var(--s)) calc(28.4px * var(--s)); }
.elementor :is([data-id="202922e7"], [data-id="2810daee"]) svg { display: block; width: 100%; height: 100%; }
.elementor [data-id="202922e7"] { top: calc(56% - 28.4px * var(--s)); left: calc(-2.9px * var(--s)); right: auto; transform: rotate(200deg); }
.elementor [data-id="2810daee"] { top: calc(44% - 28.4px * var(--s)); left: calc(100% - 2.9px * var(--s)); right: auto; transform: rotate(-10deg); }
/* Phones (Fatemeh, 21 Oct): the leaves are mirrored so they point into the frame instead of off the screen. */
@media (max-width: 767px) { .elementor :is([data-id="202922e7"], [data-id="2810daee"]) { scale: -1 1; } }
/* Phones (Fatemeh, 14 Oct): the top bar comes back as a slim strip: the two numbers (tap to call) and a second magnifier for the same
   search popup (widget s3trip01, [pht_search_toggle only="button"]). The days and the three links stay in the menu (no room at
   360 px). Computers and tablets keep the bar's own magnifier, so the strip's one hides there. */
@media (min-width: 768px) { .elementor-location-header .elementor-element-s3trip01 { display: none; } }
@media (max-width: 767px) {
  .elementor-location-header [data-id="62487446"] { display: flex; }
  .elementor-location-header :is([data-id="1d90a68e"], [data-id="25dd397a"], [data-id="3a2232aa"], [data-id="cc2c0190"]) { display: none; }
  .elementor-location-header .elementor-widget-shortcode.elementor-element-s3trip01 { position: static; margin-right: auto; }
  .elementor-location-header [data-id="62487446"] { padding-inline: 16px; }
  /* The magnifier looks like the strip's other icons (no circle) but keeps a 44 px tap area, spilling over the 32 px strip like the
     numbers' tap areas do. */
  .elementor .elementor-element-s3trip01 .sr-open { display: flex; width: 44px; height: 44px; margin-block: -6px; border: 0; background: transparent; color: #2A1F1B; }
  .elementor .elementor-element-s3trip01 .sr-open:hover { background: transparent; color: #8E3A1F; }
  .elementor-element-s3trip01 .sr-open svg { width: 22px; height: 22px; }
  /* The strip scrolls away with the page and the white bar stays: the header sticks 32 px (the strip) above the top. With the admin
     bar (logged in, 601–767 px, where it is still fixed) the header stops just under it. */
  .elementor-location-header { top: calc(var(--wp-admin--admin-bar--height, 0px) - 32px); }
}
@media (max-width: 600px) { .elementor-location-header { top: -32px; } } /* the admin bar scrolls away here (see the rule at the top) */

/* Homepage booking steps (16 Oct): the family illustration pokes 5 px past the screen edge around 1030 px wide; clip it to the section (clip, not hidden, so nothing inside becomes a scroll box). */
.elementor [data-id="3cef62d1"] { overflow-x: clip; }

/* Workshop page «دربارهٔ این دوره» box (#323, rows in 17983866; 16 Oct): a row whose value is empty (no price, no time yet) is hidden, not shown as a bare label. */
.elementor [data-id="17983866"] > .e-con:has(> span:last-child:empty),
.elementor [data-id="3f81d1f7"] > .e-con:has(> span:last-child:empty) { display: none; } /* the same on the workshop card (#267, rows 3f81d1f7) */

/* Workshop page: the دوره's poster (`[pht_poster]`, widget p0st3r01 in #323; 16 Oct). Shown whole, narrow and centred (posters are
   portrait and full of text); the image links to the full-size file. */
.elementor [data-id="p0st3r01"] { align-self: stretch; }
/* centred from the wrapper: Elementor sets every figure's margin to 0 with a stronger selector */
.elementor [data-id="p0st3r01"] .elementor-shortcode { display: flex; justify-content: center; }
.ws-poster { width: 100%; max-width: 420px; text-align: center; }
.ws-poster a { display: block; border-radius: 28px; }
.ws-poster img { display: block; width: 100%; height: auto; border-radius: 28px; border: 1px solid #EBE1D8; }
.ws-poster figcaption { margin-top: 12px; font-size: 15px; color: #6A5A52; }

/* Concern pages (16 Oct): «منابع» under «پژوهش‌ها چه می‌گویند؟», small and numbered. */
.elementor .cn-src-h { margin: 20px 0 8px; font-size: 17px; font-weight: 700; }
.cn-src { list-style-type: persian; margin: 0; padding-right: 22px; font-size: 15px; line-height: 1.8; color: #6A5A52; }
.cn-src a { color: #35566B; }

/* Program photos (16 Oct, [pht_photos]): each thumbnail is a button opening the large photo in .ws-lightbox (pht-media.js 1.13.0). */
.ws-photos .ws-photo { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: none; cursor: zoom-in; }
.ws-photos .ws-photo:hover img { opacity: .88; }
/* The popup has no padding of its own, so a click outside the photo lands on the backdrop and closes it. */
.ws-lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible; }
.ws-lightbox::backdrop { background: rgba(42, 31, 27, .85); }
.ws-lightbox[open] { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } /* the photo spans both columns, so the box is as wide as the photo */
.ws-lightbox img { grid-column: 1 / -1; max-width: 100%; max-height: 78vh; width: auto; height: auto; justify-self: center; border-radius: 28px; }
.ws-lightbox .ws-lb-count { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 15px; color: #FAF6F2; }
.ws-lightbox .ws-lb-prev { justify-self: end; } /* «قبلی» right of centre, «بعدی» left of it (RTL) */
.ws-lightbox .ws-lb-next { justify-self: start; }
.elementor .ws-lightbox button, .ws-lightbox button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: #FFFFFF; color: #2A1F1B; font: 600 15px Vazirmatn, sans-serif; cursor: pointer; }
.elementor .ws-lightbox button:hover, .ws-lightbox button:hover { background: #F1E8E0; color: #2A1F1B; }
.elementor .ws-lightbox .ws-lb-close, .ws-lightbox .ws-lb-close { position: absolute; top: 12px; right: 12px; z-index: 1; } /* on the photo's top corner (start side) */

/* Earlier / newer runs of the same program (16 Oct, [pht_runs], widget r0ns0001 under the title chips). */
.ws-runs { margin-top: 4px; padding: 14px 18px; border-radius: 16px; background: #F1E8E0; font-size: 15px; line-height: 1.9; color: #6A5A52; }
.ws-runs p { margin: 0; }
.ws-runs ul { margin: 4px 0 0; padding-right: 20px; }
.ws-runs a { color: #8E3A1F; font-weight: 700; }
.ws-runs a:hover { color: #5E2412; }

/* Header 1025–1439 px (16 Oct): «دوره و کارگاه» is longer than «کارگاه‌ها»; 7 px instead of 9 px on each side of the menu items keeps
   the six items on one line (they needed 527 px of 522). !important: Elementor writes the item padding per widget. */
@media (min-width: 1025px) and (max-width: 1439px) {
  .elementor-location-header .elementor-nav-menu--main .elementor-item { padding-left: 7px !important; padding-right: 7px !important; }
}
/* 17 Oct: from 1440 px the items had 13 px at rest but Elementor's own `a:hover { padding: 13px 20px }` widened the hovered one,
   and the six items (575 of 575 px) wrapped «مجله» to a second line on hover. Same padding in every state, 12 px for spare room. */
@media (min-width: 1440px) {
  .elementor-location-header .elementor-nav-menu--main .elementor-item { padding-left: 12px !important; padding-right: 12px !important; }
}

/* Workshop page (#323; Fatemeh 19 + 20 Oct). Computers: two columns from the title row down. The side box «aside» (w5as1de0) holds
   the facts card (price, dates, the registration button) and, under it, the poster at its normal size; it starts level with the title
   and scrolls with the page (4 Nov: it used to stay pinned with the poster squeezed into the screen height, and a tall card, e.g. a
   long address, left the poster 2 px high, i.e. gone). The body box (27f4dfeb) lends its sections to the page grid (display: contents); photos, FAQ and related
   programmes take the full width below. Tablets and phones: one column, the card right under the title, the poster after «مدرس»
   (content first, 17 Oct). */
@media (min-width: 1025px) {
  .elementor [data-id="28a54cb8"] { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 72px; align-items: start; }
  .elementor [data-id="28a54cb8"] > * { grid-column: 1; }
  .elementor [data-id="28a54cb8"] > :is([data-id="13e7620a"], [data-id="d1a0g01"]) { grid-column: 1 / -1; }
  .elementor [data-id="27f4dfeb"] { display: contents; }
  .elementor [data-id="27f4dfeb"] > * { grid-column: 1; margin-top: 72px; }
  .elementor [data-id="27f4dfeb"] > [data-id="w5as1de0"] { grid-column: 2; grid-row: 2 / span 5; margin-top: 0; display: flex; flex-direction: column; gap: 24px; }
  .elementor [data-id="27f4dfeb"] > :is([data-id="2b981861"], [data-id="852a783"], [data-id="3d6fdca7"]) { grid-column: 1 / -1; }
  .elementor [data-id="w5as1de0"] > * { flex: none; }
  .elementor [data-id="p0st3r01"] .ws-poster { max-width: 380px; margin: 0; }
}
@media (max-width: 1024px) {
  .elementor [data-id="w5as1de0"] { display: contents; }
  .elementor [data-id="p0st3r01"] { order: 1; }
  .elementor [data-id="27f4dfeb"] > :is([data-id="2b981861"], [data-id="852a783"], [data-id="3d6fdca7"]) { order: 2; }
}
.ws-poster a { transition: box-shadow .2s ease; }
.ws-poster a:hover { box-shadow: 0 12px 32px rgba(42, 31, 27, .14); }
@media (prefers-reduced-motion: reduce) { .ws-poster a { transition: none; } }

/* Trust pages (17 Oct): «حریم خصوصی» #805, «قوانین و شرایط» #806, «لغو و جابه‌جایی نوبت» #807, «استانداردهای محتوا» #808 are plain
   WordPress pages (text in the editor, no Elementor); this gives them the inner-page look: right-aligned H1 with the small leaf,
   a reading column, the update line small, the «نمونه» note in a sand box. */
body:is(.page-id-805, .page-id-806, .page-id-807, .page-id-808) .site-main { max-width: 1232px; margin: 0 auto; padding: 56px 16px 96px; }
body:is(.page-id-805, .page-id-806, .page-id-807, .page-id-808) .page-header .entry-title { margin: 0 0 12px; font-size: 48px; font-weight: 800; line-height: 1.4; }
body:is(.page-id-805, .page-id-806, .page-id-807, .page-id-808) .page-header .entry-title::before { content: ""; display: block; width: 22px; height: 30px; margin-bottom: 12px; background: url("/wp-content/uploads/2026/10/leaf-09.svg") center / contain no-repeat; }
body:is(.page-id-805, .page-id-806, .page-id-807, .page-id-808) .page-content { font-size: 17px; line-height: 1.9; color: #2A1F1B; }
body:is(.page-id-805, .page-id-806, .page-id-807, .page-id-808) .page-content h2 { margin: 44px 0 10px; font-size: 24px; font-weight: 800; line-height: 1.6; }
body:is(.page-id-805, .page-id-806, .page-id-807, .page-id-808) .page-content p { margin: 0 0 14px; }
body:is(.page-id-805, .page-id-806, .page-id-807, .page-id-808) .page-content ul { margin: 0 0 14px; padding-right: 22px; }
body:is(.page-id-805, .page-id-806, .page-id-807, .page-id-808) .page-content li { margin-bottom: 6px; }
.page-content .doc-updated { font-size: 15px; color: #6A5A52; }
.page-content .doc-note { padding: 14px 20px; border-radius: 16px; background: #F1E8E0; font-size: 15px; color: #2A1F1B; }
@media (max-width: 767px) {
  body:is(.page-id-805, .page-id-806, .page-id-807, .page-id-808) .site-main { padding-top: 32px; padding-bottom: 64px; }
  body:is(.page-id-805, .page-id-806, .page-id-807, .page-id-808) .page-header .entry-title { font-size: 32px; }
  body:is(.page-id-805, .page-id-806, .page-id-807, .page-id-808) .page-content h2 { font-size: 20px; margin-top: 36px; }
}

/* «دربارهٔ ما», «آموزش‌های تخصصی ویژه روان‌شناسان»: a photo of a training class under the text fills the empty right column (Fatemeh, 17 Oct). */
/* The photo grows to the height of the left column (no empty space under the certificate box), cropped a little tighter (Fatemeh, 17 Oct). */
.elementor [data-id="tr4in1mg"] { display: block; width: 100%; flex: 1 1 0; min-height: 240px; height: auto; object-fit: cover; object-position: 50% 45%; border-radius: 28px; margin-top: 8px; }
.elementor [data-id="3c6559fd"] { align-self: stretch; } /* the right column takes the row's full height, so the photo can fill it */
@media (max-width: 1024px) { .elementor [data-id="tr4in1mg"] { flex: none; aspect-ratio: 4 / 3; min-height: 0; } } /* stacked: its own shape */

/* «مجله» video tab: the grid of all videos, like «مقاله» and «پادکست» (17 Oct); each card fills its cell. */
.mag-arts > div > * { flex: 1; min-width: 0; }
.mag-vids .media-kind { flex-wrap: wrap; row-gap: 8px; } /* tablet (2 columns): the pillar chip drops under the icon instead of spilling out */

/* Practitioner profile (Template #294, 18 Oct) */
@media (min-width: 1025px) {
  .elementor [data-id="70fb1962"] {
    position: sticky;
    top: 120px;
    align-self: start;
  }
}

/* Practitioner media rows: videos, podcasts, articles in carousel rows with arrows (final-Magazine style) */
.prac-media-wrap { display: flex; flex-direction: column; gap: 56px; margin-top: 48px; }
.prac-media-sec { display: flex; flex-direction: column; gap: 18px; }
.elementor .prac-media-sec .mag-sec-head h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 36px; font-weight: 800; line-height: 1.45; color: #2A1F1B; }
.elementor .prac-media-sec .mag-sec-head h2 svg { width: 24px; height: 24px; flex: none; }

@media (max-width: 767px) {
  .prac-media-wrap { gap: 40px; margin-top: 36px; }
  .elementor .prac-media-sec .mag-sec-head h2 { font-size: 26px; }
}

/* Loop Grids on Practitioner (/مشاوران/), Workshop (/کارگاه‌ها/) lists, and Homepage workshops:
   Smart centering for incomplete rows (1 or 2 items centered, 3 items full grid) */
@media (min-width: 1025px) {
  :is(.elementor-element-a1b2c31, .elementor-element-w0g1a01, .elementor-element-c660c70, .wk-loop) .elementor-loop-container {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }
  :is(.elementor-element-a1b2c31, .elementor-element-w0g1a01, .elementor-element-c660c70, .wk-loop) .elementor-loop-container > .e-loop-item {
    flex: 0 0 calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
    width: calc((100% - 48px) / 3);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  :is(.elementor-element-a1b2c31, .elementor-element-w0g1a01, .elementor-element-c660c70, .wk-loop) .elementor-loop-container {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }
  :is(.elementor-element-a1b2c31, .elementor-element-w0g1a01, .elementor-element-c660c70, .wk-loop) .elementor-loop-container > .e-loop-item {
    flex: 0 0 calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
    width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 767px) {
  :is(.elementor-element-a1b2c31, .elementor-element-w0g1a01, .elementor-element-c660c70, .wk-loop) .elementor-loop-container {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  :is(.elementor-element-a1b2c31, .elementor-element-w0g1a01, .elementor-element-c660c70, .wk-loop) .elementor-loop-container > .e-loop-item {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
}

/* --- Homepage Concern Mosaic Grid ([pht_home_concerns]) --- */
.pht-home-concerns {
  display: grid;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "a a b c"
    "a a e e"
    "f g e e";
  grid-auto-rows: minmax(220px, auto);
}

.pht-cn-tile[hidden] { display: none; } /* 7 of the 13 wait hidden; pht-media.js picks the 6 shown */
.pht-cn-tile {
  position: relative;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #EBE1D8);
  border-radius: var(--r-card, 28px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink, #2A1F1B);
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.pht-cn-tile:hover {
  text-decoration: none;
  box-shadow: inset 0 0 0 2px var(--acc, #8E3A1F);
}

.pht-cn-tile:focus-visible {
  outline: 3px solid var(--focus, #35566B);
  outline-offset: 3px;
}

.pht-cn-tile--big {
  padding: 28px;
  min-height: 440px;
}

.pht-cn-arrow {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--acc, #8E3A1F);
  color: var(--acc, #8E3A1F);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.pht-cn-tile:hover .pht-cn-arrow {
  background: var(--acc, #8E3A1F);
  color: #fff;
}

.pht-cn-quote {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.65;
  padding-left: 48px;
  text-wrap: pretty;
  color: var(--ink, #2A1F1B);
}

.pht-cn-tile--big .pht-cn-quote {
  font-size: clamp(22px, 2vw, 24px);
}

.pht-cn-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--muted, #6A5A52);
}

.pht-cn-ill {
  margin-top: auto;
  align-self: flex-end;
  position: relative;
  width: 104px;
  height: 84px;
  flex: none;
}

.pht-cn-ill--big {
  width: 240px;
  height: 200px;
}

.pht-cn-blob {
  position: absolute;
  inset: 0;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
}

.pht-cn-ill img {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  height: 100px;
  width: auto;
  max-width: 116px;
  object-fit: contain;
  object-position: 50% 100%;
}

.pht-cn-ill--big img {
  height: 244px;
  max-width: 256px;
}

/* Tablet (≤ 1180px) */
@media (max-width: 1180px) {
  .pht-home-concerns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "a a"
      "b c"
      "e e"
      "f g";
  }
}

/* Mobile (≤ 760px) */
@media (max-width: 760px) {
  .pht-home-concerns {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "a"
      "b"
      "c"
      "e"
      "f"
      "g";
  }
  .pht-cn-tile--big {
    min-height: auto;
  }
  .pht-cn-tile {
    padding: 20px;
  }
  .pht-cn-quote {
    font-size: 18px;
    padding-left: 40px;
  }
  .pht-cn-ill--big {
    width: 140px;
    height: 110px;
  }
  .pht-cn-ill--big img {
    height: 130px;
    max-width: 150px;
  }
}

/* Homepage «مسیر نوبت‌دهی» illustration (element s9-ill, 20 Oct): on laptops (1025–1279 px) the heading comes close, so the picture
   is smaller there and still ends 12 px above the steps line. Its size on wider screens is set in Elementor (400 × 227). */
@media (min-width: 1025px) and (max-width: 1279px) {
  .elementor [data-id="19855a00"] { --w: min(300px, 50vw - 240px); width: var(--w); height: calc(var(--w) * .5675); inset-block-start: calc(var(--w) * -.5675 - 12px); }
}

/* Practitioner page (#294, 20 Oct). The two shortcode boxes fill their containers (they had shrunk to their content: «مشاوران دیگر»
   got 661 of 1200 px and squeezed each card's name to one letter a line). */
.elementor :is([data-id="pht_other_pracs_con"], [data-id="pht_prac_media_con"]) > .elementor-widget { flex: 1 1 100%; min-width: 0; }
.prac-others-sec .mag-row { justify-content: safe center; } /* one other practitioner today: centred, not stuck to the right */
/* Episode and article rows: two whole cards in view (no half-cut third card); phones keep the magazine width. */
.prac-media-sec .mag-row > div { flex-basis: calc((100% - 20px) / 2); }
/* Videos: the approved design's tall tiles (final-Practitioners): the 9:16 poster with the white play button and the duration, the
   title under it; no white card, no chip, no «ویدیوی کوتاه، دکتر …» (it is this practitioner's page). */
.prac-media-vids .mag-row > div { flex-basis: 200px; }
.prac-media-vids .media-vid { flex-direction: column; gap: 10px; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 24px; }
.prac-media-vids .media-vid:hover { box-shadow: none; }
.prac-media-vids .media-poster { width: 100%; border-radius: 24px; background: #2A1F1B; }
.prac-media-vids .media-poster-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; box-shadow: 0 6px 18px rgba(42, 31, 27, .25); }
.prac-media-vids .media-poster-play svg { width: 26px; height: 26px; }
.prac-media-vids .media-dur { left: 12px; bottom: 12px; }
.prac-media-vids .media-vid-body { padding: 0 4px; gap: 0; }
.prac-media-vids :is(.media-kind, .media-vid-body > p) { display: none; }
.elementor .prac-media-vids .media-vid h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.6; }
.prac-media-vids .media-vid:hover h3 a { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 767px) {
  .prac-media-sec .mag-row > div { flex-basis: min(330px, 88vw); }
  .prac-media-vids .mag-row > div { flex-basis: 44vw; } /* two tiles in view */
}

/* Article (20 Oct, Fatemeh): «موضوع‌ها» and «هم‌رسانی» sit in the empty column beside «منابع» on computers, as a quiet side box;
   without sources they keep the full width; tablets and phones: under the sources, as before. */
@media (min-width: 1025px) {
  .art-src-row { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 64px; align-items: start; }
  .art-src-row > .art-foot:only-child { grid-column: 1 / -1; }
  .art-src-row > .art-src + .art-foot { flex-direction: column; gap: 24px; margin-top: 64px; padding: 24px; border: 1px solid #EBE1D8; border-radius: 28px; background: #FFFFFF; }
}

/* «علت مراجعه» (form #1, 20 Oct): the box reads like the other fields (17 px, four lines); Gravity Forms' «0 از 300 کاراکتر مجاز»
   counter is hidden (Latin digits, small type); the browser itself stops at 300 characters (maxlength). */
.gform_wrapper.gform-theme form.pht-form textarea { font-size: 17px; line-height: 1.9; min-height: 0; height: calc(4 * 1.9em + 24px); resize: vertical; }
.gform_wrapper form.pht-form .ginput_counter { display: none; }

/* Form #1 confirmation (20 Oct; final-Forms «ارسال‌شده»): the family-session illustration, «درخواستتان رسید.», the call-back line,
   the emergency numbers in a quiet sand note, two ways on. The heading takes focus after sending (pht-forms.js). */
.pht-sent { padding: 8px 0 16px; }
.pht-sent > img { width: 100%; max-width: 340px; height: auto; display: block; }
.pht-sent h2:focus { outline: none; }
.pht-sent h2:focus-visible { outline: 3px solid #35566B; outline-offset: 3px; }
.pht-sent .pht-sent-sos { padding: 10px 18px; border-radius: 16px; background: #F1E8E0; font-size: 15px; color: #2A1F1B; }
.elementor .pht-sent .pht-sent-sos a { min-height: 0; display: inline; font-weight: 700; color: #8E3A1F; }
.pht-sent .pht-sent-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.elementor .pht-sent .pht-sent-links a { font-size: 17px; font-weight: 700; color: #8E3A1F; }
.elementor .pht-sent .pht-sent-links a:hover { color: #5E2412; text-decoration: underline; text-underline-offset: 6px; }

/* Review 20 Oct, touch targets (rule: 44 × 44 px). The emergency numbers in the form's urgent line and in the confirmation are the
   ones someone in distress taps first; the logo link on phones was 40 × 40. Look unchanged, only the tap area grows. */
.gform_wrapper form.pht-form .gfield_description a[href^="tel:"], .pht-sent .pht-sent-sos a[href^="tel:"] { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-block: -10px; }
@media (max-width: 767px) { .elementor-location-header .elementor-element-5ae41524 a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; } }

/* Card grids (related rows on video, episode and article pages, «مجله» lists): a row that isn't full is centred, the cards keep
   the width of a full row (Fatemeh's rule for incomplete rows, 19 Oct; review 20 Oct). 3 a row on computers, 2 on tablets, 1 on phones. */
.mag-arts { display: flex; flex-wrap: wrap; justify-content: center; }
.mag-arts > div { flex: 0 0 calc((100% - 48px) / 3); }
@media (max-width: 1024px) { .mag-arts > div { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 767px) { .mag-arts > div { flex-basis: 100%; } }

/* Trust pages (20 Oct, Fatemeh: the text sat on the right, the left was empty). Computers: the text (72ch) on the right, a sticky
   side box on the left: «در این صفحه» (the page's sections, as on an article) and a way to ask. Tablets and phones: the text only. */
.doc-main { min-width: 0; max-width: 72ch; }
.doc-main h2 { scroll-margin-top: 120px; }
.doc-side { display: none; }
@media (min-width: 1025px) {
  .doc-layout { display: grid; grid-template-columns: minmax(0, 72ch) 300px; justify-content: space-between; column-gap: 64px; align-items: start; }
  .doc-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 120px; }
}
.doc-side .art-toc { position: static; }
body:is(.page-id-805, .page-id-806, .page-id-807, .page-id-808) .page-content .doc-side h2 { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.6; color: #6A5A52; }
.page-content .doc-side li { margin: 0; }
.doc-side .art-toc a { min-height: 44px; padding: 6px 14px 6px 0; display: flex; align-items: center; border-right: 3px solid #EBE1D8; color: #2A1F1B; font-size: 16px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.doc-side .art-toc a:hover { color: #8E3A1F; border-right-color: #8E3A1F; text-decoration: underline; text-underline-offset: 4px; }
.doc-side a:focus-visible { outline: 3px solid #35566B; outline-offset: 3px; }
.doc-ask { margin: 0; padding: 14px 20px; border-radius: 20px; background: #F1E8E0; font-size: 15px; line-height: 1.8; color: #2A1F1B; }
.doc-ask a { min-height: 44px; display: inline-flex; align-items: center; color: #8E3A1F; font-weight: 700; text-decoration: none; }
.doc-ask a:hover { color: #5E2412; text-decoration: underline; text-underline-offset: 4px; }
