/* ==========================================================================
   Home hero: parallax scrolling hero (dark / light / mobile / Arabic)
   Loaded after site-overrides.css. Navbar and text content are untouched.
   ========================================================================== */

html body #home.w3l-banner {
    --hero-bg: #090b0c;
    --hero-ink: #ffffff;
    --hero-sub: #f1f3f5;
    --hero-red: var(--site-red, #e53935);
    --hero-line: rgba(255, 255, 255, .55);
    --hero-badge-line: rgba(255, 255, 255, .2);
    --hero-badge-bg: rgba(255, 255, 255, .03);
    --hero-ctrl-bg: rgba(12, 14, 17, .75);
    --hero-ctrl-line: rgba(255, 255, 255, .16);
    --hero-ctrl-ink: #ffffff;
    --hero-dot: #ffffff;
    --hero-bar: rgba(255, 255, 255, .22);
    --hero-bar-fill: #ffffff;

    position: relative;
    display: block;
    min-height: max(100vh, 720px);
    padding: 7.5rem 0 5.5rem !important;
    overflow: hidden;
    isolation: isolate;
    background: var(--hero-bg) !important;
    animation: none !important;
    color: var(--hero-ink);
}

html[data-theme="light"] body #home.w3l-banner {
    --hero-bg: #ffffff;
    --hero-ink: #14171c;
    --hero-sub: #1d2128;
    --hero-line: rgba(20, 23, 28, .55);
    --hero-badge-line: rgba(20, 23, 28, .16);
    --hero-badge-bg: rgba(255, 255, 255, .7);
    --hero-ctrl-bg: rgba(255, 255, 255, .92);
    --hero-ctrl-line: rgba(20, 23, 28, .14);
    --hero-ctrl-ink: #14171c;
    --hero-dot: #b9bcc2;
    --hero-bar: rgba(20, 23, 28, .16);
    --hero-bar-fill: #14171c;
}

html body #home.w3l-banner::before {
    display: none !important;
}

/* ---------- Parallax layers ---------- */
#home .hero-layer {
    will-change: transform;
    pointer-events: none;
}

#home .hero-bg {
    position: absolute;
    inset: -8% 0 -8%;
    z-index: 0;
}

#home .hero-glow,
#home .hero-grid,
#home .hero-floor {
    position: absolute;
    inset: 0;
    display: block;
}

#home .hero-glow {
    background:
        radial-gradient(48% 50% at 62% 48%, rgba(32, 98, 150, .26), transparent 70%),
        radial-gradient(30% 34% at 90% 20%, rgba(229, 57, 53, .10), transparent 70%),
        radial-gradient(34% 40% at 8% 90%, rgba(32, 98, 150, .12), transparent 70%);
}

#home .hero-grid {
    opacity: .5;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(70% 70% at 60% 45%, #000 20%, transparent 78%);
    mask-image: radial-gradient(70% 70% at 60% 45%, #000 20%, transparent 78%);
}

#home .hero-floor {
    top: auto;
    height: 38%;
    background: linear-gradient(to top, rgba(255, 255, 255, .045), transparent);
}

html[data-theme="light"] #home .hero-glow {
    background:
        radial-gradient(46% 50% at 62% 50%, rgba(70, 130, 190, .13), transparent 72%),
        radial-gradient(30% 34% at 92% 18%, rgba(229, 57, 53, .025), transparent 70%);
}

html[data-theme="light"] #home .hero-grid {
    opacity: .6;
    background-image:
        linear-gradient(rgba(20, 23, 28, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 23, 28, .04) 1px, transparent 1px);
}

html[data-theme="light"] #home .hero-floor {
    background: linear-gradient(to top, rgba(20, 23, 28, .05), transparent);
}

#home .hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#home .hero-speck {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    box-shadow: 0 0 10px rgba(120, 190, 255, .45);
    animation: heroFloat var(--dur, 9s) ease-in-out infinite alternate;
    animation-delay: var(--delay, 0s);
}

html[data-theme="light"] #home .hero-speck {
    background: rgba(40, 90, 150, .28);
    box-shadow: none;
}

@keyframes heroFloat {
    from { transform: translate3d(0, 0, 0); opacity: .25; }
    to   { transform: translate3d(var(--dx, 14px), -26px, 0); opacity: .75; }
}

/* ---------- Layout: stage ---------- */
html body #home .hero-stage {
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(max(100vh, 720px) - 13rem);
    z-index: 3;
}

#home .hero-copy {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 64% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
    will-change: transform, opacity;
}

#home .hero-actions {
    position: relative;
    z-index: 3;
    will-change: transform, opacity;
    margin-top: .4rem;
}

/* Badge */
html body #home .hero-badge {
    border: 1px solid var(--hero-badge-line) !important;
    background: var(--hero-badge-bg) !important;
    color: var(--hero-ink) !important;
    margin-bottom: 1.6rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: .92rem !important;
    letter-spacing: .08em;
    padding: 12px 20px;
}

/* Title: both lines red, like the reference */
html body #home .hero-title,
html body #home .hero-title span {
    color: var(--hero-red) !important;
    font-size: clamp(2.55rem, 4vw, 4.85rem) !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
    width: auto !important;
}

html body #home .hero-title {
    margin-bottom: 1.5rem !important;
}

/* Paragraph */
html body #home .banner-sub {
    color: var(--hero-sub) !important;
    max-width: clamp(400px, 32vw, 680px) !important;
    font-size: clamp(1.15rem, 1.5vw, 1.8rem) !important;
    line-height: 1.75 !important;
    margin: 0 0 1rem !important;
    font-weight: 700 !important;
}

html[lang="ar"] body #home .banner-sub,
html[dir="rtl"] body #home .banner-sub {
    font-weight: 700 !important;
}

/* Buttons */
html body #home .buttons-banner .btn {
    border-radius: 3px !important;
    width: clamp(210px, 14vw, 270px);
    min-width: 0;
    height: clamp(52px, 3.4vw, 64px);
    min-height: 0;
    font-size: clamp(.95rem, 1.05vw, 1.2rem) !important;
    margin-top: 1.1rem !important;
}

html body #home .buttons-banner .btn-style {
    background: var(--hero-red) !important;
    color: #fff !important;
    border: 1px solid var(--hero-red) !important;
    box-shadow: 0 14px 34px rgba(229, 57, 53, .28);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

html body #home .buttons-banner .btn-style:hover {
    background: #cf2f2b !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(229, 57, 53, .38);
}

html body #home .buttons-banner .btn-style-secondary {
    background: rgba(255, 255, 255, .02) !important;
    border: 1px solid var(--hero-line) !important;
    color: var(--hero-ink) !important;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

html body #home .buttons-banner .btn-style-secondary:hover {
    background: rgba(255, 255, 255, .08) !important;
    border-color: var(--hero-ink) !important;
    color: var(--hero-ink) !important;
    transform: translateY(-2px);
}

html[data-theme="light"] body #home .buttons-banner .btn-style-secondary {
    background: rgba(255, 255, 255, .6) !important;
}

html[data-theme="light"] body #home .buttons-banner .btn-style-secondary:hover {
    background: #fff !important;
}

/* ---------- Scene (tractors) ---------- */
#home .hero-scene-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

#home .hero-scene {
    position: absolute;
    inset: 0;
    min-height: 0; /* neutralise legacy .hero-scene rule in style-starter.css */
    display: block;
}

#home .hero-slide {
    --dir: 1;            /* 1 = enters from the right (LTR), -1 = from the left (RTL) */
    --ty: -46%;
    --x: calc(var(--dir) * 78%);
    position: absolute;
    top: 50%;
    right: 3.5%;
    width: min(60.4vw, 1260px);
    aspect-ratio: 1100 / 578;
    margin: 0;
    transform: translate3d(var(--x), var(--ty), 0);
    opacity: 0;
    visibility: hidden;
    transition: transform 1.35s cubic-bezier(.16, .84, .24, 1), opacity .8s ease, visibility 0s linear 1.35s;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0, #000 16%, #000 94%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0, #000 16%, #000 94%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
    mask-composite: intersect;
}

/* waiting off-screen: "after" = about to drive in, "before" = already drove out */
#home .hero-slide.is-after  { --x: calc(var(--dir) * 78%); }
#home .hero-slide.is-before { --x: calc(var(--dir) * -78%); }

#home .hero-slide.is-active {
    --x: 0%;
    opacity: 1;
    visibility: visible;
    transition: transform 1.35s cubic-bezier(.16, .84, .24, 1), opacity .7s ease .1s, visibility 0s;
    z-index: 2;
}

/* leaving slide stays visible while it drives off */
#home .hero-slide.is-leaving {
    visibility: visible;
    transition: transform 1.35s cubic-bezier(.5, 0, .75, .4), opacity .9s ease .15s, visibility 0s linear 1.35s;
}

/* teleporting between waiting spots: no animation */
#home .hero-slide.no-anim,
#home .hero-slide.no-anim .hero-img {
    transition: none !important;
    animation: none !important;
}

#home .hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

#home .hero-img-light { display: none; }
html[data-theme="light"] #home .hero-img-dark { display: none; }
html[data-theme="light"] #home .hero-img-light { display: block; mix-blend-mode: multiply; }

/* the tractor body travels a bit further than its frame = depth while it drives */
#home .hero-img {
    translate: calc(var(--dir, 1) * 9%) 0;
    transition: translate 1.7s cubic-bezier(.16, .84, .24, 1);
    transform-origin: 50% 88%;
}

#home .hero-slide.is-active .hero-img {
    translate: 0 0;
    animation: heroSettle 1.5s ease-out both;
}

#home .hero-slide.is-before .hero-img {
    translate: calc(var(--dir, 1) * -9%) 0;
}

#home .hero-slide.is-leaving .hero-img {
    transition-duration: 1.35s;
    transition-timing-function: cubic-bezier(.5, 0, .75, .4);
}

/* arrival: a little motion blur, nose dips as it brakes, then wheels settle */
@keyframes heroSettle {
    0%   { filter: blur(7px);  rotate: calc(var(--dir, 1) * .9deg); }
    35%  { filter: blur(2px);  rotate: calc(var(--dir, 1) * -.55deg); }
    62%  { filter: blur(0);    rotate: calc(var(--dir, 1) * .22deg); }
    100% { filter: blur(0);    rotate: 0deg; }
}

/* speed streaks + moving floor while the tractors change */
#home .hero-streaks {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    background:
        repeating-linear-gradient(to bottom, transparent 0 46px, var(--hero-streak, rgba(255,255,255,.16)) 46px 47px, transparent 47px 92px);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%, #000 65%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 35%, #000 65%, transparent 100%);
}

html[data-theme="light"] #home .hero-streaks { --hero-streak: rgba(20, 23, 28, .10); }

#home.is-travelling .hero-streaks {
    animation: heroStreaks 1.35s ease-in-out;
}

@keyframes heroStreaks {
    0%   { opacity: 0; transform: translateX(calc(var(--dir, 1) * 18%)); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: translateX(calc(var(--dir, 1) * -18%)); }
}

/* background grid slides with the motion (offset set from JS) */
#home .hero-grid {
    background-position: var(--grid-shift, 0px) 0, var(--grid-shift, 0px) 0;
    transition: background-position 1.6s cubic-bezier(.16, .84, .24, 1);
}

/* ---------- Controls ---------- */
#home .hero-arrow {
    position: absolute;
    top: 64%;
    z-index: 4;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border-radius: 50%;
    border: 1px solid var(--hero-ctrl-line);
    background: var(--hero-ctrl-bg);
    color: var(--hero-ctrl-ink);
    display: grid;
    place-items: center;
    font-size: .9rem;
    cursor: pointer;
    pointer-events: auto;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#home .hero-arrow:hover {
    border-color: var(--hero-red);
    transform: scale(1.08);
}

#home .hero-prev { left: 1.8%; }
#home .hero-next { right: 1.8%; }

#home .hero-progress {
    position: absolute;
    left: 50%;
    bottom: 4.2%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    width: min(46vw, 880px);
    direction: ltr;
    color: var(--hero-ink);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
}

#home .hero-bar {
    position: relative;
    flex: 1;
    height: 3px;
    background: var(--hero-bar);
    border-radius: 3px;
    overflow: hidden;
}

#home .hero-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 33.333%;
    background: var(--hero-bar-fill);
    border-radius: 3px;
    transition: width .6s cubic-bezier(.3, .7, .2, 1);
}

#home .hero-dots {
    position: absolute;
    right: 6.2%;
    bottom: 12%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

#home .hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hero-dot);
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

#home .hero-dot.is-active {
    width: 16px;
    height: 16px;
    margin: -3px;
    background: radial-gradient(circle, #fff 0 32%, var(--hero-red) 36%);
    box-shadow: 0 0 0 1px var(--hero-red), 0 0 14px rgba(229, 57, 53, .6);
}

/* ---------- Arabic / RTL: mirrored composition ---------- */
html[dir="rtl"] body #home .hero-stage,
html[lang="ar"] body #home .hero-stage {
    direction: rtl;
    align-items: flex-start; /* inline-start = right edge in RTL */
}

html[dir="rtl"] #home .hero-copy,
html[lang="ar"] #home .hero-copy {
    text-align: right !important;
    direction: rtl;
}

html[dir="rtl"] body #home .banner-sub,
html[lang="ar"] body #home .banner-sub {
    text-align: right !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

html[dir="rtl"] body #home .hero-badge,
html[lang="ar"] body #home .hero-badge {
    margin-left: auto;
    margin-right: 0;
}

/* second title line is neutral (white / dark) in Arabic, like the reference */
html[dir="rtl"] body #home .hero-title span[data-i18n="heroTitleSpan"],
html[lang="ar"] body #home .hero-title span[data-i18n="heroTitleSpan"] {
    color: var(--hero-ink) !important;
}

html[dir="rtl"] body #home .buttons-banner,
html[lang="ar"] body #home .buttons-banner {
    justify-content: flex-start !important;
    direction: rtl !important;
}

html[dir="rtl"] #home .hero-slide,
html[lang="ar"] #home .hero-slide {
    --dir: -1;
    right: auto;
    left: 3.5%;
    -webkit-mask-image:
        linear-gradient(to left, transparent 0, #000 16%, #000 94%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
    mask-image:
        linear-gradient(to left, transparent 0, #000 16%, #000 94%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
}

html[dir="rtl"] #home .hero-img,
html[lang="ar"] #home .hero-img {
    transform: scaleX(-1);
}

html[dir="rtl"] #home .hero-progress,
html[lang="ar"] #home .hero-progress {
    direction: rtl;
}

html[dir="rtl"] #home .hero-bar-fill,
html[lang="ar"] #home .hero-bar-fill {
    inset: 0 0 0 auto;
}

html[dir="rtl"] #home .hero-dots,
html[lang="ar"] #home .hero-dots {
    right: auto;
    left: 4.7%;
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 991px) {
    html body #home.w3l-banner {
        min-height: 0;
        padding: 6.5rem 0 2.2rem !important;
    }

    html body #home .hero-stage {
        min-height: 0;
        align-items: stretch;
    }

    #home .hero-copy {
        max-width: 100% !important;
    }

    html body #home .hero-badge {
        font-size: .72rem !important;
        letter-spacing: .12em;
        padding: 10px 16px;
    }

    html body #home .hero-title,
    html body #home .hero-title span {
        font-size: clamp(2.1rem, 9.4vw, 3.4rem) !important;
        line-height: 1.12 !important;
    }

    html body #home .banner-sub {
        max-width: 92% !important;
        font-size: clamp(.98rem, 3.9vw, 1.2rem) !important;
        line-height: 1.75 !important;
        margin-bottom: 0 !important;
    }

    /* scene sits under the text, full-bleed, with arrows on its sides */
    #home .hero-scene-wrap {
        position: relative;
        inset: auto;
        width: 100vw;
        margin: .6rem calc(50% - 50vw) 0;
        aspect-ratio: 1100 / 578;
        overflow: hidden;
        pointer-events: none;
    }

    #home .hero-scene {
        inset: 0;
    }

    #home .hero-slide {
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        --ty: 0%;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%);
    }

    html[dir="rtl"] #home .hero-slide,
    html[lang="ar"] #home .hero-slide {
        left: 0;
        right: 0;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%);
    }

    #home .hero-img {
        object-position: 50% 50%;
        transform: none;
    }

    html[dir="rtl"] #home .hero-img,
    html[lang="ar"] #home .hero-img {
        transform: scaleX(-1);
    }

    #home .hero-arrow {
        top: 46%;
        width: 40px;
        height: 40px;
        margin-top: -20px;
        font-size: .75rem;
    }

    #home .hero-prev { left: 28px; }
    #home .hero-next { right: 28px; }

    #home .hero-progress {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        margin: -1.6rem 0 1.2rem;
        padding: 0 1.4rem;
        font-size: .85rem;
    }

    #home .hero-actions {
        width: 100%;
        flex-direction: column;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: .7rem !important;
        margin-top: 0;
    }

    html body #home .buttons-banner .btn {
        width: 100% !important;
        flex: none !important;
        height: 50px;
        margin-top: 0 !important;
        font-size: 1rem !important;
    }

    html[dir="rtl"] body #home .buttons-banner,
    html[lang="ar"] body #home .buttons-banner {
        flex-direction: column;
        align-items: stretch !important;
    }

    #home .hero-dots,
    html[dir="rtl"] #home .hero-dots,
    html[lang="ar"] #home .hero-dots {
        position: relative;
        right: auto;
        left: auto;
        bottom: auto;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 16px;
        margin-top: 1.4rem;
    }
}

@media (max-width: 575px) {
    #home .hero-scene-wrap {
        aspect-ratio: 1100 / 578;
    }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    #home .hero-speck,
    #home .hero-streaks,
    #home .hero-slide.is-active .hero-img {
        animation: none !important;
    }

    #home .hero-slide,
    #home .hero-slide .hero-img {
        --x: 0% !important;
        translate: 0 0 !important;
        transition: opacity .6s ease !important;
    }

    #home .hero-layer,
    #home .hero-copy,
    #home .hero-actions {
        transform: none !important;
    }
}

/* ==========================================================================
   Hero text: clean, evenly balanced lines in English and Arabic.
   No justified gaps and no kashida stretching; the headline and paragraph
   break into even lines instead of leaving a single word on the last line.
   ========================================================================== */
html body #home .hero-title,
html body #home .hero-title span {
    text-wrap: balance;
    letter-spacing: 0 !important;
    word-spacing: normal !important;
}

html body #home .banner-sub {
    text-align: start !important;
    text-justify: auto;
    text-wrap: balance;
    letter-spacing: 0 !important;
    word-spacing: normal !important;
    hyphens: manual;
    overflow-wrap: normal;
}

/* Arabic: a little more width so the paragraph sits in 4 even lines */
html[dir="rtl"] body #home .banner-sub,
html[lang="ar"] body #home .banner-sub {
    max-width: clamp(420px, 36vw, 720px) !important;
    line-height: 1.85 !important;
    text-align: right !important;
}

@media (max-width: 991px) {
    html body #home .banner-sub,
    html[dir="rtl"] body #home .banner-sub,
    html[lang="ar"] body #home .banner-sub {
        max-width: 92% !important;
    }
}

/* ==========================================================================
   Arabic hero text: grouped, one phrase per line.
     line 1  شريكــك في كــل مرحلــــة        (white / dark)
     line 2  من مراحل الزراعــــة             (red)
     lines 3-6  the four support lines, same size, a step smaller than the title
   Each phrase has its own line, so words never collide or re-wrap into each other.
   ========================================================================== */
html[dir="rtl"] body #home .hero-title span[data-i18n="heroTitle"],
html[lang="ar"] body #home .hero-title span[data-i18n="heroTitle"] {
    display: block;
    color: var(--hero-ink) !important;
}

html[dir="rtl"] body #home .hero-title span[data-i18n="heroTitleSpan"],
html[lang="ar"] body #home .hero-title span[data-i18n="heroTitleSpan"] {
    display: block;
    color: var(--hero-red) !important;
}

html[dir="rtl"] body #home .hero-title,
html[lang="ar"] body #home .hero-title {
    line-height: 1.3 !important;
    margin-bottom: 1.1rem !important;
}

html[dir="rtl"] body #home .banner-sub,
html[lang="ar"] body #home .banner-sub {
    max-width: none !important;
    width: 100%;
    font-size: clamp(1.2rem, 5.5vw, 2.15rem) !important;
    font-weight: 500;
    line-height: 1.65 !important;
    text-align: right !important;
    text-wrap: wrap;
    margin: 0 0 1rem !important;
}

html[dir="rtl"] body #home .banner-sub .i18n-line,
html[lang="ar"] body #home .banner-sub .i18n-line {
    display: block;
    letter-spacing: 0;
    word-spacing: normal;
}

@media (min-width: 992px) {
    html[dir="rtl"] body #home .banner-sub,
    html[lang="ar"] body #home .banner-sub {
        font-size: clamp(1.15rem, 1.5vw, 1.8rem) !important;
        line-height: 1.75 !important;
    }

    html[dir="rtl"] body #home .hero-title span[data-i18n],
    html[lang="ar"] body #home .hero-title span[data-i18n],
    html[dir="rtl"] body #home .banner-sub .i18n-line,
    html[lang="ar"] body #home .banner-sub .i18n-line {
        white-space: nowrap;
    }
}

/* Arabic hero, small screens: scale the type to the screen so every phrase
   stays on its own single line (no orphan words). */
@media (max-width: 991px) {
    html[dir="rtl"] body #home .hero-title,
    html[lang="ar"] body #home .hero-title,
    html[dir="rtl"] body #home .hero-title span,
    html[lang="ar"] body #home .hero-title span {
        font-size: clamp(1.4rem, 6.9vw, 3.4rem) !important;
    }

    html[dir="rtl"] body #home .banner-sub,
    html[lang="ar"] body #home .banner-sub {
        font-size: clamp(.8rem, 4.3vw, 1.9rem) !important;
    }

    html[dir="rtl"] body #home .hero-title span[data-i18n],
    html[lang="ar"] body #home .hero-title span[data-i18n],
    html[dir="rtl"] body #home .banner-sub .i18n-line,
    html[lang="ar"] body #home .banner-sub .i18n-line {
        white-space: nowrap;
    }
}

/* ---- Arabic hero, revision: both title lines red; desktop size matches the English block ---- */
html[dir="rtl"] body #home .hero-title span[data-i18n="heroTitle"],
html[lang="ar"] body #home .hero-title span[data-i18n="heroTitle"] {
    color: var(--hero-red) !important;
}

@media (min-width: 992px) {
    html[dir="rtl"] body #home .hero-title,
    html[lang="ar"] body #home .hero-title,
    html[dir="rtl"] body #home .hero-title span,
    html[lang="ar"] body #home .hero-title span {
        font-size: clamp(2.2rem, 3.5vw, 4.3rem) !important;
    }

    html[dir="rtl"] body #home .banner-sub,
    html[lang="ar"] body #home .banner-sub {
        font-size: clamp(1.15rem, 1.5vw, 1.8rem) !important;
        line-height: 1.75 !important;
    }
}
