/* ============================================================
   LUNAY GROUP - RTL STYLESHEET (ARABIC / right-to-left)
   ============================================================ */

/* 1. Global typography & text direction */
html[dir="rtl"],
html[dir="rtl"] body {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Segoe UI', Tahoma, Arial, 'Cairo', 'Amiri', sans-serif !important;
}

html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3, 
html[dir="rtl"] h4, 
html[dir="rtl"] h5, 
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] a,
html[dir="rtl"] li,
html[dir="rtl"] label,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] button {
    font-family: 'Segoe UI', Tahoma, Arial, 'Cairo', 'Amiri', sans-serif !important;
}

/* 2. Bootstrap 3 Grid Flipping for RTL */
html[dir="rtl"] .col-xs-1, html[dir="rtl"] .col-xs-2, html[dir="rtl"] .col-xs-3, html[dir="rtl"] .col-xs-4,
html[dir="rtl"] .col-xs-5, html[dir="rtl"] .col-xs-6, html[dir="rtl"] .col-xs-7, html[dir="rtl"] .col-xs-8,
html[dir="rtl"] .col-xs-9, html[dir="rtl"] .col-xs-10, html[dir="rtl"] .col-xs-11, html[dir="rtl"] .col-xs-12,
html[dir="rtl"] .col-sm-1, html[dir="rtl"] .col-sm-2, html[dir="rtl"] .col-sm-3, html[dir="rtl"] .col-sm-4,
html[dir="rtl"] .col-sm-5, html[dir="rtl"] .col-sm-6, html[dir="rtl"] .col-sm-7, html[dir="rtl"] .col-sm-8,
html[dir="rtl"] .col-sm-9, html[dir="rtl"] .col-sm-10, html[dir="rtl"] .col-sm-11, html[dir="rtl"] .col-sm-12,
html[dir="rtl"] .col-md-1, html[dir="rtl"] .col-md-2, html[dir="rtl"] .col-md-3, html[dir="rtl"] .col-md-4,
html[dir="rtl"] .col-md-5, html[dir="rtl"] .col-md-6, html[dir="rtl"] .col-md-7, html[dir="rtl"] .col-md-8,
html[dir="rtl"] .col-md-9, html[dir="rtl"] .col-md-10, html[dir="rtl"] .col-md-11, html[dir="rtl"] .col-md-12,
html[dir="rtl"] .col-lg-1, html[dir="rtl"] .col-lg-2, html[dir="rtl"] .col-lg-3, html[dir="rtl"] .col-lg-4,
html[dir="rtl"] .col-lg-5, html[dir="rtl"] .col-lg-6, html[dir="rtl"] .col-lg-7, html[dir="rtl"] .col-lg-8,
html[dir="rtl"] .col-lg-9, html[dir="rtl"] .col-lg-10, html[dir="rtl"] .col-lg-11, html[dir="rtl"] .col-lg-12 {
    float: right !important;
}

/* Offsets */
html[dir="rtl"] .col-md-offset-1 { margin-right: 8.33333333%; margin-left: 0 !important; }
html[dir="rtl"] .col-md-offset-2 { margin-right: 16.66666667%; margin-left: 0 !important; }
html[dir="rtl"] .col-md-offset-3 { margin-right: 25%; margin-left: 0 !important; }
html[dir="rtl"] .col-md-offset-4 { margin-right: 33.33333333%; margin-left: 0 !important; }

/* Pull / Push helpers */
html[dir="rtl"] .pull-right { float: left !important; }
html[dir="rtl"] .pull-left { float: right !important; }
html[dir="rtl"] .text-right { text-align: left !important; }
html[dir="rtl"] .text-left { text-align: right !important; }

/* 3. Topbar & Header layout */
html[dir="rtl"] .lny-topbar-inner {
    flex-direction: row-reverse !important;
}
html[dir="rtl"] .lny-topbar-right {
    align-items: flex-start !important;
}
html[dir="rtl"] .lny-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
}
html[dir="rtl"] .lny-nav > ul {
    flex-direction: row !important;
}
html[dir="rtl"] .lny-nav > ul > li > a i {
    margin-left: 0 !important;
    margin-right: 6px !important;
}
html[dir="rtl"] .lny-dropdown-menu {
    left: auto !important;
    right: 0 !important;
    text-align: right !important;
}
html[dir="rtl"] .lang-dropdown {
    left: 0 !important;
    right: auto !important;
}
html[dir="rtl"] .lny-btn-lang i.fa-globe {
    margin-right: 0 !important;
    margin-left: 5px !important;
}

/* 4. Breadcrumbs */
html[dir="rtl"] .breadcrumb {
    padding: 8px 0 !important;
    text-align: right !important;
}
html[dir="rtl"] .breadcrumb > li {
    display: inline-block !important;
    float: none !important;
}
html[dir="rtl"] .breadcrumb > li + li:before {
    content: "/\\00a0" !important;
    padding: 0 5px !important;
}

/* 5. Lists, Icons & Badges */
html[dir="rtl"] ul.list-unstyled,
html[dir="rtl"] ol,
html[dir="rtl"] ul {
    text-align: right;
}
html[dir="rtl"] p > .fa,
html[dir="rtl"] a > .fa,
html[dir="rtl"] li > .fa,
html[dir="rtl"] span > .fa,
html[dir="rtl"] h1 > .fa,
html[dir="rtl"] h2 > .fa,
html[dir="rtl"] h3 > .fa,
html[dir="rtl"] h4 > .fa,
html[dir="rtl"] h5 > .fa,
html[dir="rtl"] h6 > .fa,
html[dir="rtl"] button > .fa {
    margin-left: 6px;
    margin-right: 0;
}
/* Ensure icons centered inside icon containers remain perfectly centered */
html[dir="rtl"] .team-icon-wrapper .fa,
html[dir="rtl"] .icon-wrapper .fa,
html[dir="rtl"] [class*="icon-wrapper"] .fa,
html[dir="rtl"] [class*="icon-box"] .fa,
html[dir="rtl"] .stat-card-partnership i,
html[dir="rtl"] .stat-card-ortaklik i {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
html[dir="rtl"] .fa-angle-right:before {
    content: "\\f104" !important;
}
html[dir="rtl"] .fa-angle-left:before {
    content: "\\f105" !important;
}
html[dir="rtl"] .fa-arrow-right:before {
    content: "\\f060" !important;
}
html[dir="rtl"] .fa-arrow-left:before {
    content: "\\f061" !important;
}
html[dir="rtl"] .fa-chevron-right:before {
    content: "\\f053" !important;
}
html[dir="rtl"] .fa-chevron-left:before {
    content: "\\f054" !important;
}

/* 6. Tabs & Accordions */
html[dir="rtl"] .nav-tabs > li {
    float: right !important;
}
html[dir="rtl"] .panel-title > a {
    text-align: right !important;
    display: block !important;
}
html[dir="rtl"] .panel-title > a:before,
html[dir="rtl"] .panel-title > a:after {
    float: left !important;
}
html[dir="rtl"] .panel-heading .accordion-toggle:after {
    float: left !important;
}

/* 7. Forms, Inputs & Placeholders */
html[dir="rtl"] .form-control {
    text-align: right !important;
    direction: rtl !important;
}
html[dir="rtl"] .form-group label {
    text-align: right !important;
    display: block !important;
}

/* 8. Tables */
html[dir="rtl"] .table th,
html[dir="rtl"] .table td {
    text-align: right !important;
}

/* 9. Footer & Pre-footer */
html[dir="rtl"] .pre-footer {
    text-align: right !important;
}
html[dir="rtl"] .pre-footer h2 {
    text-align: right !important;
}
html[dir="rtl"] .pre-footer ul {
    padding-right: 0 !important;
}
html[dir="rtl"] .footer .padding-top-10 {
    text-align: right !important;
}
html[dir="rtl"] .footer ul.social-footer {
    text-align: left !important;
    float: left !important;
}

/* 10. Sidebar Navigation */
html[dir="rtl"] .sidebar {
    text-align: right !important;
}
html[dir="rtl"] .sidebar-menu > li > a {
    text-align: right !important;
    padding: 9px 15px 9px 10px !important;
}
html[dir="rtl"] .sidebar-menu > li > a > .fa-angle-right {
    float: left !important;
    margin-right: 0 !important;
    margin-left: 5px !important;
}

/* 11. Mobile Drawer Navigation */
@media (max-width: 991px) {
    html[dir="rtl"] .lny-nav > ul {
        right: auto !important;
        left: -100% !important;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1) !important;
        box-shadow: 10px 0 40px rgba(0,0,0,0.6) !important;
    }
    html[dir="rtl"] .lny-nav > ul.mobi-open {
        left: 0 !important;
        right: auto !important;
    }
    html[dir="rtl"] .mobi-close {
        right: auto !important;
        left: 30px !important;
    }
    html[dir="rtl"] .lny-dropdown-menu li a {
        text-align: right !important;
        padding-right: 25px !important;
        padding-left: 15px !important;
    }
}

/* RTL Support for lny-page-top-banner */
html[dir="rtl"] .lny-page-top-banner h3 i {
    margin-right: 0 !important;
    margin-left: 8px !important;
}
