/* Loaded AFTER Elementor — Manifesto layout + no horizontal scroll */

html,
body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

.pm-root,
.elementor,
.elementor-section,
.e-con,
.e-con-inner {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body .elementor .pm-section-studio.e-con,
body .elementor .pm-section-studio {
  position: relative !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(26, 30, 36, 0.08) !important;
  padding: 160px 0 140px !important;
  width: 100% !important;
  max-width: 100% !important;
}

body .elementor .pm-section-studio > .e-con-inner {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: var(--pm-content-max, 1400px) !important;
  margin: 0 auto !important;
  padding: 0 var(--pm-content-pad, 24px) !important;
  box-sizing: border-box !important;
}

/* Shared content shell — same edges for 01 / 02 */
body .elementor .pm-content-shell {
  width: 100% !important;
  max-width: var(--pm-content-max, 1400px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--pm-content-pad, 24px) !important;
  padding-right: var(--pm-content-pad, 24px) !important;
  box-sizing: border-box !important;
}

/* Hide Elementor vertical node; paint Arabic via pseudo (no overflow) */
body .elementor .pm-manifesto-vertical {
  display: none !important;
}

body .elementor .pm-section-studio::after {
  content: "المقعد ليس مجرد مقعد";
  position: absolute;
  top: 140px;
  right: 28px;
  font-family: "Amiri", serif;
  font-size: 20px;
  color: rgba(26, 30, 36, 0.18);
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  pointer-events: none;
  z-index: 2;
}

/* Force 2-col: label | body */
body .elementor .pm-manifesto-grid.e-con,
body .elementor .pm-manifesto-grid {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body .elementor .pm-manifesto-grid > .e-con-inner {
  display: grid !important;
  grid-template-columns: 200px minmax(0, 1fr) !important;
  gap: 40px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  flex-direction: unset !important;
  flex-wrap: nowrap !important;
}

body .elementor .pm-manifesto-grid > .e-con-inner > .pm-manifesto-label,
body .elementor .pm-manifesto-grid > .e-con-inner > .pm-manifesto-body {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: unset !important;
}

body .elementor .pm-manifesto-label {
  width: 200px !important;
  max-width: 200px !important;
  padding-top: 14px !important;
}

body .elementor .pm-manifesto-label > .e-con-inner {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
}

body .elementor .pm-manifesto-label .elementor-widget-container,
body .elementor .pm-manifesto-label p {
  margin: 0 !important;
  color: #e8432f !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  white-space: nowrap;
}

body .elementor .pm-manifesto-body,
body .elementor .pm-manifesto-body.e-con {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body .elementor .pm-manifesto-body > .e-con-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 48px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Title: 80% of body column — never collapse to 1 word/line */
body .elementor .pm-manifesto-body .elementor-widget-heading {
  display: block !important;
  width: 80% !important;
  max-width: 80% !important;
  min-width: 280px !important;
  margin: 0 !important;
}

body .elementor .pm-manifesto-body .elementor-widget-heading .elementor-widget-container {
  width: 100% !important;
}

body .elementor .pm-manifesto-body .elementor-heading-title {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  color: #1a1e24 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

body .elementor .pm-manifesto-body .elementor-heading-title em {
  font-family: "Instrument Serif", serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #e8432f !important;
}

/* 2 paragraphs: 90% width, equal columns */
body .elementor .pm-manifesto-cols.e-con,
body .elementor .pm-manifesto-cols {
  width: 90% !important;
  max-width: 90% !important;
  min-width: 280px !important;
  padding: 0 !important;
  margin: 0 !important;
}

body .elementor .pm-manifesto-cols > .e-con-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 48px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  flex-direction: unset !important;
}

body .elementor .pm-manifesto-cols .elementor-widget,
body .elementor .pm-manifesto-cols .elementor-widget-container,
body .elementor .pm-manifesto-cols p {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
  font-weight: 300 !important;
  color: #4a5160 !important;
  writing-mode: horizontal-tb !important;
}

/* Kill page-wide overflow from marquees / vw hacks */
body .elementor .pm-marquee,
body .elementor .pm-marquee > .e-con-inner {
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

body .elementor .pm-hero-stats {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: var(--pm-side-pad, max(5vw, calc((100vw - 1400px) / 2))) !important;
  padding-right: var(--pm-side-pad, max(5vw, calc((100vw - 1400px) / 2))) !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
}
body .elementor .pm-hero-stats > .e-con-inner {
  display: contents !important;
}

@media (max-width: 900px) {
  body .elementor .pm-section-studio.e-con,
  body .elementor .pm-section-studio,
  body .elementor #manifesto {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding-top: 72px !important;
    padding-bottom: 64px !important;
    overflow: visible !important;
  }

  body .elementor .pm-manifesto-body .elementor-heading-title {
    opacity: 1 !important;
    color: #1a1e24 !important;
  }

  body .elementor .pm-manifesto-label .elementor-widget-text-editor,
  body .elementor .pm-manifesto-label .elementor-widget-text-editor p {
    opacity: 1 !important;
    color: #e8432f !important;
  }

  body .elementor .pm-manifesto-body .elementor-widget-text-editor,
  body .elementor .pm-manifesto-body .elementor-widget-text-editor p,
  body .elementor .pm-manifesto-cols .elementor-widget-text-editor,
  body .elementor .pm-manifesto-cols .elementor-widget-text-editor p {
    opacity: 1 !important;
    color: #4a5160 !important;
  }

  body .elementor .pm-section-studio::after {
    display: none !important;
  }

  body .elementor .pm-manifesto-grid,
  body .elementor .pm-manifesto-grid.e-con {
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
  }

  body .elementor .pm-manifesto-grid > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body .elementor .pm-manifesto-label,
  body .elementor .pm-manifesto-label.e-con {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0 !important;
    opacity: 1 !important;
  }

  body .elementor .pm-manifesto-body,
  body .elementor .pm-manifesto-body.e-con,
  body .elementor .pm-manifesto-body .elementor-widget-heading,
  body .elementor .pm-manifesto-cols {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    opacity: 1 !important;
  }

  body .elementor .pm-manifesto-cols > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Kill scroll-driven rise anim that hides 01 on mobile */
  body .elementor .pm-section-studio .pm-anim-rise,
  body .elementor #manifesto .pm-anim-rise {
    animation: none !important;
    animation-timeline: auto !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Arabic RTL — Manifesto 01: label on the right, copy flush-right */
body.rtl .elementor .pm-section-studio,
body.rtl .elementor #manifesto,
body.rtl .elementor .pm-manifesto-grid,
body.rtl .elementor .pm-manifesto-body,
body.rtl .elementor .pm-manifesto-cols {
  direction: rtl !important;
  text-align: right !important;
}

body.rtl .elementor .pm-manifesto-grid > .e-con-inner {
  direction: rtl !important;
  grid-template-columns: 200px minmax(0, 1fr) !important;
}

body.rtl .elementor .pm-manifesto-label .elementor-widget-container,
body.rtl .elementor .pm-manifesto-label p,
body.rtl .elementor .pm-manifesto-label .elementor-widget-text-editor {
  text-align: right !important;
  letter-spacing: 0.08em !important;
}

body.rtl .elementor .pm-manifesto-body > .e-con-inner {
  direction: rtl !important;
  align-items: flex-start !important;
}

body.rtl .elementor .pm-manifesto-body .elementor-widget-heading,
body.rtl .elementor .pm-manifesto-body .elementor-widget-heading .elementor-widget-container,
body.rtl .elementor .pm-manifesto-body .elementor-heading-title {
  text-align: right !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.rtl .elementor .pm-manifesto-cols > .e-con-inner {
  direction: rtl !important;
}

body.rtl .elementor .pm-manifesto-cols .elementor-widget,
body.rtl .elementor .pm-manifesto-cols .elementor-widget-container,
body.rtl .elementor .pm-manifesto-cols .elementor-widget-text-editor,
body.rtl .elementor .pm-manifesto-cols p {
  text-align: right !important;
  direction: rtl !important;
}

/* Decorative vertical line stays on the outer (left) edge in RTL */
body.rtl .elementor .pm-section-studio::after {
  right: auto !important;
  left: 28px !important;
}

@media (max-width: 900px) {
  body.rtl .elementor .pm-manifesto-grid > .e-con-inner,
  body.rtl .elementor .pm-manifesto-body > .e-con-inner,
  body.rtl .elementor .pm-manifesto-cols > .e-con-inner {
    align-items: stretch !important;
  }

  body.rtl .elementor .pm-manifesto-label,
  body.rtl .elementor .pm-manifesto-body .elementor-heading-title,
  body.rtl .elementor .pm-manifesto-cols p {
    text-align: right !important;
  }
}
