/* Job Portal page. Loaded after modern.css.
   Sizes are in px because the theme's root font-size is 24px (20px / 18px on small screens). */

.job-board .row { --bs-gutter-y: 30px; }

/* Poppins everywhere on this page. The theme only sets it on headings, <p>, buttons and links,
   so lists, labels, spans and <strong> would otherwise fall back to the system font. */
.job-board, .job-board *, .job-cta-card, .job-cta-card * { font-family: 'Poppins', sans-serif; }
/* ...but keep Font Awesome icons on their own icon font */
.job-board .fa-solid, .job-board .fa-regular, .job-cta-card .fa-solid { font-family: 'Font Awesome 6 Free'; }


/* ---------- Filters ---------- */
.job-filters {
  background: #fff; border: 1px solid #e6e9ee; border-radius: 8px; padding: 24px;
  box-shadow: 0 0 10px rgba(204, 204, 204, .35);
}
@media (min-width: 992px) { .job-filters { position: sticky; top: 20px; } }
.job-filters h2 { font-size: 18px; margin-bottom: 18px; color: #0E2349; }
.filter-field { margin-bottom: 16px; }
.filter-field label { display: block; margin-bottom: 6px; font: 600 13px/1.4 'Poppins', sans-serif; color: #0E2349; }
.job-filters input, .job-filters select {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 6px;
  background-color: #fff; color: #344054; font: 400 14px 'Poppins', sans-serif;
}
.job-filters input:focus-visible, .job-filters select:focus-visible { border-color: #009170; outline: 3px solid rgba(0, 145, 112, .25); outline-offset: 0; }
.filter-clear {
  padding: 0; border: 0; background: none; color: #009170; font: 500 13px 'Poppins', sans-serif;
  text-decoration: underline; cursor: pointer;
}
.filter-clear:hover { color: #0E2349; }

/* ---------- List header ---------- */
.job-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.job-list-head p { margin: 0; font-size: 14px; color: #6b7280; }

/* ---------- Job cards ---------- */
.job-card {
  display: flex; gap: 20px; margin-bottom: 20px; padding: 24px;
  background: #fff; border: 1px solid #e6e9ee; border-radius: 8px;
  box-shadow: 0 0 10px rgba(204, 204, 204, .35); transition: border-color .3s, box-shadow .3s;
}
.job-card:hover { border-color: #009170; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.job-card.is-featured { border-left: 4px solid #009170; background: #f6fbf9; }
.job-card.is-placeholder { background: #fcfcfd; }
.job-card.is-placeholder .job-icon { background: #f1f2f4; color: #8a8f98; }
.job-card[hidden] { display: none; }

.job-icon {
  flex: 0 0 56px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: #e7f5f1; color: #009170; font-size: 22px;
}
.job-body { flex: 1; min-width: 0; }
.job-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.job-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #e7f5f1; color: #00755a; font: 600 12px/1.5 'Poppins', sans-serif;
}
.job-badge.is-new { background: #009170; color: #fff; }
.job-badge.is-soon { background: #f1f2f4; color: #5f6368; }

.job-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; line-height: 1.3; color: #0E2349; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; color: #6b7280; }
.job-meta i { margin-right: 6px; color: #009170; }
.job-summary { margin-bottom: 14px; font-size: 14px; line-height: 1.7; color: #5f6368; }
.job-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.job-chips li { padding: 2px 10px; border: 1px solid #d9e2e0; border-radius: 4px; font-size: 12px; color: #4b5563; background: #fff; }
.job-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.btn-job-outline { color: #009170; background: transparent; font-size: .6rem; padding: .24rem 1.122rem; transition: .3s; }
.btn-job-outline:hover, .btn-job-outline:focus-visible, .btn-job-outline:active {
  color: #fff; background: #A9ABAE; border-color: #A9ABAE;
}
.btn.is-disabled { color: #8a8f98; background: #eceef1; border-color: #eceef1; font-size: .6rem; padding: .24rem 1.122rem; cursor: not-allowed; pointer-events: none; }
.btn-job-outline .fa-chevron-down { margin-left: 6px; font-size: 11px; transition: transform .3s; }
.btn-job-outline[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.btn-custom .fa-arrow-up-right-from-square { margin-left: 6px; font-size: 11px; }

/* ---------- Expanded details ---------- */
.job-details { margin-top: 22px; padding-top: 22px; border-top: 1px solid #e6e9ee; }
.job-details[hidden] { display: none; }
.job-details h4 { margin: 20px 0 8px; font-size: 16px; font-weight: 600; color: #0E2349; }
.job-details h4:first-child { margin-top: 0; }
.job-details p, .job-details li { font-size: 14px; line-height: 1.7; color: #555; }
.job-details ul { margin: 0 0 8px; padding: 0; list-style: none; }
.job-details li { position: relative; margin-bottom: 6px; padding-left: 20px; }
.job-details li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: #009170; }
.job-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.job-fact { padding: 12px 14px; border-radius: 6px; background: #fff; border: 1px solid #e6e9ee; }
.job-fact span { display: block; font-size: 12px; color: #6b7280; }
.job-fact strong { font-size: 14px; font-weight: 600; color: #0E2349; }
.job-apply-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 24px; padding: 18px 20px; border-radius: 8px; background: #e7f5f1;
}
.job-apply-box p { margin: 0; font-size: 14px; color: #0E2349; }

/* ---------- Empty state ---------- */
.job-empty { padding: 50px 20px; border: 2px dashed #d0d5dd; border-radius: 8px; text-align: center; }
.job-empty[hidden] { display: none; }
.job-empty h3 { margin-bottom: 6px; font-size: 18px; color: #0E2349; }
.job-empty p { margin-bottom: 14px; font-size: 14px; }

/* ---------- Call to action ---------- */
.job-cta-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 36px 40px; border-radius: 8px; background: #0E2349;
}
.job-cta-card h2 { margin: 0 0 6px; font-size: 22px; color: #fff; }
.job-cta-card p { margin: 0; font-size: 14px; color: #d9d9d9; }

@media (max-width: 576px) {
  .job-card { flex-direction: column; gap: 14px; padding: 20px; }
  .job-cta-card { padding: 28px 22px; }
}
