/* כיוון כללי */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* מבטלים כל כפייה של LTR בתבנית המקור */
html[dir="rtl"] body,
html[dir="rtl"] .site,
html[dir="rtl"] main,
html[dir="rtl"] header,
html[dir="rtl"] footer {
    direction: rtl !important;
}

/* ===== HEADER / NAVBAR ===== */

/* לוגו בצד ימין */
.site-header,
.header,
.main-header,
.navbar {
    direction: rtl;
}

.site-header .logo,
.header .logo,
.navbar .logo,
.header-logo {
    float: right;
    text-align: right;
}

/* אזור הפעולות / כפתורים / אייקונים - לצד שמאל */
.site-header .header-actions,
.header .header-actions,
.navbar .header-actions,
.menu-actions,
.nav-actions {
    float: left;
    text-align: left;
}

/* פריטי תפריט: שיהיו מיושרים לימין */
.site-header nav ul,
.header nav ul,
.navbar nav ul,
.main-menu,
.main-nav ul {
    text-align: right;
    direction: rtl;
}

/* ריווח בין אייטמים בתפריט: המרווח שהיה margin-left עובר ל-right */
.main-nav li,
.main-menu li,
.navbar nav ul li {
    margin-right: 1rem;
    margin-left: 0;
}

/* המבורגר / תפריט מובייל בצד ימין במקום שמאל */
.mobile-toggle,
.menu-toggle,
.hamburger,
.burger {
    float: right;
    right: 0;
    left: auto;
}

/* פאנל תפריט שקופיות (אם יש offcanvas משמאל) נהפוך אותו לימין */
.mobile-menu-panel,
.offcanvas-menu,
.side-drawer {
    left: auto;
    right: 0;
    text-align: right;
    direction: rtl;
}
.mobile-menu-panel.is-open,
.offcanvas-menu.is-open,
.side-drawer.is-open {
    transform: translateX(0);
}
.mobile-menu-panel,
.offcanvas-menu,
.side-drawer {
    transform: translateX(100%); /* מתחבא מחוץ למסך בצד ימין */
}

/* מתג שפה קבוע בכל האתר */

#c2h-lang-switcher-global {
    position: fixed;
    left: 2vw;
    top: 1rem;
    z-index: 99999;
    font-size: .8rem;
    line-height: 1.2;
    font-weight: 500;
    background: #ffffff;
    color: #000000;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Rubik Hebrew", sans-serif;
}

#c2h-lang-switcher-global a {
    text-decoration: none;
    color: inherit;
}
#c2h-lang-switcher-global a:hover {
    text-decoration: underline;
}

#c2h-lang-switcher-global .c2h-lang-current {
    opacity: .6;
    cursor: default;
}

@media (max-width:600px) {
    #c2h-lang-switcher-global {
        left: 4vw;
        top: .5rem;
        font-size: .75rem;
    }
}


/* שחרור קליקים מהאוברליי של ה-Cover */
.wp-block-cover__background.has-base-background-color.has-background-dim-20.has-background-dim {
    pointer-events: none !important;
}




/* ===== HERO / HERO SECTION ===== */

/* אזור גיבור עם שתי עמודות: טקסט + אילוסטרציה */
.hero,
.hero-section,
.section-hero,
.banner-hero,
.hero-inner,
.hero-content-wrapper {
    direction: rtl;
    text-align: right;
}

/* אם ההירו בנוי כ-flex שתי עמודות (טקסט ואימג'), נהפוך את הסדר */
.hero-inner,
.hero-content-wrapper,
.hero-row,
.hero-flex,
.split-hero,
.split-section {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

/* ריווח בין אייקון לטקסט ברשימות "פיצ'רים" */
.feature-item,
.benefit,
.icon-text,
.list-feature {
    direction: rtl;
    text-align: right;
}

.feature-item .icon,
.benefit .icon,
.icon-text .icon {
    margin-left: 0;
    margin-right: .5rem; /* היה הפוך ב-LTR */
}

/* ===== BODY TEXT / TITLES ===== */

h1, h2, h3, h4, h5, h6,
p,
li,
.blockquote,
.card,
.card * {
    text-align: right;
    direction: rtl;
}

/* אם יש ריווח שהיה מוגדר left בלבד */
.section-title,
.block-title,
.headline,
.page-title {
    margin-right: 0;
    margin-left: 1rem;
    text-align: right;
}

/* ===== FOOTER ===== */

footer,
.site-footer,
.footer,
.page-footer {
    direction: rtl;
    text-align: right;
}

/* עמודות פוטר: נהפוך את הסדר של הטורים אם זה flex */
.site-footer .footer-columns,
.footer .columns,
.footer-columns,
.footer-widgets,
.footer-inner {
    display: flex;
    flex-direction: row-reverse;
    text-align: right;
    direction: rtl;
}

/* טקסט זכויות/קרדיט: ב-RTL אנחנו בדרך כלל רוצים אותו בצד ימין */
.site-footer .copyright,
.footer .copyright,
.footer-bottom .credits,
.footer-credits {
    text-align: right;
    float: right;
}









