/* ======================================================
   JOBS PAGE STYLES
   Status:
   - Selaras dengan HTML (H2)
   - Tidak ada perubahan visual
====================================================== */


/* ======================================================
   VISIBILITY CONTROL
====================================================== */
.jobs-desktop {
  display: none;
}

.jobs-mobile {
  display: block;
}


/* ======================================================
   DESKTOP VERSION (≥ 992px)
====================================================== */
@media (min-width: 992px) {

  .jobs-desktop {
    display: block;
  }

  .jobs-mobile {
    display: none;
  }

  /* Grid layout */
  .jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
  }

  /* Job card */
  .job-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    padding-bottom: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: .25s;
  }

  .job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
  }

  /* ✅ TITLE (SELARAS DENGAN HTML) */
  .job-card h2 {
    font-size: 18px;
    color: #0b3a24;
  }

  /* Location */
  .job-location {
    font-size: 13px;
    color: #0a7c54;
    margin-bottom: 8px;
  }

  /* Description */
  .job-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  /* Apply button */
  .job-card .btn-detail {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 18px;
    line-height: 1.2;
  }
}


/* ======================================================
   MOBILE VERSION
====================================================== */
.jobs-mobile {
  margin-top: 20px;
}

/* Mobile job card */
.job-m-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  padding-bottom: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  margin-bottom: 16px;
}

/* ✅ TITLE (SELARAS DENGAN HTML) */
.job-m-card h2 {
  font-size: 16px;
  margin-bottom: 4px;
}

/* Location */
.job-m-card small {
  color: #0a7c54;
  display: block;
  margin-bottom: 8px;
}

/* Text */
.job-m-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

/* Apply button */
.job-m-card .btn-detail {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  line-height: 1.2;
}

/* ======================================================
   JOB DETAIL MODAL
====================================================== */
.job-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.job-modal.active {
  display: flex;
}

.job-modal-content {
  background: #fff;
  width: 90%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 16px;
  padding: 24px;
  position: relative;
}

.job-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 22px;
  cursor: pointer;
}

/* =========================================
   JOB DETAIL BUTTON
========================================= */
.btn-detail {
  display: inline-block;
  margin: 10px 0 14px;
  padding: 8px 16px;
  font-size: 14px;
  background: #f5f7f6;
  color: #0b3a24;
  border: 1px solid #0b3a24;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-detail:hover {
  background: #0b3a24;
  color: #fff;
}

/* ======================================================
   UNIFY BUTTON STYLE (VIEW DETAILS & VIEW & APPLY)
====================================================== */

/* Base button style */
.btn-detail,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 10px 0 14px;
  padding: 8px 16px;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;

  background: #f5f7f6;
  color: #0b3a24;

  border: 1px solid #0b3a24;
  border-radius: 8px;

  cursor: pointer;
  text-align: center;
  text-decoration: none; /* 🔥 HILANGKAN GARIS BAWAH */
  transition: all .2s ease;
}

/* Hover effect */
.btn-detail:hover,
.btn-ghost:hover {
  background: #0b3a24;
  color: #fff;
}

/* ======================================================
   FORCE IDENTICAL FONT FOR JOB BUTTONS
====================================================== */

.btn-detail,
.btn-ghost {
  font-family: inherit;        /* samakan font */
  font-size: 14px;             /* kunci ukuran */
  font-weight: 500;            /* kunci ketebalan */
  letter-spacing: 0;           /* cegah beda visual */
  text-rendering: optimizeLegibility;
}

.flag-icon {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ======================================================
   LEGAL NOTICE (JOB LISTING PAGE)
====================================================== */

.legal-note {
  max-width: 920px;
  margin: 40px auto 0;

  padding-top: 16px;
  border-top: 1px solid #e5e7eb;

  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;

  text-align: center;
}

/* Mobile adjustment */
@media (max-width: 991px) {
  .legal-note {
    margin: 32px 16px 0;
    font-size: 12.5px;
    line-height: 1.55;
  }
}
