/* ===============================
   GLOBAL
================================ */
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

body {
  background: #f5f7fa;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}

/* ===============================
   HEADER
================================ */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.header h2 {
  margin: 0 10px 10px 0;
}

/* ===============================
   FILTER TAGS
================================ */
.filter-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 4px 12px;
  background: #eee;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-tag:hover,
.filter-tag.active {
  background: #007bff;
  color: #fff;
}

/* ===============================
   DROPDOWN
================================ */
.filter-dropdown {
  display: none;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ===============================
   JOB GRID
================================ */
.job-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ===============================
   JOB CARD
================================ */
.job-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  transition: .3s;
}

.job-card:hover {
  border-color: #007bff;
}

/* ===============================
   BADGES
================================ */
.badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  color: #fff;
  text-transform: uppercase;
}

.top { background: #7c4dff; }
.hot { background: #ff5252; }
.urgent { background: #ff9800; }

/* ===============================
   JOB TITLE (LIST)
================================ */
.job-title {
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0;
  line-height: 1.3;
}

/* ===============================
   COMPANY
================================ */
.company {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.company img {
  width: 26px;
  height: 26px;
  border-radius: 4px;
}

/* ===============================
   FOOTER / BUTTON
================================ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 13px;
}

.salary {
  color: #00a86b;
  font-weight: 600;
}

.apply-btn {
  padding: 4px 12px;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  display: inline-block;
}

.apply-btn:hover {
  background: #0056b3;
}

/* ===============================
   PAGINATION
================================ */
#pagination {
  margin-top: 24px;
  text-align: center;
}

.page-btn {
  padding: 5px 10px;
  margin: 0 4px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #eee;
}

.page-btn.active {
  background: #007bff;
  color: #fff;
}

/* =================================================
   JOB DETAIL — ARTICLE STYLE (TITLE + META + CONTENT)
================================================== */
.job-article {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  margin: 16px 0 40px;
}

/* Title seperti artikel */
.job-article .job-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
}

/* Meta */
.job-meta {
  margin-bottom: 16px;
}

.job-meta p {
  margin: 4px 0;
  font-size: 14px;
  color: #666;
}

/* Content artikel */
.job-content {
  margin-top: 20px;
  line-height: 1.8;
  font-size: 15px;
  color: #333;
}

.job-content p {
  margin: 12px 0;
}

.job-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ===============================
   BACK TO JOBS
================================ */
.job-back {
  margin: 24px 0 12px;
}

.job-back a {
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
}

.job-back a:hover {
  text-decoration: underline;
}

/* ===============================
   RELATED JOBS
================================ */
.related-jobs {
  margin: 48px 0;
}

.related-jobs h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

/* ===============================
   RELATED JOB CARD (NEW)
================================ */
.related-jobs .job-card {
  gap: 8px;
}

.related-jobs .requirement {
  font-size: 14px;
  color: #333;
}

.deadline-btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.deadline-btn-row .deadline {
  font-size: 15px;      /* sama dengan job title */
  font-weight: 600;     /* sama dengan job title */
  color: #333;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .job-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .job-article .job-title {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .job-track {
    grid-template-columns: 1fr;
  }

  .filter-tags {
    display: none;
  }

  .filter-dropdown {
    display: inline-block;
    margin-top: 10px;
  }

  .job-article {
    padding: 20px;
  }
}
