html[lang="ar"] {
    font-synthesis-style: none;
}

html[lang="ar"] :is(body, h1, h2, h3, h4, h5, h6, .slidertext1, .slidertext2, .sliderbtn, input, select, textarea, button, .btn),
html[lang="ar"] .section-title p {
    font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
    letter-spacing: normal;
    text-transform: none;
}

html[lang="ar"] :is(body, p, label, .about-desc li, .cookie-consent p) {
    line-height: 1.8;
}

html[lang="ar"] :is(h1, h2, h3, h4, h5, h6) {
    line-height: 1.5;
    overflow-wrap: break-word;
}

html[lang="ar"] :is(em, i:not([class]), cite) {
    font-style: normal;
}

html[lang="ar"] :is(.about-desc, .information, .modal-body, .form-privacy, .blogGrid, #footer) {
    overflow-wrap: anywhere;
    word-break: normal;
}

html[lang="ar"] .container {
    max-width: 100%;
}

html[lang="ar"] :is(.contact, #address, .modal-footer, .dropdown-menu) {
    text-align: right;
}

html[lang="ar"] :is(.contact > span, #address .fa, #address .fas, #address .fab, #address .far) {
    float: right;
}

html[lang="ar"] .information {
    padding: 0 80px 0 0;
}

html[lang="ar"] #address :is(.fa, .fas, .fab, .far) {
    margin: 0 0 0 15px;
}

html[lang="ar"] .modal-header .close {
    float: left;
}

html[lang="ar"] .form-privacy input[type="checkbox"] {
    margin: 0 0 0 4px;
}

html[lang="ar"] .about-desc ul {
    padding: 0 1.5em 0 0;
}

html[lang="ar"] .cookie-consent {
    right: auto;
    left: 16px;
    padding: 18px 18px 18px 42px;
}

html[lang="ar"] .cookie-consent-close {
    right: auto;
    left: 8px;
}

html[lang="ar"] #formncc .input-group {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

html[lang="ar"] .input-group .input-group-addon {
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
    max-width: 55%;
    padding-inline: 8px;
    line-height: 1.5;
    white-space: normal;
    border: 0;
}

html[lang="ar"] #formncc .input-group .form-control {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    font-size: 16px;
}

html[lang="ar"] #formncc .input-group::before,
html[lang="ar"] #formncc .input-group::after {
    display: none;
}

html[lang="ar"] #formncc .input-group > span:not(.input-group-addon) {
    flex-basis: 100%;
}

html[lang="ar"] input[dir="ltr"] {
    text-align: right;
}

html[lang="ar"] :is(input[type="datetime-local"], bdi) {
    unicode-bidi: isolate;
}

html[lang="ar"] .newsletter .input-group::before {
    left: auto;
    right: 20px;
}

html[lang="ar"] .newsletter .form-control {
    float: right;
    padding-inline: 60px 15px;
}

html[lang="ar"] .newsletter .btn {
    padding-inline: clamp(10px, 3vw, 30px);
}

html[lang="ar"] .postmeta :is(span, a) {
    margin-left: 10px;
    margin-right: 0;
}

html[lang="ar"] .postmeta bdi {
    display: inline;
    margin: 0;
}

html[lang="ar"] #slider {
    background-color: #242424;
}

/* Revolution Slider positions the media in physical coordinates. Captions keep Arabic direction. */
html[lang="ar"] #slider .tp-banner {
    direction: ltr;
}

html[lang="ar"] #slider .caption {
    direction: rtl;
    unicode-bidi: isolate;
}

html[lang="ar"] #slider .slidertext1 span {
    font-size: inherit !important;
    line-height: inherit !important;
}

@media (min-width: 768px) {
    html[lang="ar"] .custom-navbar .navbar-header,
    html[lang="ar"] .custom-navbar .navbar-nav > li {
        float: right;
    }

    html[lang="ar"] .custom-navbar .navbar-right {
        float: left !important;
        margin-left: -15px;
        margin-right: 0;
    }

    html[lang="ar"] .custom-navbar :is(.navbar-brand, .navbar-brand > bdi) {
        float: right;
    }

    html[lang="ar"] .custom-navbar .navbar-right .dropdown-menu {
        left: 0;
        right: auto;
    }

    html[lang="ar"] :is(.row, .formrow) > :is([class*="col-sm-"], [class*="col-xs-"]) {
        float: right;
    }
}

@media (min-width: 992px) {
    html[lang="ar"] .row > [class*="col-md-"] {
        float: right;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    html[lang="ar"] .custom-navbar #MainxMenu .nav > li > a {
        padding-inline: 7px;
    }
}

@media (max-width: 767px) {
    html[lang="ar"] .custom-navbar .navbar-header {
        display: flex;
        align-items: center;
    }

    html[lang="ar"] .custom-navbar .navbar-header h2 {
        order: -1;
        margin: 0 0 0 auto;
    }

    html[lang="ar"] .custom-navbar .navbar-toggle {
        flex: 0 0 auto;
        margin: 8px 2px;
    }

    html[lang="ar"] .custom-navbar .navbar-brand {
        font-size: 19px;
        white-space: nowrap;
    }

    html[lang="ar"] #languagemenubar {
        display: none;
    }

    html[lang="ar"] .navbar-collapse.collapse.uncollapse-hidden.in {
        display: block !important;
    }

    html[lang="ar"] #formncc {
        padding-inline: 16px;
    }

    html[lang="ar"] #formncc h3 {
        font-size: 28px;
    }

    html[lang="ar"] #slider :is(.tp-banner, .tp-revslider-mainul) {
        min-height: 230px;
    }

    html[lang="ar"] #slider .active-revslide .caption {
        left: 5% !important;
        width: 90% !important;
        padding: 0 !important;
        text-align: center;
        white-space: normal !important;
        transform: none !important;
    }

    html[lang="ar"] #slider .active-revslide .slidertext2 {
        top: 38% !important;
        font-size: clamp(14px, 3.6vw, 19px) !important;
        line-height: 1.5 !important;
    }

    html[lang="ar"] #slider .active-revslide .slidertext1 {
        top: 52% !important;
        font-size: clamp(20px, 5.8vw, 34px) !important;
        line-height: 1.5 !important;
    }

    html[lang="ar"] #slider .active-revslide .sliderbtn {
        top: 76% !important;
        display: flex;
        justify-content: center;
        gap: 6px;
    }

    html[lang="ar"] #slider .sliderbtn .section-btn {
        margin: 0 !important;
        padding: 4px 9px !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
}

html[lang="ar"] body {
    font-synthesis: weight;
}
