/* ============================================================================
   Trandiing Arabic RTL & Responsive Remediation Stylesheet (v3.0)
   Decisions: 1B (Self-hosted /wp-content/uploads/fonts/ F37 Moon Arabic)
              2A (Independent CSS loaded at wp_head:999 after #wp-custom-css)
              3B (Layer A cross-site RTL + Layer B Elementor/plugin fixes)
   Scope: strictly html[dir="rtl"] (zero impact on EN LTR or #ki-site)
   ============================================================================ */

/* --- 1. VERIFIED SELF-HOSTED ARABIC WEBFONT & TOKENS --- */
@font-face {
    font-family: 'F37 Moon Arabic';
    src: url('/wp-content/uploads/fonts/F37MoonArabicTrial-Regular.woff2') format('woff2');
    font-weight: 100 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'F37 Moon Arabic';
    src: url('/wp-content/uploads/fonts/F37MoonArabicTrial-Bold.woff2') format('woff2');
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
}

:root:lang(ar),
html[dir="rtl"] {
    --tr-font-ar: 'F37 Moon Arabic', 'Geeza Pro', 'Tahoma', 'Segoe UI', system-ui, sans-serif;
    --tr-drawer-w: min(85vw, 360px);
    --tr-gutter-tablet: 24px;
    --tr-gutter-mobile: 16px;
    --tr-admin-bar-h: 0px;
}

@media (min-width: 601px) and (max-width: 782px) {
    html[dir="rtl"] body.rtl.admin-bar {
        --tr-admin-bar-h: 46px;
    }
}

@media (min-width: 783px) {
    html[dir="rtl"] body.rtl.admin-bar {
        --tr-admin-bar-h: 32px;
    }
}

/* --- 2. ARABIC TYPOGRAPHY, ELEMENTOR KIT TOKENS & ZERO-TOFU ICON PROTECTION --- */
/* Override Elementor Global Kit typography variables on Arabic pages (excluding #ki-site) */
html[dir="rtl"] body.rtl:not(.page-id-4933).elementor-kit-8 {
    --e-global-typography-primary-font-family: var(--tr-font-ar);
    --e-global-typography-secondary-font-family: var(--tr-font-ar);
    --e-global-typography-text-font-family: var(--tr-font-ar);
    --e-global-typography-accent-font-family: var(--tr-font-ar);
}

/* Low-specificity base Arabic font & letter-spacing reset; NEVER touches icon font classes or #ki-site */
:where(html[dir="rtl"] body.rtl:not(.page-id-4933)),
:where(html[dir="rtl"] body.rtl:not(.page-id-4933)) :where(
    h1, h2, h3, h4, h5, h6,
    p, a, button, input, select, textarea, label, blockquote,
    .elementor-heading-title,
    .elementor-icon-box-title,
    .elementor-icon-box-description,
    .elementor-button-text,
    .cz_title_content,
    .cz_btn span,
    .bdt-ep-accordion-title,
    .bdt-ep-accordion-content
):not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *) {
    font-family: var(--tr-font-ar);
    letter-spacing: 0 !important;
}

/* Shared Arabic Header (4724) & Footer (4699) typography (applies across all /ar/ pages including 4933 chrome) */
html[dir="rtl"] body.rtl .elementor-4724 :where(a, span, button):where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl .elementor-4699 :where(h1, h2, h3, h4, p, a, span, button, input):where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)) {
    font-family: var(--tr-font-ar) !important;
    letter-spacing: 0 !important;
}

/* Override hard-coded Roboto/Ubuntu/negative letter-spacing in post-*.css (specificity >= 0,4,2 + !important) */
html[dir="rtl"] body.rtl .elementor-4699 .elementor-element.elementor-element-ded91d6 .elementor-heading-title,
html[dir="rtl"] body.rtl:not(.page-id-4933) .elementor-heading-title:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .elementor-widget-text-editor:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .elementor-widget-text-editor > .elementor-widget-container:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .elementor-widget-text-editor :where(p, span, strong, b, em, li, a):where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .elementor-icon-box-title:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .elementor-icon-box-title a:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .elementor-icon-box-description:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .elementor-icon-list-text:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .elementor-testimonial-content:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .elementor-testimonial-name:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .elementor-testimonial-job:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .elementor-button:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .elementor-button-text:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .cz_btn span:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .bdt-ep-accordion-title:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .bdt-ep-accordion-content:where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)),
html[dir="rtl"] body.rtl:not(.page-id-4933) .cz_title_content :where(h1, h2, h3, h4, p, span):where(:not(.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .czi, [class*="czico-"], .eicon, [class*="eicon-"], [class*="ep-icon-"], .dashicons, .star-rating, .star-rating *, #wpadminbar, #wpadminbar *, #ki-site, #ki-site *)) {
    font-family: var(--tr-font-ar) !important;
    letter-spacing: 0 !important;
}

/* Readable Arabic line-heights (strictly content lists, NEVER bare nav/WooCommerce li) */
:where(html[dir="rtl"] body.rtl:not(.page-id-4933)) :where(h1, h2, h3, h4, .elementor-heading-title) {
    line-height: 1.35;
    text-transform: none;
}

:where(html[dir="rtl"] body.rtl:not(.page-id-4933)) :where(
    p,
    .elementor-widget-text-editor li,
    .entry-content li,
    .elementor-icon-list-text,
    .elementor-icon-box-description,
    .bdt-ep-accordion-content
) {
    line-height: 1.75;
}

/* --- 3. HORIZONTAL OVERFLOW REMEDIATION (MAGIC-MOUSE -48px + 100cqi STRETCHED + 1024px) --- */
/* Root cause of 48px white gap on left edge of ALL 10 Arabic desktop pages */
html[dir="rtl"] body.rtl .codevz-magic-mouse {
    position: fixed !important;
    inset: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Root safety cushion preserving position: sticky */
html[dir="rtl"],
html[dir="rtl"] body.rtl {
    overflow-x: clip;
    max-width: 100%;
}

@supports not (overflow-x: clip) {
    html[dir="rtl"] body.rtl #layout {
        overflow-x: hidden;
    }
}

/* Segmented container query on .page_content (verified outside <header> & <footer>, zero fixed trapping!) */
/* Fixes codevz-plus 100vw scrollbar-offset (-7.43px) while keeping true full-bleed inside 1280px .row */
html[dir="rtl"] body.rtl .page_content {
    container-type: inline-size;
    overflow-x: clip;
}

html[dir="rtl"] body.rtl.cz-elementor-container .layout_ .page_content .elementor-section-stretched {
    width: 100cqi !important;
    max-width: 100cqi !important;
    right: calc(50% - 50cqi) !important;
    left: auto !important;
    margin-inline: 0 !important;
}

/* Neutralize stale Elementor JS inline widths (e.g. 1345px on 1440->390 resize) on Header & Footer */
html[dir="rtl"] body.rtl :where(header#site_header, .elementor-4724, .elementor-4699) .elementor-section-stretched {
    width: 100% !important;
    max-width: 100% !important;
    right: 0 !important;
    left: auto !important;
}

/* Homepage & Big Ad 1024px-1366px fixed-width boxed container overflow fix (e.g. 1154px / 1347px / 1353px) */
@media (max-width: 1366px) {
    html[dir="rtl"] body.rtl:not(.page-id-4933) .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

html[dir="rtl"] body.rtl.page-id-4358 .elementor-element-f297ddd {
    overflow-x: clip;
}

html[dir="rtl"] body.rtl.page-id-4358 .elementor-element-f297ddd > .elementor-container,
html[dir="rtl"] body.rtl.page-id-4358 .elementor-element-7fd52085,
html[dir="rtl"] body.rtl.page-id-4358 .elementor-element-7fd52085 > .elementor-widget-wrap,
html[dir="rtl"] body.rtl.page-id-4358 .elementor-element-7c9bca5e {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Contain decorative parallax .elementor-absolute shapes (ar-marketing-system 4362 & consultation 4767) */
html[dir="rtl"] body.rtl:not(.page-id-4933) .page_content section.elementor-top-section:has(.elementor-absolute) {
    overflow-x: clip;
}

/* --- 4. Z-INDEX ARCHITECTURE (INVERTED WHATSAPP < HEADER), STICKY BAR & OFFCANVAS --- */
/* Z-Index Scale:
   Media/Maps (isolated):  1
   Floating WhatsApp:      9850  (< Header so it can never float above open menus)
   Sticky Header:          9900  (only on fixed .sticky-header, never on non-fixed header#site_header)
   Offcanvas Backdrop:     9950
   Offcanvas Drawer:       9960
   Offcanvas Close X:      9970  (strictly scoped to body.active_offcanvas)
   Lightboxes / Modals:    10040 / 10050
   WP Admin Bar:           99999 (native untouched)
*/
html[dir="rtl"] body.rtl .elementor-widget-video,
html[dir="rtl"] body.rtl .elementor-widget-video .elementor-wrapper,
html[dir="rtl"] body.rtl .elementor-widget-google_maps {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

html[dir="rtl"] body.rtl .elementor-4724 .sticky-header {
    z-index: 9900 !important;
    top: 0;
    inset-inline: 0;
}

/* WordPress #wpadminbar sticky clearance driven by unified --tr-admin-bar-h (0px / 46px / 32px); #wpadminbar stays native untouched */
html[dir="rtl"] body.rtl.admin-bar .elementor-4724 .sticky-header {
    top: var(--tr-admin-bar-h) !important;
}

/* Header submenu RTL physical property mirroring (full border-right shorthand) */
html[dir="rtl"] body.rtl .elementor-4724 .elementor-element-e9c41b8 .sub-menu {
    margin-left: 0 !important;
    margin-right: 20px !important;
}

html[dir="rtl"] body.rtl .elementor-4724 .elementor-element-e9c41b8 .cz .cz a {
    border-left-width: 0 !important;
    border-right-width: 5px !important;
    border-right-style: solid !important;
}

html[dir="rtl"] body.rtl .elementor-4724 .elementor-element-e9c41b8 .cz .cz a:hover {
    margin-left: 0 !important;
    margin-right: 10px !important;
}

/* Unified <= 1024px desktop-nav / hamburger toggle */
@media (max-width: 1024px) {
    html[dir="rtl"] body.rtl .elementor-4724 .elementor-element-e9c41b8 {
        display: none !important;
    }

    html[dir="rtl"] body.rtl .elementor-4724 .elementor-element-8391e12 {
        display: block !important;
    }

    html[dir="rtl"] body.rtl .elementor-4724 .elementor-element-8391e12 .icon_mobile_offcanvas_menu {
        border-radius: 15px 0 !important;
    }
}

/* Offcanvas Drawer (cloned under body.active_offcanvas.cz_offcanvas_right) */
html[dir="rtl"] body.rtl div.cz_overlay {
    z-index: 9950 !important;
    background: rgba(6, 10, 42, 0.74) !important;
}

html[dir="rtl"] body.rtl.active_offcanvas ul.sidebar_offcanvas_area.offcanvas_area {
    z-index: 9960 !important;
    width: var(--tr-drawer-w) !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    background-color: #0A0443 !important;
    background-image: linear-gradient(180deg, rgba(10, 4, 67, 0.97), rgba(6, 3, 40, 0.99)) !important;
    padding-top: 68px !important;
    padding-bottom: calc(32px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

html[dir="rtl"] body.rtl.active_offcanvas ul.sidebar_offcanvas_area.offcanvas_area > li {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

html[dir="rtl"] body.rtl.active_offcanvas ul.sidebar_offcanvas_area.offcanvas_area > li > a {
    color: #FFFFFF !important;
    text-align: right;
    padding-inline: 20px !important;
}

html[dir="rtl"] body.rtl.active_offcanvas ul.sidebar_offcanvas_area.offcanvas_area .sub-menu a {
    color: #E5E7EB !important;
    text-align: right;
    padding-right: 36px !important;
    padding-left: 20px !important;
}

html[dir="rtl"] body.rtl.active_offcanvas ul.sidebar_offcanvas_area.offcanvas_area .cz_indicator {
    color: #FFFFFF !important;
}

/* Close X strictly scoped to active_offcanvas state & anchored inside top-left of right-docked drawer */
html[dir="rtl"] body.rtl.active_offcanvas i.offcanvas-close {
    z-index: 9970 !important;
    position: fixed !important;
    top: 14px !important;
    right: calc(var(--tr-drawer-w) - 54px) !important;
    left: auto !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    line-height: 40px !important;
    text-align: center !important;
    font-size: 16px !important;
    background: #D90A2C !important;
    color: #FFFFFF !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Counter codevz-inline-css .admin-bar .offcanvas_area margin-top across ALL viewports (including <=600px) & align Close X + menu padding */
html[dir="rtl"] body.rtl.admin-bar ul.sidebar_offcanvas_area.offcanvas_area,
html[dir="rtl"] body.rtl.active_offcanvas.admin-bar ul.sidebar_offcanvas_area.offcanvas_area {
    margin-top: 0 !important;
    padding-top: calc(68px + var(--tr-admin-bar-h)) !important;
}

html[dir="rtl"] body.rtl.active_offcanvas.admin-bar i.offcanvas-close {
    top: calc(14px + var(--tr-admin-bar-h)) !important;
}

/* Keep Lightboxes & Behance Magnific Popup above sticky header */
html[dir="rtl"] body.rtl .mfp-bg {
    z-index: 10040 !important;
}

html[dir="rtl"] body.rtl .mfp-wrap,
html[dir="rtl"] body.rtl .dialog-widget,
html[dir="rtl"] body.rtl .elementor-lightbox {
    z-index: 10050 !important;
}

/* --- 5. DIRECTIONAL ICONS (SCALE: -1 1) & BIDI PHONE / FORM ISOLATION --- */
/* Tier 1: Mirror right-pointing Codevz arrows using CSS Transforms L2 scale (preserves hover translateX) */
html[dir="rtl"] body.rtl i.czico-long-right-arrow {
    scale: -1 1;
    display: inline-block;
}

html[dir="rtl"] body.rtl .elementor-4699 .elementor-element-879bf31 .cz_btn i.czico-long-right-arrow,
html[dir="rtl"] body.rtl .elementor-element-8cf4f3a .cz_btn i.czico-long-right-arrow {
    margin-left: 0 !important;
    margin-right: 16px !important;
}

/* Tier 2: Big Ad (4743) 4-step workflow SVG arrows (verified zero inline SVG transform attrs in 776baeac) */
/* Mirror SVG so arrow points LEFT in RTL, then counter-mirror ONLY the exact baked-in digit node */
html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-776baeac .elementor-icon svg {
    transform: scaleX(-1);
    transform-origin: center;
}

html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-9905906 .elementor-icon svg > g:last-of-type,
html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-22475186 .elementor-icon svg > g:last-of-type,
html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-514880ac .elementor-icon svg > path:last-of-type,
html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-7a551591 .elementor-icon svg > path:last-of-type {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    transform: scaleX(-1);
}

/* BiDi isolation + UAX #9 Rule N1 override for spaced Arabic-Indic phone digits (+٢ ٠١٢ ٧٣٠ ٥٠ ٦٧٧) */
html[dir="rtl"] body.rtl .elementor-4699 .elementor-element-5de3648 a[href*="wa.me" i],
html[dir="rtl"] body.rtl .elementor-4699 .elementor-element-5de3648 a[href*="wa.me" i] span,
html[dir="rtl"] body.rtl.page-id-4767 .elementor-element-835a382 a[href^="tel:"] .cz_wpe_content p {
    direction: ltr !important;
    unicode-bidi: isolate-override !important;
    display: inline-block;
}

/* CF7 BiDi dynamics: Arabic placeholder stays RTL when empty; typed phone/email switches to LTR right-aligned */
html[dir="rtl"] body.rtl .wpcf7-form input[type="tel"],
html[dir="rtl"] body.rtl .wpcf7-form input[type="email"] {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: right;
}

html[dir="rtl"] body.rtl .wpcf7-form input[type="tel"]:placeholder-shown:not(:focus),
html[dir="rtl"] body.rtl .wpcf7-form input[type="email"]:placeholder-shown:not(:focus) {
    direction: rtl;
    unicode-bidi: normal;
    text-align: right;
}

/* CF7 <select> clean single caret spacing (verified theme SVG chevron at 18px 50%) */
html[dir="rtl"] body.rtl .wpcf7-form select {
    appearance: none;
    -webkit-appearance: none;
    background-position: left 14px center !important;
    background-repeat: no-repeat !important;
    padding-left: 42px !important;
    padding-right: 16px !important;
}

/* --- 6. FOOTER (.elementor-4699) & FLOATING WHATSAPP (#ht-ctc-chat) --- */
/* Paired newsletter input + submit button logical RTL corners & matched 44px height */
html[dir="rtl"] body.rtl .elementor-4699 .elementor-element-ab7c4e8 .cz_subscribe_elm input[type="email"] {
    text-align: right;
    height: 44px;
    border-radius: 16px 0 15px 0 !important;
    padding-left: 120px !important;
    padding-right: 18px !important;
}

html[dir="rtl"] body.rtl .elementor-4699 .elementor-element-ab7c4e8 .cz_subscribe_elm button[name="subscribe"] {
    margin-right: 0 !important;
    margin-left: -1px !important;
    height: 44px;
    border-radius: 15px 0 15px 0 !important;
}

/* Reposition Floating WhatsApp to bottom-left in RTL at z-index 9850 (< Sticky Header 9900) */
/* No transform: scale() on wrapper to avoid containing-block trap */
html[dir="rtl"] body.rtl #ht-ctc-chat.ht-ctc.ht-ctc-chat {
    z-index: 9850 !important;
    left: 16px !important;
    right: auto !important;
    bottom: 16px !important;
}

html[dir="rtl"] body.rtl #ht-ctc-chat .s_8 {
    flex-direction: row !important;
    gap: 8px;
    padding-inline: 16px !important;
}

html[dir="rtl"] body.rtl #ht-ctc-chat .s_8 .s_8_icon {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Clearance at footer bottom so WhatsApp widget never overlaps copyright or social icons */
html[dir="rtl"] body.rtl .elementor-4699 .elementor-element-78c70da {
    padding-bottom: 76px !important;
}

/* --- 7. LAYER B PAGE & COMPONENT FIXES (BIG AD 4743, CONSULTATION 4767, WOOCOMMERCE) --- */
/* Tier 1 Element Pack Accordion RTL polish (fixes Big Ad 3ae35cdb & any future FAQ) */
html[dir="rtl"] body.rtl .bdt-ep-accordion .bdt-ep-accordion-item.bdt-open .bdt-ep-accordion-title {
    border-radius: 20px 20px 0 0 !important;
}

html[dir="rtl"] body.rtl .bdt-ep-accordion .bdt-ep-accordion-content {
    border-radius: 0 0 20px 20px;
}

html[dir="rtl"] body.rtl .bdt-ep-accordion .bdt-ep-accordion-icon {
    margin-inline-start: 12px;
}

/* Big Ad (page-id-4743): balanced red card & black Team section padding */
html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-2db758a3 {
    padding-block: 40px !important;
}

html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-4ec05603 {
    padding-block: 40px !important;
}

html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-4ec05603 .elementor-element-8c2dab9 {
    padding-inline: 16px !important;
}

/* Big Ad (page-id-4743): RTL remediation for cloned-LTR sections (to be retired once CMS-06 is done in Elementor) */
/* Section 1 (Hero 36c79c08), Section 2 (Red Banner 868b30e divider), Section 5 (Meta/FI cards 2db758a3) on >=768px */
@media (min-width: 768px) {
    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-36c79c08 :is(.elementor-element-24d4284, .elementor-element-581b4d5),
    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-36c79c08 :is(.elementor-element-24d4284, .elementor-element-581b4d5) > .elementor-widget-container,
    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-36c79c08 .elementor-element-581b4d5 p {
        text-align: right !important;
    }

    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-868b30e .elementor-element-308f634d > .elementor-element-populated {
        border-inline-start-width: 0 !important;
        border-inline-end: 1px solid #FFFFFF !important;
        padding-inline-start: 0 !important;
        padding-inline-end: 24px !important;
    }

    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-2db758a3 :is(.elementor-widget-heading, .elementor-widget-text-editor),
    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-2db758a3 :is(.elementor-widget-heading, .elementor-widget-text-editor) > .elementor-widget-container,
    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-2db758a3 :is(.elementor-heading-title, p) {
        text-align: right !important;
    }
}

/* Section 3 (Red 4-Cards 4dd5b12f) & Section 7 (Testimonials 3c5ba77d): right-aligned across ALL viewports (incl. 390px) */
html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-4dd5b12f .elementor-widget-icon-box :is(.elementor-icon-box-wrapper, .elementor-icon-box-content) {
    text-align: right !important;
}

html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-3c5ba77d :is(.elementor-testimonial-wrapper, .elementor-testimonial-content, .elementor-testimonial-meta, .elementor-testimonial-details) {
    text-align: right !important;
}

/* Section 4 (4-Step Cards 776baeac): Icon on RIGHT, text RIGHT-aligned on desktop >=1025px; reset icon margins */
@media (min-width: 1025px) {
    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-776baeac .elementor-widget-icon-box .elementor-icon-box-wrapper {
        flex-direction: row !important;
        align-items: center !important;
        text-align: right !important;
        gap: 28px !important;
    }

    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-776baeac .elementor-widget-icon-box .elementor-icon-box-icon {
        margin: 0 !important;
        margin-inline: 0 !important;
        flex-shrink: 0;
    }

    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-776baeac .elementor-widget-icon-box .elementor-icon-box-content {
        text-align: right !important;
    }
}

/* Book Consultation (page-id-4767): preserve floating white card (z-index 3) above Map (z-index 1) & protect CF7 card */
html[dir="rtl"] body.rtl.page-id-4767 .elementor-element-9919e05 {
    position: relative;
    z-index: 3;
}

html[dir="rtl"] body.rtl.page-id-4767 .elementor-element-50c93ec {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

html[dir="rtl"] body.rtl.page-id-4767 .elementor-element-3f5c2d6,
html[dir="rtl"] body.rtl.page-id-4767 .elementor-element-3f5c2d6 .elementor-widget-wrap {
    height: auto !important;
    padding-bottom: 32px !important;
}

/* WooCommerce RTL title alignment (countering codevz-inline-css text-align: left) */
html[dir="rtl"] body.rtl .woocommerce ul.products li.product .woocommerce-loop-category__title,
html[dir="rtl"] body.rtl .woocommerce ul.products li.product .woocommerce-loop-product__title,
html[dir="rtl"] body.rtl .woocommerce ul.products li.product h3 {
    text-align: right !important;
}

/* --- 8. TABLET (<=1024px) & MOBILE (<=767px) RESPONSIVE REFINEMENTS --- */
@media (max-width: 1024px) {
    /* Footer right-edge breathing room (fixes 7e00207 padding-right: 0 on tablet) */
    html[dir="rtl"] body.rtl .elementor-4699 .elementor-element-7e00207 {
        padding: 40px var(--tr-gutter-tablet) !important;
    }

    /* Big Ad 4-step section: coupled margin & sibling padding reset (zero desktop crash, zero tablet void) */
    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-4dd5b12f {
        padding-bottom: 48px !important;
    }

    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-776baeac {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 40px var(--tr-gutter-tablet) !important;
    }

    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-3da9608a {
        margin-top: 0 !important;
        padding-top: 36px !important;
    }

    /* Big Ad Hero video comfortable tablet padding */
    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-5f325084 > .elementor-widget-container {
        padding-inline: 24px !important;
    }

    /* Big Ad Hero symmetric tablet gutter */
    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-36c79c08 {
        padding-inline: var(--tr-gutter-tablet) !important;
    }

    /* Big Ad 4-Step Cards (stacked block-start on <=1024px): prevent text-align: end leak */
    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-776baeac .elementor-widget-icon-box :is(.elementor-icon-box-wrapper, .elementor-icon-box-content) {
        text-align: center !important;
    }

    /* Big Ad Meta & Founder Institute exact portrait images flush width on tablet & mobile (zero logo distortion) */
    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-2db758a3 :is(.elementor-element-454bd482, .elementor-element-794c9bf) img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }
}

@media (max-width: 767px) {
    html[dir="rtl"] body.rtl .elementor-4699 .elementor-element-7e00207 {
        padding: 32px var(--tr-gutter-mobile) !important;
    }

    html[dir="rtl"] body.rtl .elementor-4699 .elementor-element-78c70da {
        padding-bottom: 88px !important;
    }

    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-36c79c08 {
        padding-inline: var(--tr-gutter-mobile) !important;
    }

    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-868b30e {
        padding-top: 24px !important;
    }

    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-868b30e .elementor-element-308f634d > .elementor-element-populated {
        border-width: 0 !important;
        padding-inline: 0 !important;
    }

    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-776baeac {
        padding: 32px var(--tr-gutter-mobile) !important;
    }

    /* Big Ad Red 4-Offer Cards (3da9608a): counter .elementor-mobile-position-inline-end on mobile */
    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-3da9608a .elementor-widget-icon-box .elementor-icon-box-wrapper {
        flex-direction: row !important;
        align-items: center !important;
        text-align: right !important;
        gap: 14px !important;
    }

    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-3da9608a .elementor-widget-icon-box .elementor-icon-box-icon {
        margin: 0 !important;
        margin-inline: 0 !important;
        flex-shrink: 0;
    }

    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-3da9608a .elementor-widget-icon-box .elementor-icon-box-content {
        text-align: right !important;
    }

    html[dir="rtl"] body.rtl.page-id-4743 .elementor-element-5f325084 > .elementor-widget-container {
        padding-inline: 10px !important;
    }

    html[dir="rtl"] body.rtl #ht-ctc-chat .s_8 {
        height: 34px !important;
        line-height: 34px !important;
        padding-inline: 12px !important;
        font-size: 13px !important;
    }
}
