/*
 * AZMY CO - RTL Support Styles (Refined)
 * Optimized to work with bootstrap.rtl.min.css
 */

[dir="rtl"], 
[dir="rtl"] body {
    text-align: right;
    font-family: 'Cairo', sans-serif !important;
}

/* Global Font Override for RTL */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] .navbar-brand, [dir="rtl"] .fw-bold,
[dir="rtl"] p, [dir="rtl"] span, [dir="rtl"] a, [dir="rtl"] li, [dir="rtl"] div,
[dir="rtl"] input, [dir="rtl"] button, [dir="rtl"] select, [dir="rtl"] textarea,
[dir="rtl"] strong, [dir="rtl"] b, [dir="rtl"] label, [dir="rtl"] ::placeholder {
    font-family: 'Cairo', sans-serif !important;
}

/* Icons Fix */
[dir="rtl"] i, [dir="rtl"] .bi, [dir="rtl"] .fa {
    font-family: inherit !important;
}
[dir="rtl"] .bi::before, [dir="rtl"] [class^="bi-"]::before {
    font-family: "bootstrap-icons" !important;
}

/* Custom Mega Menu RTL Adjustments */
[dir="rtl"] .mega-menu {
    right: 0;
    left: auto;
    text-align: right;
}

[dir="rtl"] .mega-menu .col-lg-3 {
    border-left: 1px solid var(--border-color);
    border-right: none;
}

[dir="rtl"] .mega-menu .col-lg-3:last-child {
    border-left: none;
}

/* Flip Icons that imply direction */
[dir="rtl"] .bi-chevron-right::before {
    content: "\F284"; /* chevron-left */
}
[dir="rtl"] .bi-arrow-right::before {
    content: "\F12C"; /* arrow-left */
}

/* Adjustments for the sticky navbar glass effect in RTL */
[dir="rtl"] .navbar {
    left: 0;
    right: 0;
}
