/* Language-aware layout */
html[lang="en-US"] body { direction: ltr; text-align: left; }
html[lang="he-IL"] body { direction: rtl; text-align: right; }

/* Header: English menu on the left, Hebrew menu on the right */
html[lang="en-US"] header .wp-block-group.alignwide.is-layout-flex { direction: ltr; }
html[lang="he-

/* Language-specific footer */
.footer-en { display: block; }
.footer-he { display: none; }
html[lang="he-IL"] .footer-en { display: none !important; }
html[lang="he-IL"] .footer-he { display: block !important; direction: rtl; text-align: right; }
html[lang="en-US"] .footer-he { display: none !important; }

/* Correct mobile navigation alignment */
@media (max-width: 781px) {
  html[lang="en-US"] header .wp-block-navigation__responsive-container.is-menu-open,
  html[lang="en-US"] header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
  html[lang="en-US"] header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    direction: ltr !important;
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  html[lang="he-IL"] header .wp-block-navigation__responsive-container.is-menu-open,
  html[lang="he-IL"] header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
  html[lang="he-IL"] header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    direction: rtl !important;
    text-align: right !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
  }

  html[lang="en-US"] header .wp-block-navigation__responsive-container-close {
    left: 0 !important;
    right: auto !important;
  }

  html[lang="he-IL"] header .wp-block-navigation__responsive-container-close {
    right: 0 !important;
    left: auto !important;
  }

  html[lang="en-US"] header .wp-block-navigation-item,
  html[lang="en-US"] header .wp-block-navigation-item__content { text-align: left !important; }

  html[lang="he-IL"] header .wp-block-navigation-item,
  html[lang="he-IL"] header .wp-block-navigation-item__content { text-align: right !important; }
}IL"] header .wp-block-group.alignwide.is-layout-flex { direction: rtl; }

header .wp-blo

/* Force Hebrew content to override legacy inline LTR */
html[lang="he-IL"] main,
html[lang="he-IL"] main .entry-content,
html[lang="he-IL"] main .wp-block-post-content {
  direction: rtl !important;
  text-align: right !important;
}

html[lang="he-IL"] main :where(h1, h2, h3, h4, h5, h6, p, li, blockquote, figcaption) {
  text-align: right !important;
}ck-group.alignwide.is-layout-flex > nav.wp-block-navigation { order: 1; }
header .wp-block-group.alignwide.is-layout-flex > nav:not(.wp-block-navigation) { order: 2; }
header .wp-block-group.alignwide.is-layout-flex > figure { order: 3; }

html[lang="en-US"] header .wp-block-navigation,
html[lang="en-US"] header .wp-block-navigation__container,
html[lang="en-US"] header .wp-block-navigation__responsive-container-content {
  direction: ltr; text-align: left; justify-content: flex-start;
}

html[lang="he-IL"] header .wp-block-navigation,
html[lang="he-IL"] header .wp-block-navigation__container,
html[lang="he-IL"] header .wp-block-navigation__responsive-container-content {
  direction: rtl; text-align: right; justify-content: flex-start;
}

/* Hebrew pages: RTL and right alignment throughout */
html[lang="he-IL"] main,
html[lang="he-IL"] main .entry-content,
html[lang="he-IL"] main .wp-block-post-content {
  direction: rtl; text-align: right;
}

html[lang="he-IL"] main :where(h1, h2, h3, h4, h5, h6, p, li, blockquote, figcaption) {
  text-align: right;
}

html[lang="he-IL"] main :where(ul, ol) {
  direction: rtl; padding-right: 1.4em; padding-left: 0;
}

html[lang="he-IL"] main .wp-block-buttons {
  direction: rtl; justify-content: flex-start;
}

html[lang="he-IL"] main .wp-block-columns { direction: rtl; }

@media (max-width: 781px) {
  html[lang="en-US"] header .wp-block-navigation__responsive-container.is-menu-open {
    direction: ltr; text-align: left;
  }
  html[lang="he-IL"] header .wp-block-navigation__responsive-container.is-menu-open {
    direction: rtl; text-align: right;
  }
  html[lang="en-US"] header .wp-block-navigation__responsive-container-close { text-align: left; }
  html[lang="he-IL"] header .wp-block-navigation__responsive-container-close { text-align: right; }
}