/* RTL Specific Styles */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* Header RTL Fixes */
html[dir="rtl"] .header .consult-nav {
    float: none;
    text-align: center;
}

html[dir="rtl"] .header__chooseLanguage {
    margin-left: 0;
    margin-right: 20px;
}

/* Content RTL Fixes */
html[dir="rtl"] .title-01 {
    text-align: center;
}

html[dir="rtl"] .title-01__title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

html[dir="rtl"] .description-text {
    text-align: right;
    direction: rtl;
}

/* Team Section Alignment Fixes */
html[dir="rtl"] .list-style {
    padding: 0;
    margin: 0 20px;
    text-align: right;
    list-style-type: disc;
}

html[dir="rtl"] .list-style li {
    margin-bottom: 15px;
    text-align: right;
    padding-right: 0;
    position: relative;
}

html[dir="rtl"] .list-style li::before {
    display: none;
}

html[dir="rtl"] .list-style b,
html[dir="rtl"] .list-style span {
    display: inline;
    text-align: right;
}

html[dir="rtl"] .list-style span {
    margin-right: 5px;
}

/* Stats Section RTL Fixes */
html[dir="rtl"] .footer-divider {
    text-align: center;
}

html[dir="rtl"] .footer-divider .footer-title {
    text-align: center;
    display: block;
    margin: 0 auto;
}

html[dir="rtl"] .iconbox {
    text-align: center;
    margin-bottom: 30px;
}

html[dir="rtl"] .iconbox__icon {
    margin: 0 auto 15px;
    float: none;
    display: block;
    text-align: center;
}

html[dir="rtl"] .iconbox__title {
    text-align: center;
    margin-bottom: 10px;
}

html[dir="rtl"] .iconbox__description {
    text-align: center;
}

/* Fix overlapping issues */
html[dir="rtl"] .md-section {
    clear: both;
    overflow: hidden;
}

html[dir="rtl"] .container {
    direction: rtl;
}

/* Fix dropdown alignment */
html[dir="rtl"] .dropdown__content[data-position="right"] {
    right: auto;
    left: 0;
}

/* Fix navigation menu */
html[dir="rtl"] .consult-menu {
    padding-right: 0;
    text-align: center;
    float: none;
    display: inline-block;
}

html[dir="rtl"] .consult-menu > li {
    float: none;
    display: inline-block;
}

/* Fix footer alignment */
html[dir="rtl"] .footer__item {
    text-align: center;
}

/* Fix spacing issues */
html[dir="rtl"] .col-lg-10.col-xl-8.offset-0 {
    float: none;
    margin: 0 auto;
    display: block;
    max-width: 800px;
}

/* Fix icon alignments */
html[dir="rtl"] .fa {
    margin-left: 5px;
    margin-right: 0;
}

/* Fix Bootstrap grid system for RTL */
html[dir="rtl"] .row {
    direction: rtl;
}

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: none;
    display: inline-block;
    vertical-align: top;
}

/* Stats section specific fixes */
html[dir="rtl"] .md-section .row {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

html[dir="rtl"] .md-section .iconbox__style-03 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Fix margins and paddings */
html[dir="rtl"] .offset-lg-1,
html[dir="rtl"] .offset-xl-2 {
    margin-right: auto;
    margin-left: auto;
}

/* Fix mobile menu */
@media (max-width: 992px) {
    html[dir="rtl"] .consult-nav .consult-menu {
        right: auto;
        left: -280px;
        text-align: right;
    }
    
    html[dir="rtl"] .consult-nav .active.consult-menu {
        right: auto;
        left: 0;
    }
    
    html[dir="rtl"] .consult-nav .consult-menu li.menu-item-has-children > a:after {
        right: auto;
        left: 15px;
    }
    
    html[dir="rtl"] .consult-menu > li {
        display: block;
        text-align: right;
    }
} 