/* White Rose: five Dari inner pages only. Does not change theme colors or header.
   Scope applied by PHP to avoid affecting English, Pashto or unrelated pages. */
body.white-rose-dari-page { direction: rtl; }
body.white-rose-dari-page #main, body.white-rose-dari-page .main-content,
body.white-rose-dari-page .site-content { direction: rtl; }
/* Typography and content alignment: only within the Elementor page canvas */
body.white-rose-dari-page .elementor:not(.elementor-location-header):not(.elementor-location-footer) .elementor-heading-title,
body.white-rose-dari-page .elementor:not(.elementor-location-header):not(.elementor-location-footer) .elementor-widget-text-editor,
body.white-rose-dari-page .elementor:not(.elementor-location-header):not(.elementor-location-footer) .elementor-widget-text-editor p,
body.white-rose-dari-page .elementor:not(.elementor-location-header):not(.elementor-location-footer) .elementor-widget-icon-box .elementor-icon-box-content,
body.white-rose-dari-page .elementor:not(.elementor-location-header):not(.elementor-location-footer) .elementor-widget-image-box .elementor-image-box-content {
  direction: rtl;
  text-align: right;
}
body.white-rose-dari-page .elementor .elementor-widget-text-editor ul,
body.white-rose-dari-page .elementor .elementor-widget-text-editor ol {
  direction: rtl; text-align: right; padding-right: 1.3em; padding-left: 0;
}
/* Inner-page banners and breadcrumb navigation */
body.white-rose-dari-page .mo-pagetitle,
body.white-rose-dari-page .page-title-bar,
body.white-rose-dari-page .page-title-wrap,
body.white-rose-dari-page .breadcrumb,
body.white-rose-dari-page .breadcrumbs,
body.white-rose-dari-page .mo-breadcrumb {
  direction: rtl;
  text-align: right;
}
/* Elementor service and blog cards: text flows RTL but media isn't flipped */
body.white-rose-dari-page .mo-icon-box,
body.white-rose-dari-page .mo-heading-block,
body.white-rose-dari-page .mo-heading-fancy,
body.white-rose-dari-page .mo-service-box,
body.white-rose-dari-page .mo-posts,
body.white-rose-dari-page .post-grid,
body.white-rose-dari-page .mo-blog,
body.white-rose-dari-page .blog-content {
  direction: rtl; text-align: right;
}
/* Contact forms: labels and fields aligned to the right, actual email/phone LTR */
body.white-rose-dari-page .wpcf7,
body.white-rose-dari-page .wpcf7 form,
body.white-rose-dari-page .wpcf7 label,
body.white-rose-dari-page .wpforms-container,
body.white-rose-dari-page .elementor-form,
body.white-rose-dari-page .elementor-form .elementor-field-group {
  direction: rtl; text-align: right;
}
body.white-rose-dari-page .wpcf7 input:not([type="submit"]),
body.white-rose-dari-page .wpcf7 textarea,
body.white-rose-dari-page .wpforms-container input:not([type="submit"]),
body.white-rose-dari-page .wpforms-container textarea,
body.white-rose-dari-page .elementor-form input:not([type="submit"]),
body.white-rose-dari-page .elementor-form textarea {
  max-width: 100%; box-sizing: border-box; text-align: right;
}
body.white-rose-dari-page input[type="email"],
body.white-rose-dari-page input[type="url"],
body.white-rose-dari-page input[type="tel"],
body.white-rose-dari-page a[href^="tel:"],
body.white-rose-dari-page a[href^="mailto:"] {
  direction: ltr !important; unicode-bidi: isolate; text-align: left;
}
/* Ensure automatic direction for phone/email text mixed into RTL columns */
body.white-rose-dari-page .footer a[href^="tel:"],
body.white-rose-dari-page footer a[href^="tel:"] { display: inline-block; }
/* Page-specific responsive prevention of unwanted horizontal scrolling */
body.white-rose-dari-page .elementor-section,
body.white-rose-dari-page .e-con,
body.white-rose-dari-page .elementor-container { max-width: 100%; }
@media (max-width: 767px) {
  body.white-rose-dari-page .elementor-widget-text-editor,
  body.white-rose-dari-page .elementor-widget-heading,
  body.white-rose-dari-page .wpcf7,
  body.white-rose-dari-page .wpforms-container { max-width: 100%; }
}


/* =============================================================
   White Rose Dari page centering/overflow corrections 2026-10-13
   Page-scoped: no changes to global site colors, header or English.
   ============================================================= */
/* Theme's default html{direction:ltr} must not win on Dari pages. */
html:has(body.white-rose-dari-page) { direction: rtl !important; }
html:has(body.white-rose-dari-page),
body.white-rose-dari-page { width: 100%; max-width: 100%; }
body.white-rose-dari-page { direction: rtl !important; overflow-x: clip; }
body.white-rose-dari-page .wrapper,
body.white-rose-dari-page #main,
body.white-rose-dari-page .main-content,
body.white-rose-dari-page .elementor.elementor-location-single,
body.white-rose-dari-page .elementor:not(.elementor-location-header):not(.elementor-location-footer) {
  direction: rtl !important; width: 100%; max-width: 100%; box-sizing: border-box;
}
/* Elementor's stretch script supplies LTR inline left offset and pixel width.
   Override only on the selected Dari pages, retaining true full-width sections. */
body.white-rose-dari-page .elementor-section.elementor-section-stretched {
  left: 0 !important; right: 0 !important;
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
  box-sizing: border-box !important;
}
body.white-rose-dari-page .elementor-section .elementor-container,
body.white-rose-dari-page .elementor-section .elementor-row,
body.white-rose-dari-page .elementor-widget-wrap,
body.white-rose-dari-page .e-con,
body.white-rose-dari-page .e-con-inner {
  min-width: 0; max-width: 100%; box-sizing: border-box;
}
body.white-rose-dari-page .elementor-section-boxed > .elementor-container,
body.white-rose-dari-page .e-con-boxed > .e-con-inner {
  margin-left: auto !important; margin-right: auto !important;
}
body.white-rose-dari-page .elementor img { max-width: 100%; height: auto; }
/* Fixed desktop footer is layered over page content. Let it follow the page. */
body.white-rose-dari-page footer.footer.footer_v1.footer-fixed {
  position: relative !important; bottom: auto !important; left: auto !important; right: auto !important;
  width: 100% !important; transform: none !important; z-index: auto !important;
}
body.white-rose-dari-page .pagetitle-v4 .mo-title-bar::after {
  width: 100% !important; left: 0 !important; right: 0 !important;
}
/* Target the audited content sections directly; never re-center the internal text. */
body.white-rose-dari-page .elementor-element-7686265,
body.white-rose-dari-page .elementor-element-dcbcac4,
body.white-rose-dari-page .elementor-element-5b4da4e,
body.white-rose-dari-page .elementor-element-2d80f68,
body.white-rose-dari-page .elementor-element-debee03,
body.white-rose-dari-page .elementor-element-aa59026,
body.white-rose-dari-page .elementor-element-90f777e,
body.white-rose-dari-page .elementor-element-9a143d2,
body.white-rose-dari-page .elementor-element-eeee21e,
body.white-rose-dari-page .elementor-element-be5a674,
body.white-rose-dari-page .elementor-element-cdd7043 {
  max-width: 100% !important; box-sizing: border-box !important;
}
body.white-rose-dari-page .elementor .button.btn-txt.btn-txt-arrow2 {
  direction: rtl; text-align: right;
}
@media(max-width:767px) {
  body.white-rose-dari-page .elementor-section.elementor-section-stretched {
    width: 100% !important; left: 0 !important; right: 0 !important;
  }
  body.white-rose-dari-page .elementor-column,
  body.white-rose-dari-page .elementor-column-wrap,
  body.white-rose-dari-page .elementor-widget,
  body.white-rose-dari-page .elementor-widget-container {
    min-width: 0; max-width: 100%; box-sizing: border-box;
  }
  body.white-rose-dari-page .elementor-widget-text-editor p,
  body.white-rose-dari-page .elementor-heading-title {
    overflow-wrap: anywhere;
  }
}
