/* RTL — solutions, roles, partners, about (he/) — loaded last on Hebrew pages; every rule scoped to [dir="rtl"] */

/* ---------- Photo heroes (industry pages) ---------- */
/* inline style backgrounds are not rewritten to ../ by the Hebrew build — restore the photos here */
[dir="rtl"] .sol-hero[style*="sol-photo-warehouse"] { background-image: url("../img/sol-photo-warehouse.webp") !important; }
[dir="rtl"] .sol-hero[style*="sol-photo-manufacturing"] { background-image: url("../img/sol-photo-manufacturing.webp") !important; }
[dir="rtl"] .sol-hero[style*="sol-photo-brand"] { background-image: url("../img/sol-photo-brand.webp") !important; }
[dir="rtl"] .sol-hero[style*="sol-photo-retail"] { background-image: url("../img/sol-photo-retail.webp") !important; }
/* text sits on the right now: darken the right side of the photo */
[dir="rtl"] .sol-hero::before { background: linear-gradient(270deg, rgba(20, 22, 21, .72) 0%, rgba(20, 22, 21, .55) 45%, rgba(20, 22, 21, .35) 100%); }
[dir="rtl"] .glass th { text-align: right; }
[dir="rtl"] .glass-chip { margin: -18px -40px 0 0; }
@media (max-width: 1100px) { [dir="rtl"] .glass-chip { margin-left: 0; margin-right: 24px; } }

/* ---------- Solutions overview: wave hero art sits on the start (left) side ---------- */
[dir="rtl"] .page-hero--wave .page-hero__art { right: auto; left: 0; transform: scaleX(-1); }

/* ---------- Generic blocks used on these pages ---------- */
[dir="rtl"] .tri > div:first-child { padding-left: 28px; padding-right: 0; }
[dir="rtl"] .tri > div + div { border-left: 0; border-right: 1px solid #d6d6d3; }
[dir="rtl"] .dots li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .dots li::before { left: auto; right: 0; }
[dir="rtl"] .stepper > li + li { border-left: 0; border-right: 1px solid rgba(255, 255, 255, .3); }
@media (max-width: 1100px) {
  [dir="rtl"] .tri > div { padding: 20px 0 !important; border-right: 0 !important; }
  [dir="rtl"] .stepper > li:nth-child(3) { border-right: 0; }
}
@media (max-width: 767px) {
  [dir="rtl"] .stepper > li + li { border-right: 0; }
  [dir="rtl"] .page-hero__center, [dir="rtl"] .center-head { text-align: right; }
  [dir="rtl"] .page-hero__center .txt { margin-left: auto; margin-right: 0; }
}

/* ---------- Step connectors: next step is to the left ---------- */
[dir="rtl"] .ds-flow li:not(:last-child)::after,
[dir="rtl"] .mb-flow li:not(:last-child)::after { right: auto; left: -14px; transform: translateY(-50%) rotate(-135deg); }
[dir="rtl"] .rn-steps li:not(:last-child)::after { right: auto; left: -9px; transform: rotate(-135deg); }
[dir="rtl"] .so-flow__steps li:not(:last-child)::after { right: auto; left: -12px; }
@media (max-width: 1100px) {
  [dir="rtl"] .ds-flow li:not(:last-child)::after,
  [dir="rtl"] .mb-flow li:not(:last-child)::after { left: 50%; right: auto; transform: translateX(-50%) rotate(135deg); }
}

/* ---------- Check / bullet lists ---------- */
[dir="rtl"] .cl-list li, [dir="rtl"] .itl-list li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .cl-list li::before, [dir="rtl"] .itl-list li::before { left: auto; right: 2px; }
[dir="rtl"] .pt-life ul li, [dir="rtl"] .pt-part ul li { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .pt-life ul li::before, [dir="rtl"] .pt-part ul li::before { left: auto; right: 0; }

/* ---------- Diagrams ---------- */
[dir="rtl"] .op-flow li + li::before { left: auto; right: 30px; }
[dir="rtl"] .itl-cp__tag { left: auto; right: 24px; }

/* ---------- Partners ---------- */
[dir="rtl"] .pt-eco__roles li { border-left: 0; border-right: 3px solid var(--green-500); border-radius: 12px 0 0 12px; }
[dir="rtl"] .pt-eco__roles li:first-child { border-right-color: var(--green-800); }
@media (max-width: 640px) {
  [dir="rtl"] .pt-journey > li { padding: 0 64px 28px 0; }
  [dir="rtl"] .pt-journey > li::before { left: auto; right: 21px; }
  [dir="rtl"] .pt-journey__n { left: auto; right: 0; }
}

/* ---------- About ---------- */
[dir="rtl"] .story__body .story__pull { padding: 6px 20px 6px 0; border-left: 0; border-right: 3px solid var(--green-500); }
[dir="rtl"] .tl::before { background: linear-gradient(270deg, var(--green-500) 0 75%, transparent 75%), repeating-linear-gradient(270deg, var(--green-500) 0 6px, transparent 6px 12px); }
[dir="rtl"] .tl__mark { left: auto; right: 0; }
@media (max-width: 900px) {
  [dir="rtl"] .tl::before { left: auto; right: 14px; background: linear-gradient(180deg, var(--green-500) 0 75%, transparent 75%), repeating-linear-gradient(180deg, var(--green-500) 0 6px, transparent 6px 12px); }
  [dir="rtl"] .tl__item { padding: 4px 52px 28px 0; }
  [dir="rtl"] .tl__mark { left: auto; right: 0; }
  [dir="rtl"] .tl__mark:not(:empty) { left: auto; right: -8px; }
}
/* note: arrow icons are mirrored with `scale: -1 1` (rtl.css), so the LTR hover translateX(+N) already moves them left */
