/* Koorosh Academy staging: copied Persian News footer + scoped typography.
   No edits to English pages or the canonical Persian News page. */

body.ka-pl-typography .entry-content .elementor-widget-heading .elementor-heading-title,
body.ka-pl-typography .entry-content .elementor-widget-text-editor,
body.ka-pl-typography .entry-content .elementor-widget-text-editor p,
body.ka-pl-typography .entry-content .elementor-widget-text-editor li,
body.ka-pl-typography .entry-content .elementor-widget-text-editor span,
body.ka-pl-typography .entry-content .elementor-widget-button .elementor-button-text {
  font-family: "Vazirmatn", Tahoma, sans-serif !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
}
body.ka-pl-typography .entry-content .elementor-widget-text-editor {
  direction: rtl;
  line-height: 1.9 !important;
  font-size: 15.5px !important;
}
body.ka-pl-typography .entry-content .elementor-widget-text-editor :is(p, li) {
  font-size: 15.5px !important;
  line-height: 1.9 !important;
  overflow-wrap: break-word;
}
body.ka-pl-typography .entry-content .elementor-widget-heading .elementor-heading-title {
  line-height: 1.45 !important;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
body.ka-pl-typography .entry-content .elementor-widget-heading h1.elementor-heading-title {
  font-size: clamp(38px, 4.25vw, 58px) !important;
  font-weight: 800 !important;
}
body.ka-pl-typography .entry-content .elementor-widget-heading h2.elementor-heading-title {
  font-size: clamp(25px, 2.3vw, 33px) !important;
  font-weight: 800 !important;
}
body.ka-pl-typography .entry-content .elementor-widget-heading h3.elementor-heading-title {
  font-size: clamp(20px, 1.75vw, 25px) !important;
  font-weight: 700 !important;
}
body.ka-pl-typography .entry-content .elementor-widget-heading h4.elementor-heading-title {
  font-size: clamp(17px, 1.5vw, 20px) !important;
  font-weight: 700 !important;
}
/* Respect intentional centered hero/introduction text in individual Elementor layouts. */
body.ka-pl-typography .entry-content .elementor-widget-text-editor p {
  text-align: inherit;
}

/* Independent footer rendered from the original Persian News Elementor sections. */
body.ka-pl-persian-page #ka-persian-footer-mount {
  display: block;
  background: #181b37;
  color: #efe8db;
  width: 100%;
  clear: both;
  margin: 0;
  padding: 0;
  direction: rtl;
  border-top: 1px solid rgba(236,232,224,.18);
}
#ka-persian-footer-mount * { box-sizing: border-box; }
#ka-persian-footer-mount :is(.ka-news-fa-footer-main,.ka-news-fa-footer-bottom) {
  width: 100% !important;
  max-width: none !important;
  background-color: #181b37 !important;
  background-image: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
}
#ka-persian-footer-mount .ka-news-fa-footer-main {
  padding: 44px 24px 34px !important;
}
#ka-persian-footer-mount .ka-news-fa-footer-main > .elementor-container {
  width: min(1140px, 100%) !important;
  max-width: 1140px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 29px !important;
  direction: rtl;
  align-items: start;
  min-height: 0 !important;
  height: auto !important;
}
#ka-persian-footer-mount .ka-news-fa-footer-main > .elementor-container > .elementor-column {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: none !important;
}
#ka-persian-footer-mount .ka-news-fa-footer-main .elementor-column > .elementor-widget-wrap {
  min-height: 0 !important;
  padding: 0 !important;
}
#ka-persian-footer-mount .ka-news-fa-footer-main .elementor-heading-title {
  color: #f1e9db !important;
  font: 800 23px/1.45 "Vazirmatn", Tahoma, sans-serif !important;
  text-align: right !important;
  margin: 0 !important;
}
#ka-persian-footer-mount .ka-news-fa-footer-main .elementor-widget-heading { margin-bottom: 12px !important; }
#ka-persian-footer-mount .ka-news-fa-footer-main .elementor-button {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 5px 0 !important;
  color: #e6dcca !important;
  text-align: right !important;
  font: 500 13px/1.8 "Vazirmatn", Tahoma, sans-serif !important;
}
#ka-persian-footer-mount a { color: #e6dcca !important; text-decoration: none; }
#ka-persian-footer-mount a:hover,
#ka-persian-footer-mount a:focus-visible { color: #22dba9 !important; }
#ka-persian-footer-mount .elementor-widget-divider .elementor-divider-separator {
  border-top-color: #22dba9 !important;
}
#ka-persian-footer-mount .ka-news-fa-footer-bottom {
  background-color: #102b42 !important;
  border-top: 1px solid rgba(34,219,169,.28);
  padding: 15px 24px 18px !important;
}
#ka-persian-footer-mount .ka-news-fa-footer-bottom > .elementor-container {
  width: min(1140px, 100%) !important;
  max-width: 1140px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
}
#ka-persian-footer-mount .ka-news-fa-footer-bottom .elementor-heading-title,
#ka-persian-footer-mount .ka-news-fa-footer-bottom :is(a,p,span) {
  color: #e6dcca !important;
  font: 500 12px/1.8 "Vazirmatn", Tahoma, sans-serif !important;
}
@media (max-width: 1024px) {
  #ka-persian-footer-mount .ka-news-fa-footer-main > .elementor-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px !important;
  }
}
@media (max-width: 767px) {
  body.ka-pl-typography .entry-content .elementor-widget-text-editor,
  body.ka-pl-typography .entry-content .elementor-widget-text-editor :is(p,li) {
    font-size: 14.5px !important;
    line-height: 1.95 !important;
  }
  #ka-persian-footer-mount .ka-news-fa-footer-main {
    padding: 30px 20px 28px !important;
  }
  #ka-persian-footer-mount .ka-news-fa-footer-main > .elementor-container {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  #ka-persian-footer-mount .ka-news-fa-footer-bottom {
    padding: 16px 20px 20px !important;
  }
}
