/* ==========================================================================
   Dayftna RTL Fixes
   Additional RTL corrections for Acaro theme + Elementor
   ========================================================================== */

/* ---------- Elementor Sections ---------- */

/* Fix icon positions in RTL */
.elementor-icon-list-items .elementor-icon-list-icon {
    margin-left: 10px;
    margin-right: 0;
}

/* Fix text alignment for Elementor widgets */
.elementor-widget-text-editor {
    text-align: right;
}

/* ---------- Navigation ---------- */

/* Submenu dropdown direction */
.main-navigation ul ul {
    right: 0;
    left: auto;
}

.main-navigation ul ul ul {
    right: 100%;
    left: auto;
}

/* Mobile menu icon position */
.menu-toggle {
    float: left;
}

/* ---------- Sliders & Carousels ---------- */

/* Fix Swiper slider direction */
.swiper-container,
.swiper {
    direction: rtl;
}

/* Slider navigation arrows */
.elementor-swiper-button-prev {
    right: auto;
    left: 10px;
}

.elementor-swiper-button-next {
    left: auto;
    right: 10px;
}

/* ---------- Forms (Contact Form 7) ---------- */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    text-align: right;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

/* Phone and email fields should be LTR input */
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
    direction: ltr;
    text-align: left;
}

.wpcf7 label {
    display: block;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 5px;
}

.wpcf7 .wpcf7-submit {
    font-family: 'Cairo', sans-serif;
}

/* File upload field */
.wpcf7 input[type="file"] {
    direction: rtl;
}

/* ---------- Pricing Tables (Menu Packages) ---------- */

.elementor-price-table {
    direction: rtl;
    text-align: center;
}

.elementor-price-table__features-list {
    text-align: right;
    padding-right: 0;
}

.elementor-price-table__feature-inner i {
    margin-left: 8px;
    margin-right: 0;
}

/* ---------- Team Section ---------- */

.elementor-widget-acaro-team-box {
    text-align: center;
}

/* ---------- Testimonials ---------- */

.elementor-widget-acaro-testimonial {
    text-align: right;
}

/* ---------- Icon List ---------- */

.elementor-icon-list-item {
    direction: rtl;
}

/* ---------- Search ---------- */

.search-form input[type="search"] {
    text-align: right;
    padding-right: 15px;
}

/* ---------- Footer ---------- */

.site-footer .widget {
    text-align: right;
}

.site-footer .widget ul {
    padding-right: 0;
    padding-left: 0;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumb-trail .trail-items li::after {
    content: '/';
    margin-right: 8px;
    margin-left: 8px;
}

/* ---------- Gallery ---------- */

.elementor-widget-acaro-image-gallery .gallery-item {
    float: right;
}

/* ---------- Blog / Posts ---------- */

.post-meta .meta-item {
    margin-left: 15px;
    margin-right: 0;
}

/* ---------- Sidebar ---------- */

.sidebar-right {
    float: left;
}

.sidebar-left {
    float: right;
}

/* ---------- Pagination ---------- */

.nav-links .nav-previous {
    float: right;
}

.nav-links .nav-next {
    float: left;
}

/* ---------- Venue / Event Cards ---------- */

.elementor-widget-acaro-venue-list,
.elementor-widget-acaro-event-grid {
    direction: rtl;
}

/* ---------- Accordion ---------- */

.elementor-accordion .elementor-accordion-icon {
    float: left;
}

.elementor-accordion .elementor-accordion-title {
    text-align: right;
}

/* ---------- Process / Steps ---------- */

.elementor-widget-acaro-process {
    direction: rtl;
}

/* ---------- Responsive RTL Fixes ---------- */

@media (max-width: 1024px) {
    .main-navigation {
        text-align: right;
    }
}

@media (max-width: 767px) {
    .elementor-column {
        text-align: right;
    }

    .elementor-widget-heading .elementor-heading-title {
        text-align: right;
    }
}

/* === DAYFTNA_ABOUT_RTL_PATCH_START === */
/* About page (page-id-20) — force RTL alignment */
.page-id-20 .elementor-element-69cf2e1113cf4 .elementor-heading-title,
.page-id-20 .elementor-element-69cf2e1113cf8 .elementor-heading-title,
.page-id-20 .elementor-element-69cf2e1113cfb .elementor-heading-title,
.page-id-20 .elementor-element-69cf2e1113cfe .elementor-heading-title {
    text-align: right !important;
    direction: rtl;
}
.page-id-20 .elementor-widget-text-editor,
.page-id-20 .elementor-widget-text-editor p,
.page-id-20 .elementor-widget-icon-list .elementor-icon-list-text {
    text-align: right !important;
    direction: rtl;
}
.page-id-20 .elementor-icon-list-items .elementor-icon-list-icon {
    margin-left: 10px;
    margin-right: 0;
}
/* === DAYFTNA_ABOUT_RTL_PATCH_END === */

/* === DAYFTNA_UNIVERSAL_RTL_PATCH_START === */
/* Site uses Arabic content but WordPress locale is en-US, so is_rtl()
   returns false and the document defaults to LTR. Force RTL on the
   document root + main containers so Elementor's logical text-align:
   start/end values resolve to right/left correctly. */
html, body {
    direction: rtl;
}

/* Default Arabic right-alignment for Elementor heading / text-editor /
   icon-list widgets that DO NOT explicitly set an alignment class.
   Uses DESCENDANT selectors (no >) because Elementor's heading widget
   places <h2> directly inside .elementor-widget-heading (no
   .elementor-widget-container wrapper). Widgets carrying
   elementor-align-{center,left,right,justify} are left untouched so
   intentional centering (heroes, sub-titles, CTAs) is preserved. */
.elementor-widget-heading:not(.elementor-align-center):not(.elementor-align-left):not(.elementor-align-right):not(.elementor-align-justify) .elementor-heading-title {
    text-align: right !important;
    direction: rtl;
}
.elementor-widget-text-editor:not(.elementor-align-center):not(.elementor-align-left):not(.elementor-align-right):not(.elementor-align-justify),
.elementor-widget-text-editor:not(.elementor-align-center):not(.elementor-align-left):not(.elementor-align-right):not(.elementor-align-justify) p,
.elementor-widget-text-editor:not(.elementor-align-center):not(.elementor-align-left):not(.elementor-align-right):not(.elementor-align-justify) ul,
.elementor-widget-text-editor:not(.elementor-align-center):not(.elementor-align-left):not(.elementor-align-right):not(.elementor-align-justify) ol,
.elementor-widget-text-editor:not(.elementor-align-center):not(.elementor-align-left):not(.elementor-align-right):not(.elementor-align-justify) li {
    text-align: right !important;
    direction: rtl;
}
.elementor-widget-icon-list:not(.elementor-align-center):not(.elementor-align-left):not(.elementor-align-right):not(.elementor-align-justify) .elementor-icon-list-text {
    text-align: right !important;
    direction: rtl;
}
/* === DAYFTNA_UNIVERSAL_RTL_PATCH_END === */
