/* RTL Specific Overrides */

/* General RTL Rules */
html[dir="rtl"] {
    text-align: right;
}

/* Direction Overrides */
html[dir="rtl"] .float-left {
    float: right !important;
}

html[dir="rtl"] .float-right {
    float: left !important;
}

html[dir="rtl"] .text-left {
    text-align: right !important;
}
html[dir="rtl"]  .fa-arrow-right:before {
    content: "\f062" !important;
    margin-right: 10px !important;
}

html[dir="rtl"] .text-right {
    text-align: left !important;
}

/* Margin and Padding Overrides */
html[dir="rtl"] .ml-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .mr-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ml-1, html[dir="rtl"] .ml-2, html[dir="rtl"] .ml-3, html[dir="rtl"] .ml-4, html[dir="rtl"] .ml-5 {
    margin-right: var(--spacing) !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .mr-1, html[dir="rtl"] .mr-2, html[dir="rtl"] .mr-3, html[dir="rtl"] .mr-4, html[dir="rtl"] .mr-5 {
    margin-left: var(--spacing) !important;
    margin-right: 0 !important;
}

/* Flexbox Overrides */
html[dir="rtl"] .flex-row {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .flex-row-reverse {
    flex-direction: row !important;
}

/* Navigation and Menu Items */
html[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

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

/* Form Elements */
html[dir="rtl"] .form-control {
    text-align: right;
}

html[dir="rtl"] .input-group > .form-control:not(:last-child),
html[dir="rtl"] .input-group > .custom-select:not(:last-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

/* Icons and Symbols */
html[dir="rtl"] .fa-angle-right:before {
    content: "\f104"; /* fa-angle-left */
}

html[dir="rtl"] .fa-angle-left:before {
    content: "\f105"; /* fa-angle-right */
}

/* Carousel and Slider */
html[dir="rtl"] .carousel-control-prev {
    right: 0;
    left: auto;
}

html[dir="rtl"] .carousel-control-next {
    left: 0;
    right: auto;
}

/* Modal */
html[dir="rtl"] .modal-header .close {
    margin: -1rem auto -1rem -1rem;
}

/* List Items */
html[dir="rtl"] ul, html[dir="rtl"] ol {
    padding-right: 2rem;
    padding-left: 0;
}

/* Breadcrumb */
html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    content: "\f104"; /* fa-angle-left */
    float: right;
    padding-left: 0.5rem;
    padding-right: 0;
}

/* Social Icons */
html[dir="rtl"] .social-icons li {
    margin-left: 10px;
    margin-right: 0;
}

/* Custom Components */
html[dir="rtl"] .testimonial-content {
    padding: 0 0 0 20px;
}

html[dir="rtl"] .testimonial-content:before {
    left: auto;
    right: 0;
}

/* Grid System */
html[dir="rtl"] .row {
    margin-right: -15px;
    margin-left: -15px;
}

html[dir="rtl"] [class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
} 
.portfolio-slider, .service-slider, .hero-slider, .partner-slider {direction: ltr;}
.site-title-tagline {padding: 2px 3px 2px 15px;}
.navbar::before {right: 0;left: inherit;}
/* .header-top .shape-1 {right: inherit;left: -50px;transform: skewX(40deg);} */
/* .header-top .shape-2 {transform: skewX(-40deg);right: -30px;} */
.header-top {background-color: var(--theme-color2);}
html[lang="ar"] .feature-item {height: 100%;}
html[lang="ar"] .about-left {margin-left: 40px;margin-right: 0px;}
html[lang="ar"] .footer-list {padding-left: 2rem;padding-right: 0;}
/* .footer-list li a i {display: none;} */

/* Tajawal Font Implementation */
body {
    font-family: 'Tajawal', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', sans-serif;
}

.navbar-nav .nav-link {
    font-family: 'Tajawal', sans-serif;
}

.btn, .theme-btn {
    font-family: 'Tajawal', sans-serif;
}

@media all and (min-width: 992px) {
    .navbar .nav-item .nav-link {
        margin-left: 16px;
        margin-right: 0;
        padding: 30px 0 30px 0;
        font-size: 14px;
        font-weight: 700;
        color: var(--color-dark);
        text-transform: capitalize;
    }
}
.navbar .dropdown-toggle::after {
    display: inline-block;
    margin-left: 5px;
    vertical-align: baseline;
    font-family: 'Font Awesome 6 Pro';
    content: "\f107";
    font-weight: 600;
    border: none;
    font-size: 12px;
    margin-right: 3px;
}
ul.navbar-nav.ms-auto {margin: 0 auto;}
.hero-single .hero-content .hero-btn {justify-content: end;}
.hero-single .hero-content .hero-sub-title {letter-spacing: 0;}
.blog-item-meta ul {padding-left: 2rem;padding-right: 0;}
.service-item .count {left: 20px;right:inherit}
.header-top-wrap {flex-direction: row-reverse;}
.header-top .shape-1 {width: 40%;}
.navbar::before {width: 100%;}
.footer-newsletter .newsletter-form .form-icon > i, .footer-widget-title::before {right: 0;left: inherit;}
.footer-newsletter .newsletter-form .form-control {padding: 16px 32px 16px 140px;}
.footer-newsletter .newsletter-form .theme-btn {left: 0px;right: inherit;}
html[dir="rtl"] .footer-contact {padding-right: 0rem;padding-left: 0;}
.footer-contact .icon {line-height: 40px;}
.footer-widget-box p {padding-right: 0;}
.footer-widget-box.about-us {margin-left: 50px;margin-right: 0px;}