/* UniGulf Arabic RTL Styles */

/* Base RTL direction */
html.rtl,
body.rtl {
    direction: rtl !important;
    unicode-bidi: embed;
}

/* Text alignment */
body.rtl .elementor-widget-heading .elementor-heading-title,
body.rtl .elementor-widget-text-editor {
    text-align: right !important;
}

body.rtl .elementor-widget-heading .elementor-heading-title[style*="text-align: center"],
body.rtl .elementor-widget-text-editor[style*="text-align: center"],
body.rtl .elementor-align-center .elementor-heading-title,
body.rtl .elementor-widget.elementor-widget-heading[data-settings*="center"] .elementor-heading-title {
    text-align: center !important;
}

/* Flexbox direction reversal */
body.rtl .elementor-container,
body.rtl .e-con {
    direction: rtl;
}

body.rtl .elementor-container > .elementor-row {
    flex-direction: row-reverse;
}

/* Navigation RTL */
body.rtl .elementor-nav-menu--layout-horizontal .elementor-nav-menu {
    flex-direction: row-reverse;
}

body.rtl .elementor-nav-menu .menu-item {
    direction: rtl;
}

/* Icon lists */
body.rtl .elementor-icon-list-items {
    direction: rtl;
}

body.rtl .elementor-icon-list-item {
    flex-direction: row-reverse;
}

body.rtl .elementor-icon-list-text {
    padding-left: 0 !important;
    padding-right: 5px;
}

/* Buttons */
body.rtl .elementor-button-content-wrapper {
    flex-direction: row-reverse;
}

/* Counter widget */
body.rtl .elementor-counter {
    direction: ltr;
}

/* Progress bars */
body.rtl .elementor-progress-wrapper {
    direction: rtl;
}

/* Font family for Arabic */
body.rtl,
body.rtl h1, body.rtl h2, body.rtl h3,
body.rtl h4, body.rtl h5, body.rtl h6,
body.rtl p, body.rtl span, body.rtl a,
body.rtl li, body.rtl div,
body.rtl .elementor-heading-title,
body.rtl .elementor-widget-text-editor {
    font-family: 'Almarai', 'Cairo', 'Tajawal', 'Noto Sans Arabic', sans-serif !important;
}

/* Footer RTL */
body.rtl footer .elementor-widget-heading,
body.rtl footer .elementor-icon-list-items,
body.rtl footer .elementor-widget-text-editor {
    text-align: right !important;
}

/* Form RTL */
body.rtl .elementor-form .elementor-field {
    text-align: right;
    direction: rtl;
}

body.rtl .elementor-form .elementor-field-label {
    text-align: right;
}

/* Swiper/Carousel RTL */
body.rtl .swiper-container,
body.rtl .swiper {
    direction: rtl;
}

/* Image positioning */
body.rtl .elementor-widget-image {
    text-align: right;
}

/* Spacing adjustments */
body.rtl .elementor-widget {
    direction: rtl;
}

/* Marquee/scrolling text */
body.rtl .elementor-widget-container marquee,
body.rtl [class*="marquee"],
body.rtl [class*="scroll"] {
    direction: rtl;
}

/* Social icons */
body.rtl .elementor-social-icons-wrapper {
    direction: ltr;
}

/* Preserve LTR for phone numbers and emails */
body.rtl a[href^="tel:"],
body.rtl a[href^="mailto:"] {
    direction: ltr;
    unicode-bidi: embed;
}

/* Column gaps in RTL */
body.rtl .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
    padding-left: 0;
    padding-right: 10px;
}

/* Google Fonts for Arabic */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Cairo:wght@300;400;600;700&display=swap');
