.job-category-page {
  min-height: 650px;
  color: #263445;
  background: #f4f6f8;
}

/* Thanh tìm kiếm */
.jc-search {
  padding: 18px 0;
  background: linear-gradient(90deg, #00873d 0%, #00b14f 100%);
}

.jc-search__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px auto;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}

.jc-search__field {
  position: relative;
}

.jc-search__field i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #8a97a8;
  transform: translateY(-50%);
  pointer-events: none;
}

.jc-search__field input,
.jc-search__field select {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 38px;
  border: 0;
  border-radius: 8px;
  color: #263445;
  background: #fff;
  outline: none;
}

.jc-search__field + .jc-search__field {
  border-left: 1px solid #e2e8ee;
}

.jc-btn-primary,
.jc-btn-outline,
.jc-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 600;
}

.jc-btn-primary {
  border: 0;
  color: #fff;
  background: #00b14f;
}

.jc-btn-primary:hover {
  color: #fff;
  background: #009643;
}

.jc-btn-outline,
.jc-filter-toggle {
  border: 1px solid #00b14f;
  color: #00a84b;
  background: #fff;
}

.jc-btn-outline:hover,
.jc-filter-toggle:hover {
  color: #008b3f;
  background: #eafaf1;
}

/* Breadcrumb (cùng kiểu trang chi tiết tin) */
.job-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 14px;
  color: #667488;
  font-size: 14px;
}

.job-breadcrumb a {
  color: #4b596c;
}

.job-breadcrumb a:hover {
  color: #00a84b;
}

.job-breadcrumb i {
  color: #a0abb8;
  font-size: 10px;
}

.job-breadcrumb span {
  color: #263445;
  font-weight: 600;
}

/* Tiêu đề */
.jc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 12px;
}

.jc-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.4;
}

.jc-header h1 strong {
  color: #00a84b;
}

.jc-header__updated {
  color: #718096;
  font-size: 14px;
}

.jc-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px 14px;
  border: 1px solid #e2e8ee;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.jc-quick-links > span {
  color: #4b596c;
}

.jc-quick-links a {
  padding: 3px 10px;
  border-radius: 20px;
  color: #263445;
  background: #f0f3f5;
}

.jc-quick-links a small {
  color: #718096;
}

.jc-quick-links a:hover,
.jc-quick-links a.active {
  color: #008b3f;
  background: #eafaf1;
}

/* Thẻ chung */
.jc-box {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #e2e8ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 13px rgba(28, 47, 65, 0.04);
}

.jc-box__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}

/* Bộ lọc */
.jc-filter-toggle {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.jc-filter-toggle__dot {
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.jc-filters {
  padding: 18px;
}

.jc-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.jc-filters__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
}

.jc-filters__head h2 i {
  margin-right: 8px;
  color: #00a84b;
}

.jc-filters__head a {
  color: #ef4444;
  font-size: 14px;
  font-weight: 600;
}

.jc-filter-group {
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #edf0f2;
}

.jc-filter-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.jc-filter-group h3,
.jc-filter-group legend {
  width: auto;
  margin: 0 0 10px;
  padding: 0;
  color: #263445;
  font-size: 15px;
  font-weight: 700;
}

.jc-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}
.jc-options.jc-option-cap-bac {
  grid-template-columns: repeat(1, 1fr);
}

.jc-options label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #3a4859;
  font-size: 14px;
  cursor: pointer;
}

.jc-options input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #00b14f;
}

/* Custom radio circle */
.custom-radio-circle {
  gap: 8px;
}
.custom-radio-circle input[type="radio"] {
  display: none;
}
.custom-radio-circle label {
  align-items: flex-start;
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  margin: 0;
  position: relative;
  width: 100%;
}
.custom-radio-circle label:before {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid #bcc1c5;
  border-radius: 50%;
  content: " ";
  display: inline-block;
  margin: 0 8px 0 0;
  min-width: 20px;
  position: relative;
  width: 20px;
}
.custom-radio-circle input[type="radio"]:checked + label:after {
  aspect-ratio: 1 / 1;
  background: #00b14f;
  border-radius: 10px;
  content: " ";
  display: block;
  left: 5px;
  position: absolute;
  width: 10px;
}

.custom-radio-circle label .input-radio_label {
  width: auto;
}

.custom-radio-circle label:before {
  border: 2px solid #bcc1c5;
  margin: 0;
  width: 18px;
}

.custom-radio-circle label span {
  font-feature-settings:
    "liga" off,
    "clig" off;
  color: #263a4d;
  font-family: Inter;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.14px;
  line-height: 22px;
}

.custom-radio-circle input[type="radio"]:checked + label:before {
  border: 2px solid #00b14f;
}

.custom-radio-circle:hover label span {
  color: #00b14f;
}

.custom-radio-circle:hover label:before {
  border: 2px solid #00b14f;
}
/* end custom-radio-circle */

/* Cây ngành: cấp 2 = checkbox, cấp 3 = nút bo tròn */
.jc-tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jc-tree__row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.jc-tree__node {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  color: #263445;
  font-size: 14px;
  line-height: 1.4;
}

.jc-tree__node:hover {
  color: #008b3f;
}

.jc-tree__node small {
  color: #8a97a8;
  font-size: 12px;
}

.jc-tree__node.is-empty .jc-tree__name {
  color: #8a97a8;
}

.jc-check {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid #b8c2cc;
  border-radius: 4px;
  background: #fff;
  transition: all 0.15s ease;
}

.jc-tree__node[aria-checked="true"] .jc-check,
.jc-tree__node[aria-checked="mixed"] .jc-check {
  border-color: #00b14f;
  background: #00b14f;
}

.jc-tree__node[aria-checked="true"] .jc-check::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.jc-tree__node[aria-checked="mixed"] .jc-check::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 3px;
  width: 9px;
  height: 2px;
  background: #fff;
}

.jc-tree__node[aria-checked="true"],
.jc-tree__node[aria-checked="mixed"] {
  color: #008b3f;
  font-weight: 600;
}

.jc-tree__toggle {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #8a97a8;
  background: none;
}

.jc-tree__toggle:hover {
  color: #00a84b;
  background: #eafaf1;
}

.jc-tree__toggle i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.jc-tree__branch {
  width: 100%;
}
.jc-tree__branch.is-open .jc-tree__toggle i {
  transform: rotate(180deg);
}

/* /viec-lam: nhóm ngành cấp 1 thu gọn được, bên trong là cây cấp 2/3 như trên */
.jc-tree__group {
  border-bottom: 1px solid #eef1f4;
}

.jc-tree__group:last-child {
  border-bottom: 0;
}

.jc-tree__group > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: #263445;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.jc-tree__group > summary::-webkit-details-marker {
  display: none;
}

.jc-tree__group > summary small {
  color: #8a97a8;
  font-size: 12px;
  font-weight: 400;
}

.jc-tree__group > summary i {
  margin-left: auto;
  color: #8a97a8;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.jc-tree__group[open] > summary i {
  transform: rotate(180deg);
}

.jc-tree__group > summary:hover {
  color: #008b3f;
}

.jc-tree__group-body {
  padding: 0 0 6px 8px;
}

.jc-tree__chips {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 10px 28px;
}

.jc-tree__branch.is-open .jc-tree__chips {
  display: flex;
}

.jc-chip {
  max-width: 100%;
  overflow: hidden;
  padding: 3px 10px;
  border: 1px solid #c9d2da;
  border-radius: 20px;
  color: #3a4859;
  background: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.jc-chip:hover {
  border-color: #00b14f;
  color: #008b3f;
}

.jc-chip.is-active {
  border-color: #00b14f;
  color: #008b3f;
  background: #eafaf1;
}

.jc-chip.is-empty:not(.is-active) {
  color: #8a97a8;
}

/* Đang tải kết quả AJAX */
.jc-results {
  transition: opacity 0.15s ease;
}

.jc-results.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

/* Danh sách */
.jc-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 14px;
  color: #4b596c;
}

/* "Tìm kiếm theo": nút bo tròn */
.jc-scope {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.jc-scope legend {
  width: auto;
  margin: 0 4px 0 0;
  padding: 0;
  color: #4b596c;
  font-size: 15px;
  font-weight: 600;
}

.jc-pill {
  margin: 0;
  cursor: pointer;
}

.jc-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.jc-pill span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border: 1px solid transparent;
  border-radius: 20px;
  color: #3a4859;
  background: #e9edf1;
  font-size: 15px;
  transition: all 0.15s ease;
}

.jc-pill i {
  display: none;
  font-size: 13px;
}

.jc-pill:hover span {
  color: #008b3f;
}

.jc-pill input:checked + span {
  border-color: #00b14f;
  color: #00a84b;
  background: #fff;
}

.jc-pill input:checked + span i {
  display: inline-block;
}

.jc-pill input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(0, 177, 79, 0.2);
}

/* "Sắp xếp theo": menu thả xuống */
.jc-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jc-sort__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid #dbe2e8;
  color: #4b596c;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.jc-dropdown {
  position: relative;
}

.jc-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 190px;
  padding: 6px 16px;
  border: 1px solid #00b14f;
  border-radius: 20px;
  color: #00a84b;
  background: #fff;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.jc-dropdown summary::-webkit-details-marker {
  display: none;
}

.jc-dropdown summary i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.jc-dropdown[open] summary i {
  transform: rotate(180deg);
}

.jc-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  padding: 6px 0;
  border: 1px solid #e2e8ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 47, 65, 0.14);
}

.jc-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 10px 16px;
  color: #263445;
  white-space: nowrap;
  cursor: pointer;
}

.jc-dropdown__item:hover {
  background: #f4f6f8;
}

.jc-dropdown__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.jc-dropdown__item i {
  visibility: hidden;
  color: #00b14f;
}

.jc-dropdown__item:has(input:checked) {
  color: #00a84b;
  font-weight: 600;
}

.jc-dropdown__item:has(input:checked) i {
  visibility: visible;
}

.jc-job-list {
  display: grid;
  gap: 14px;
}

.jc-empty {
  padding: 40px 20px;
  text-align: center;
}

.jc-empty > i {
  margin-bottom: 12px;
  color: #9bb1a4;
  font-size: 46px;
}

.jc-empty h2 {
  font-size: 19px;
  font-weight: 700;
}

.jc-empty p {
  color: #718096;
}

.jc-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jc-related a {
  padding: 6px 12px;
  border-radius: 6px;
  color: #3a4859;
  background: #f0f3f5;
  font-size: 14px;
}

.jc-related a:hover {
  color: #008b3f;
  background: #eafaf1;
}

.jc-pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.jc-pagination .pagination {
  margin: 0;
}

@media (max-width: 767.98px) {
  .jc-search__form {
    grid-template-columns: 1fr;
  }

  .jc-search__field + .jc-search__field {
    border-top: 1px solid #e2e8ee;
    border-left: 0;
  }

  .jc-header h1 {
    font-size: 19px;
  }

  .jc-sort__label {
    padding-left: 0;
    border-left: 0;
  }

  .jc-pill span,
  .jc-scope legend,
  .jc-sort__label {
    font-size: 14px;
  }
}
