:root {
  --jfj-blue: #0b63ce;
  --jfj-blue-dark: #073b78;
  --jfj-ink: #10243d;
  --jfj-muted: #5e7188;
  --jfj-line: #d8e5f2;
  --jfj-bg: #f5f9ff;
  --jfj-white: #fff;
  --jfj-radius: 8px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--jfj-ink); background: var(--jfj-bg); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: var(--jfj-blue); text-decoration: none; }
a:hover { color: var(--jfj-blue-dark); }
img { max-width: 100%; height: auto; }
.jfj-container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.jfj-narrow { max-width: 760px; }
.jfj-section { padding: 36px 0; }
.jfj-skip-link { position: absolute; left: -999px; top: 8px; }
.jfj-skip-link:focus { left: 8px; z-index: 10; background: #fff; padding: 8px; }

.jfj-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--jfj-line); backdrop-filter: blur(10px); }
.jfj-header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.jfj-brand { align-items: center; display: flex; flex: 0 1 260px; font-size: 20px; font-weight: 900; min-width: 0; }
.jfj-brand a { align-items: center; color: var(--jfj-blue-dark); display: inline-flex; min-width: 0; }
.jfj-brand .custom-logo-link { max-width: min(260px, 42vw); }
.jfj-brand .custom-logo { display: block; height: auto; max-height: 52px; max-width: 100%; object-fit: contain; width: auto; }
.jfj-nav { display: flex; align-items: center; gap: 20px; }
.jfj-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.jfj-nav a { color: var(--jfj-ink); font-weight: 700; }
.jfj-header-actions { align-items: center; display: flex; gap: 8px; }
.jfj-header-btn { align-items: center; background: #fff; border: 1px solid var(--jfj-line); border-radius: 999px; color: var(--jfj-blue-dark); cursor: pointer; display: inline-flex; font: inherit; font-size: 13px; font-weight: 900; min-height: 34px; padding: 0 13px; white-space: nowrap; }
.jfj-header-btn.is-primary { background: var(--jfj-blue); border-color: var(--jfj-blue); color: #fff; }
.jfj-header-btn.is-primary:hover { background: var(--jfj-blue-dark); border-color: var(--jfj-blue-dark); color: #fff; }
.jfj-lang { position: relative; }
.jfj-lang-toggle { align-items: center; background: #fff; border: 1px solid var(--jfj-line); border-radius: 999px; color: var(--jfj-ink); cursor: pointer; display: inline-flex; font: inherit; font-size: 13px; font-weight: 900; gap: 8px; min-height: 34px; padding: 0 12px; }
.jfj-lang-toggle::after { border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--jfj-muted); content: ""; display: block; }
.jfj-lang.is-open .jfj-lang-toggle::after { transform: rotate(180deg); }
.jfj-lang-panel { background: #fff; border: 1px solid var(--jfj-line); border-radius: 8px; box-shadow: 0 14px 28px rgba(16,36,61,.14); display: none; min-width: 110px; padding: 6px; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; }
.jfj-lang.is-open .jfj-lang-panel { display: grid; gap: 4px; }
.jfj-lang-panel a { border-radius: 6px; color: var(--jfj-ink); display: block; font-size: 13px; padding: 8px 10px; }
.jfj-lang-panel a:hover { background: #eef6ff; color: var(--jfj-blue-dark); }
.jfj-menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--jfj-line); border-radius: 8px; background: #fff; }
.jfj-menu-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--jfj-ink); }

.jfj-auth-modal { align-items: center; display: none; inset: 0; justify-content: center; padding: 18px; position: fixed; z-index: 1000; }
.jfj-auth-modal.is-open { display: flex; }
.jfj-auth-backdrop { background: rgba(7,31,61,.58); inset: 0; position: absolute; }
.jfj-auth-dialog { background: #fff; border-radius: 8px; box-shadow: 0 24px 70px rgba(7,31,61,.28); max-height: calc(100vh - 36px); max-width: 430px; overflow: auto; padding: 20px; position: relative; width: min(430px, 100%); z-index: 1; }
.jfj-auth-close { align-items: center; background: #f2f7fc; border: 1px solid var(--jfj-line); border-radius: 999px; color: var(--jfj-ink); cursor: pointer; display: inline-flex; font-size: 22px; height: 34px; justify-content: center; line-height: 1; position: absolute; right: 14px; top: 14px; width: 34px; }
.jfj-auth-tabs { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin: 24px 42px 16px 0; }
.jfj-auth-tabs button { background: #edf5ff; border: 1px solid var(--jfj-line); border-radius: 8px; color: var(--jfj-blue-dark); cursor: pointer; font: inherit; font-weight: 900; min-height: 40px; }
.jfj-auth-tabs button.is-active { background: var(--jfj-blue); border-color: var(--jfj-blue); color: #fff; }
.jfj-auth-panel { display: none; }
.jfj-auth-panel.is-active { display: grid; gap: 12px; }
.jfj-auth-panel form { display: grid; gap: 12px; }
.jfj-auth-panel label { color: var(--jfj-muted); display: grid; font-size: 13px; font-weight: 900; gap: 6px; }
.jfj-auth-panel input { border: 1px solid var(--jfj-line); border-radius: 8px; color: var(--jfj-ink); font: inherit; min-height: 42px; padding: 9px 11px; width: 100%; }
.jfj-auth-facebook { align-items: center; background: #1877f2; border: 0; border-radius: 8px; color: #fff; cursor: pointer; display: inline-flex; font: inherit; font-weight: 900; justify-content: center; min-height: 42px; padding: 0 14px; width: 100%; }
.jfj-auth-google { align-items: center; background: #fff; border: 1px solid var(--jfj-line); border-radius: 8px; color: var(--jfj-ink); cursor: pointer; display: inline-flex; font: inherit; font-weight: 900; justify-content: center; min-height: 42px; padding: 0 14px; width: 100%; }
.jfj-auth-google::before { background: conic-gradient(from -45deg,#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 75%,#ea4335 0); border-radius: 999px; content: ""; display: inline-block; height: 16px; margin-right: 8px; width: 16px; }
.jfj-auth-message { border-radius: 8px; display: none; font-size: 13px; font-weight: 800; margin-bottom: 12px; padding: 10px 12px; }
.jfj-auth-message.is-error { background: #fff2f2; color: #9b1c1c; display: block; }
.jfj-auth-message.is-success { background: #eefbf4; color: #12643b; display: block; }

.mc-login-modal { align-items: center; background: rgba(15, 39, 64, .56); display: none; inset: 0; justify-content: center; padding: 18px; position: fixed; z-index: 99999; }
.mc-login-modal.is-open { display: flex; }
.mc-login-dialog { background: #fff; border: 1px solid #d8e2ee; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.28); color: #16283a; max-height: calc(100vh - 36px); max-width: 560px; overflow-y: auto; padding: 18px; width: min(100%, 560px); }
.mc-login-head { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 14px; }
.mc-login-head strong { color: #0f2740; font-size: 20px; }
.mc-cv-remove { align-items: center; background: #eef3f8; border: 1px solid #d8e2ee; border-radius: 999px; color: #16283a; cursor: pointer; display: inline-flex; font: inherit; font-size: 18px; font-weight: 900; height: 34px; justify-content: center; line-height: 1; width: 34px; }
.mc-login-tabs { background: #eef3f8; border-radius: 999px; display: grid; gap: 4px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; padding: 4px; }
.mc-login-tab { background: transparent; border: 0; border-radius: 999px; color: #607183; cursor: pointer; font: inherit; font-weight: 900; min-height: 38px; }
.mc-login-tab.is-active { background: #0f2740; color: #fff; }
.mc-login-form { display: none; }
.mc-login-form.is-active { display: block; }
.mc-login-form label { display: block; font-size: 13px; font-weight: 800; margin-top: 11px; }
.mc-login-form input { border: 1px solid #cfd9e5; border-radius: 6px; font: inherit; height: 42px; margin-top: 6px; padding: 0 10px; width: 100%; }
.mc-login-captcha-row { align-items: end; display: grid; gap: 10px; grid-template-columns: 168px 1fr; margin-top: 6px; }
.mc-login-captcha-image { align-items: center; background: #f4f7fb; border: 1px solid #cfd9e5; border-radius: 8px; display: flex; height: 48px; justify-content: center; overflow: hidden; }
.mc-login-message { border-radius: 6px; display: none; font-size: 13px; font-weight: 700; margin-bottom: 12px; padding: 10px; }
.mc-login-message.is-error { background: #fff4f4; border: 1px solid #f0caca; color: #8a1d1d; display: block; }
.mc-login-message.is-success { background: #edf8f1; border: 1px solid #bde4c7; color: #166534; display: block; }
.mc-login-actions { display: flex; justify-content: center; margin-top: 16px; }
.mc-cv-btn { align-items: center; background: var(--jfj-blue); border: 0; border-radius: 8px; color: #fff; cursor: pointer; display: inline-flex; font: inherit; font-weight: 900; justify-content: center; min-height: 42px; padding: 0 18px;}
.mc-cv-btn:hover { background: var(--jfj-blue-dark); }
.mc-social-btn { align-items: center; border-radius: 8px; cursor: pointer; display: inline-flex; font: inherit; font-weight: 900; gap: 10px; justify-content: center; margin-top: 10px; min-height: 46px; padding: 0 16px; position: relative; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; width: 100%; }
.mc-social-btn:hover { box-shadow: 0 10px 22px rgba(16,36,61,.14); transform: translateY(-1px); }
.mc-social-btn::before { align-items: center; border-radius: 999px; display: inline-flex; font-weight: 900; height: 24px; justify-content: center; width: 24px; }
.mc-social-btn.is-facebook { background: #1877f2; border: 1px solid #1877f2; color: #fff; }
.mc-social-btn.is-facebook::before { background: rgba(255,255,255,.18); color: #fff; content: "f"; font-family: Arial, sans-serif; font-size: 20px; line-height: 1; }
.mc-social-btn.is-google { background-color: #f56868; border: 1px solid #cfd9e5; color: #ffff; }
.mc-social-btn.is-google::before { background: #fff; border: 1px solid #e1e7ef; color: #4285f4; content: "G"; font-family: Arial, sans-serif; font-size: 16px; }

.jfj-hero { background: linear-gradient(135deg, #083a78, #0b63ce); color: #fff; padding: 58px 0; }
.jfj-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 52px); line-height: 1.08; }
.jfj-hero p { max-width: 680px; margin: 0; color: #dcecff; font-size: 18px; }

.jfj-search-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px; margin-bottom: 24px; background: #fff; border: 1px solid var(--jfj-line); border-radius: var(--jfj-radius); box-shadow: 0 10px 28px rgba(16,36,61,.06); }
.jfj-search-form label, .jfj-apply-form label { display: grid; gap: 6px; color: var(--jfj-muted); font-size: 13px; font-weight: 800; }
.jfj-search-form input, .jfj-search-form select, .jfj-apply-form input, .jfj-apply-form textarea, .jfj-apply-form select { width: 100%; min-height: 42px; border: 1px solid var(--jfj-line); border-radius: 8px; padding: 9px 11px; color: var(--jfj-ink); background: #fff; font: inherit; }
.jfj-search-form button { align-self: end; }
.jfj-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid transparent; border-radius: 8px; padding: 0 18px; font-weight: 900; cursor: pointer; }
.jfj-btn-primary { background: var(--jfj-blue); color: #fff; }
.jfj-btn-primary:hover { background: var(--jfj-blue-dark); color: #fff; }
.jfj-btn-block { width: 100%; }

.jfj-job-grid, .jfj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.jfj-job-card, .jfj-card, .jfj-side-card { position: relative; background: #fff; border: 1px solid var(--jfj-line); border-radius: var(--jfj-radius); box-shadow: 0 10px 28px rgba(16,36,61,.06); }
.jfj-card-content { display: grid; gap: 12px; padding: 18px; }
.jfj-card-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--jfj-radius); }
.jfj-job-card h2 { margin: 0; color: var(--jfj-blue-dark); font-size: 20px; line-height: 1.35; }
.jfj-job-card:hover { border-color: #9cc5ef; transform: translateY(-1px); transition: .16s ease; }
.jfj-eyebrow { margin: 0 0 4px; color: var(--jfj-muted); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.jfj-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.jfj-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; background: #eaf4ff; color: var(--jfj-blue-dark); font-size: 12px; font-weight: 900; }
.jfj-salary { color: #096b3b; font-weight: 900; margin: 0; }
.jfj-card-footer { display: flex; justify-content: space-between; gap: 10px; color: var(--jfj-muted); font-size: 13px; border-top: 1px solid var(--jfj-line); padding-top: 12px; }
.jfj-muted { color: var(--jfj-muted); }
.jfj-empty, .jfj-notice { background: #fff; border: 1px solid var(--jfj-line); border-radius: var(--jfj-radius); padding: 14px; }
.jfj-notice.success { border-color: #68bd8b; background: #effbf4; }
.jfj-pagination { margin-top: 24px; }
.jfj-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; margin: 3px; border: 1px solid var(--jfj-line); border-radius: 8px; background: #fff; }

.jfj-job-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.jfj-job-head h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.12; }
.jfj-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.jfj-featured { margin: 0 0 18px; border-radius: var(--jfj-radius); overflow: hidden; }
.jfj-info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--jfj-line); border-radius: var(--jfj-radius); overflow: hidden; }
.jfj-info-table th, .jfj-info-table td { border-bottom: 1px solid var(--jfj-line); padding: 14px; text-align: left; vertical-align: top; }
.jfj-info-table th { width: 210px; background: #f0f6ff; color: var(--jfj-blue-dark); }
.jfj-side-card { padding: 18px; position: sticky; top: 92px; }
.jfj-related { margin-top: 34px; }

.jfj-apply-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; background: #fff; border: 1px solid var(--jfj-line); border-radius: var(--jfj-radius); padding: 18px; }
.jfj-apply-form label:nth-last-child(3), .jfj-apply-form label:nth-last-child(2), .jfj-apply-form button { grid-column: 1 / -1; }

.jfj-footer { margin-top: 48px; background: #071f3d; color: #dbeafe; }
.jfj-footer-simple { align-items: center; display: flex; flex-direction: column; gap: 14px; padding: 28px 0 24px; text-align: center; }
.jfj-footer-logo .custom-logo-link { display: inline-flex; max-width: min(160px, 52vw); }
.jfj-footer-logo .custom-logo { display: block; max-height: 42px; object-fit: contain; width: auto; }
.jfj-footer-logo a { color: #fff; font-size: 22px; font-weight: 900; }
.jfj-footer-policy-links { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.jfj-footer-policy-links a { color: rgba(255,255,255,.82); font-size: 12px; font-weight: 800; letter-spacing: 0; }
.jfj-footer-policy-links a:hover { color: #fff; }
.jfj-footer-copy { color: rgba(255,255,255,.62); font-size: 13px; margin: 0; }

@media (max-width: 900px) {
  .jfj-search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jfj-job-grid, .jfj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jfj-single-layout { grid-template-columns: 1fr; }
  .jfj-side-card { position: static; }
}

@media (max-width: 700px) {
  .jfj-menu-toggle { display: block; }
  .jfj-nav { display: none; position: absolute; left: 16px; right: 16px; top: 72px; flex-direction: column; align-items: stretch; padding: 14px; background: #fff; border: 1px solid var(--jfj-line); border-radius: 8px; }
  .jfj-nav.is-open { display: flex; }
  .jfj-nav ul { flex-direction: column; gap: 8px; }
  .jfj-header-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .jfj-header-btn { justify-content: center; }
  .jfj-lang-toggle { justify-content: space-between; width: 100%; }
  .jfj-lang-panel { left: 0; right: auto; width: 100%; }
  .jfj-search-form, .jfj-job-grid, .jfj-grid, .jfj-apply-form { grid-template-columns: 1fr; }
  .jfj-job-head { flex-direction: column; align-items: flex-start; }
  .jfj-info-table th, .jfj-info-table td { display: block; width: 100%; }
  .jfj-brand { flex-basis: min(220px, 62vw); }
  .jfj-brand .custom-logo-link { max-width: min(220px, 62vw); }
  .jfj-brand .custom-logo { max-height: 44px; }
  .jfj-footer-policy-links { flex-direction: column; }
  .mc-login-captcha-row { grid-template-columns: 1fr; }
}
