/* ===================================================
   RTL overrides — loaded only when is_rtl() === true
   (e.g. Hebrew: <html lang="he" dir="rtl">)
   =================================================== */

/* ── Direction & base ───────────────────────────── */
body {
    direction: rtl;
    text-align: right;
}

/* ── Flexbox row reversal ───────────────────────── */
/* Elements that use row flex and need to flip for RTL */

.hero-detail-bar-inner,
.hero-detail-meta,
.hero-detail-bar-ctas,
.contact-bar-info-hrefs,
.footer-info-inner,
.footer-grid,
.newsletter-data-form,
.program-details-main-data-buttons,
.program-details-main-data-location {
    flex-direction: row-reverse;
}

/* ── Text alignment ─────────────────────────────── */
.hero-title,
.hero-subtitle,
.section-title,
.section-subtitle,
.section-label,
.footer-tagline,
.newsletter-title,
.newsletter-desc,
.newsletter-legal,
.hero-detail-meta-item,
.program-detail-about-content h2,
.program-detail-about-content p,
.program-detail-list,
.program-detail-included-item,
.testimonial-quote,
.testimonial-name,
.testimonial-role {
    text-align: right;
}

/* ── Margins & paddings that flip ──────────────── */
/* hero subtitle padding: was padding-left, now padding-right */
.hero-subtitle {
    padding-left: 0;
    padding-right: 72px;
}

.nav--hero {
    padding-left: 0;
    padding-right: 300px;
}

.hero-title {
    width: 65%;
}

.contact-bar-info {
    font-size: 24px;
}

/* contact bar: was positioned on the right, keep it but flip internals */
.contact-bar {
    right: unset;
    left: 0;
}

.contact-bar-info {
    align-items: flex-end;
    transform: rotate(180deg);
    max-height: 360px;
}

.contact-bar-call--gradient {
    transform: rotate(180deg);
    flex-direction: row-reverse;
}

/* logo: was margin-right, flip */
.nav--hero .logo--hero {
    margin-right: 0;
}

.btn-search {
    right: unset;
    left: 148px;
}

.hero-filter-trigger {
    text-align: right;
}

.hero-filter-panel {
    left: unset;
    right: -24px;
}

.btn--ai-match .btn--ai-match-title {
    font-size: 20px;
}

.btn--ai-match:hover .btn--ai-match-desc {
    margin-right: 12px;
}

.stat-card {
    text-align: right;
}

#testimonials .container {
    padding-left: unset;
    padding-right: 305px;
}

.testimonial-quote {
    border: none;
}

.testimonials-grid {
    padding-right: unset;
    padding-left: 50px;
}

.testimonial-quote {
    text-align: right;
}

/* ── Lists ──────────────────────────────────────── */
.program-detail-list {
    padding-left: 0;
    padding-right: 1.5em;
}

.footer-links {
    padding-left: 0;
    padding-right: 0;
}

.container--newsletter {
    justify-content: space-between;
}

.newsletter-data-form {
    width: 480px!important;
}

.hero-subtitle {
    padding-right: 0;
}
/* ── Fullscreen menu ────────────────────────────── */
.fullscreen-menu__inner {
    margin-left: 0;
    margin-right: 310px;
}

.fullscreen-menu__nav {
    padding-left: 0;
    padding-right: 205px;
}

.fullscreen-menu__sublinks {
    right: 300px;
}

.fullscreen-menu__sublinks.active {
    right: 1000px;
}

.fullscreen-menu__chevron {
    margin-left: 0;
    margin-right: auto;
    transform: rotate(180deg);
}

/* ── Buttons with SVG icon (slides in from right now) ── */
.btn--contact-submit:hover svg,
.btn--gradient:hover svg {
    margin-left: 0;
    margin-right: 10px;
}

/* ── Search bar ─────────────────────────────────── */
.hero-filter {
    padding: 22px 24px 22px 0;
}

/* ── Hero detail bar ────────────────────────────── */
.hero-detail-bar-inner {
    flex-direction: row-reverse;
}

/* ── Program details sidebar buttons ───────────── */
.program-details-main-data-buttons {
    flex-direction: column; /* keep column, no flip needed */
}

/* ── Footer ─────────────────────────────────────── */
.footer-info {
    padding: 40px 72px;
}

@media (max-width: 1919px) {
    .nav--hero {
        padding-right: 72px;
    }

    .search-bar--hero {
        margin-left: unset;
        margin-right: 72px;
    }

    .hero-content {
        margin: 0 72px 0 0;
    }

    .container.footer-grid, .footer-info-inner, #testimonials .container {
        padding-left: unset;
        padding-right: 72px;
    }

    .explore-program-cards-wrapper, .filter-tabs.filter-destinations {
        max-width: 1050px;
    }

    .section-explore .section-title {
        width: 100%;
    }

    #testimonials .container {
        max-width: calc(100vw - 120px)!important;
    }

    #impact .container, #explore .container {
        max-width: calc(100vw - 250px);
        margin: 0;
        padding-right: 72px;
    }

    .section-newsletter {
        margin: 0 72px 0 0!important;
    }

    .footer-info {
        max-width: calc(100vw - 144px);
    }

    .fullscreen-menu__inner {
        margin-right: 144px;
    }

    .btn--ai-match {
        margin-right: -10px;
    }
}

@media (max-width: 1399px) {
    #testimonials .container {
        max-width: calc(100vw - 52px)!important;
    }

    .nav--hero .navbar-socials-mobile {
        right: unset;
        left: 24px;
    }

    .hero-title-mobile {
        text-align: right;
        width: 70%;
    }

    .fullscreen-menu-close {
        left: 48px;
        right: unset;
    }

    .contact-bar-call--gradient {
        transform: rotate(0deg);
        font-size: 20px;
        padding: 12px 24px;
    }

    .fullscreen-action__tablet .contact-bar-call--gradient, .fullscreen-action__tablet .contact-bar-call {
        font-size: 20px;
        padding: 12px 24px;
    }

    .section-explore .section-title {
        width: 100%;
    }

    .footer-info {
        max-width: unset;
    }
}

@media  (max-width: 1365px) {
    .search-bar--hero {
        margin-right: unset;
    }

    .container, .program-detail-section .container, .hero-content--program-detail {
        max-width: unset;
        margin: unset;
    }

    .hero-text-clip {
        padding-right: 72px;
    }

    #impact .container, #explore .container {
        max-width: 100vw;
    }
}

@media (max-width: 1023px) {
    .hero-text-clip {
        padding-right: 0;
    }

    .hero-title-mobile {
        width: unset;
    }

    .container {
        max-width: calc(100vw - 72px)!important;
    }

    .stat-number {
        font-size: 40px;
    }

    .hero-filter {
        padding: 0 24px 0 0;
    }

    .stat-card {
        max-width: 192px;
        min-width: 192px;
    }

    .stat-label {
        font-size: 24px;
    }

    .stat-desc {
        font-size: 19px;
    }

    .filter-tab {
        padding: 10px;
        font-size: 17px;
    }

    #testimonials .container {
        max-width: 100vw!important;
    }

    .testimonial-quote {
        font-size: 20px;
    }

    .fullscreen-menu__nav {
        padding-right: unset;
    }

    .fullscreen-menu__inner {
        margin-right: 48px;
    }

    .fullscreen-menu__header {
        max-width: calc(100vw - 48px);
    }

    .fullscreen-action__tablet {
        padding-right: 0;
        padding-left: 100px;
    }

    .fullscreen-menu__nav-secondary {
        width: 100%;
        align-items: center;
    }

    .fullscreen-menu__nav-secondary .contact-bar-call {
        padding: 12px;
    }
}

@media (max-width: 767px) {
    .section-newsletter {
        margin: 0 auto!important;
    }

    .newsletter-data-form {
        flex-direction: column;
    }

    .container.footer-grid {
        padding-right: unset;
    }

    .nav--hero {
        padding-right: 24px;
    }

    .btn--ai-match {
        padding: 0;
    }

    .btn--ai-match .btn--ai-match-title {
        font-size: 16px;
    }

    .btn--ai-match .btn--ai-match-desc {
        font-size: 14px;
        text-wrap: auto;
        margin-left: 6px;
        margin-right: 6px;
    }

    .hero-filter {
        padding: 5px 24px 2px 0;
    }

    .container, .program-detail-section .container, .hero-content--program-detail, .details-how-it-works, .section-newsletter {
        max-width: calc(100vw - 48px)!important;
        padding-right: unset!important;
        margin-right: 24px!important;
    }

    #testimonials .container {
        max-width: calc(100vw - 24px)!important;
        margin-right: 24px;
        margin-left: unset;
    }

    .newsletter-data-form {
        width: 279px !important;
    }

    .footer-info {
        max-width: 100vw;
    }

    .footer-info-inner {
        padding-right: unset;

        flex-direction: column-reverse;
    }

    .fullscreen-menu__inner {
        margin-right: unset;
    }

    .fullscreen-menu__nav {
        padding-right: unset;
    }

    .fullscreen-menu__list {
        padding-left: unset;
        padding-right: 48px;
        max-width: 100vw;
    }

    .fullscreen-menu__link {
        padding: 0 32px 0 8px;
    }

    .fullscreen-menu__nav {
        max-width: 100vw;
    }

    .fullscreen-menu__nav-secondary {
        padding-left: 0;
        align-items: center;
        width: 100%;
    }

    .fullscreen-menu__nav-secondary .contact-bar-call {
        padding: 12px;
    }

    .fullscreen-action__tablet {
        padding-right: unset;
        padding-left: 48px;
    }

    .fullscreen-menu__logo img {
        max-width: 70%;
    }

    .fullscreen-menu-close {
        left: 24px;
    }
}