/**
 * RTL (Right-to-Left) Support for Spark Construction Lite Theme
 * Supports: Arabic, Hebrew, Urdu, Persian, Farsi, and other RTL languages
 */

html {
    direction: rtl;
    unicode-bidi: embed;
}

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

/* Text Alignment */
.desktop-text-left, .text-left {
    text-align: right;
}
.desktop-text-right,
.text-right {
    text-align: left;
}
.text-center {
    text-align: center;
}

/* Lists and Content */
ul, ol {
    margin-right: 0;
    margin-left: 1.5em;
}

/* Blockquote */
blockquote {
    border-right: 4px solid var(--theme-color);
    border-left: 0;
    padding-right: 15px;
    padding-left: 0;
}

/* Icon & Button Flipping */
.btn::after,
.btn-icon,
.sparkconstructionlite-button .elementor-icon,
.ikbutton-single-wrap.style1::after,
.arrow-icon,
.chevron-icon {
    transform: scaleX(-1);
}

/* Button icons */
.btn i,
.button i,
.btn .icon,
.button .icon {
    margin-left: 5px;
    margin-right: 0;
}

.btn-icon::before,
.btn-icon::after,
.btn i::before,
.btn i::after {
    transform: scaleX(-1);
}
.btn:hover::after {
    transform: rotate(225deg);
}

.wp-block-search__button {
    margin-right: 0;
}
.widget-search button {
    left: 20px;
    right: auto;
}

.full-search-wrapper .widget-search button {
    left: 1px;
    right: auto;
}
.full-search-wrapper button.search-close {
    left: 0;
    right: auto;
}

/* Header & Navigation */
.site-branding {
    margin-right: 0;
    margin-left: 1rem;
}
.box-header-nav {
    margin-right: 0;
    margin-left: 1rem;
}

/* Logo alignment */
.site-logo,
.site-branding img {
    float: right;
}
.box-header-nav .main-menu .page_item.page_item_has_children>a::after, 
.box-header-nav .main-menu>.menu-item.menu-item-has-children>a::after {
    margin-right: 4px;
}
/* Submenu Navigation */
.nav-menu .main-menu .children li:hover > a, 
.nav-menu .main-menu .sub-menu li:hover > a {
    padding-left: 0;
    padding-right: 30px;
}
.nav-menu .main-menu .sub-menu li>a:hover:before, 
.nav-menu .main-menu .children li>a:hover:before, 
.nav-menu .main-menu .sub-menu li.current_page_item>a:before, 
.nav-menu .main-menu .children li.current_page_item>a:before, 
.nav-menu .main-menu .sub-menu li.current-menu-item>a:before, 
.nav-menu .main-menu .children li.current-menu-item>a:before {
    left: 0;
    right: 15px;
}

/* Submenu positioning */
.nav-menu .main-menu .sub-menu,
.nav-menu .main-menu .children {
    left: auto;
    right: 0;
}

.box-header-nav .main-menu .children>.page_item.page_item_has_children>a::after, 
.box-header-nav .main-menu .sub-menu>.menu-item.menu-item-has-children>a::after {
    content: '\f104';
}

/* Blog post list */
.ikthemes-article-date {
    right: auto;
    left: 30px;
}
.entry-meta.info .avatar {
    margin-left: 5px;
    margin-right: 0;
}
.related-posts .related-title {
    border-right: 4px solid var(--theme-color);
    border-left: 0;
}

.comment-metadata {
    padding-right: 50px;
    padding-left: 0;
}
.comment-author img {
    margin-left: 10px;
    margin-right: 0;
}
.comment-form-cookies-consent label {
    margin-right: 14px;
    margin-left: 0;
}

.is-style-circle-list li:before {
    margin-left: 5px;
    margin-right: 0;
}

/* Lists and Content */
ul, ol {
    padding: 0 20px 0 0;
}

/* Sidebar Widgets */
.widget-area .widget .wp-block-heading, 
.widget-area .widget .widget-title {
    border-right: 4px solid var(--theme-color);
    border-left: 0;
}

/* Footer Widgets */
.site-footer .widget ul li:hover a, 
.site-footer .widget ol li:hover a {
    margin-right: 15px;
    margin-left: 0;
}
.site-footer .widget ul li a::before, 
.site-footer .widget ol li a::before {
    content: "\f0a5";
    margin-left: 6px;
    margin-right: auto;
    display: inline-flex;
}

/* Banner Slider */
.arrowstyle .owl-nav button.owl-next {
    border-radius: 0 5px 5px 0;
}
.arrowstyle .owl-nav button.owl-prev {
    border-radius: 5px 0 0 5px;
}
.arrowstyle .owl-nav button.owl-prev::before {
    content: '\f054';
}
.arrowstyle .owl-nav button.owl-next::before {
    content: '\f053';
}
.start .sparkconstructionlite-banner-caption{
    text-align: right;
}
.end .sparkconstructionlite-banner-caption{
    text-align: left;
}

/* About Us Section */
.about-wrapper .about-super-title::after {
    margin-right: 20px;
    margin-left: 0;
}
.aboutus-icon-wrapper:after {
    right: 24px;
    left: auto;
}
.about-video-link.box-shadow-ripples {
    margin-left: 0;
    margin-right: 25px;
}
.about_us_front .sparkconstructionlite-progress-title {
    text-align: right;
}
.sparkconstructionlite-progress-bar-length span {
    left: 0;
    right: auto;
}
.about-profile-img {
    margin-right: 15px;
    margin-left: 0;
}

/* Section Title Elements */
.section-title-wrapper .super-title:before {
    left: calc(100% + 20px);
    right: auto;
    background-image: -webkit-gradient(linear, right top, right top, from(var(--theme-color)), color-stop(130%, transparent));
    background-image: -o-linear-gradient(right, var(--theme-color), transparent 130%);
    background-image: linear-gradient(to right, var(--theme-color), transparent 130%);
    background-color: transparent;
}
.section-title-wrapper .super-title:after {
    right: calc(100% + 20px);
    left: auto;
    background-image: -webkit-gradient(linear, left top, left top, from(var(--theme-color)), color-stop(130%, transparent));
    background-image: -o-linear-gradient(left, var(--theme-color), transparent 130%);
    background-image: linear-gradient(to left, var(--theme-color), transparent 130%);
    background-color: transparent;
}

.section-title-wrapper.style2.text-right .section-title::before {
    right: auto;
    left: 0;
}
.section-title-wrapper.style2.text-right .section-title::after {
    left: 0;
    right: auto;
    background: linear-gradient(190deg, transparent 0%, var(--theme-color) 50%, var(--theme-color) 100%);
}

.section-title-wrapper.style2.text-left .section-title::before {
    left: auto;
    right: 0;
}
.section-title-wrapper.style2.text-left .section-title::after {
    right: 0;
    left: auto;
    background: linear-gradient(90deg, transparent 0%, var(--theme-color) 50%, var(--theme-color) 100%);
}

/** Features Service Section **/
.start .feature-service-content{
    text-align: right;
}
.end .feature-service-content{
    text-align: left;
}

/* Call to Action Section */
.start .call-to-action-content-wrap{
    align-items: end;
    text-align: end;
}
.end .call-to-action-content-wrap{
    align-items: start;
    text-align: start;
}

/* Counter Section */
.counter-block-suffix {
    margin-right: 3px;
    margin-left: 0;
}

/* Testimonial Section */
.fa-arrow-right-long::before {
    content: "\f177";
}

/***** Elementror Widget Adjustments *****/
/* Banner Slider */
.nav_arrow .owl-nav button.owl-next {
    border-radius: 0 5px 5px 0;
}
.nav_arrow .owl-nav button.owl-prev {
    border-radius: 5px 0 0 5px;
}
.nav_arrow .owl-nav button.owl-prev::before {
    content: '\f054';
}
.nav_arrow .owl-nav button.owl-next::before {
    content: '\f053';
}
.start .sparkconstructionlite-slider-caption{
    text-align: right;
}
.end .sparkconstructionlite-slider-caption{
    text-align: left;
}

/* Mobile Menu RTL */
@media screen and (max-width: 1024px) {
    .site-branding {
        margin-right: 0;
        margin-left: 0;
    }
}

/* Print RTL */
@media print {
    body {
        direction: rtl;
        text-align: right;
    }

    .no-print {
        display: none;
    }

    a {
        text-decoration: none;
    }
}