/* pa-academy-custom header — PHP 7.4, no Elementor.
   Brand: #A40B0A, font iransans_web (same files as pouyaandish.com).
   Off by default; live only after the Pouya theme require + PA_ACADEMY_CUSTOM_ON.
   Rollback: disable the constant/option, restore Elementor header 17699, clear cache.
   Fonts are self-hosted in this folder so academy does not depend on CORS from .com. */

@font-face {
  font-family: iransans_web;
  src: url("IRANSansWeb.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: iransans_web;
  src: url("IRANSansWeb_Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html.pa-ac-on,
html.pa-ac-on *,
html.pa-ac-on *::before,
html.pa-ac-on *::after { box-sizing: border-box; }
html.pa-ac-on { overflow-x: hidden; }

html.pa-ac-on,
body.pa-ac-on {
  --pa-ac-red: #A40B0A;
  --pa-ac-rd: #7a0807;
  --pa-ac-rs: #F8EAEA;
  --pa-ac-ink: #1F1F1F;
  --pa-ac-paper: #FAF8F5;
  --pa-ac-mut: #5f5954;
  --pa-ac-line: rgba(31, 31, 31, 0.09);
  --pa-ac-util: 32px;
  --pa-ac-main: 56px;
  --pa-ac-adm: 0px;
  --pa-ac-h: calc(var(--pa-ac-util) + var(--pa-ac-main));
  --pa-ac-e: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 1024px) {
  html.pa-ac-on,
  body.pa-ac-on {
    --pa-ac-util: 0px;
    --pa-ac-main: 72px;
  }
}
body.admin-bar { --pa-ac-adm: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar { --pa-ac-adm: 46px; }
}

html.pa-ac-on body,
body.pa-ac-on {
  padding-top: calc(var(--pa-ac-h) + var(--pa-ac-adm)) !important;
  font-family: iransans_web, Tahoma, sans-serif;
}

/* Guard: never show the old Elementor header or Hello default header next to this one. */
html.pa-ac-on .elementor-location-header[data-elementor-id="17699"],
html.pa-ac-on header.elementor-location-header,
html.pa-ac-on > body > #site-header.site-header,
html.pa-ac-on .site-header#site-header {
  display: none !important;
}

#pa-ac-hdr {
  position: relative;
  z-index: 9990;
  font-family: iransans_web, Tahoma, sans-serif;
  color: var(--pa-ac-ink);
  direction: rtl;
  text-align: start;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#pa-ac-hdr *,
#pa-ac-hdr *::before,
#pa-ac-hdr *::after { box-sizing: border-box; }
#pa-ac-hdr a {
  color: inherit;
  text-decoration: none;
}
#pa-ac-hdr a:hover { color: var(--pa-ac-red); }
#pa-ac-hdr ul { list-style: none; margin: 0; padding: 0; }
#pa-ac-hdr button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
#pa-ac-hdr .pa-ac-i {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#pa-ac-hdr .pa-ac-skip {
  position: absolute;
  inset-inline-start: 8px;
  top: -48px;
  z-index: 2;
  background: var(--pa-ac-red);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}
#pa-ac-hdr .pa-ac-skip:focus {
  top: 8px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

#pa-ac-hdr .pa-ac-shell {
  position: fixed;
  top: var(--pa-ac-adm);
  right: 0;
  left: 0;
  z-index: 9990;
  background: #fff;
  box-shadow: 0 1px 0 var(--pa-ac-line);
}

/* Slim utility row (mobile only): back link + official phone. Not a tall promo bar. */
#pa-ac-hdr .pa-ac-util {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--pa-ac-util);
  padding: 0 14px;
  background: var(--pa-ac-paper);
  border-bottom: 1px solid var(--pa-ac-line);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}
#pa-ac-hdr .pa-ac-util .pa-ac-back { color: var(--pa-ac-ink); }
#pa-ac-hdr .pa-ac-util .pa-ac-tel {
  color: var(--pa-ac-red);
  direction: ltr;
  unicode-bidi: isolate;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@media (min-width: 1024px) {
  #pa-ac-hdr .pa-ac-util { display: none; }
}

#pa-ac-hdr .pa-ac-main { height: var(--pa-ac-main); background: #fff; }
#pa-ac-hdr .pa-ac-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

#pa-ac-hdr .pa-ac-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  min-height: 48px;
  flex: none;
  border-radius: 10px;
  color: var(--pa-ac-ink);
}
#pa-ac-hdr .pa-ac-menu-btn span { font-size: 13px; font-weight: 700; }
#pa-ac-hdr .pa-ac-menu-btn:hover,
#pa-ac-hdr .pa-ac-menu-btn:focus-visible {
  color: var(--pa-ac-red);
  background: var(--pa-ac-rs);
  outline: none;
}
@media (min-width: 1024px) {
  #pa-ac-hdr .pa-ac-menu-btn { display: none; }
}

#pa-ac-hdr .pa-ac-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-inline-end: auto;
  height: 48px;
  color: var(--pa-ac-ink) !important;
}
#pa-ac-hdr .pa-ac-logo img {
  width: 40px;
  height: 40px;
  flex: none;
  display: block;
  object-fit: contain;
}
#pa-ac-hdr .pa-ac-word {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
#pa-ac-hdr .pa-ac-word b {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 1024px) {
  #pa-ac-hdr .pa-ac-logo { margin-inline-end: 16px; height: 56px; }
  #pa-ac-hdr .pa-ac-logo img { width: 48px; height: 48px; }
  #pa-ac-hdr .pa-ac-word b { font-size: 16px; }
}

#pa-ac-hdr .pa-ac-nav { display: none; }
@media (min-width: 1024px) {
  #pa-ac-hdr .pa-ac-nav { display: block; }
  #pa-ac-hdr .pa-ac-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
  }
  #pa-ac-hdr .pa-ac-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
  }
  #pa-ac-hdr .pa-ac-nav a:hover,
  #pa-ac-hdr .pa-ac-nav a[aria-current="page"] {
    color: var(--pa-ac-red);
    background: var(--pa-ac-rs);
  }
}

#pa-ac-hdr .pa-ac-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
  margin-inline-start: 4px;
}
#pa-ac-hdr .pa-ac-actions .pa-ac-back,
#pa-ac-hdr .pa-ac-actions .pa-ac-tel { display: none; }
@media (min-width: 1024px) {
  #pa-ac-hdr .pa-ac-actions { gap: 8px; margin-inline-start: auto; }
  #pa-ac-hdr .pa-ac-actions .pa-ac-back,
  #pa-ac-hdr .pa-ac-actions .pa-ac-tel {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }
  #pa-ac-hdr .pa-ac-actions .pa-ac-tel {
    color: var(--pa-ac-red);
    direction: ltr;
    unicode-bidi: isolate;
  }
}

#pa-ac-hdr .pa-ac-cart,
#pa-ac-hdr .pa-ac-acc {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pa-ac-ink);
}
#pa-ac-hdr .pa-ac-cart:hover,
#pa-ac-hdr .pa-ac-acc:hover,
#pa-ac-hdr .pa-ac-cart:focus-visible,
#pa-ac-hdr .pa-ac-acc:focus-visible {
  color: var(--pa-ac-red);
  background: var(--pa-ac-rs);
  outline: none;
}
#pa-ac-hdr .pa-ac-acc {
  background: var(--pa-ac-red);
  color: #fff !important;
  padding: 0 12px;
}
#pa-ac-hdr .pa-ac-acc:hover,
#pa-ac-hdr .pa-ac-acc:focus-visible {
  background: var(--pa-ac-rd);
  color: #fff !important;
}
#pa-ac-hdr .pa-ac-acc .pa-ac-i { stroke: #fff; }
#pa-ac-hdr .pa-ac-count {
  position: absolute;
  top: 4px;
  inset-inline-end: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pa-ac-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
#pa-ac-hdr .pa-ac-count[hidden] { display: none !important; }

/* Mobile drawer: one menu only. */
#pa-ac-hdr .pa-ac-drawer[hidden] { display: none !important; }
#pa-ac-hdr .pa-ac-drawer {
  position: fixed;
  inset: 0;
  z-index: 9991;
}
#pa-ac-hdr .pa-ac-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 31, 0.45);
}
#pa-ac-hdr .pa-ac-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(360px, 88vw);
  background: #fff;
  box-shadow: 0 0 40px rgba(31, 31, 31, 0.18);
  display: flex;
  flex-direction: column;
  padding: 12px 16px 24px;
  overflow: auto;
}
#pa-ac-hdr .pa-ac-panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}
#pa-ac-hdr .pa-ac-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
#pa-ac-hdr .pa-ac-close:hover,
#pa-ac-hdr .pa-ac-close:focus-visible {
  color: var(--pa-ac-red);
  background: var(--pa-ac-rs);
  outline: none;
}
#pa-ac-hdr .pa-ac-drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid var(--pa-ac-line);
}
#pa-ac-hdr .pa-ac-drawer-nav a[aria-current="page"],
#pa-ac-hdr .pa-ac-drawer-nav a:hover {
  color: var(--pa-ac-red);
  background: var(--pa-ac-rs);
}
#pa-ac-hdr .pa-ac-panel-f {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#pa-ac-hdr .pa-ac-panel-f a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid var(--pa-ac-line);
}
#pa-ac-hdr .pa-ac-panel-f .pa-ac-tel {
  background: var(--pa-ac-red);
  color: #fff !important;
  border-color: var(--pa-ac-red);
  direction: ltr;
  unicode-bidi: isolate;
}

html.pa-ac-lock,
html.pa-ac-lock body { overflow: hidden; }

#pa-ac-hdr a:focus-visible,
#pa-ac-hdr button:focus-visible {
  outline: 2px solid var(--pa-ac-red);
  outline-offset: 2px;
}

/* Akash 1.4.8.9.17-pa: while the mobile drawer is open, hide academy_lite's WhatsApp float
   (same z-index 9990, printed later in the footer, so it would sit on top of the backdrop).
   Its position (left 30px, bottom 96/100px) is unchanged. */
html.pa-ac-lock .aks-al-wa { display: none !important; }

/* ===== Akash 1.4.8.9.21-pa (2026-11-23): live-header fixes from the academy designer, appended verbatim from
   /workspace/academy-redesign/header-live-fixes/header-live-fixes.css. Rollback: Akash 1.4.8.9.20-pa. ===== */
/* اصلاح‌های هدر زنده آکادمی — ۲ آذر ۱۴۰۵
   این فایل را به انتهای modules/academy_lite/assets/header/header.css اضافه کن.
   بعد کش WP Rocket را پاک کن. به functions.php چیزی اضافه نکن. */

/* ۱) حاشیهٔ پیش‌فرض مرورگر روی body (۸ پیکسل) فاصلهٔ اضافه می‌ساخت. */
html.pa-ac-on body,
body.pa-ac-on {
  margin: 0 !important;
}

/* ۲) فاصلهٔ سفید زیر هدر: فاصله‌گذار المنتور 6df099e (و بخش 8bd3f43 که فقط همین را دارد)
   برای رد شدن از هدر قدیمی و بلند صفحهٔ اصلی گذاشته شده بود. الان padding-top خود هدر کافی است. */
html.pa-ac-on .elementor-element-8bd3f43,
html.pa-ac-on .elementor-element-6df099e {
  display: none !important;
}

/* ۳) ویجت شورت‌کد خام woostory در صفحهٔ اصلی. همکار فنی شورت‌کد خالی هم ثبت می‌کند؛
   این قانون جعبهٔ خالی را هم برمی‌دارد. */
html.pa-ac-on .elementor-element-4154a3a {
  display: none !important;
}

/* ۴) وقتی منوی موبایل باز است (کلاس pa-ac-lock روی html)، دکمهٔ گرد سبد (Cart All in One)
   مثل دکمهٔ واتساپ پنهان شود تا روی کشوی منو نماند. */
html.pa-ac-lock .vi-wcaio-sidebar-cart-icon-wrap,
html.pa-ac-lock .vi-wcaio-sidebar-cart {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ۵) در موبایل، برچسب «سبد» کنار آیکون پنهان شود تا نام کامل «آکادمی پویا اندیش» جا شود. */
@media (max-width: 1023px) {
  #pa-ac-hdr .pa-ac-cart-lbl {
    display: none;
  }
  #pa-ac-hdr .pa-ac-word b {
    font-size: 13px;
  }
}

/* ===== Akash 1.4.8.9.22-pa (2026-11-23): second live-header fix from the academy designer, appended verbatim from
   /workspace/academy-redesign/header-live-fixes/header-live-fixes-22.css. Rollback: Akash 1.4.8.9.21-pa. ===== */
/* اصلاح‌های هدر زنده آکادمی — ادامه، ۲ آذر ۱۴۰۵ (بعد از 1.4.8.9.21-pa)
   این فایل را به انتهای modules/academy_lite/assets/header/header.css اضافه کن.
   بعد کش WP Rocket را پاک کن. به functions.php چیزی اضافه نکن. */

/* ۶) وقتی منوی موبایل باز است (html.pa-ac-lock)، ویجت گفتینو پنهان شود.
   آی‌فریم #goftino_w با z-index حدود ۲ میلیارد روی کشوی منو (z-index ۹۹۹۱) می‌نشیند
   و آواتار روی دکمهٔ تلفن پایین پنل می‌افتد. */
html.pa-ac-lock #goftino_w,
html.pa-ac-lock iframe[id^="goftino"],
html.pa-ac-lock [id^="goftino"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ۷) نقطهٔ احتمالی زیر عنوان «منو»: آیتم‌های کشو در <ul><li> هستند؛
   list-style روی ul از قبل none است، اما li هنوز display:list-item دارد
   و ::marker در برخی مرورگرها ممکن است یک نقطهٔ کوچک کنار/زیر عنوان بسازد.
   با block کردن li، جعبهٔ marker برداشته می‌شود. */
#pa-ac-hdr .pa-ac-drawer-nav ul,
#pa-ac-hdr .pa-ac-drawer-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}
#pa-ac-hdr .pa-ac-drawer-nav li {
  display: block;
}
#pa-ac-hdr .pa-ac-drawer-nav li::marker {
  content: none;
  display: none;
}
