/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Polylang: Arabic language pages */
html[lang^="ar"], 
body.rtl {
  direction: ltr !important;   /* stop global RTL flipping layout */
}

/* Keep Elementor sections/columns in LTR so the structure doesn't swap */
html[lang^="ar"] .elementor,
html[lang^="ar"] .elementor-section,
html[lang^="ar"] .elementor-container,
html[lang^="ar"] .elementor-row,
html[lang^="ar"] .elementor-column,
html[lang^="ar"] .elementor-widget-wrap {
  direction: ltr !important;
}

/* Now make only text content RTL */
html[lang^="ar"] h1,
html[lang^="ar"] h2,
html[lang^="ar"] h3,
html[lang^="ar"] h4,
html[lang^="ar"] h5,
html[lang^="ar"] h6,
html[lang^="ar"] p,
html[lang^="ar"] li,
html[lang^="ar"] a,
html[lang^="ar"] span,
html[lang^="ar"] .elementor-heading-title,
html[lang^="ar"] .elementor-text-editor,
html[lang^="ar"] .elementor-widget-text-editor,
html[lang^="ar"] .elementor-widget-heading,
html[lang^="ar"] .elementor-button-text {
  direction: rtl !important;
  unicode-bidi: plaintext;     /* better mixed Arabic/English handling */
  text-align: right;
}
