/* =========================================================
   JOB STAFF — FINAL VISUAL ALIGNMENT
   Shared navbar/footer remain untouched.
========================================================= */

.job-page {
  --mpi-navy: #202550;
  --mpi-navy-dark: #182044;
  --mpi-blue: #2f5f91;
  --mpi-text: #17213a;
  --mpi-muted: #69758a;
  --mpi-line: #e5e8ef;
  --mpi-soft: #f6f7fa;
  background: #fff;
  color: var(--mpi-text);
  font-family: "Plus Jakarta Sans", "Manrope", Arial, sans-serif;
}

.job-page *,
.job-modal * {
  box-sizing: border-box;
}

/* =========================================================
   HERO
   Dibuat satu warna dengan navbar Home:
   #202550
========================================================= */

.job-hero {
  position: relative;
  overflow: hidden;
  background: var(--mpi-navy);
  color: #fff;
}

.job-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.08) 0%,
    transparent 52%,
    rgba(255, 255, 255, 0.025) 100%
  );
}

.job-hero::after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -155px;
  bottom: -330px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 50%;
  pointer-events: none;
}

.job-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: 300px;
  margin: 0 auto;
  padding: 30px 0 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.job-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  padding-top: 50px;
}

.job-breadcrumb a {
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.2s ease;
}

.job-breadcrumb a:hover {
  color: #fff;
}

.job-breadcrumb span {
  color: rgba(255, 255, 255, 0.28);
}

.job-breadcrumb strong {
  color: #fff;
  font-weight: 700;
}

.job-hero-copy {
  max-width: 760px;
}

.job-eyebrow,
.job-section-label,
.job-modal-label,
.job-detail-label {
  display: block;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.job-eyebrow {
  margin-bottom: 12px;
  color: #b8c9e1;
}

.job-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -2.2px;
}

.job-hero h1 em {
  color: #aec8e5;
  font-style: normal;
}

.job-hero p {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

.job-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
}

.job-hero-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.job-hero-meta i {
  color: #b8c9e1;
}

.job-hero-meta b {
  color: #fff;
  font-weight: 700;
}

/* =========================================================
   JOB LIST
========================================================= */

.job-list-section {
  padding: 52px 0 75px;
  background: #fff;
}

.job-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.job-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}

.job-section-label {
  margin-bottom: 10px;
  color: #77839a;
}

.job-section-heading h2 {
  margin: 0;
  color: var(--mpi-navy);
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.job-section-heading h2 em {
  color: #a9c8e6;
  font-style: normal;
}

.job-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2d6296;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.job-back-link:hover {
  color: var(--mpi-navy);
}

/* =========================================================
   CARDS
========================================================= */

.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.job-card {
  overflow: hidden;
  border: 1px solid var(--mpi-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(24, 32, 68, 0.055);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  border-color: #d8deea;
  box-shadow: 0 16px 38px rgba(24, 32, 68, 0.11);
}

.job-card-image {
  position: relative;
  height: 175px;
  overflow: hidden;
  background: #e9edf4;
}

.job-card-image img {
  display: block;
  width: 100%;
  height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
  margin-top: 5px;
}

.job-card:hover .job-card-image img {
  transform: scale(1.025);
}

.job-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #93a0b4;
  background: #edf0f5;
  font-size: 36px;
}

.job-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(32, 37, 80, 0.92);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.job-card-body {
  /* padding: 20px 21px 21px; */
  padding: 17px 18px 18px;
}

.job-card-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  color: #7a8496;
  font-size: 9px;
  font-weight: 600;
}

.job-card-topline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.job-card-topline i {
  color: #68809c;
  font-size: 9px;
}

.job-card h3 {
  margin: 12px 0 8px;
  color: var(--mpi-navy);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.job-card-note {
  min-height: 45px;
  margin: 0;
  color: var(--mpi-muted);
  font-size: 11px;
  line-height: 1.75;
}

.job-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid var(--mpi-line);
}

.job-deadline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-deadline small {
  color: #8a94a5;
  font-size: 8px;
}

.job-deadline strong {
  color: var(--mpi-text);
  font-size: 10px;
  font-weight: 700;
}

.job-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--mpi-navy);
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.job-detail-btn:hover {
  background: #2a3064;
  transform: translateX(1px);
}

.job-detail-btn i {
  font-size: 8px;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.job-empty {
  min-height: 290px;
  padding: 45px 25px;
  border: 1px dashed #d7dce5;
  border-radius: 20px;
  background: #f7f8fa;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.job-empty-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: #e8ebf2;
  color: #738098;
}

.job-empty h3 {
  margin: 16px 0 6px;
  color: var(--mpi-navy);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.job-empty p {
  margin: 0;
  color: #69758a;
  font-size: 11px;
}

.job-empty a {
  margin-top: 17px;
  color: #2d6296;
  font-size: 11px;
  font-weight: 700;
}

/* =========================================================
   MODAL
========================================================= */

body.job-modal-open {
  overflow: hidden;
}

.job-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.job-modal.open {
  display: flex;
}

.job-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 17, 39, 0.7);
  backdrop-filter: blur(5px);
}

.job-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
}

.job-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #536078;
  cursor: pointer;
}

.job-modal-header {
  padding: 32px 38px 23px;
  background: var(--mpi-navy);
  color: #fff;
}

.job-modal-label {
  margin-bottom: 8px;
  color: #b8c9e1;
}

.job-modal-header h2 {
  margin: 0 42px 11px 0;
  color: #fff;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.18;
}

.job-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 10px;
}

.job-modal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.job-modal-content {
  overflow: auto;
  padding: 27px 38px;
}

.job-detail-block {
  margin-bottom: 25px;
}

.job-detail-label {
  margin-bottom: 9px;
  color: #77839a;
}

.job-detail-text {
  color: #48566b;
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-line;
}

.job-detail-block.is-empty {
  display: none;
}

.job-deadline-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 17px;
  border: 1px solid #dfe4ec;
  border-radius: 14px;
  background: #f7f8fa;
}

.job-deadline-box div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-deadline-box span {
  color: #7b8799;
  font-size: 9px;
}

.job-deadline-box strong {
  color: var(--mpi-navy);
  font-size: 11px;
}

.job-deadline-box i {
  color: #68809c;
  font-size: 19px;
}

.job-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 38px;
  border-top: 1px solid var(--mpi-line);
}

.job-modal-secondary,
.job-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  border-radius: 999px;
  padding: 0 17px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.job-modal-secondary {
  border: 1px solid var(--mpi-line);
  background: #fff;
  color: #68758a;
}

.job-apply-btn {
  background: var(--mpi-navy);
  color: #fff;
}

.job-apply-btn:hover {
  background: #2a3064;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 850px) {
  .job-grid {
    grid-template-columns: 1fr;
  }

  .job-card-image {
    height: 230px;
  }
}

@media (max-width: 560px) {
  .job-hero-inner,
  .job-container {
    width: calc(100% - 28px);
  }

  .job-hero-inner {
    min-height: 320px;
    padding: 25px 0 43px;
  }

  .job-breadcrumb {
    margin-bottom: 29px;
    font-size: 10px;
  }

  .job-hero h1 {
    font-size: 38px;
    letter-spacing: -1.4px;
  }

  .job-hero p {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.7;
  }

  .job-hero-meta {
    margin-top: 24px;
    gap: 14px;
  }

  .job-list-section {
    padding: 52px 0 65px;
  }

  .job-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .job-section-heading h2 {
    font-size: 30px;
  }

  .job-card-image {
    height: 190px;
  }

  .job-card-body {
    padding: 18px;
  }

  .job-card h3 {
    font-size: 19px;
  }

  .job-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .job-detail-btn {
    width: 100%;
  }

  .job-modal {
    padding: 9px;
  }

  .job-modal-dialog {
    max-height: 94vh;
    border-radius: 19px;
  }

  .job-modal-header {
    padding: 28px 24px 20px;
  }

  .job-modal-header h2 {
    font-size: 24px;
  }

  .job-modal-content {
    padding: 23px 24px;
  }

  .job-modal-footer {
    flex-direction: column-reverse;
    padding: 14px 24px;
  }

  .job-modal-secondary,
  .job-apply-btn {
    width: 100%;
  }
}
