/* ==========================================================================
   Terramo × Tilux Arabic RTL Stylesheet
   ========================================================================== */

html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] span,
html[dir="rtl"] li,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea {
    font-family: "Qomra", "Cairo", "Unbounded", sans-serif !important;
    letter-spacing: 0 !important;
}

html[dir="rtl"] .fontEn:not(.fa):not(.fas):not(.far):not(.fab):not([class^="fa-"]):not([class*=" fa-"]) {
    font-family: "Unbounded", "Inter", sans-serif !important;
}

html[dir="rtl"] .fa,
html[dir="rtl"] .fas,
html[dir="rtl"] .far,
html[dir="rtl"] .fab,
html[dir="rtl"] [class^="fa-"],
html[dir="rtl"] [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
}

/* Buttons & Arrow Direction */
html[dir="rtl"] .btn-default {
    padding: 18px 25px 18px 56px;
}

html[dir="rtl"] .header-btn .btn-default {
    padding: 14px 20px 14px 48px;
}

html[dir="rtl"] .btn-default::before {
    right: auto;
    left: 6px;
    transform: translateY(-50%) scaleX(-1);
}

html[dir="rtl"] .header-btn .btn-default::before {
    right: auto;
    left: 5px;
}

html[dir="rtl"] .btn-default:hover::before {
    transform: translateY(-50%) scaleX(-1) rotate(45deg);
}

html[dir="rtl"] .readmore-btn {
    padding-right: 0;
    padding-left: 24px;
}

html[dir="rtl"] .readmore-btn::before {
    right: auto;
    left: 0;
    transform: translateY(-50%) scaleX(-1);
}

html[dir="rtl"] .readmore-btn:hover::before {
    transform: translateY(-50%) scaleX(-1) rotate(45deg);
}

/* Section Title & Sub-title */
html[dir="rtl"] .section-title .section-sub-title {
    padding: 8px 35px 8px 20px;
}

html[dir="rtl"] .section-title .section-sub-title::before {
    left: auto;
    right: 20px;
}

html[dir="rtl"] .section-btn {
    text-align: left;
}

html[dir="rtl"] .section-content-btn .section-btn {
    text-align: right;
}

/* Header & Menus */
html[dir="rtl"] header.main-header .main-menu > .nav-menu-wrapper > ul > li.submenu > a.nav-link::after {
    margin: 0 !important;
}

html[dir="rtl"] header.main-header .main-menu ul ul {
    left: auto !important;
    right: 0 !important;
    text-align: right !important;
}

html[dir="rtl"] header.main-header .main-menu ul ul li > a.nav-link {
    direction: rtl !important;
    text-align: right !important;
}

html[dir="rtl"] header.main-header .main-menu ul ul li > a.nav-link .menu-item-label {
    text-align: right !important;
}

html[dir="rtl"] header.main-header .main-menu ul ul ul,
html[dir="rtl"] header.main-header .main-menu ul.right-231 {
    left: auto !important;
    right: calc(100% + 10px) !important;
    transform: translateX(-8px) scale(0.98);
}

html[dir="rtl"] header.main-header .main-menu ul ul ul::before,
html[dir="rtl"] header.main-header .main-menu ul.right-231::before {
    left: auto !important;
    right: -14px !important;
}

html[dir="rtl"] header.main-header .main-menu ul ul li:hover > ul {
    transform: translateX(0) scale(1) !important;
}

html[dir="rtl"] header.main-header .main-menu ul ul li:hover > a.nav-link,
html[dir="rtl"] header.main-header .main-menu ul ul li > a.nav-link:hover,
html[dir="rtl"] header.main-header .main-menu ul ul li > a.nav-link:focus {
    background: linear-gradient(270deg, rgba(75, 184, 231, 0.22) 0%, rgba(75, 184, 231, 0.07) 100%) !important;
    box-shadow: inset -2.5px 0 0 #4bb8e7, 0 4px 14px rgba(0, 0, 0, 0.16) !important;
}

html[dir="rtl"] header.main-header .main-menu ul li.submenu ul li.submenu > a.nav-link::after {
    float: none !important;
    margin: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%239be4ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 2.5L4 6L7.5 9.5'/%3E%3C/svg%3E") !important;
}

html[dir="rtl"] header.main-header .main-menu ul li.submenu ul li.submenu:hover > a.nav-link::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 2.5L4 6L7.5 9.5'/%3E%3C/svg%3E") !important;
    transform: translateX(-2px) !important;
}

@media only screen and (max-width: 991px) {
    html[dir="rtl"] .mobile-search-btn {
        margin-right: 0;
        margin-left: 10px;
    }
    html[dir="rtl"] .section-title .section-sub-title {
        padding: 6px 25px 6px 12px;
    }
    html[dir="rtl"] .section-title .section-sub-title::before {
        left: auto;
        right: 12px;
    }
    html[dir="rtl"] .btn-default {
        padding: 15px 15px 15px 50px;
    }
}

@keyframes terramoHeroDollyInRtl {
    0% {
        transform: scaleX(-1) scale(1) translate3d(0, 0, 0);
    }
    100% {
        transform: scaleX(-1) scale(1.13) translate3d(0, -1%, 0);
    }
}

/* Hero Pill, Gradient & Image Flipped for RTL */
html[dir="rtl"] .hero .section-title .section-sub-title {
    padding: 12px 40px 12px 24px !important;
}

html[dir="rtl"] .hero .section-title .section-sub-title::before {
    left: auto !important;
    right: 24px !important;
}

@media only screen and (max-width: 991px) {
    html[dir="rtl"] .hero .section-title .section-sub-title {
        padding: 8px 29px 8px 14px !important;
    }
    html[dir="rtl"] .hero .section-title .section-sub-title::before {
        left: auto !important;
        right: 14px !important;
    }
}

html[dir="rtl"] .hero-slider-image img {
    transform-origin: 50% 48%;
    animation: terramoHeroDollyInRtl 9s ease-in-out infinite alternate;
    will-change: transform;
}

html[dir="rtl"] .satisfy-client-image {
    margin-left: 0;
    margin-right: -16px;
}

html[dir="rtl"] .satisfy-client-image:first-child {
    margin-right: 0;
}

html[dir="rtl"] .section-footer-text.section-satisfy-img .satisfy-client-image.add-more {
    margin-left: 0;
    margin-right: -10px;
}

html[dir="rtl"] .collection-item-btn {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .collection-item-btn a img {
    transform: scaleX(-1);
}

html[dir="rtl"] .collection-item-btn a:hover img {
    transform: scaleX(-1) rotate(45deg);
}

html[dir="rtl"] .video-play-button a i {
    margin-left: 0;
    margin-right: 2px;
    transform: scaleX(-1);
}

html[dir="rtl"] .hero-slide::before {
    background: linear-gradient(
        180deg,
        rgba(29, 29, 29, 0.88) 0%,
        rgba(29, 29, 29, 0.10) 42%,
        rgba(29, 29, 29, 0.24) 58%,
        var(--primary-color) 85.39%
    );
}

html[dir="rtl"] .hero-body-list {
    border-left: none;
    border-right: 1px solid var(--dark-divider-color);
    padding-left: 0;
    padding-right: 40px;
    margin-left: 0;
    margin-right: 40px;
}

html[dir="rtl"] .hero-body-list ul li {
    padding-left: 0;
    padding-right: 30px;
}

html[dir="rtl"] .hero-body-list ul li::before {
    left: auto;
    right: 0;
}

/* About Us & Why Choose Us */
html[dir="rtl"] .about-us-image-box {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .about-us-image-box-1 .about-us-image figure {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .about-us-image-box-1 .contact-us-circle {
    right: auto;
    left: 0;
    transform: translateX(-50%);
}

html[dir="rtl"] .about-us-image-box-2 .about-us-image figure {
    margin-left: 0 !important;
    margin-right: -236px !important;
    border: 6px solid var(--bg-color);
    border-radius: 12px;
}

@media only screen and (max-width: 767px) {
    html[dir="rtl"] .about-us-image-box {
        margin-left: 0 !important;
    }
    html[dir="rtl"] .about-us-image-box-2 .about-us-image figure {
        margin-right: -134px !important;
        margin-left: 0 !important;
    }
}

html[dir="rtl"] .skills-progress-bar .skillbar .skill-progress .count-bar {
    left: auto;
    right: 0;
}

html[dir="rtl"] .about-us-body-list ul li {
    padding-left: 0;
    padding-right: 25px;
}

html[dir="rtl"] .about-us-body-list ul li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .why-choose-collage {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .intro-video-card::before {
    background: linear-gradient(
        270deg,
        rgba(29, 29, 29, 0.92) 0%,
        rgba(29, 29, 29, 0.72) 55%,
        rgba(20, 84, 111, 0.48) 100%
    );
}

/* Interactive Process & Qualities */
html[dir="rtl"] .interactive-process-layout .interactive-process-item {
    border-right: none;
    border-left: 1px solid var(--dark-divider-color);
}

html[dir="rtl"] .product-qualities-image-box {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .product-qualities-image-box-1 .product-qualities-image figure {
    margin-right: 0;
    margin-left: -185px;
}

html[dir="rtl"] .product-qualities-image-box-2 .product-qualities-image figure {
    border-right: 6px solid var(--bg-color);
    border-left: none;
    border-radius: 0 12px 12px 0;
}

html[dir="rtl"] .product-qualities-counter-box {
    margin: 20px 0 30px 20px;
}

/* Footer */
html[dir="rtl"] .footer-links-box {
    margin-left: 0;
    margin-right: 36px;
}

html[dir="rtl"] .footer-contact-quote-link i {
    transform: scaleX(-1);
}

html[dir="rtl"] .footer-links ul {
    padding: 0 20px 0 0 !important;
}

html[dir="rtl"] .slicknav_arrow:after {
    left: 15px;
    right: auto;
}

@media only screen and (max-width: 1199px) {
    html[dir="rtl"] .footer-links-box {
        margin-right: 0;
    }
}

@media only screen and (max-width: 1024px) {
    html[dir="rtl"] .footer-links-box {
        margin-right: 0;
    }
    html[dir="rtl"] .hero-body-list {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }
}

html[dir="rtl"] .footer-newsletter-form {
    padding: 5px 18px 5px 6px;
}

html[dir="rtl"] .footer-newsletter-form button i {
    transform: scaleX(-1);
}

/* FAB & Search & Toast */
html[dir="rtl"] .fab-wrap {
    right: auto;
    left: 22px;
    align-items: flex-start;
}

html[dir="rtl"] .search-close {
    right: auto;
    left: 20px;
}

html[dir="rtl"] .popup-status {
    right: auto;
    left: 24px;
}

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

/* ==========================================================================
   Tilux Home 3 (-silver) RTL Directional Mirrors
   ========================================================================== */
html[dir="rtl"] .about-us-silver {
    background-position: bottom -15px left -250px;
}

html[dir="rtl"] .reveal img {
    -webkit-transform-origin: right;
    transform-origin: right;
}

html[dir="rtl"] .about-us-content-silver,
html[dir="rtl"] .about-us-item-list-silver,
html[dir="rtl"] .about-us-item-silver {
    overflow: visible !important;
}

html[dir="rtl"] .satisfy-client-image {
    margin-left: 0;
    margin-right: -14px;
}

html[dir="rtl"] .satisfy-client-image:first-child {
    margin-right: 0;
}

html[dir="rtl"] .about-us-image-box-silver {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .about-us-image-box-1-silver .about-us-image-silver {
    margin-right: 0;
    margin-left: -121px;
}

html[dir="rtl"] .about-us-list-silver ul li {
    padding-left: 0;
    padding-right: 25px;
}

html[dir="rtl"] .about-us-list-silver ul li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .about-us-client-content-silver p span {
    margin-right: 0;
    margin-left: 5px;
}

html[dir="rtl"] .why-choose-us-image-box-silver {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .why-choose-image-box-2-silver .why-choose-image-silver figure {
    margin-left: 0;
    margin-right: -220px;
}

html[dir="rtl"] .why-choose-body-list-silver ul li {
    padding-left: 0;
    padding-right: 25px;
}

html[dir="rtl"] .why-choose-body-list-silver ul li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .feature-image-box-silver {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .feature-image-box-2-silver .enquire-now-circle-silver {
    left: auto;
    right: -10px;
    transform: translate(50%, 50%);
}

html[dir="rtl"] .feature-cta-client-box-silver .satisfy-client-image {
    margin-left: 0;
    margin-right: -10px;
}

html[dir="rtl"] .feature-cta-client-box-silver .satisfy-client-image:first-child {
    margin-right: 0;
}

html[dir="rtl"] .our-features-silver .section-content-btn .section-btn,
html[dir="rtl"] .our-features-silver .section-btn {
    text-align: right;
}

html[dir="rtl"] .network-counter-item-silver::before {
    right: auto;
    left: -1.563vw;
}

html[dir="rtl"] .product-slider-silver .product-button-prev-silver::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

html[dir="rtl"] .product-slider-silver .product-button-next-silver::before {
    transform: translate(-50%, -50%) rotate(225deg);
}

html[dir="rtl"] .readmore-btn {
    padding-right: 0;
    padding-left: 22px;
}

html[dir="rtl"] .readmore-btn::before {
    right: auto;
    left: 0;
    transform: translateY(-50%) scaleX(-1);
}

html[dir="rtl"] .readmore-btn:hover::before {
    transform: translateY(-50%) scaleX(-1) rotate(45deg);
}

@media only screen and (max-width: 991px) {
    html[dir="rtl"] .about-us-silver {
        background-position: bottom -15px left -100px;
    }
    html[dir="rtl"] .about-us-image-box-silver,
    html[dir="rtl"] .why-choose-us-image-box-silver,
    html[dir="rtl"] .feature-image-box-silver {
        margin-left: 0;
    }
}

@media only screen and (max-width: 767px) {
    html[dir="rtl"] .about-us-image-box-1-silver .about-us-image-silver {
        margin-right: 0;
        margin-left: -70px;
    }
    html[dir="rtl"] .why-choose-image-box-2-silver .why-choose-image-silver figure {
        margin-left: 0;
        margin-right: -118px;
    }
    html[dir="rtl"] .network-counter-item-silver::before {
        right: auto;
        left: -10px;
    }
}

html[dir="rtl"] .footer-links-silver::before {
    right: auto;
    left: -2.604vw;
}

html[dir="rtl"] .footer-header-silver .section-title h2,
html[dir="rtl"] .footer-links-silver,
html[dir="rtl"] .about-footer-silver {
    text-align: right;
}
