/* RTL (Right-to-Left) Styles for Arabic Version */

body {
    direction: rtl;
    text-align: right;
}

/* Reset Bootstrap RTL */
.container,
.container-fluid {
    direction: rtl;
}

/* Navigation */
.navigation {
    direction: rtl;
}

.navigation li {
    float: right;
}

/* Breadcrumb */
.pbmit-breadcrumb-inner {
    direction: rtl;
}

/* Float adjustments */
.float-left {
    float: right !important;
}

.float-right {
    float: left !important;
}

/* Text alignment */
.text-left {
    text-align: right !important;
}

.text-right {
    text-align: left !important;
}

/* Padding and Margin RTL */
.pr-0,
.px-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.pl-0,
.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.mr-0,
.mx-0 {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.ml-0,
.mx-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Icons RTL */
.pbmit-base-icon-arrow-right:before {
    content: "\f060" !important;
}

.pbmit-base-icon-arrow-left:before {
    content: "\f061" !important;
}

/* List items */
ul,
ol {
    padding-right: 20px;
    padding-left: 0;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    text-align: right;
    direction: rtl;
}

/* Swiper RTL */
.swiper-container {
    direction: rtl;
}

.swiper-button-next {
    left: 10px;
    right: auto;
}

.swiper-button-prev {
    right: 10px;
    left: auto;
}

/* Menu Toggle */
.navbar-toggler {
    margin-left: 0;
    margin-right: auto;
}

/* Social Icons */
.pbmit-social-links-wrapper ul li {
    float: right;
}

/* Footer */
.pbmit-footer-widget-col-1,
.pbmit-footer-widget-col-2 {
    text-align: right;
}

/* Box content alignment */
.pbmit-ihbox-contents,
.pbmit-box-content {
    text-align: right;
}

/* Progress bar */
.progress {
    direction: rtl;
}

.progressbar {
    position: relative;
}

.progress-label {
    display: block;
    margin-bottom: 10px;
    text-align: right;
}

.progress-percent {
    position: absolute;
    left: 0px !important;
    right: unset !important;
}

.progress-bar {
    float: right !important;
}

/* Language Switcher - RTL */
.pbmit-language-switcher {
    margin-left: 15px;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
}

.pbmit-language-switcher .lang-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background-color: transparent;
    border: 2px solid var(--pbmit-global-color);
    color: var(--pbmit-global-color);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    direction: ltr;
}

.pbmit-language-switcher .lang-link i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.pbmit-language-switcher .lang-link:hover {
    background-color: var(--pbmit-global-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(197, 164, 126, 0.3);
}

.pbmit-language-switcher .lang-link:hover i {
    transform: rotate(15deg);
}

.pbmit-language-switcher .lang-link span {
    display: inline-block;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 1199px) {

    /* Position hamburger menu on left side for RTL */
    .navbar-toggler {
        right: auto !important;
        left: 15px !important;
    }

    .sticky-header .navbar-toggler {
        left: 15px !important;
        right: auto !important;
    }

    /* Keep pbmit-right-side visible for language switcher */
    .pbmit-right-side {
        display: flex !important;
        position: relative;
    }

    /* Ensure language switcher is visible */
    .pbmit-right-side .pbmit-language-switcher {
        position: absolute;
        right: auto !important;
        left: 65px !important;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
        display: inline-flex !important;
    }

    /* Hide header button on mobile */
    .pbmit-header-button {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .pbmit-menu-wrap {
        direction: rtl;
    }

    /* Menu wrapper RTL positioning */
    .pbmit-menu-wrap ul.navigation {
        right: 0;
        left: auto;
    }

    /* Keep language switcher visible */
    .pbmit-right-side {
        display: flex !important;
    }

    .pbmit-right-side .pbmit-language-switcher {
        display: inline-flex !important;
        left: 65px !important;
        right: auto !important;
    }
}

@media (max-width: 767px) {

    /* Keep language switcher visible on tablets */
    .pbmit-right-side {
        display: flex !important;
    }

    /* Adjust language switcher for smaller screens */
    .pbmit-right-side .pbmit-language-switcher {
        left: 60px !important;
        display: inline-flex !important;
    }
}

@media (max-width: 575px) {

    /* Hamburger menu positioning for small screens */
    .navbar-toggler {
        left: 10px !important;
        white-space: nowrap;
    }

    /* Keep language switcher visible on mobile */
    .pbmit-right-side {
        display: flex !important;
    }

    /* Compact language switcher */
    .pbmit-right-side .pbmit-language-switcher {
        left: 55px !important;
        display: inline-flex !important;
    }
}

/* Footer widget title underline RTL fix */
.site-footer .widget .widget-title:before {
    left: auto;
    right: 0;
}

/* Footer menu link RTL fix */
.site-footer .widget .pbmit-footermenu-wrapper ul li a {
    padding-left: 0 !important;
    padding-right: 22px !important;
}

.site-footer .widget .pbmit-footermenu-wrapper ul li a:after {
    left: auto !important;
    right: 0 !important;
    content: "\e808" !important;
}

/* Contact form RTL fix */
.contact-form {
    padding-left: 0;
    padding-right: 60px;
}

.contact-form:before {
    left: auto;
    right: 0;
}

/* Heading title underline RTL fix - Targeted for specific sections */
/* Why Choose Us Section */
.pbmit-bg-color-secondary .pbmit-heading-subheading .pbmit-title:after {
    left: auto !important;
    right: 0 !important;
}

/* About Us Section */
.about-one-rightbox .pbmit-heading-subheading .pbmit-title:after {
    left: auto !important;
    right: 0 !important;
}

/* General style 1 heading fix */
.pbmit-heading-style-1 .pbmit-title:after {
    left: auto !important;
    right: -100px !important;
}

/* About box border RTL fix */
.about-one-ihbox .col-md-6:last-child {
    border-left: none;
    border-right: 1px solid #e7e7e7;
}

/* Custom heading underline RTL fix */
.pbmit-ihbox-style-3 .pbmit-vc_cta3-headers.pbmit-wrap-cell .pbmit-custom-heading:after {
    left: auto !important;
    right: 0 !important;
}

/* About Us content title alignment fix */
.about-us-content .pbmit-heading-subheading .pbmit-title:after {
    left: auto !important;
    right: 0 !important;
}

/* Contact page title alignment fix */
.contact-details .pbmit-heading-subheading .pbmit-title:after,
.contact-form .pbmit-heading-subheading .pbmit-title:after {
    left: auto !important;
    right: 0 !important;
}

/* Accordion RTL Fix - Move Arrow to Leftmost Side */
.accordion-style-1 .accordion-button {
    padding-left: 50px !important;
    padding-right: 20px !important;
    text-align: right;
}

.accordion-style-1 .accordion-button i {
    left: 15px !important;
    right: auto !important;
}

/* Service Box Style 2 Heading Arrow RTL Fix */
.pbmit-servicebox-style-2 h3 a:after {
    right: auto;
    left: 20px;
    content: "\e834";
}