/*
 * Persian layout compatibility layer.
 *
 * Keep Elementor geometry identical to the English design. Only Persian text
 * is RTL; flex/grid order, asymmetric corners, image cut-outs and button icon
 * placement retain their original LTR structure.
 */
html[lang^="fa"] .elementor-64 .elementor-element.elementor-element-fa10552 > .elementor-widget-container {
    padding: 0 1rem;
    border-width: 0 0 0 1px !important;
}
html[lang^="fa"] .elementor-element.elementor-element-0c592e6.e-con-full.e-flex.e-con.e-child {
    padding: 0 1rem;
}
html[lang^="fa"] summary.e-n-accordion-item-title span.e-n-accordion-item-title-header {
    margin-left: auto;
}
html[lang^="fa"] h2.elementor-heading-title.elementor-size-default {
    font-size: clamp(30px, 4.5vmax, 48px) !important;
}
div#testimonial-text .grid-item.swiper-slide.elementor-testimonial-item p {
    font-size: 2.5rem !important;
    direction: rtl;
}
html[lang^="fa"] .elementor-service-style-4 .service-style_list .service-title a {
    direction: rtl;
}
html[lang^="fa"] .service-inner [class*=spaciaz-icon-] {
    transform: scaleX(-1);
}
html[lang^="fa"] .elementor-widget-spaciaz-projects-navigation .post-navigation .nav-next{
    border-left: 1px solid var(--border);
    transform: scaleX(-1);
    border-right: unset !important;
    direction: rtl !important;
}

html[lang^="fa"] .elementor-widget-spaciaz-projects-navigation .post-navigation .nav-previous{
    border-right: 1px solid var(--border);
    transform: scaleX(-1);
    border-left: unset !important;
    direction: ltr !important;
}
html[lang^="fa"] .spaciaz_project-template-default nav.post-navigation .nav-links {
    transform: scaleX(-1);
}
html[lang^="fa"] .single-project-content  .e-con-inner,
html[lang^="fa"] span.reader-text,
html[lang^="fa"] span.wpcf7-form-control-wrap{
    direction: rtl !important;
}
html[lang^="fa"] .single-project-content  .e-con-inner .elementor-icon-box-wrapper {
    direction: ltr;
}
html[lang^="fa"] ul.hfe-breadcrumbs.hfe-breadcrumbs-show-home {
    float: none !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-right: 0 !important;
    margin-left: auto !important;
    direction: rtl !important;
    text-align: right;
}
html[lang^="fa"] .breadcrumb-wrap .elementor-widget-hfe-breadcrumbs-widget {
    margin-right: 0 !important;
    margin-left: auto !important;
}
html[lang^="fa"] .breadcrumb-wrap .hfe-breadcrumbs-item {
    margin: 0 !important;
}
html[lang^="fa"] .breadcrumb-wrap .spaciaz-title,
html[lang^="fa"] .breadcrumb-wrap .hfe-page-title .elementor-heading-title {
    direction: rtl !important;
    text-align: right !important;
}
html[lang^="fa"] .breadcrumb-wrap .spaciaz-title,
html[lang^="fa"] .breadcrumb-wrap .breadcrumb-listItem,
html[lang^="fa"] .breadcrumb-wrap .hfe-breadcrumbs,
html[lang^="fa"] .breadcrumb-wrap .hfe-breadcrumbs * {
    font-family: "Peyda", sans-serif !important;
}
html[lang^="fa"] .breadcrumb-wrap .hfe-breadcrumbs-separator {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0 !important;
}
html[lang^="fa"] .icon-spaciaz-right .elementor-button {
    padding: 5px 5px 5px 30px;
}
html[lang^="fa"] .opportunities-img {
    transform: scaleX(-1);
}
html[lang^="fa"] .elementor-widget-spaciaz-slide-scrolling .elementor-scrolling-wrapper {
    transform: translateX(-50%);
}
html[lang^="fa"] .elementor,
html[lang^="fa"] .elementor .e-con,
html[lang^="fa"] .elementor .e-con-inner,
html[lang^="fa"] .elementor .elementor-container,
html[lang^="fa"] .elementor .elementor-row,
html[lang^="fa"] #masthead .elementor,
html[lang^="fa"] #masthead .main-navigation > div > ul,
html[lang^="fa"] .site-footer .elementor,
html[lang^="fa"] .spaciaz-mobile-nav,
html[lang^="fa"] .spaciaz-mobile-nav .menu-scroll-mobile {
  direction: ltr;
}
html[lang^="fa"] #masthead .elementor-64 .elementor-element-6c47215,
html[lang^="fa"] #masthead .elementor-64 .elementor-element-27dddc9 {
    direction: rtl;
    gap: 1rem;
}
html[lang^="fa"] .elementor-element.elementor-element-0c592e6.e-con-full.e-flex.e-con.e-child,
html[lang^="fa"]  .elementor-element.elementor-element-6afc8cc.elementor-widget__width-initial.elementor-widget.elementor-widget-site-logo,
html[lang^="fa"] #masthead .main-navigation > div > ul,
html[lang^="fa"] .elementor-button,
html[lang^="fa"] input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required,
html[lang^="fa"] textarea.wpcf7-form-control.wpcf7-textarea ,
html[lang^="fa"] ul.elementor-icon-list-items,
html[lang^="fa"] .elementor-element.elementor-element-d0c2c6a.e-con-full.e-flex.e-con.e-child,
html[lang^="fa"] ul.hfe-breadcrumbs.hfe-breadcrumbs-show-home,
html[lang^="fa"] .post-type-archive-spaciaz_project .elementor-element.hidden-spaciaz-list-item-yes.elementor-widget.elementor-widget-spaciaz-breadcrumb,
html[lang^="fa"] .service-inner.service-style-inner,
html[lang^="fa"]  .e-n-accordion-item,
html[lang^="fa"]  .e-n-accordion-item .elementor-element.e-con-full.e-flex.e-con.e-child{
    direction: rtl !important;
}
html[lang^="fa"] :is(.single-spaciaz_investment, .single-spaciaz_services) .elementor-sticky {
    direction: rtl !important;
}
html[lang^="fa"] body:is(.page-id-9514, .page-id-9520) .elementor-sticky {
    direction: rtl !important;
}
html[lang^="fa"] .elementor-64 .elementor-element.elementor-element-6afc8cc > .elementor-widget-container {
    padding: 0 0 0 30px;
    border-width: 0 0 0 1px;
}
html[lang^="fa"] .elementor-64 .elementor-element.elementor-element-0c592e6 {
    --padding-top: 0px;
    --padding-bottom: 0px;
    --padding-left: 15px;
    --padding-right: 30px;
}
html[lang^="fa"] .elementor-heading-title,
html[lang^="fa"] .elementor-widget-text-editor,
html[lang^="fa"] .elementor-widget-text-editor p,
html[lang^="fa"] .elementor-tab-title,
html[lang^="fa"] .elementor-tab-content,
html[lang^="fa"] .elementor-accordion-title,
html[lang^="fa"] .elementor-accordion-item,
html[lang^="fa"] .elementor-icon-list-text,
html[lang^="fa"] .elementor-field,
html[lang^="fa"] .elementor-field-label,
html[lang^="fa"] .main-navigation a,
html[lang^="fa"] .mobile-navigation a,
html[lang^="fa"] .spaciaz-mobile-nav .menu-item > a,
html[lang^="fa"] .elementor-scrolling{
  direction: rtl;
  unicode-bidi: plaintext;
}

html[lang^="fa"] .submit-btn,
html[lang^="fa"] .button-content-wrap,
html[lang^="fa"] .post-content,
html[lang^="fa"] footer .elementor .e-con-inner,
html[lang^="fa"] footer .persian-footer,
html[lang^="fa"] .elementor-element.rotate.elementor-widget.elementor-widget-text-path{
  direction: rtl !important;
}
.footer-about-donse {
    direction: rtl !important;
    padding: 0;
    justify-content: flex-start;
}
html[lang^="fa"] .elementor-10461 .elementor-element.elementor-element-070acd4 h3 {
    font-size: clamp(80px, 20vw, 270px) !important;
    padding: 3rem 0 2rem 0 !important;
}
html[lang^="fa"] .elementor-button-text,
html[lang^="fa"] .elementor-button .elementor-button-text,
html[lang^="fa"] button[type="submit"] span:not([class*="icon"]) {
  direction: rtl;
  unicode-bidi: isolate;
}

html[lang^="fa"] a[href^="tel:"],
html[lang^="fa"] a[href^="mailto:"],
html[lang^="fa"] .aca-header-language-switcher,
html[lang^="fa"] .aca-language-switcher__inner,
html[lang^="fa"] a[href^="tel:"] .elementor-button-text,
html[lang^="fa"] a[href^="tel:"] .elementor-button-text *,
html[lang^="fa"] a[href^="mailto:"] .elementor-button-text,
html[lang^="fa"] a[href^="mailto:"] .elementor-button-text *,
html[lang^="fa"] .elementor-button{
  direction: ltr !important;
  unicode-bidi: isolate;
}

/* Mirror the home ecosystem cards' button notch cleanly in RTL. */
html[lang^="fa"] .elementor-element-72f8660 > :is(
  .elementor-element-f12a431,
  .elementor-element-775136b,
  .elementor-element-d3d3144
) {
  --border-radius: 0 30px 30px 30px;
}

html[lang^="fa"] .elementor-element-72f8660 > :is(
  .elementor-element-f12a431,
  .elementor-element-775136b,
  .elementor-element-d3d3144
) > .elementor-widget-spacer {
  border-radius: 0 0 30px 0;
}

html[lang^="fa"] .elementor-element-72f8660 > :is(
  .elementor-element-f12a431,
  .elementor-element-775136b,
  .elementor-element-d3d3144
) > .elementor-widget-spacer .spaciaz-border-shape {
  transform: scaleY(-1);
}

/* Keep the home hero image notch identical to the English composition. */
html[lang^="fa"] .elementor-element-971d04b
  > .elementor-element-843982e
  .spaciaz-border-shape.top-right {
  right: -30px;
  left: auto;
}

html[lang^="fa"] .elementor-element-971d04b
  > .elementor-element-843982e
  .spaciaz-border-shape.bottom-left {
  right: auto;
  left: 0;
}

/* Keep the second home image notch aligned with the English composition. */
html[lang^="fa"] .elementor-element-a3caffe
  > .elementor-element-cc2a752
  .spaciaz-border-shape.top-left {
  right: auto;
  left: -30px;
}

html[lang^="fa"] .elementor-element-a3caffe
  > .elementor-element-cc2a752
  .spaciaz-border-shape.bottom-right {
  right: 0;
  left: auto;
}

/* Keep the About featured-image notch identical to the English composition. */
html[lang^="fa"] .elementor-element-5384ac9
  .elementor-element-3d0057f
  .spaciaz-border-shape.top-right {
  right: -30px;
  left: auto;
}

html[lang^="fa"] .elementor-element-5384ac9
  .elementor-element-3d0057f
  .spaciaz-border-shape.bottom-left {
  right: auto;
  left: 0;
}

/* Mirror the About mission-card button notches cleanly in RTL. */
html[lang^="fa"] .elementor-element-b70fc5d
  > .elementor-element-318224b {
  --border-radius: 30px 30px 30px 0;
}

html[lang^="fa"] .elementor-element-b70fc5d
  > :is(
    .elementor-element-2f48502,
    .elementor-element-318224b,
    .elementor-element-8a5070f
  )
  > .elementor-widget-spacer {
  border-radius: 0 30px 0 0;
}

html[lang^="fa"] .elementor-element-b70fc5d
  > :is(
    .elementor-element-2f48502,
    .elementor-element-318224b,
    .elementor-element-8a5070f
  )
  > .elementor-widget-spacer
  .spaciaz-border-shape {
  transform: scaleX(-1) rotate(-90deg);
}

/* Mirror the team-card button notch curves without breaking their shape. */
html[lang^="fa"] .elementor-widget-spaciaz-team-box
  .team-image .decor_border::before,
html[lang^="fa"] .elementor-widget-spaciaz-team-box
  .team-image .decor_border::after {
  transform: scaleY(-1);
}

/* Keep every Persian button arrow pointing up-left, matching English. */
html[lang^="fa"] .btn-icon {
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(-45deg) !important;
}

html[lang^="fa"] .btn-icon-hover {
  transform: translate3d(-17px, 17px, 0) scale3d(0.2, 0.2, 1)
    rotate(-45deg) !important;
}

html[lang^="fa"] :is(a, button):hover .btn-icon {
  transform: translate3d(17px, -17px, 0) scale3d(0.2, 0.2, 1)
    rotate(-45deg) !important;
}

html[lang^="fa"] :is(a, button):hover .btn-icon-hover {
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(-45deg) !important;
}

/* Keep the home contact-section notch aligned with the English composition. */
html[lang^="fa"] .elementor-element-11273c0
  > .elementor-element-9702a47
  > .spaciaz-border-shape.top-left {
  right: auto;
  left: 0;
}

html[lang^="fa"] .elementor-element-11273c0
  > .elementor-element-9702a47
  > .spaciaz-border-shape.bottom-right {
  right: -30px;
  left: auto;
}
.about-us-scroll-history .d-flex.horizontal-scroll-inner {
  direction: rtl;
}
.elementor-widget-n-accordion .e-n-accordion-item-title-text {
    margin-right: 3rem;
}
.single-spaciaz_services .elementor-element.e-grid.e-con-full.e-con.e-child *{
    direction: rtl;
}
/* Place the Persian About timeline CTA at the outer end of the line. */
html[lang^="fa"] .about-us-scroll-history
.elementor-element-77c81cb {
    --justify-content: flex-start;
    justify-content: flex-start;
    padding-bottom: 1.5rem;
    margin-left: -3rem;
    padding-left: 0;
}
@media (max-width: 1024px) {
  html[lang^="fa"] .spaciaz-mobile-nav .aca-mobile-drawer-header,
  html[lang^="fa"] .spaciaz-mobile-nav .handheld-navigation,
  html[lang^="fa"] .spaciaz-mobile-nav .mobile-navigation {
    direction: ltr;
  }
}
