:root {
  --brand: #b7a56b;
  --brand-dark: #8a7a48;
  --ink: #1f2330;
  --ink-soft: #4b5060;
  --muted: #7a8194;
  --bg: #f6f5f1;
  --card: #ffffff;
  --line: #e6e4dc;
  --ok: #1f8b4c;
  --err: #b3261e;
  --shadow: 0 6px 24px rgba(20, 20, 20, .06);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: "AlchemistPro", "Assistant", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  direction: rtl;
  line-height: 1.55;
  overflow-x: hidden;
}

body {
  padding-top: 136px;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.jh-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.jh-topbar {
  background: #cdc49f;
  border-bottom: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1200;
  transition: background-color .28s ease, box-shadow .28s ease;
}

.jh-no-main-nav .site-header,
.jh-no-main-nav #menu-primary,
.jh-no-main-nav #menu-secondary,
.jh-no-main-nav .navbar,
.jh-no-main-nav .navbar-nav,
.jh-no-main-nav .dropdown-menu {
  display: none !important;
}

.jh-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 46px;
  transition: min-height .28s ease, padding .28s ease;
}

.jh-topbar-spacer {
  flex: 1;
}

.jh-brand-header {
  background: #fff;
  border-bottom: 0;
  padding: 2px 0 0;
  position: fixed;
  top: 46px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1300;
  box-shadow: 0 10px 24px rgba(20, 20, 20, .05);
  transition: top .28s ease, padding .28s ease, box-shadow .28s ease;
}

.jh-brand-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: linear-gradient(to right, #8d8d8d 0%, #f5f5f5 50%, #8d8d8d 100%);
  pointer-events: none;
}

.jh-brand-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}



.jh-brand-logo {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: transparent !important;
  transform: translateY(-20%) !important;
  border-radius: 0 !important;
  z-index: 1;
  transition: transform .28s ease;
}

.jh-brand-logo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: 82px;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  z-index: -1;
  transition: top .28s ease, width .28s ease, height .28s ease;
}

.jh-brand-logo img {
  height: 90px;
  width: auto;
  max-width: 210px;
  background: transparent !important;
  border-radius: 0 !important;
  transform: none !important;
  margin: 0 !important;
  transition: height .28s ease;
}

.jh-brand-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  position: relative;
}

.jh-action {
  color: #111;
  font-size: 19px;
  line-height: 1;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.jh-action:hover {
  color: #000;
  text-decoration: none;
}

.jh-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}

#jh-lang-current {
  font-size: 12px;
  font-weight: 700;
}

.jh-lang-switch-inline {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background: #fff;
  border: 1px solid #e2dfd4;
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .15);
  padding: 6px;
  min-width: 120px;
  z-index: 1500;
}

.jh-lang-switch-inline.is-open {
  display: flex;
  flex-direction: column;
}
.jh-top-links {
  display: flex;
  gap: 16px;
}
.jh-top-links a {
  color: #000;
  font-size: 14px;
  font-weight: 600;
}
.jh-top-links a:hover { color: #000; text-decoration: none; }

.jh-title-wrap {
  margin-bottom: 0;
  border-top: 0 !important;
  box-shadow: none !important;
  position: relative;
  z-index: 1;
}
.jh-lang-switch { display: flex; gap: 8px; }
.jh-lang {
  border: 0;
  background: transparent;
  color: #222;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  text-align: start;
  width: 100%;
}
.jh-lang.is-active {
  display: none;
}

.jh-lang:hover {
  background: #f3f1e8;
}

body.jh-scrolled .jh-topbar-inner {
  min-height: 38px;
}

body.jh-scrolled .jh-brand-header {
  top: 38px;
  padding: 4px 0 2px;
}

body.jh-scrolled .jh-brand-logo img {
  height: 62px;
}

body.jh-scrolled .jh-brand-logo::before {
  top: 40%;
  width: 60px;
  height: 66px;
}

/* ---------- Header ---------- */
.jh-hero {
  background: transparent;
  color: var(--ink-soft);
  padding: 10px 0 12px;
  border-bottom: 0;
}
.jh-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.jh-hero p {
  margin: 0;
  color: #626a7d;
  font-size: 17px;
}
.jh-badge {
  display: inline-block;
  background: var(--brand);
  color: #1c2029;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 14px;
}

.jh-hero-cta {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand);
  color: #1c2029;
  font-weight: 700;
}

.jh-hero-compact {
  padding: 10px 0 12px;
}

.jh-title-wrap {
  margin-bottom: 0;
}

.jh-main-wrap {
  margin-top: 16px;
}

.jh-title-wrap h1,
#jh-title,
#jh-lead-title {
  font-family: copperplate_gothic_boldRg, BlenderBold, Cairo, sans-serif !important;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px) !important;
  line-height: 1.05;
  white-space: pre-line;
}

.jh-title-company {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.jh-title-company-logo {
  width: clamp(72px, 9vw, 120px);
  height: clamp(72px, 9vw, 120px);
  object-fit: contain;
}

.jh-title-company-text {
  line-height: 1.05;
  display: block;
}

body:not(.is-ltr) .jh-title-wrap h1,
body:not(.is-ltr) #jh-title,
body:not(.is-ltr) #jh-lead-title {
  font-family: BlenderBold, Cairo, sans-serif !important;
}

html[lang="ar"] .jh-title-wrap h1,
html[lang="ar"] #jh-title,
html[lang="ar"] #jh-lead-title {
  font-family: Cairo, BlenderBold, sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.22;
  letter-spacing: 0;
  padding-bottom: 0.08em;
}

/* ---------- Filters ---------- */
.jh-toolbar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

body[data-page="hub"] .jh-toolbar {
  display: none;
}
.jh-toolbar input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background: #fafaf7;
  outline: none;
  transition: border-color .15s;
}
.jh-toolbar input[type="search"]:focus { border-color: var(--brand); }
.jh-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.jh-chip {
  background: #f0efe7;
  color: var(--ink-soft);
  border: 1px solid transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.jh-chip:hover { background: #e8e6da; }
.jh-chip.is-active {
  background: var(--brand);
  color: #1c2029;
  font-weight: 600;
}

.jh-chip.jh-chip-link {
  background: #d7c58a;
  color: #1b2230;
  font-weight: 700;
  border-color: #c6b06f;
}

.jh-chip.jh-chip-link:hover {
  background: #c9b372;
}
.jh-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 4px 18px;
}

.jh-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  padding-bottom: 40px;
}

.jh-company-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}

.jh-company-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20,20,20,.09);
}

.jh-company-logo-wrap {
  width: 100%;
  height: 90px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafaf7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.jh-company-logo {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.jh-company-logo-all {
  font-family: copperplate_gothic_boldRg, BlenderBold, sans-serif;
  font-size: 34px;
  color: var(--brand-dark);
  letter-spacing: 1px;
}

.jh-company-name {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}

.jh-company-count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.jh-company-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand);
  color: #1c2029;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.jh-company-filter {
  margin: 0 0 12px;
}

.jh-company-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d7d3c6;
  background: #f6f3e8;
  color: var(--ink-soft);
  font-size: 13px;
}

.jh-company-clear {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* ---------- Job cards ---------- */
.jh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  padding-bottom: 40px;
}
.jh-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.jh-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20,20,20,.09);
}
.jh-card-head { display: flex; justify-content: space-between; gap: 10px; }
.jh-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.jh-card-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0 0;
}
.jh-card-summary {
  color: var(--ink-soft);
  font-size: 14px;
  flex: 1;
}
.jh-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.jh-tag {
  font-size: 12px;
  background: #f2f0e6;
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.jh-tag.jh-conf { background: #fdecea; color: #a11616; }
.jh-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand);
  color: #1c2029;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  align-self: flex-start;
  transition: background .15s;
}
.jh-card-cta:hover { background: var(--brand-dark); color: #fff; }

.jh-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 0 0 36px;
}
  .jh-lead-body {
    display: grid;
    grid-template-columns: minmax(280px, .95fr) minmax(420px, 1.15fr);
    gap: 22px;
    align-items: start;
  }
  .jh-lead-details-col {
    border-inline-end: 1px solid var(--line);
    padding-inline-end: 18px;
  }
  .jh-lead-form-col {
    min-width: 0;
  }

.jh-panel h2 { margin: 0 0 6px; font-size: 24px; }
.jh-panel .jh-sub { color: var(--muted); margin: 0 0 12px; }

.jh-job-details {
  color: #1f2330;
  margin-bottom: 8px;
}

.jh-detail-summary {
  margin: 0 0 10px;
  color: #1f2330;
}

.jh-detail-head {
  margin: 14px 0 6px;
  font-size: 17px;
  color: #8a7a48;
  font-weight: 700;
}

.jh-detail-list {
  margin: 0 0 10px;
  padding-inline-start: 20px;
}

.jh-detail-list li {
  margin: 0 0 6px;
}

/* Keep Hebrew details visually aligned with EN sizing */
html[lang="he"] .jh-job-details,
html[lang="he"] .jh-detail-summary,
html[lang="he"] .jh-detail-list li {
  font-family: Rubik, "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

html[lang="he"] .jh-detail-head {
  font-family: Rubik, "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 26px;
  line-height: 1.25;
}

.jh-apply-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.jh-panel-apply {
  margin-bottom: 0;
}

.jh-apply-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #ddd;
  min-height: 520px;
}

.jh-apply-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.jh-only-general-image .jh-apply-layout {
  grid-template-columns: 1fr;
}

body.jh-only-general-image .jh-apply-image {
  display: none;
}

/* ---------- Form ---------- */
.jh-form {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
.jh-form h3 { margin: 0 0 12px; font-size: 18px; }
.jh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.jh-form-grid .jh-full { grid-column: 1 / -1; }
.jh-field label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 4px;
  font-weight: 500;
}
.jh-field input, .jh-field textarea, .jh-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fafaf7;
  outline: none;
  transition: border-color .15s;
}
.jh-field input:focus, .jh-field textarea:focus { border-color: var(--brand); }
.jh-field textarea { min-height: 100px; resize: vertical; }

.jh-file-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafaf7;
}

.jh-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.jh-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid #b7a56b;
  background: #d8c790;
  color: #1f2330;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.jh-file-btn:hover {
  background: #cdb97b;
  text-decoration: none;
}

.jh-file-name {
  flex: 1;
  font-size: 13px;
  color: #6b7182;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jh-file-name.has-file {
  color: #1f2330;
  font-weight: 600;
}

body:not(.is-ltr) .jh-file-upload {
  flex-direction: row-reverse;
}

body:not(.is-ltr) .jh-file-name {
  text-align: right;
}

body.is-ltr .jh-file-name {
  text-align: left;
}

.jh-file-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.jh-form-actions {
  margin-top: 16px;
  display: flex;
}

body.is-ltr .jh-form-actions {
  justify-content: flex-start;
}

body:not(.is-ltr) .jh-form-actions {
  justify-content: flex-end;
}

.jh-submit {
  margin-top: 0;
  background: var(--brand-dark);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  width: auto;
  min-width: 180px;
  max-width: 260px;
  flex: 0 0 auto;
}
.jh-submit:hover:not(:disabled) { background: #1c2029; }
.jh-submit:disabled { opacity: .6; cursor: not-allowed; }
.jh-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}
.jh-status.is-ok { display: block; background: #e6f4ea; color: var(--ok); border: 1px solid #b9dfc4; }
.jh-status.is-err { display: block; background: #fdecea; color: var(--err); border: 1px solid #f5c2be; }

.jh-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.jh-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.jh-footer {
  background: #1c2029;
  color: #c9c8bf;
  padding: 28px 0;
  margin-top: 40px;
  font-size: 13px;
  text-align: center;
}

.jh-footer a {
  color: #e6d99f;
}

footer .nav-link {
  padding-top: 2px;
  padding-bottom: 2px;
}

.jh-footer-legal-inline {
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
  width: 100%;
}

.jh-footer-legal-inline a {
  color: #111;
  text-decoration: none;
}

.jh-footer-legal-inline .jh-sep {
  padding: 0 8px;
  opacity: .6;
}

footer .bg-primary {
  background-color: #cdc49f !important;
  color: #111;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

#jh-footer-copy {
  font-size: 12px;
  line-height: 1.2;
}

body:not(.is-ltr) .jh-title-wrap,
body:not(.is-ltr) .jh-hero,
body:not(.is-ltr) .jh-main-wrap,
body:not(.is-ltr) .jh-panel,
body:not(.is-ltr) .jh-card,
body:not(.is-ltr) .jh-field label,
body:not(.is-ltr) .jh-field input,
body:not(.is-ltr) .jh-field textarea,
body:not(.is-ltr) .jh-field select,
body:not(.is-ltr) #jh-footer-copy {
  text-align: right;
}

body:not(.is-ltr) .jh-footer-legal-inline {
  direction: rtl;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  text-align: end;
}

body.is-ltr,
body.is-ltr input,
body.is-ltr textarea,
body.is-ltr select {
  direction: ltr;
}

body.is-ltr .jh-card-cta,
body.is-ltr .jh-topbar-inner,
body.is-ltr .jh-top-links,
body.is-ltr .jh-lang-switch,
body.is-ltr .jh-filters,
body.is-ltr .jh-card-tags {
  direction: ltr;
}

body.is-ltr .jh-title-wrap,
body.is-ltr .jh-hero,
body.is-ltr .jh-main-wrap,
body.is-ltr .jh-panel,
body.is-ltr .jh-card,
body.is-ltr .jh-field label,
body.is-ltr .jh-field input,
body.is-ltr .jh-field textarea,
body.is-ltr .jh-field select,
body.is-ltr .jh-footer-legal-inline,
body.is-ltr #jh-footer-copy {
  text-align: left;
}

@media (max-width: 640px) {
  body { padding-top: 206px; }
  .jh-toolbar { grid-template-columns: 1fr; }
  .jh-form-grid { grid-template-columns: 1fr; }
  .jh-hero { padding: 40px 0 32px; }
  .jh-panel { padding: 18px; }
  .jh-topbar-inner { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .jh-brand-row { grid-template-columns: 1fr; gap: 8px; }
  .jh-brand-actions { justify-content: center; }
  .jh-topbar-spacer { display: none; }
}

@media (max-width: 992px) {
  .jh-apply-layout {
    grid-template-columns: 1fr;
  }
  .jh-lead-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .jh-lead-details-col {
    border-inline-end: none;
    border-bottom: 1px solid var(--line);
    padding-inline-end: 0;
    padding-bottom: 14px;
  }

  .jh-apply-image {
    min-height: 320px;
  }
}
