/* =====================================================
   ORIENT GATE - RTL STYLES
   Arabic Language Support
   ===================================================== */

/* Base RTL Settings */
html[dir="rtl"] body {
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

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 {
    font-family: 'Cairo', sans-serif;
}

/* =====================================================
   HEADER RTL STYLES
   ===================================================== */

html[dir="rtl"] .og-header {
    direction: rtl;
}

html[dir="rtl"] .og-container-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

html[dir="rtl"] .og-navbar {
    direction: rtl;
}

html[dir="rtl"] .og-logo {
    order: 1;
    margin-left: 0;
    margin-right: 0;
}

html[dir="rtl"] .og-navbar-toggler {
    order: 3;
}

html[dir="rtl"] .og-navbar-collapse {
    order: 2;
    text-align: right;
}

html[dir="rtl"] .og-nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

@media (max-width: 768px) 
    {
     
   html[dir="rtl"] .og-btn-book-inspection {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    float: right;
    margin-right: 15px;
}


    }

    
@media (max-width: 500px) 
    {
   
    html[dir="rtl"] .og-btn-book-inspectionn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    float: right;
}


    }



@media (max-width: 991.98px) {
html[dir="rtl"] .og-nav-links {
    flex-direction: column !important;
}


html[dir="rtl"] .og-nav-links {
    flex-direction: column !important;
}


}


html[dir="rtl"] .og-nav-links {
    flex-direction: row;
}

html[dir="rtl"] .og-nav-right {
    order: 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
}

/* =====================================================
   HERO SECTION RTL STYLES
   ===================================================== */

html[dir="rtl"] .og-hero-content {
    padding-right: 0;
    padding-left: 40px;
}

html[dir="rtl"] .og-hero-title {
    text-align: right;
    line-height: 80px;
}

html[dir="rtl"] .og-hero-description {
    text-align: right;
}

html[dir="rtl"] .og-hero-image-col {
    justify-content: flex-start;
}

html[dir="rtl"] .og-hero-image-wrapper::before {
    transform: skewX(-6deg);
}

html[dir="rtl"] .og-hero-image-inner {
    transform: skewX(6deg);
}

/* =====================================================
   CAROUSEL RTL STYLES
   ===================================================== */

html[dir="rtl"] .og-carousel-track {
    animation-name: og-carousel-scroll-rtl;
}

@keyframes og-carousel-scroll-rtl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

/* =====================================================
   QUALITY ASSURANCE SECTION RTL STYLES
   ===================================================== */

html[dir="rtl"] .og-qa-header {
    text-align: center;
}

html[dir="rtl"] .og-qa-card {
    /* flex-direction: row-reverse; */
    text-align: right;
}

html[dir="rtl"] .og-qa-card-content {
    text-align: right;
}

/* =====================================================
   WHY CHOOSE SECTION RTL STYLES
   ===================================================== */

html[dir="rtl"] .og-wc-header {
    text-align: right;
}

html[dir="rtl"] .og-wc-card-content {
    text-align: right;
}

/* =====================================================
   CONTACT FORM RTL STYLES
   ===================================================== */

html[dir="rtl"] .og-cf-wrapper {
    text-align: right;
}

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

html[dir="rtl"] .og-cf-label {
    text-align: right;
}

html[dir="rtl"] .og-cf-input,
html[dir="rtl"] .og-cf-textarea {
    text-align: right;
}

html[dir="rtl"] .og-cf-input::placeholder,
html[dir="rtl"] .og-cf-textarea::placeholder {
    text-align: right;
}

html[dir="rtl"] .og-cf-section-title {
    border-bottom: none;
    padding-bottom: 0;
    border-right: 2px solid var(--og-primary-color);
    padding-right: 10px;
}

html[dir="rtl"] .og-cf-checkbox-label {
    flex-direction: row-reverse;
}

html[dir="rtl"] .og-cf-checkbox-text {
    text-align: right;
}

html[dir="rtl"] .og-cf-checkbox-group {
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: flex-end;
}

html[dir="rtl"] .og-cf-file-input::file-selector-button {
    margin-right: 0;
    margin-left: 12px;
}

html[dir="rtl"] .og-cf-file-hint {
    text-align: right;
}

html[dir="rtl"] .og-cf-buttons-wrapper {
    flex-direction: row-reverse;
}

html[dir="rtl"] .og-cf-file-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .og-cf-error-text,
html[dir="rtl"] .og-cf-checkbox-error {
    text-align: right;
}

html[dir="rtl"] .og-cf-confirm-label {
    flex-direction: row-reverse;
}

html[dir="rtl"] .og-cf-privacy {
    text-align: center;
}

/* =====================================================
   CERTIFICATE PAGE RTL STYLES
   ===================================================== */

html[dir="rtl"] .og-cert-header {
    text-align: center;
}

html[dir="rtl"] .og-cert-wrapper {
    text-align: right;
}

/* =====================================================
   INDUSTRY LEADERS SECTION RTL STYLES
   ===================================================== */

html[dir="rtl"] .og-il-stats {
    flex-direction: row-reverse;
}



html[dir="rtl"] .og-il-video-info {
    text-align: right;
}

html[dir="rtl"] .og-il-play-btn svg {
    margin-left: 0;
    margin-right: 4px;
    /* transform: scaleX(-1); */
}

/* =====================================================
   POPUP RTL STYLES
   ===================================================== */

html[dir="rtl"] .og-popup-close {
    right: auto;
    left: -15px;
}

/* =====================================================
   FOOTER RTL STYLES
   ===================================================== */



html[dir="rtl"] .og-ft-cta-content {
    text-align: right;
}

html[dir="rtl"] .og-ft-main {
    direction: rtl;
}

html[dir="rtl"] .og-ft-col-brand {
    padding-right: 0;
    padding-left: 20px;
    text-align: right;
}

html[dir="rtl"] .og-ft-brand-desc {
    text-align: right;
}

html[dir="rtl"] .og-ft-tagline {
    text-align: right;
}

html[dir="rtl"] .og-ft-social {
    align-items: flex-start;
}


html[dir="rtl"] .og-ft-col {
    text-align: right;
}

html[dir="rtl"] .og-ft-links {
    text-align: right;
}

html[dir="rtl"] .og-ft-contact-list li {
    /* flex-direction: row-reverse; */
    text-align: right;
}





/* =====================================================
   RESPONSIVE RTL STYLES
   ===================================================== */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    html[dir="rtl"] .og-hero-content {
        padding-left: 15px;
        text-align: center;
    }

    html[dir="rtl"] .og-hero-title,
    html[dir="rtl"] .og-hero-description {
        /* text-align: center; */
        padding-right: 15px;
    }


        html[dir="rtl"] .og-hero-title
    {
        line-height: 50px;
    }

    html[dir="rtl"] .og-hero-image-col {
        justify-content: center;
    }

    html[dir="rtl"] .og-navbar-collapse {
        text-align: center;
    }

    html[dir="rtl"] .og-nav-right {
        flex-direction: column;
    }

    html[dir="rtl"] .og-ft-cta-card {
        flex-direction: column;
        text-align: center;
    }

    html[dir="rtl"] .og-ft-cta-content {
        text-align: center;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 768px) {
    html[dir="rtl"] .og-il-stats {
        justify-content: flex-end;
    }

    html[dir="rtl"] .og-btn-book-inspection {
        justify-content: center;
    }

    html[dir="rtl"] .og-cf-row {
        flex-direction: column;
    }

    html[dir="rtl"] .og-cf-buttons-wrapper {
        flex-direction: column;
    }

    html[dir="rtl"] .og-cf-checkbox-group {
        flex-direction: column;
        align-items: flex-end;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    html[dir="rtl"] .og-hero-image-wrapper::before {
        display: none;
    }

    html[dir="rtl"] .og-hero-image-inner {
        transform: none;
    }

    html[dir="rtl"] .og-qa-header {
        text-align: right;
    }

    html[dir="rtl"] .og-il-stats {
        align-items: flex-end;
    }

    html[dir="rtl"] .og-ft-col-brand {
        text-align: right;
    }

    html[dir="rtl"] .og-ft-logo {
        justify-content: flex-start;
    }

    html[dir="rtl"] .og-ft-social {
        align-items: flex-start;
    }

    html[dir="rtl"] .og-ft-bottom {
        /* align-items: flex-end; */
        align-items: flex-start;
        text-align: right;
        padding: 20px 10px 0px 0px;
    }


 html[dir="rtl"] .og-cf-wrapper
{
    margin-right:15px;
    margin-left: 15px;
}


}
