/* =========================================================
   Trang CHI TIẾT tuyển dụng  (/tuyen-dung/{slug})
   Tự nạp qua AppHelper::autoload() theo controller/action.

   File này CHỈ style phần HTML mô tả công việc do quản trị soạn
   (job.body_html trong app/Config/recruitment_jobs.php / bảng recruitment_jobs).
   Vỏ trang (breadcrumb, đầu trang, thẻ tóm tắt) đã chuyển sang Tailwind trong
   detail.ctp, nên các class .breadcrumb-bar / .job-header / .job-sidebar-card
   cũ đã bỏ.

   Không đổi tên các class dưới đây: nội dung trong DB viết cứng chúng, đổi tên
   ở đây là mọi tin tuyển dụng đang chạy mất định dạng.
   ========================================================= */

/* --- Nền chung của khối JD ---
   Tailwind preflight xoá sạch margin/list-style mặc định, nên phần HTML do
   quản trị soạn (p, ul, strong, a) phải được trả lại kiểu ở đây. */
.job-body {
    font-size: 14.5px;
    line-height: 1.8;
    color: #5B6B63;
}
.job-body p { margin: 0 0 14px; }
.job-body strong, .job-body b { font-weight: 700; color: #0B1F17; }
.job-body a { color: #229150; text-decoration: underline; }
.job-body a:hover { color: #2cae5f; }

/* --- Các section nội dung JD --- */
.job-section { margin-bottom: 36px; }
.job-section:last-child { margin-bottom: 0; }
.job-section h3 {
    font-size: 18px; font-weight: 700; color: #0B1F17;
    padding-bottom: 12px; border-bottom: 2px solid #2cae5f;
    margin: 0 0 20px; display: inline-block;
}
.job-section .job-intro {
    font-size: 14px; color: #5B6B63; line-height: 1.8;
    margin-bottom: 16px; padding: 16px 20px;
    background: #e8f7ee; border-left: 3px solid #2cae5f; border-radius: 0 12px 12px 0;
}
.job-section ul { list-style: none; padding: 0; margin: 0; }
.job-section ul li {
    position: relative; padding: 8px 0 8px 26px;
    font-size: 14px; color: #5B6B63; line-height: 1.75;
}
.job-section ul li::before {
    content: '';
    position: absolute; left: 0; top: 13px;
    width: 14px; height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%232cae5f'/%3E%3Cpath d='M5.5 10.5l3 3 6-6' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Nhãn nhóm yêu cầu (Kỹ năng chuyên môn / Ưu tiên / Lợi thế...) */
.req-label {
    font-size: 13px; font-weight: 700; color: #229150;
    text-transform: uppercase; letter-spacing: .5px;
    margin: 20px 0 6px; display: block;
}
.req-label:first-of-type { margin-top: 0; }

/* Huy hiệu quyền lợi gắn cạnh tiêu đề section */
.perk-badge {
    display: inline-block; background: #e8f7ee; color: #229150;
    font-size: 12px; font-weight: 700; padding: 3px 10px;
    border-radius: 999px; margin-left: 8px; vertical-align: middle;
}

/* Địa điểm — một dòng */
.job-section .address-item { padding: 6px 0; font-size: 14px; color: #5B6B63; }
.job-section .address-item::before { display: none; }
.job-section .address-item strong { color: #0B1F17; }

/* Địa điểm — nhiều nơi */
.address-list { list-style: none; padding: 0; margin: 0; }
.address-list li {
    padding: 8px 0 8px 24px; font-size: 14px; color: #5B6B63;
    border-bottom: 1px solid #C9D6CF; position: relative;
}
.address-list li:last-child { border-bottom: none; }
/* Ghim vẽ bằng SVG chứ không phải emoji: emoji đổi hình theo hệ điều hành và
   không nhận màu thương hiệu. */
.job-section .address-list li::before {
    content: '';
    position: absolute; left: 0; top: 12px;
    width: 14px; height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232cae5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Hộp thời gian làm việc */
.work-time-box {
    background: #F2F6F3; border-radius: 12px; padding: 14px 20px;
    font-size: 14px; color: #5B6B63; margin-top: 10px;
}
.work-time-box strong { color: #0B1F17; }
