/* Chi tiết tin tuyển dụng — làm lại 12/11/2026 */
[hidden] { display: none !important; }

/* ---------- Breadcrumb ---------- */
.jd-breadcrumb { padding: 14px 24px 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-breadcrumb a { color: var(--navy); font-weight: 600; }
.jd-breadcrumb span { margin: 0 5px; }

/* ---------- Khung đầu: ảnh + thông tin ---------- */
.header-wrap-box { padding: 14px 24px 0; }
.jd-card { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; padding: 20px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-card); align-items: start; }
.jd-gal { min-width: 0; }
.jd-main-img { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #EEECE5; display: grid; place-items: center; }
.jd-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jd-main-img .ph { font-size: 54px; opacity: .55; }
.jd-gal.noimg .jd-main-img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #FFF1E6, #FDE3CF); }
.hot-badge { position: absolute; top: 12px; left: 12px; background: var(--red, #E14D4D); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 8px; z-index: 1; }
.jd-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.jd-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: #EEECE5; cursor: pointer; }
.jd-thumbs button.on { border-color: var(--orange, #E8622A); }
.jd-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.jd-info { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.title-row { display: flex; align-items: flex-start; gap: 12px; }
.job-title-full { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.status-pill { background: #E1F1EC; color: var(--teal-dark); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); white-space: nowrap; flex: none; margin-top: 3px; }
.company-line { font-size: 14.5px; color: var(--ink); margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-ago { color: var(--muted); font-weight: 500; }
.jd-salary { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jd-salary b { font-size: 24px; font-weight: 800; color: var(--orange, #E8622A); white-space: nowrap; }
.jd-nego { font-size: 12px; font-weight: 700; color: #8A5A0E; background: #FFF0D9; border-radius: var(--radius-pill); padding: 4px 10px; white-space: nowrap; }
.jd-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.jd-facts > div { padding: 10px 12px; min-width: 0; }
.jd-facts > div + div { border-left: 1px solid var(--border); }
.jd-facts span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-facts b { display: block; font-size: 14px; color: var(--navy); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.jd-tags span { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: var(--radius-pill); white-space: nowrap; }
.jd-tags .tag-time { background: none; color: var(--muted); font-weight: 500; padding-left: 2px; }
.tag-a { background: #FFF0D9; color: #8A5A0E; }
.tag-b { background: #FBE7F0; color: #B23E75; }
.tag-c { background: #E4ECF7; color: #2E5C9A; }
.tag-d { background: #E1F1EC; color: var(--teal-dark); }
.tag-e { background: #F3E8FA; color: #7C4DA3; }
.jd-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px; gap: 10px; margin-top: 2px; }
.jd-cta .cta-call, .jd-cta .cta-zalo { height: 54px; border: 0; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font: inherit; text-decoration: none; min-width: 0; }
.jd-cta .ic { font-size: 18px; }
.jd-cta b { display: block; font-size: 15px; line-height: 1.2; white-space: nowrap; }
.jd-cta small { display: block; font-size: 12px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-cta > * > span:last-child { min-width: 0; text-align: left; }
.cta-call { background: var(--orange, #E8622A); }
.cta-zalo { background: #1F6FEB; }
.cta-zalo.off { opacity: .5; pointer-events: none; }
.cta-save { height: 54px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; font-size: 22px; color: var(--orange, #E8622A); cursor: pointer; }
.cta-save.on { border-color: var(--orange, #E8622A); background: #FFF4EC; }

/* ---------- Tabs ---------- */
.detail-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--border); padding: 0 24px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.detail-tabs::-webkit-scrollbar { display: none; }
.dtab { font-size: 14px; font-weight: 600; color: var(--muted); padding: 12px 2px; border-bottom: 2.5px solid transparent; white-space: nowrap; text-decoration: none; flex: none; }
.dtab.active { color: var(--orange, #E8622A); border-bottom-color: var(--orange, #E8622A); }

/* ---------- Nội dung ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 22px 24px 60px; align-items: start; }
.section-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; margin-bottom: 16px; scroll-margin-top: 80px; }
.section-box h2 { font-size: 16px; color: var(--navy); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.6; margin-bottom: 9px; overflow-wrap: anywhere; }
.check-list li::before { content: "✓"; color: var(--teal); font-weight: 800; flex-shrink: 0; }
.perk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.perk-grid.solo { margin-top: 0; padding-top: 0; border-top: 0; }
.perk-grid:empty { display: none; }
.perk-cell { font-size: 13.5px; color: var(--ink); background: var(--bg); border-radius: 10px; padding: 10px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.two-col-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.two-col-info:last-child { margin-bottom: 0; }
.info-chip { background: var(--bg); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.info-chip b { display: block; color: var(--navy); font-size: 14px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-addr { font-size: 14.5px; margin: 0; color: var(--ink); font-weight: 600; }
.jd-addr-new { font-size: 13px; color: #2E6B3A; margin: 4px 0 0; }
.jd-map { margin-top: 12px; height: 240px; border-radius: 10px; overflow: hidden; background: #EEF1E9; }
.jd-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.jd-mapbt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.jd-mapbt a { height: 42px; border: 1px solid var(--border); border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 700; color: var(--navy); white-space: nowrap; text-decoration: none; }

/* ---------- Cột phải ---------- */
.side-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; margin-bottom: 16px; scroll-margin-top: 80px; }
.side-card h3 { font-size: 14.5px; color: var(--navy); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.company-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cc-name { min-width: 0; }
.company-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; flex-shrink: 0; }
.company-name-big { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.company-industry { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verified-badge { font-size: 11.5px; color: var(--teal-dark); font-weight: 700; margin: 3px 0 0; }
.company-info-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--border); gap: 12px; }
.company-info-row span { white-space: nowrap; flex: none; }
.company-info-row b { color: var(--ink); font-weight: 600; text-align: right; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-apply-big { width: 100%; margin-top: 14px; height: 46px; background: var(--navy); color: #fff; border: none; border-radius: 10px; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.similar-job { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; color: inherit; text-decoration: none; padding: 10px 0; border-top: 1px solid var(--border); }
.similar-job:first-child { border-top: 0; padding-top: 0; }
.similar-job img, .sj-ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #FFF1E6; display: grid; place-items: center; font-size: 22px; }
.similar-job-title { font-size: 13.5px; font-weight: 700; color: var(--navy); margin: 0 0 3px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.similar-job-meta { font-size: 12px; color: var(--muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.similar-job-salary { font-size: 13px; font-weight: 700; color: var(--orange, #E8622A); margin: 2px 0 0; white-space: nowrap; }

/* ---------- Thanh liên hệ cố định (điện thoại) ---------- */
.jd-mbar { display: none; }

@media (max-width: 1000px) {
  .jd-card { grid-template-columns: 280px minmax(0, 1fr); }
  .jd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jd-facts > div:nth-child(3) { border-left: 0; }
  .jd-facts > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .perk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-wrap-box { padding: 10px 12px 0; }
  .jd-breadcrumb { padding: 12px 12px 0; }
  .jd-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; }
  .jd-main-img { aspect-ratio: 16 / 10; }
  .job-title-full { font-size: 18.5px; }
  .title-row { flex-direction: column; gap: 6px; }
  .status-pill { margin-top: 0; }
  .company-line { white-space: normal; line-height: 1.45; }
  .jd-ago { display: block; font-size: 13px; margin-top: 2px; }
  .jd-ago .dot { display: none; }
  .jd-salary b { font-size: clamp(15px, 4.6vw, 21px); }
  .jd-cta { display: none; }
  .detail-tabs { padding: 0 12px; gap: 20px; margin-top: 12px; }
  .detail-layout { padding: 14px 12px 40px; gap: 0; }
  .section-box { padding: 16px; }
  .two-col-info { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .jd-map { height: 200px; }
  .jd-mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--border); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .jd-mbar .cta-call, .jd-mbar .cta-zalo { height: 48px; border: 0; border-radius: 10px; color: #fff; font: inherit; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
  body.has-mbar { padding-bottom: 72px; }
}
@media (max-width: 480px) { .hide-sm { display: none; } }
@media (max-width: 420px) {
  .perk-grid { grid-template-columns: minmax(0, 1fr); }
  .jd-facts b { font-size: 13.5px; }
}
