/* =========================================================
   Single job opening (Careers CPT) — premium layout
   ========================================================= */

.page-career-single {
  background: #f6f8fb;
}

/* —— Hero —— */
.job-hero {
  position: relative;
  padding-bottom: 56px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(180deg, #051220 0%, #071a32 48%, #08223c 100%);
}

.job-hero #global-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.job-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 14% 20%, rgba(38, 196, 255, 0.14) 0%, transparent 48%),
    radial-gradient(ellipse at 88% 12%, rgba(18, 96, 225, 0.2) 0%, transparent 42%),
    linear-gradient(180deg, #051220 0%, #071a32 48%, #08223c 100%);
  pointer-events: none;
}

.job-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.job-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding-top: 8px;
}

.job-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.job-breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.job-breadcrumb a:hover {
  color: #fff;
}

.job-breadcrumb .current {
  color: rgba(255, 255, 255, 0.92);
}

.job-hero .pill {
  margin-bottom: 18px;
}

.job-hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  max-width: 18ch;
}

.job-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.job-meta-chips li {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

.job-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.job-hero-actions .btn {
  border-radius: 50px;
}

.job-hero-actions .btn-primary {
  padding-left: 26px;
  padding-right: 26px;
}

/* —— Body layout —— */
.job-body {
  padding: 56px 0 96px;
}

.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 32px;
  align-items: start;
}

.job-eyebrow {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-500);
}

.job-eyebrow-light {
  color: var(--blue-400);
}

.job-block {
  margin-bottom: 24px;
}

.job-block-card {
  background: #fff;
  border: 1px solid rgba(15, 32, 66, 0.07);
  border-radius: 20px;
  padding: 32px 34px;
  box-shadow: 0 12px 40px rgba(15, 32, 66, 0.05);
}

.job-block h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--text-dark);
}

.job-prose p,
.job-editor-content p {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.78;
  margin: 0 0 1em;
}

.job-prose p:last-child,
.job-editor-content p:last-child {
  margin-bottom: 0;
}

.job-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.7;
}

.job-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(15, 141, 235, 0.12);
}

.job-list-muted li::before {
  background: #94a3b8;
  box-shadow: none;
}

/* —— Apply panel + form —— */
.job-apply-panel {
  margin-top: 16px;
  padding: 40px 36px 36px;
  border-radius: 24px;
  background: linear-gradient(165deg, #061726 0%, #0a2548 55%, #08223c 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(6, 23, 38, 0.22);
}

.job-apply-panel-head {
  margin-bottom: 28px;
  max-width: 640px;
}

.job-apply-panel-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: #fff;
}

.job-apply-panel-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.job-apply-form-wrap.contact-form-box {
  padding: 32px 30px 28px;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.page-career-single .job-application-form.contact-form {
  gap: 0;
}

.page-career-single .job-apply-disclaim {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
  color: var(--text-muted);
}

.page-career-single .job-apply-form-wrap .btn-submit-upper {
  margin-top: 4px;
}

/* —— Sidebar —— */
.job-sidebar {
  position: sticky;
  top: calc(var(--header-clearance) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-sidebar-card {
  background: #fff;
  border: 1px solid rgba(15, 32, 66, 0.07);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 12px 40px rgba(15, 32, 66, 0.05);
}

.job-sidebar-card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--text-dark);
}

.job-sidebar-facts .btn {
  border-radius: 50px;
  margin-top: 4px;
}

.job-sidebar-meta {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-sidebar-meta li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.job-fact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-pill-bg);
  color: var(--blue-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.job-fact-icon svg {
  width: 18px;
  height: 18px;
}

.job-sidebar-meta li > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.job-sidebar-meta li span:not(.job-fact-icon) {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.job-sidebar-meta li strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.job-hire-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: hire-step;
}

.job-hire-steps li {
  position: relative;
  padding: 0 0 22px 44px;
  counter-increment: hire-step;
}

.job-hire-steps li:last-child {
  padding-bottom: 0;
}

.job-hire-steps li::before {
  content: counter(hire-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-pill-bg);
  color: var(--blue-500);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.job-hire-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 34px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}

.job-hire-steps strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.job-hire-steps span {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
}

.job-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-500);
  text-decoration: none;
  padding: 8px 4px;
}

.job-back-link:hover {
  color: var(--blue-600);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .job-layout {
    grid-template-columns: 1fr;
  }

  .job-sidebar {
    position: static;
  }

  .job-sidebar-steps {
    display: none;
  }

  .job-hero-title {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .job-hero {
    padding-bottom: 48px;
  }

  .job-hero-actions {
    flex-direction: column;
  }

  .job-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .job-block-card {
    padding: 24px 20px;
  }

  .page-career-single .job-form-grid {
    grid-template-columns: 1fr;
  }
}
