:root {
  --job-orange: #E8622A;
  --job-orange-dark: #C94F1C;
  --job-red: #E14D4D;
}

/* ---------- Nút / tab màu cam riêng cho trang Tuyển dụng ---------- */
.btn-job-orange { background: var(--job-orange); color: #fff; }
.btn-job-orange:hover { background: var(--job-orange-dark); }
.tab-job-orange.tab-active { color: var(--job-orange); border-bottom-color: var(--job-orange); }

/* ---------- Hero ---------- */
.jobs-hero {
  padding: 44px 0 34px;
  background: linear-gradient(180deg, #FDECC8 0%, #F7D9A8 35%, #E9E0C8 65%, #DCE9DD 100%);
}
.hero-inner { display: flex; justify-content: space-between; gap: 24px; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 32px; margin: 0 0 6px; line-height: 1.18; font-weight: 800; color: var(--navy); }
.hero-text h1 .accent { display: block; color: var(--job-orange); font-size: 36px; }
.hero-text p { color: #4B5566; font-size: 14.5px; max-width: 52ch; margin: 10px 0 20px; }

.hero-search {
  display: flex; align-items: stretch; background: #fff; border-radius: 16px;
  padding: 6px; box-shadow: 0 14px 32px rgba(27,42,74,0.14); width: 100%;
}
.hero-search .field { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.hero-search .field.kw { flex: 2; }
.hero-search input { border: none; outline: none; font: inherit; font-size: 14px; width: 100%; background: none; }
.hero-search .field.loc { flex: 1; border-left: 1px solid var(--border); color: var(--navy); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.hero-search button {
  background: var(--navy); color: #fff; border: none; font-weight: 700; font-size: 14px;
  padding: 0 24px; border-radius: 12px; display: flex; align-items: center; gap: 7px; margin: 2px; white-space: nowrap; flex-shrink: 0; cursor: pointer;
}

.hero-side { flex-shrink: 0; width: 200px; }
.hero-caption { font-family: "Caveat", cursive; font-size: 21px; color: var(--job-orange); line-height: 1.2; font-weight: 600; text-align: right; margin: 0 0 14px; }
.hero-badges { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.hero-badge {
  background: #fff; border-radius: var(--radius-pill); padding: 9px 14px; font-size: 11.5px; font-weight: 700;
  color: var(--navy); box-shadow: 0 8px 18px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.hero-badge .ic { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }

/* ---------- Category chips ---------- */
.cat-strip { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 14px 0; }
.cat-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  padding: 8px 16px 8px 8px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--border);
  color: var(--navy); white-space: nowrap; cursor: pointer;
}
.cat-chip .ic { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.cat-chip.active { background: var(--teal); color: #fff; border-color: var(--teal); padding-left: 16px; }
.cat-chip.active .ic { display: none; }

/* ---------- Layout ---------- */
.jobs-layout { display: grid; grid-template-columns: 230px 1fr; gap: 22px; padding: 24px 24px 60px; }

.jobs-filter {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 18px; align-self: start; position: sticky; top: 84px;
}
.filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filter-head h3 { font-size: 14.5px; margin: 0; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.filter-head a { font-size: 12px; color: var(--teal); font-weight: 600; }
.filter-group { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.filter-group:last-of-type { border-bottom: none; margin-bottom: 12px; }
.filter-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 10px; }
.filter-check { display: flex; align-items: center; gap: 9px; font-size: 13px; margin-bottom: 9px; cursor: pointer; }
.filter-check input { accent-color: var(--teal); width: 16px; height: 16px; }
.clear-btn {
  width: 100%; text-align: center; border: 1.5px solid var(--teal); color: var(--teal); border-radius: var(--radius-pill);
  padding: 9px; font-size: 13px; font-weight: 700; background: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}

.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.results-title { display: flex; align-items: center; gap: 10px; }
.results-title .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.results-title h2 { font-size: 18px; color: var(--navy); margin: 0; }
.results-title p { font-size: 11.5px; color: var(--muted); margin: 2px 0 0; }
.sort-select { font-size: 12.5px; font-weight: 600; padding: 8px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); color: var(--navy); }

/* ---------- Job card (bố cục đã duyệt) ---------- */
.job-card {
  display: flex; align-items: center; gap: 16px; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.job-left { display: flex; gap: 14px; flex: 1; min-width: 0; align-items: center; }
.thumb-wrap { position: relative; flex-shrink: 0; }
.thumb { width: 150px; height: 100px; border-radius: 12px; object-fit: cover; display: block; }
.hot {
  position: absolute; top: -6px; left: -6px; background: var(--job-red); color: #fff; font-size: 9.5px; font-weight: 800;
  padding: 3px 8px 3px 5px; border-radius: 6px; display: flex; align-items: center; gap: 3px; box-shadow: 0 3px 8px rgba(225,77,77,0.4);
}

.job-info { min-width: 0; }
.job-title { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.job-title a { color: var(--navy); }
.job-title a:hover { color: var(--job-orange-dark); }
.job-company { font-size: 12px; color: var(--muted); display: flex; gap: 12px; margin: 0 0 9px; flex-wrap: wrap; }
.job-company span { display: flex; align-items: center; gap: 4px; }
.job-tags { display: flex; gap: 5px; flex-wrap: nowrap; }
.job-tags span { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-pill); white-space: nowrap; }
.tag-green { background: #E1F1EC; color: var(--teal-dark); }
.tag-blue { background: #E4ECF7; color: #2E5C9A; }
.tag-pink { background: #FBE7F0; color: #B23E75; }

.job-right { flex-shrink: 0; width: 280px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.job-salary { font-size: 16px; font-weight: 800; color: var(--job-orange); margin: 0 0 8px; white-space: nowrap; }
.job-meta { display: flex; flex-direction: row; justify-content: space-between; width: 100%; gap: 8px; font-size: 11.5px; color: var(--muted); margin: 0 0 8px; }
.job-meta span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.date-action-row { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
.job-time { font-size: 10.5px; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.heart-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid #F5D5D5; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; color: var(--job-red); flex-shrink: 0; font-size: 12px; cursor: pointer;
}
.apply-btn {
  background: var(--bg-alt); color: var(--navy); border: 1.3px solid var(--navy); font-weight: 700; font-size: 11px;
  padding: 6px 11px; border-radius: var(--radius-pill); display: flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0;
}
.apply-btn:hover { background: var(--navy); color: #fff; }

.pagination { display: flex; justify-content: center; margin-top: 20px; }
.page-btn {
  border: 1px solid var(--border); background: var(--bg-alt); padding: 10px 24px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 600; color: var(--navy); cursor: pointer;
}
.page-btn:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .jobs-layout { grid-template-columns: 1fr; }
  .jobs-filter { position: static; }
  .filter-toggle-btn { display: flex; }
  .jobs-filter { display: none; }
  .jobs-filter.filter-panel-open { display: block; }
  .hero-search { flex-wrap: wrap; }
  .hero-search .field.kw { flex-basis: 100%; }
  .hero-search .field.loc { flex: 1; border-left: none; border-top: 1px solid var(--border); }
  .hero-search button { flex: 1; }
}

@media (max-width: 720px) {
  .cat-row { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .job-card { flex-wrap: wrap; }
  .job-left { flex-basis: 100%; }
  .job-right {
    width: 100%; align-items: flex-start; text-align: left;
    border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px;
  }
}

@media (max-width: 520px) {
  .jobs-hero { padding: 24px 0 18px; }
  .hero-text h1 { font-size: 21px; margin-bottom: 6px; }
  .hero-text h1 .accent { font-size: 24px; }
  .hero-text p { font-size: 13px; margin-bottom: 16px; }
  .hero-side { display: none; }
  .jobs-layout { padding: 24px 16px 44px; gap: 20px; }
  .job-card { padding: 14px; gap: 12px; }
  .thumb { width: 100px; height: 80px; }
}
/* nut-tim-viec-20261130: điện thoại — nút Tìm việc to, cả hàng */
@media (max-width: 860px) {
  .hero-search { flex-wrap: wrap; gap: 0; padding: 8px; }
  .hero-search .field.kw { flex: 1 1 100%; }
  .hero-search .field.loc { flex: 1 1 100%; }
  .hero-search button { flex: 1 1 100%; justify-content: center; min-height: 48px; padding: 12px 20px; margin: 6px 0 0; font-size: 15px; border-radius: 12px; }
}
