/* RTL overrides for Arabic pages */

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: "IBM Plex Sans Arabic", "Gilroy", sans-serif;
}

html[dir="rtl"] .text-left {
    text-align: right !important;
}

html[dir="rtl"] .text-right {
    text-align: left !important;
}

html[dir="rtl"] .pull-right {
    float: left !important;
}

html[dir="rtl"] .pull-left {
    float: right !important;
}

html[dir="rtl"] .alignleft {
    float: right;
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .alignright {
    float: left;
    margin-left: 0;
    margin-right: 15px;
}

/* Header: keep same LTR layout as English (logo left, nav + actions right) */
html[dir="rtl"] .mainmenu-area,
html[dir="rtl"] .mainmenu-area .navbar,
html[dir="rtl"] .mainmenu-area .col-md-12.flex-v-center {
    direction: ltr;
}

html[dir="rtl"] .mainmenu-area .pull-right {
    float: right !important;
}

html[dir="rtl"] .header-call-to-action .action-button {
    padding: 15px 28px;
    text-transform: none;
    letter-spacing: 0;
}

html[dir="rtl"] .breadcrumb > li + li:before {
    content: "\/";
    padding: 0 5px;
}

html[dir="rtl"] .fa-long-arrow-right:before {
    content: "\f177";
}

html[dir="rtl"] .shop_attributes th {
    text-align: right;
}

html[dir="rtl"] .shop_attributes td {
    text-align: right;
}

html[dir="rtl"] .post-social-share-and-like-count ul,
html[dir="rtl"] .widget_post_share ul {
    padding-right: 0;
}

html[dir="rtl"] .owl-carousel {
    direction: ltr;
}

html[dir="rtl"] .owl-carousel .owl-item {
    direction: rtl;
}

html[dir="rtl"] .col-md-offset-1 {
    margin-right: 8.33333333%;
    margin-left: 0;
}

html[dir="rtl"] .welcome-text,
html[dir="rtl"] .area-title,
html[dir="rtl"] .single-widgets p {
    text-align: right;
}

html[dir="rtl"] .text-justify {
    text-align: right;
}

html[dir="rtl"] .footer-copyright {
    direction: rtl;
}

html[dir="rtl"] .footer-area .single-widgets h3 {
    text-align: right;
}

html[dir="rtl"] .footer-area .single-widgets h3::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .footer-area .single-widgets ul li:hover a {
    padding-left: 0;
    padding-right: 20px;
}

html[dir="rtl"] .footer-area .single-widgets ul li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .form-input input,
html[dir="rtl"] .form-input textarea {
    text-align: right;
}

html[dir="rtl"] .stellarnav.light ul ul {
    left: 0;
    right: auto;
}

html[dir="rtl"] .subtitle .letter {
    display: inline !important;
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    rotate: none !important;
}

html[dir="rtl"] .subtitle {
    letter-spacing: 2px;
    text-transform: none;
}

/* Features section — same LTR layout as English (only text is Arabic) */
html[dir="rtl"] #features {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] #features .row:first-child > .col-md-6 {
    float: left;
}

html[dir="rtl"] #features .area-title {
    text-align: left;
    margin-bottom: 80px;
}

html[dir="rtl"] #features .features-slider {
    width: 100vw;
}

html[dir="rtl"] #features .features-slider .owl-nav {
    left: auto !important;
    right: 30% !important;
    top: -170px;
}

html[dir="rtl"] #features .owl-carousel .owl-item {
    direction: ltr;
}

html[dir="rtl"] #features .single-features h3,
html[dir="rtl"] #features .single-features p {
    direction: rtl;
    text-align: center;
}

html[dir="rtl"] #features .subtitle {
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: left;
    direction: ltr;
}

/* Feature cards — match English: same width, equal heights per row, grey line at bottom:100px */
html[dir="rtl"] #features .features-slider .owl-stage {
    display: flex;
    align-items: stretch;
}

html[dir="rtl"] #features .features-slider .owl-item {
    display: flex;
    align-items: stretch;
}

html[dir="rtl"] #features .features-slider .owl-item > .single-features {
    flex: 1;
}

html[dir="rtl"] #features .text-icon-box.single-features {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Flow-based line (not absolute) so it always sits below the title, like English */
html[dir="rtl"] #features .single-features::after {
    display: none !important;
}

html[dir="rtl"] #features .single-features h3 {
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

html[dir="rtl"] #features .single-features h3::after {
    content: "";
    display: block;
    background: #e4e7ff none repeat scroll 0 0;
    height: 3px;
    width: 50px;
    margin: 12px auto 0;
}

html[dir="rtl"] #features .single-features p {
    margin-top: 9px;
    flex: 1;
    width: 100%;
}

/* Stats counters — keep numbers LTR (40M+, 800+, etc.) */
html[dir="rtl"] .single-fun-fact h3 {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Customers section — centered bold heading */
html[dir="rtl"] #process .area-title {
    text-align: center;
}

html[dir="rtl"] #process .area-title h2 {
    font-weight: 700;
}

/* Pricing toggle — align left (English keeps it right-aligned) */
html[dir="rtl"] #pricing .price-right-menu {
    text-align: left;
}

/* Hero — larger Arabic welcome text */
html[dir="rtl"] .welcome-text-area .welcome-text h4 {
    font-size: 18px;
}

html[dir="rtl"] .welcome-text-area .welcome-text h1 {
    font-size: 62px;
    line-height: 1.22;
}

html[dir="rtl"] .welcome-text-area .welcome-text p {
    font-size: 17px;
    line-height: 1.9;
    max-width: 34em;
    text-align: right;
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    html[dir="rtl"] .welcome-text-area .welcome-text h1 {
        font-size: 56px;
    }
}

@media only screen and (max-width: 767px) {
    html[dir="rtl"] .welcome-text-area .welcome-text h1 {
        font-size: 30px;
    }

    html[dir="rtl"] .welcome-text-area .welcome-text p {
        font-size: 16px;
    }
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
    html[dir="rtl"] .welcome-text-area .welcome-text h1 {
        font-size: 36px;
    }
}

/* Smart Kiosk section — keep kiosk image spacing like English */
html[dir="rtl"] #goal .area-image-content,
html[dir="rtl"] #goal .goal-layers,
html[dir="rtl"] #goal .goal-layer-1 {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] #goal .goal-layer-1 img {
    display: block;
}

html[dir="rtl"] #goal .goal-layer-2 {
    right: 0;
    left: auto;
}

