/* =========================================================================
   main.css — CSS tuỳ chỉnh nằm ngoài Tailwind.
   Chỉ chứa: biến màu, typography nền, và các component Tailwind không có sẵn
   (thanh 5 bước, thẻ chọn siêu thị, modal OTP, timeline tra cứu…).
   ========================================================================= */

:root {
  --aidi-primary: #0f7a4e;
  --aidi-primary-dark: #0a5c3b;
  --aidi-primary-soft: #e6f4ee;
  --aidi-accent: #f97316;
  --aidi-accent-soft: #fff1e6;
  --aidi-ink: #16241d;
  --aidi-muted: #5c6b63;
  --aidi-line: #e2e9e5;
  --aidi-bg: #f6f8f7;
  --aidi-danger: #c02626;
  --aidi-danger-soft: #fdecec;
}

/* Bản dựng thử chạy kèm Tailwind, mà preflight của Tailwind đặt border-box cho MỌI
   phần tử — CSS ở đây port từ đó nên mọi kích thước đều tính theo border-box. Thiếu
   dòng này thì phần tử width:100% có padding (ô nhập, <a class="btn">) tràn khỏi
   khung 30–42px — đợt sửa cuối B12 (V5): nút "Ứng tuyển ngay" trong menu màn hẹp
   lòi ra mép phải, lề trái/phải không bằng nhau. */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--aidi-bg);
  color: var(--aidi-ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Vùng an toàn cho nút dính đáy trên iPhone. */
.safe-bottom { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

/* ------------------------------ Nút bấm ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px;
  font-weight: 600; font-size: 16px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
  text-decoration: none;
}
.btn:focus-visible { outline: 3px solid var(--aidi-accent); outline-offset: 2px; }
.btn-primary { background: var(--aidi-primary); color: #fff; }
.btn-primary:hover { background: var(--aidi-primary-dark); }
.btn-accent { background: var(--aidi-accent); color: #fff; }
.btn-accent:hover { filter: brightness(.94); }
.btn-ghost { background: #fff; color: var(--aidi-ink); border-color: var(--aidi-line); }
.btn-ghost:hover { border-color: var(--aidi-primary); color: var(--aidi-primary); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ------------------------------ Thẻ, khối ---------------------------- */
.card {
  background: #fff; border: 1px solid var(--aidi-line);
  border-radius: 16px;
}
.chip {
  display: block; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--aidi-primary-soft); color: var(--aidi-primary-dark);
  text-align: center;
  margin-bottom: 10px;
}
.chip-warn { background: #f3f4f6; color: #6b7280; }
.chip-accent { background: var(--aidi-accent-soft); color: #b45309; }
.chip-danger { background: var(--aidi-danger-soft); color: var(--aidi-danger); }

/* ----------------------- Thanh tiến trình trắc nghiệm ----------------- */
.quiz-progress { height: 8px; border-radius: 999px; background: var(--aidi-line); overflow: hidden; }
.quiz-progress__fill { height: 100%; background: var(--aidi-primary); transition: width .2s ease; }

/* --------------------- Thanh tiến trình 5 bước ----------------------- */
/* Nền trắng dính đầu trang, dưới header — bọc ngoài .stepper của trang phễu. */
.stepper-bar { background: #fff; border-bottom: 1px solid var(--aidi-line); position: sticky; top: 64px; z-index: 30; }
/* Mobile: cuộn ngang, không ép 5 bước vào 375px. */
.stepper {
  display: flex; gap: 4px; overflow-x: auto; padding: 12px 16px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.stepper::-webkit-scrollbar { display: none; }
.stepper-item {
  display: flex; align-items: center; gap: 8px;
  flex: 0 0 auto; padding-right: 4px;
}
.stepper-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: #fff; color: var(--aidi-muted);
  border: 2px solid var(--aidi-line); flex: 0 0 auto;
}
.stepper-label { font-size: 13px; color: var(--aidi-muted); white-space: nowrap; }
.stepper-item.is-done .stepper-dot { background: var(--aidi-primary-soft); border-color: var(--aidi-primary); color: var(--aidi-primary-dark); }
.stepper-item.is-done .stepper-label { color: var(--aidi-primary-dark); }
.stepper-item.is-active .stepper-dot { background: var(--aidi-primary); border-color: var(--aidi-primary); color: #fff; }
.stepper-item.is-active .stepper-label { color: var(--aidi-ink); font-weight: 700; }
.stepper-sep { width: 16px; height: 2px; background: var(--aidi-line); flex: 0 0 auto; }

@media (min-width: 768px) {
  .stepper { justify-content: center; overflow-x: visible; }
  .stepper-sep { width: 40px; }
}

/* ------------------------- Form và validate -------------------------- */
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field-label .req { color: var(--aidi-danger); }
.input, .select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--aidi-line); border-radius: 12px;
  background: #fff; color: var(--aidi-ink); font-size: 16px; font-family: inherit;
}
.input:focus, .select:focus {
  outline: none; border-color: var(--aidi-primary);
  box-shadow: 0 0 0 3px var(--aidi-primary-soft);
}
.input.is-invalid, .select.is-invalid { border-color: var(--aidi-danger); background: #fffafa; }
.field-error { display: none; margin-top: 6px; font-size: 13px; color: var(--aidi-danger); }
.field-error.is-shown { display: block; }
.field-hint { margin-top: 6px; font-size: 13px; color: var(--aidi-muted); }

/* ------------------- Thẻ chọn siêu thị (checkbox) -------------------- */
.store-card {
  display: block; position: relative; cursor: pointer;
  border: 1px solid var(--aidi-line); border-radius: 14px;
  background: #fff; padding: 14px 14px 14px 48px;
  transition: border-color .15s ease, background-color .15s ease;
}
.store-card input { position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; accent-color: var(--aidi-primary); }
.store-card:has(input:checked) { border-color: var(--aidi-primary); background: var(--aidi-primary-soft); }
.store-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.store-card:focus-within { box-shadow: 0 0 0 3px var(--aidi-primary-soft); }

/* --------------------- Lựa chọn đáp án trắc nghiệm ------------------- */
.answer {
  display: block; position: relative; cursor: pointer;
  border: 1px solid var(--aidi-line); border-radius: 14px;
  background: #fff; padding: 14px 14px 14px 48px; font-size: 15px;
}
.answer input { position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; accent-color: var(--aidi-primary); }
.answer:has(input:checked) { border-color: var(--aidi-primary); background: var(--aidi-primary-soft); font-weight: 600; }

/* ------------------------------- Modal ------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(12, 26, 20, .55);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-backdrop[hidden] { display: none; }
.modal-box {
  background: #fff; width: 100%; max-width: 420px;
  border-radius: 20px 20px 0 0; padding: 24px 20px;
  max-height: 92vh; overflow-y: auto;
}
@media (min-width: 640px) {
  .modal-backdrop { align-items: center; padding: 16px; }
  .modal-box { border-radius: 20px; }
}
.otp-input {
  width: 100%; text-align: center; letter-spacing: .5em;
  font-size: 26px; font-weight: 700; padding: 12px 8px;
  border: 1px solid var(--aidi-line); border-radius: 12px;
}
.otp-input:focus { outline: none; border-color: var(--aidi-primary); box-shadow: 0 0 0 3px var(--aidi-primary-soft); }

/* Nâng cấp bằng JS (initOtp() trong apply.js, Task 7): ô otp-input độc nhất
   tách thành 6 ô nhỏ — giữ đúng dáng modal của bản dựng thử khi có JS, ô gộp
   (không JS) vẫn dùng .otp-input ở trên. */
.otp-boxes { display: flex; gap: 8px; justify-content: center; }
.otp-boxes .otp-box-input {
  width: 100%; max-width: 48px; height: 56px; text-align: center;
  font-size: 22px; font-weight: 700;
  border: 1px solid var(--aidi-line); border-radius: 12px;
}
.otp-boxes .otp-box-input:focus { outline: none; border-color: var(--aidi-primary); box-shadow: 0 0 0 3px var(--aidi-primary-soft); }

/* --------------------------- Thanh dính đáy -------------------------- */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 30;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--aidi-line);
  backdrop-filter: blur(6px);
}

/* ------------------------ Timeline trang tra cứu --------------------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 2px; background: var(--aidi-line);
}
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -30px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--aidi-line);
}
.tl-item.is-done::before { background: var(--aidi-primary); border-color: var(--aidi-primary); }
.tl-item.is-current::before { background: #fff; border-color: var(--aidi-accent); box-shadow: 0 0 0 4px var(--aidi-accent-soft); }

/* ------------------------------- Khác -------------------------------- */
.prose-list li { margin-bottom: 8px; }
/* Mô tả tin tuyển dụng từ Haraworks (HTML đã lọc — App\Support\SafeHtml). */
.job-desc { margin-top: 12px; line-height: 1.65; }
.job-desc p { margin: 0 0 12px; }
.job-desc h3, .job-desc h4 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.job-desc ul, .job-desc ol { padding-left: 20px; margin: 0 0 12px; }
.job-desc li { margin-bottom: 6px; }
.icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%);
  background: var(--aidi-ink); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-size: 14px; z-index: 80;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.toast.is-shown { opacity: 1; }

/* Ẩn phần tử bằng thuộc tính hidden kể cả khi Tailwind đặt display khác. */
[hidden] { display: none !important; }

/* =========================================================================
   Bổ sung State 2 — trang "Life at AIDIMART" và "Việc HOT gần nhà".
   ========================================================================= */

/* --------------------- Dải thương hiệu vàng – xanh -------------------- */
:root {
  --brand-yellow: #e9c63a;
  --brand-green: #14663a;
}
.brand-band {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(233, 198, 58, .35) 0%, rgba(233, 198, 58, 0) 55%),
    linear-gradient(135deg, var(--brand-green) 0%, #0f7a4e 100%);
  color: #fff;
}
/* Khối đầu trang Life at AIDIMART: ảnh quầy thu ngân phủ lớp xanh thương hiệu đậm
   (chữ trắng vẫn đạt tương phản). Mobile tải bản 800px, màn rộng bản 1600px. */
.brand-band--photo {
  background:
    linear-gradient(135deg, rgba(20, 102, 58, .92) 0%, rgba(15, 122, 78, .80) 100%),
    url("../img/life-thu-ngan-800.webp") center 35% / cover no-repeat;
}
@media (min-width: 768px) {
  .brand-band--photo {
    background:
      linear-gradient(100deg, rgba(20, 102, 58, .95) 0%, rgba(20, 102, 58, .88) 45%, rgba(15, 122, 78, .68) 100%),
      url("../img/life-thu-ngan-1600.webp") center 35% / cover no-repeat;
  }
}

/* ------------------ Tab neo ngang (trang Life at AIDI) ---------------- */
/* Mobile: cuộn ngang, không ép 5 tab vào 375px. */
.life-tabs {
  display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.life-tabs::-webkit-scrollbar { display: none; }
.life-tab {
  display: inline-flex; align-items: center; gap: 8px;
  flex: 0 0 auto; scroll-snap-align: start;
  padding: 10px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  color: var(--aidi-muted); background: #fff;
  border: 1px solid var(--aidi-line); text-decoration: none;
}
.life-tab:hover { border-color: var(--aidi-primary); color: var(--aidi-primary); }
.life-tab.is-active {
  background: var(--aidi-primary); border-color: var(--aidi-primary); color: #fff;
}

/* ------------------------ Ảnh giữ chỗ (prototype) --------------------- */
/* Bản dựng thử không có ảnh thật. Vẽ khung giữ chỗ có nhãn để người review
   biết chỗ nào sẽ đặt ảnh, thay vì mượn ảnh của bên khác. */
.ph {
  position: relative; display: flex; align-items: flex-end;
  aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  padding: 12px; border: 1px dashed rgba(22, 36, 29, .18);
}
.ph-green { background: linear-gradient(140deg, #e6f4ee 0%, #c7e6d8 100%); color: #0a5c3b; }
.ph-yellow { background: linear-gradient(140deg, #fdf6dd 0%, #f3e2a0 100%); color: #6b5410; }
.ph-label { position: relative; font-size: 13px; font-weight: 600; line-height: 1.35; }
.ph-mark {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255, 255, 255, .75); border-radius: 999px; padding: 3px 8px;
}
.ph-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); opacity: .32; }
.ph-icon .icon { width: 46px; height: 46px; }

/* Ô gallery có ảnh thật: cùng khung 4:3 bo góc với .ph, chú thích nằm trên dải tối. */
.gal-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #e6f4ee; }
.gal-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gal-photo .ph-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px;
  color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6));
}

/* --------------------- Trích dẫn (trang Life at AIDI) ----------------- */
.quote {
  margin: 0; padding: 16px 20px; border-left: 4px solid var(--aidi-primary);
  background: var(--aidi-primary-soft); border-radius: 0 16px 16px 0;
}

/* -------------------------------- Bản đồ ------------------------------ */
.map-box {
  height: 320px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--aidi-line); background: #e8eeea;
  z-index: 0; /* giữ bản đồ dưới header dính */
}
@media (min-width: 1024px) {
  .map-box { height: calc(100vh - 190px); min-height: 460px; }
}
.map-fallback {
  display: flex; align-items: center; justify-content: center; height: 100%;
  padding: 24px; text-align: center; font-size: 14px; color: var(--aidi-muted);
}
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px 14px; font-family: inherit; font-size: 14px; line-height: 1.5; }
.leaflet-container { font-family: inherit; }

/* Ghim tự vẽ: số thứ tự trùng với số trên thẻ siêu thị bên danh sách. */
.map-pin {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--aidi-primary); border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  color: #fff; font-weight: 700; font-size: 13px;
}
.map-pin span { transform: rotate(45deg); }
.map-pin.is-selected { background: var(--brand-yellow); color: var(--brand-green); }
.map-pin.is-home { background: #2563eb; border-radius: 50%; transform: none; }
.map-pin.is-home span { transform: none; }

/* ----------------------- Thẻ siêu thị trên trang HOT ------------------ */
.hot-card { scroll-margin-top: 88px; }
.hot-card.is-focus { border-color: var(--aidi-primary); box-shadow: 0 0 0 3px var(--aidi-primary-soft); }

/* Nền thẻ khi được chọn trùng màu với .chip — đổi chip sang nền trắng để
   tên vị trí không bị chìm. */
.store-card:has(input:checked) .chip { background: #fff; }

/* ====================== Layout — thay utility Tailwind ==================== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section   { padding: 40px 0; }
.section--tight { padding: 24px 0; }
.section--sheet { background: #fff; border-block: 1px solid var(--aidi-line); }

.stack   > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 24px; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--5 { grid-template-columns: 1fr; }

.h1 { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.h2 { font-size: 24px; line-height: 1.25; font-weight: 800; }
.h3 { font-size: 18px; line-height: 1.35; font-weight: 700; }
.lead  { color: var(--aidi-muted); font-size: 17px; }
.muted { color: var(--aidi-muted); }
.small { font-size: 14px; }
.center { text-align: center; }

@media (min-width: 640px) {
  .grid--2, .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--5 { grid-template-columns: repeat(5, 1fr); }
  .h1 { font-size: 42px; }
  .h2 { font-size: 30px; }
}

/* ============================ Header — điều hướng ========================== */
.site-header { border-bottom: 1px solid var(--aidi-line); background: #fff; position: sticky; top: 0; z-index: 40; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.site-header__brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; color: inherit; }
.site-header__brand-name { display: block; font-weight: 800; font-size: 17px; letter-spacing: -.01em; line-height: 1.2; }
.site-header__brand-sub { display: block; font-size: 11px; font-weight: 600; color: var(--aidi-muted); margin-top: -1px; }
.site-nav { display: none; align-items: center; gap: 2px; }
.site-nav__link {
  display: block; padding: 10px; border-radius: 8px;
  font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none;
  color: var(--aidi-ink);
}
.site-nav__link:hover { background: var(--aidi-primary-soft); color: var(--aidi-primary-dark); }
.site-nav__link.is-active { background: var(--aidi-primary-soft); color: var(--aidi-primary-dark); }
.site-header__cta { display: none; }
.site-nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px; border-radius: 8px;
  border: 1px solid var(--aidi-line); background: #fff;
}
.site-nav-panel { border-top: 1px solid var(--aidi-line); padding: 8px 12px 12px; background: #fff; }
.site-nav-panel .site-nav__link { padding: 12px 10px; }
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .site-header__cta { display: inline-flex; min-height: 40px; font-size: 14px; }
  .site-nav-toggle { display: none; }
}

/* ================================ Footer =================================== */
.site-footer { background: var(--aidi-ink); color: rgba(255, 255, 255, .8); margin-top: 48px; }
.site-footer a { color: inherit; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.site-footer__brand-name { color: #fff; font-weight: 800; font-size: 17px; }
.site-footer__title { color: #fff; font-weight: 700; font-size: 13px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.site-footer li + li { margin-top: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer__social a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.site-footer__social a:hover { background: rgba(255, 255, 255, .1); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: 12px; }

/* ============================== Trang chủ =================================== */
.hero { background: #fff; border-bottom: 1px solid var(--aidi-line); padding: 50px 0;}
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__points { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--aidi-muted); }
.hero__img { order: -1; }
.hero__img img { width: 100%; max-width: 560px; height: auto; margin: 0 auto; display: block; border-radius: 16px; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 768px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: row; }
  .hero__img { order: 1; }
}

.entry-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px;
  text-decoration: none; color: inherit; transition: border-color .15s ease;
}
.entry-card:hover { border-color: var(--aidi-primary); }
.entry-card__icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  background: var(--aidi-primary-soft); color: var(--aidi-primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.entry-card__title { display: block; font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.entry-card__desc { display: block; font-size: 14px; color: var(--aidi-muted); }

.position-card { display: flex; flex-direction: column; height: 100%; padding: 20px; }
.position-card.is-closed { opacity: .6; }
.position-card__icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
  background: var(--aidi-primary-soft); color: var(--aidi-primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.position-card__title { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.position-card__salary { color: var(--aidi-accent); font-weight: 700; font-size: 15px; margin: 0 0 8px; }
.position-card__desc { font-size: 14px; color: var(--aidi-muted); margin: 0 0 12px; flex-grow: 1; }
.position-card__action { width: 100%; margin-top: auto; align-self: flex-start; }

.reason { display: flex; gap: 12px; }
.reason__icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: var(--aidi-primary-soft); color: var(--aidi-primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.reason__title { font-weight: 700; margin: 0 0 4px; }
.reason__desc { font-size: 14px; color: var(--aidi-muted); margin: 0; }

.flow-step { display: flex; align-items: center; gap: 12px; padding: 16px; }
.flow-step__num {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px;
  background: var(--aidi-primary); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.flow-step__label { font-weight: 600; font-size: 14px; }
@media (min-width: 640px) {
  .flow-step { flex-direction: column; align-items: flex-start; text-align: left; }
  .flow-step__num { margin-bottom: 8px; }
}

.cta-band { padding: 40px; text-align: center; background: var(--aidi-primary-soft); border-color: var(--aidi-primary-soft); }
.cta-band p { max-width: 560px; margin: 0 auto 20px; }
.cta-band__hotline { font-weight: 700; color: var(--aidi-primary-dark); text-decoration: underline; text-underline-offset: 2px; }

/* =========================== Trang chi tiết vị trí ========================= */
.position-back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; color: var(--aidi-muted); margin-bottom: 16px; }
.position-back:hover { color: var(--aidi-primary-dark); }

/* Cột nội dung 2 phần + cột phụ; xếp chồng trên màn hẹp. */
.position-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) {
  .position-grid { grid-template-columns: 2fr 1fr; }
  .position-grid__aside { position: sticky; top: 96px; }
}

/* Ô thông tin nhanh: lương, ca làm, nơi làm việc. */
.meta-box { background: var(--aidi-bg); border-radius: 12px; padding: 12px; }
.meta-box__label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--aidi-muted); margin-bottom: 4px; }
.meta-box__value { font-weight: 700; font-size: 15px; line-height: 1.35; }

/* Nút "Ứng tuyển ngay": thẻ trong cột phụ (desktop) / thanh dính đáy (di động). */
.position-cta-desktop { display: none; }
.position-cta-mobile { display: block; }
@media (min-width: 1024px) {
  .position-cta-desktop { display: block; }
  .position-cta-mobile { display: none; }
}

/* ======================== Trang "Việc HOT gần nhà" ========================= */
/* Cột bản đồ (rộng hơn) + cột danh sách; xếp chồng trên màn hẹp, bản đồ dính
   theo cuộn trên desktop giống .position-grid__aside. */
.hot-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) {
  .hot-layout { grid-template-columns: 3fr 2fr; }
  .hot-layout__map { position: sticky; top: 96px; }
}

/* Số thứ tự trên thẻ siêu thị, trùng số ghim tương ứng trên bản đồ. */
.hot-card__index {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-right: 6px; border-radius: 999px;
  background: var(--aidi-primary); color: #fff; font-size: 11px; font-weight: 700;
  vertical-align: middle;
}

/* Chip dùng như liên kết (vị trí ứng tuyển trong thẻ siêu thị/pop-up bản đồ). */
a.chip:hover { background: #d5ece1; }
.hotList li {list-style: none;}