body {
    direction: rtl;
    text-align: right;
}

.float-left {
    float: right !important;
}

.float-right {
    float: left !important;
}

.text-left {
    text-align: right !important;
}

.text-right {
    text-align: left !important;
}

/* Header Adjustments */
.theme-main-menu.navbar {
    float: left !important;
}

.navbar-nav {
    float: right !important;
}

.navbar-nav>li {
    float: right !important;
}

.theme-main-menu .navbar-toggle {
    float: left !important;
    padding-left: 15px;
    padding-right: 0;
}

.theme-main-menu .navbar-nav>li:last-child>a {
    padding-left: 0;
    padding-right: 15px;
}

.theme-main-menu .navbar-nav>li:first-child>a {
    padding-right: 0;
}

/* Dropdown Menu RTL */
.dropdown-menu {
    left: auto !important;
    right: 0 !important;
    text-align: right !important;
}

.modern-dropdown li a {
    text-align: right !important;
}

/* Slider Caption RTL */
.rev_slider_wrapper,
.rev_slider,
.tp-revslider-mainul {
    direction: ltr !important;
}

.slide-caption {
    text-align: center !important;
    direction: rtl !important;
}

/* About Section RTL */
#about-us .row {
    display: flex;
    flex-direction: row-reverse;
}

/* Feature Section RTL */
#features .single-service-content .icon-heading {
    left: auto;
    right: 0;
}

/* Platform Section RTL */
.platform {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

/* Contact Section RTL */
#contact-section .left-side ul li .icon {
    margin-left: 15px;
    margin-right: 0;
    float: right;
}

#contact-section .send-message form .single-input input,
#contact-section .send-message form .single-input select,
#contact-section .send-message form .single-input-area textarea {
    text-align: right;
}

/* Footer RTL */
footer {
    text-align: right;
}

/* Owl Carousel RTL Support */
.owl-carousel {
    direction: ltr !important;
    /* Owl carousel handles its own RTL but often better to keep ltr container and reverse items if needed, but usually it needs ltr dir to function correctly unless owl-rtl is used */
}

/* Spacing Fixes */
.theme-title h2:before {
    left: auto;
    right: 50%;
    margin-right: -12px;
}

/* Language Switcher Fix */
.lang-switcher {
    margin-right: 15px;
}

@media (max-width: 991px) {
    .navbar-nav {
        float: none !important;
    }

    .navbar-nav>li {
        float: none !important;
        text-align: right;
    }

    .theme-main-menu .navbar-toggle {
        float: left !important;
    }
}