/*
 * ABDI ADDITIVE
 * Persian/RTL-specific corrections
 *
 * Loaded after main.css on Persian pages only.
 */
@font-face {
    font-family: "PersianWebFont";
    src: url("../fonts/webfont.woff2") format("woff2"),
    url("../fonts/webfont.woff") format("woff");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

[dir="rtl"] .theme-btn:hover .btn-title {
    -webkit-transform: translateX(30px);
    transform: translateX(30px);
}
[dir="rtl"] .news-details-area .blog-post-details
.single-blog-post .post-content .hilight-text svg {
    float: left;
}
[dir="rtl"] .about-image-item .about-thumb .experience-badge span,
.rtl .about-image-item .about-thumb .experience-badge span {
    border-radius: 10px 10px 0 10px;
}

[dir="rtl"] .about-image-item .about-thumb .experience-badge,
.rtl .about-image-item .about-thumb .experience-badge {
    left: auto;
    right: -40px;
}

html[dir="rtl"] .about-image-item .about-thumb .experience-badge span::before,
body[dir="rtl"] .about-image-item .about-thumb .experience-badge span::before,
.rtl .about-image-item .about-thumb .experience-badge span::before {
    left: auto;
    right: 0;
    transform: scaleX(-1);
    transform-origin: center;
}

@media (max-width: 1199px) {
    [dir="rtl"] .about-image-item .about-thumb .experience-badge,
    .rtl .about-image-item .about-thumb .experience-badge {
        right: -28px;
    }
}

@media (max-width: 991px) {
    [dir="rtl"] .about-image-item .about-thumb .experience-badge,
    .rtl .about-image-item .about-thumb .experience-badge {
        right: -40px;
    }
}

html[dir="rtl"] .about-image-item .about-image-box,
body[dir="rtl"] .about-image-item .about-image-box,
.rtl .about-image-item .about-image-box {
    display: flex;
    flex-direction: row-reverse;
    gap: 15px;
    margin-left: 0;
    margin-right: 0;
}

html[dir="rtl"] .about-section-6 .row,
body[dir="rtl"] .about-section-6 .row,
.rtl .about-section-6 .row {
    --bs-gutter-x: 0.75rem;
    flex-direction: row-reverse;
}

/* Mirror the rotating circular cluster in RTL */
html[dir="rtl"] .about-image-item .circle-box,
body[dir="rtl"] .about-image-item .circle-box,
.rtl .about-image-item .circle-box {
    left: auto;
    right: 5%;
}
:is([dir="rtl"], .rtl) .about-right-content-style-6 .list-items ul li img {
    margin-left: 8px;
    margin-right: 0;
}
.split-title .word {
    display: inline-block;
    white-space: nowrap;
}

/* Only individual Latin characters need this */
.split-title .char {
    display: inline-block;
    transform-origin: left center;
}

.split-title[dir="rtl"] {
    direction: rtl;
    unicode-bidi: isolate;
    text-align: right;
}

.split-title[dir="rtl"] .word {
    transform-origin: right center;
}
.tz-sub-tilte[dir="rtl"],
.tz-itm-title[dir="rtl"] {
    direction: rtl;
    unicode-bidi: isolate;
}

.tz-sub-tilte .word,
.tz-itm-title .word {
    display: inline-block;
    white-space: nowrap;
}

.tz-sub-tilte[dir="rtl"] .word,
.tz-itm-title[dir="rtl"] .word {
    transform-origin: right center;
}

/* ===== Work Process Style 4 — RTL ===== */
:is([dir="rtl"], .rtl) .work-process-content-style-4 {
    margin-left: 0;
    margin-right: 70px;
    padding-right: 0;
    padding-left: 45px;
}

:is([dir="rtl"], .rtl) .work-process-content-style-4::before {
    left: 0;
    right: 135px;
}

:is([dir="rtl"], .rtl) .work-process-content-style-4 li .icon-items .check-shape-1 {
    left: auto;
    right: 38px;
}

:is([dir="rtl"], .rtl) .work-process-content-style-4 .check-shape-2 {
    left: auto;
    right: 35px;
}

@media (max-width: 1199px) {
    :is([dir="rtl"], .rtl) .work-process-content-style-4 {
        margin-right: 0;
    }
}

@media (max-width: 575px) {
    :is([dir="rtl"], .rtl) .work-process-content-style-4 {
        padding: 0;
    }
}
:is([dir="rtl"], .rtl) .icon-items .icon .process-icon { transform: none; }
:is([dir="rtl"], .rtl) .work-process-content-style-4 li:last-child .check-shape-1,
.work-process-content-style-4 li:last-child .check-shape-2 {
    display: none;
}
:is([dir="rtl"], .rtl) .work-process-content-style-4 li .icon-items .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
/* ============ LUXURY FOOTER CONTACT FORM — RTL ============ */

:is([dir="rtl"], .rtl) .footer-form-items .subscribe-text::after {
    left: auto;
    right: 0;
}

:is([dir="rtl"], .rtl) .lux-field input {
    text-align: right;
    padding-left: 24px;
    padding-right: 0;
}

:is([dir="rtl"], .rtl) .lux-field label {
    left: auto;
    right: 0;
}

:is([dir="rtl"], .rtl) .lux-underline {
    left: auto;
    right: 0;
}

:is([dir="rtl"], .rtl) .lux-error-msg::before {
    content: '';
}
:is([dir="rtl"], .rtl) .lux-error-msg::after {
    content: ' ⚠';
}

:is([dir="rtl"], .rtl) .lux-field.is-valid::after {
    right: auto;
    left: 4px;
}

:is([dir="rtl"], .rtl) .lux-submit-btn {
    flex-direction: row-reverse;
}

:is([dir="rtl"], .rtl) .lux-submit-btn:hover .btn-icon {
    transform: translateX(-4px) rotate(-8deg);
}

:is([dir="rtl"], .rtl) .lux-form-status {
    text-align: right;
}
:is([dir="rtl"], .rtl) .cta-glow{ right:auto; left:-80px; }
:is([dir="rtl"], .rtl) .advantage-item{ text-align:center; }
:is([dir="rtl"], .rtl) .about-left-thumb-style-8 {
    margin-right: -105px;
}
/* Modern RTL Persian Justification & Word-Wrapping */
:is([dir="rtl"], .rtl) .persian-justified-text {
    /* 1. Alignment & Justification */
    text-align: justify;
    text-justify: inter-word; /* Prioritizes word spacing over character stretching */

    /* 2. Prevent Breaking Persian Words */
    word-break: keep-all;     /* Keeps words intact; won't split inside a word */
    overflow-wrap: normal;    /* Doesn't force line break mid-word */
    hyphens: none;            /* Disables hyphenation (essential for Arabic/Persian script) */
}
:is([dir="rtl"], .rtl) .luxury-field .input-wrapper .input-icon{
    position: absolute;
    right: 10px;
}
:is([dir="rtl"], .rtl) .contact-middle-items .contact-form-box .form-clt input, .contact-middle-items .contact-form-box .form-clt textarea{
    direction: rtl;
    padding: 20px 30px 20px 25px;
}
:is([dir="rtl"], .rtl) .breadcrumb-wrapper .page-heading .breadcrumb-list li i{
    margin-left: 10px;
}
:is([dir="rtl"], .rtl) .footer-widget-wrapper-1 .footer-widget-items .list-area li i{
    margin-left: 10px;
}
:is([dir="rtl"], .rtl) .hero-1 .social-icon .line{
    margin-right: 23px;
}
:is([dir="rtl"], .rtl) .header-section-2 .header-top-section .header-top-wrapper .text a img{margin-right: 10px;}
:is([dir="rtl"], .rtl) .hero-1 .social-icon span{margin-right: -15px;}

/* ============ HEADER LANGUAGE SWITCHER (LUXURY) — RTL ============ */

/* Trigger: arrow space on the left (inline-end in RTL) */
:is([dir="rtl"], .rtl) .header-flag .flag-wrap .single-select,
:is([dir="rtl"], .rtl) .header-flag .flag-wrap .nice-select {
    padding: 0 0 0 22px;
}

/* Gold chevron anchored to the left side */
:is([dir="rtl"], .rtl) .header-flag .flag-wrap .nice-select::after {
    right: auto;
    left: 2px;
}

/* Dropdown grows inward (to the right), away from the viewport edge */
:is([dir="rtl"], .rtl) .header-flag .flag-wrap .nice-select .list {
    left: 0;
    right: auto;
}

/* Diamond caret mirrored to the left edge */
:is([dir="rtl"], .rtl) .header-flag .flag-wrap .nice-select .list::before {
    right: auto;
    left: 22px;
    border-left: none;
    border-right: 1px solid rgba(214, 181, 106, 0.4);
}

/* Options: gold dot on the right (inline-start in RTL) */
:is([dir="rtl"], .rtl) .header-flag .flag-wrap .nice-select .option {
    padding: 10px 32px 10px 12px;
}

:is([dir="rtl"], .rtl) .header-flag .flag-wrap .nice-select .option.selected::before {
    left: auto;
    right: 14px;
}

@media (max-width: 767px) {
    :is([dir="rtl"], .rtl) .header-flag .flag-wrap .single-select,
    :is([dir="rtl"], .rtl) .header-flag .flag-wrap .nice-select {
        padding: 0 0 0 19px;
    }

    :is([dir="rtl"], .rtl) .header-flag .flag-wrap .nice-select::after {
        left: 0;
    }

    :is([dir="rtl"], .rtl) .header-flag .flag-wrap .nice-select .list::before {
        left: 18px;
    }

    :is([dir="rtl"], .rtl) .header-flag .flag-wrap .nice-select .option {
        padding: 9px 27px 9px 10px;
    }

    :is([dir="rtl"], .rtl) .header-flag .flag-wrap .nice-select .option.selected::before {
        right: 11px;
    }
}
:is([dir="rtl"], .rtl) .preloader .preloader-ball-inner-wrap{
    inset-inline-start: -25px;
}
@media only screen and (min-width: 1025px) {
  :is([dir="rtl"], .rtl) .preloader .preloader-ball-inner-wrap {
    inset-inline-start: -35px;
  }
}
/* ==========================================================================
   RTL FIXES — LUXURY CTA SECTION
   ========================================================================== */
:is([dir="rtl"], .rtl) .lux-cta-title {
  text-align: start;
}

:is([dir="rtl"], .rtl) .lux-contact-details {
  text-align: start;
}

:is([dir="rtl"], .rtl) .dir-ltr {
  direction: ltr;
  display: inline-block;
  unicode-bidi: isolate;
}

:is([dir="rtl"], .rtl) .lux-gold-btn {
  padding: 8px 24px 8px 10px;
}

:is([dir="rtl"], .rtl) .lux-gold-btn:hover .lux-btn-icon {
  transform: rotate(-45deg);
}

@media (max-width: 991px) {
  :is([dir="rtl"], .rtl) .lux-cta-title {
    text-align: center;
  }
  
  :is([dir="rtl"], .rtl) .lux-contact-details {
    text-align: start;
  }
}
/* ==========================================================================
   RTL FIXES — LUXURY FOOTER
   ========================================================================== */
:is([dir="rtl"], .rtl) .lux-title-accent {
  background: linear-gradient(-90deg, var(--luxury-accent), transparent);
}

:is([dir="rtl"], .rtl) .lux-nav-list li a:hover {
  transform: translateX(-4px);
}

:is([dir="rtl"], .rtl) .lux-hub-social-card {
  align-items: flex-start;
}

:is([dir="rtl"], .rtl) .lux-hub-content {
  text-align: right;
}

:is([dir="rtl"], .rtl) .lux-footer-bottom {
  direction: rtl;
}
:is([dir="rtl"], .rtl) .lx-process-section .lx-process-badge__text{padding-right: 10px;}