/* ==========================================================================
   LangGo Careers — Trang cơ hội việc làm (/tuyen-dung)
   Hero + bộ lọc + danh sách + banner + FAQ.
   Dùng chung :root và .shell khai trong shell.css.
   ========================================================================== */
.rec-hero,
.rec-main,
.rec-faq {
    font-family: var(--font-shell);
}

/* --------------------------------------------------------------------------
   NỀN CHUNG CỦA THÂN TRANG — một ảnh chạy từ danh sách việc làm tới FAQ
   Đường dẫn ảnh truyền qua biến --rec-body-bg đặt inline trong Blade.
   Lặp dọc thay vì kéo giãn: chiều cao thân trang thay đổi theo số tin, `cover`
   sẽ phóng to cắt mất hai bên còn `fill` thì làm ảnh méo.
   -------------------------------------------------------------------------- */
.rec-body {
    background-image: var(--rec-body-bg, none);
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 100% auto;
}

/* --------------------------------------------------------------------------
   HERO — tiêu đề + ô tìm kiếm, ảnh nền phủ kín
   -------------------------------------------------------------------------- */
.rec-hero {
    position: relative;
    padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 84px);
    text-align: center;
    /* Chưa thả ảnh nền thì vẫn phải có nền tối, nếu không chữ trắng mất hút */
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    color: rgba(255, 255, 255, 1);
}

.rec-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-hero > .shell {
    position: relative;
    z-index: 1;
}

.rec-hero__title {
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.15;
}

.rec-hero__line {
    display: block;
}

.rec-hero__line--gold {
    /* Nền gradient cắt theo chữ: cần padding dọc, nếu không dấu tiếng Việt bị xén */
    padding: .08em 0;
    font-size: var(--fs-h1);
    background: linear-gradient(180deg, #FDDA35 36.06%, #FE9C2B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.rec-hero__line--white {
    font-size: var(--fs-h1);
    color: rgba(255, 255, 255, 1);
}

.rec-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 720px;
    margin: 28px auto 0;
    padding: 6px 6px 6px 20px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.rec-search__icon {
    flex: 0 0 auto;
    font-size: 16px;
    color: #9ca3af;
}

.rec-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: rgba(0, 0, 0, 1);
}

.rec-search__btn {
    flex: 0 0 auto;
    padding: 12px 30px;
    border: 0;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    color: rgba(255, 255, 255, 1);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .18s var(--ease);
}

.rec-search__btn:hover {
    filter: brightness(1.06);
}

/* --------------------------------------------------------------------------
   BỐ CỤC CHÍNH — sidebar lọc + danh sách
   -------------------------------------------------------------------------- */
.rec-main {
    padding: 44px 0 0;
}

.rec-main__title {
    margin: 0 0 24px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 1);
}

.rec-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: 36px;
}

/* ---------- Sidebar ---------- */
/* Cặp bung/gập bộ lọc chỉ dùng ở mobile. Checkbox luôn ẩn khỏi mắt nhưng vẫn
   nhận được focus bàn phím; nhãn thì desktop không cần nên ẩn hẳn. */
.rec-filters__toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.rec-filters__toggle-btn { display: none; }

.rec-filters__toggle:focus-visible ~ .rec-filters__toggle-btn {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.rec-fgroup {
    margin-bottom: 26px;
}

.rec-fgroup__title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 21px;
    color: rgba(160, 160, 160, 1);
}

.rec-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    margin: 0;
    cursor: pointer;
}

.rec-check input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    accent-color: var(--brand);
    cursor: pointer;
}

.rec-check__label {
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
    color: rgba(38, 38, 38, 1);
}

.rec-check input:checked ~ .rec-check__label {
    font-weight: 600;
    color: var(--brand);
}

.rec-check__count {
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
    color: rgba(38, 38, 38, 1);
    /* Số cùng bề ngang để cột đếm không nhảy khi lọc */
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ---------- Danh sách ---------- */
.rec-list__count {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 500;
    line-height: 21px;
    color: rgba(160, 160, 160, 1);
}

.rec-list__count strong {
    font-weight: 800;
    color: rgba(38, 38, 38, 1);
}

.job-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 112px;
    padding: 20px 28px;
    margin-bottom: 18px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12.7px 4px rgba(126, 126, 126, .25);
    transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}

.job-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px 4px rgba(126, 126, 126, .3);
}

.job-row__title {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.job-row__title a {
    color: rgba(39, 39, 39, 1);
    text-decoration: none;
}

.job-row__title a:hover {
    color: var(--brand);
}

.job-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: rgba(80, 80, 80, 1);
}

.job-row__meta i {
    margin-right: 5px;
    color: var(--brand);
}

.job-row__tag {
    padding: 7px 16px;
    border-radius: 10px;
    background: rgba(219, 31, 31, .1);
    color: var(--brand);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-transform: capitalize;
}

.job-row__side {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.job-row__salary {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-transform: capitalize;
    white-space: nowrap;
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.job-row__apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 28px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: filter .18s var(--ease);
}

.job-row__apply:hover {
    filter: brightness(1.07);
    color: rgba(255, 255, 255, 1);
}

.rec-empty {
    padding: 48px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    text-align: center;
}

.rec-empty p {
    margin: 0 0 16px;
    color: rgba(107, 114, 128, 1);
}

.rec-pagination {
    margin-top: 24px;
}

/* ---------- Phân trang ---------- */
.job-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
}

.job-pager__btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    color: #9ca3af;
    font-size: 15px;
    text-decoration: none;
    transition: background .18s var(--ease), color .18s var(--ease), filter .18s var(--ease);
}

.job-pager__btn--next {
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 14px rgba(157, 11, 15, .35);
}

.job-pager__btn--prev:hover:not(.is-disabled) {
    background: #f3f4f6;
    color: var(--brand);
}

.job-pager__btn--next:hover:not(.is-disabled) {
    filter: brightness(1.08);
}

.job-pager__btn.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.job-pager__label {
    font-size: 16px;
    font-weight: 500;
    color: rgba(107, 114, 128, 1);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4 VÒNG TRÒN QUYỀN LỢI — nằm dưới danh sách việc làm
   -------------------------------------------------------------------------- */
.rec-perks {
    /* Ảnh nền đỏ của section kế dưới trồi lên trên mép nó 120px
       (--why-bg-rise), nên phải chừa thêm chừng đó cộng khoảng thở. */
    padding: 56px 0 200px;
    font-family: var(--font-shell);
}

.rec-perks > .shell {
    /* 4 vòng 297px + 3 khoảng 30px = 1278, rộng hơn khung chung 1280 (đã trừ
       padding) nên phải nới riêng cho dải này. */
    max-width: 1318px;
}

.rec-perks__list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.perk {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    /* Design: vòng tròn 297x297 */
    flex: 0 0 auto;
    width: 297px;
    height: 297px;
    padding: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 1);
    box-shadow: -3px -1px 12.4px 0px rgba(0, 0, 0, 0.25);
}

.perk__icon {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.perk__text {
    margin: 0;
    font-weight: 500;
    font-size: 20px;
    /* Design ghi 16px, nhỏ hơn cả cỡ chữ nên 3 dòng dính vào nhau — dùng 1.2
       để khoảng cách dòng khớp với bản thiết kế. */
    line-height: 1.2;
    text-align: center;
    text-transform: capitalize;
    color: rgba(186, 0, 0, 1);
}

/* --------------------------------------------------------------------------
   SECTION "VÌ SAO NÊN CHỌN LANGGO" — bản không có ảnh nền nửa dưới
   Khung nền/lưới/card bê nguyên .why-section của trang chủ, xem why.css.
   -------------------------------------------------------------------------- */

/* Bên trang chủ ảnh trên là `flex: 1 1 50%` — flex-grow 1 vô hại khi còn ảnh
   dưới chia phần, nhưng một mình thì nó nở trọn 100% và ảnh bị kéo ra cả
   section. Khoá `flex: 0 0 50%` để giữ đúng bố cục cũ. */
.why-section.why-section--no-bg-bottom .why-bg__top {
    flex: 0 0 50%;
}

/* --------------------------------------------------------------------------
   BANNER ẢNH
   -------------------------------------------------------------------------- */
.rec-banner {
    width: 100%;
}

.rec-banner__bg {
    display: block;
    width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   FAQ — accordion, mở/đóng bằng recruitment.js
   -------------------------------------------------------------------------- */
.rec-faq {
    padding: 56px 0 72px;
}

.rec-faq__title {
    margin: 0 0 36px;
    padding: .08em 0;
    font-size: clamp(19px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.rec-faq__sub {
    margin: -24px 0 36px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    color: rgba(80, 80, 80, 1);
}

.rec-faq__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 770px;
    margin: 0 auto;
}

.faq-item {
    border-radius: 12px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
    overflow: hidden;
}

.faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    color: rgba(0, 0, 0, 1);
    cursor: pointer;
}

.faq-item__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    color: rgba(255, 255, 255, 1);
    font-size: 12px;
    transition: transform .25s var(--ease);
}

.faq-item.is-open .faq-item__icon {
    transform: rotate(90deg);
}

/* grid-template-rows 0fr → 1fr: mở/đóng mượt mà không cần biết chiều cao */
.faq-item__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s var(--ease);
}

.faq-item.is-open .faq-item__a {
    grid-template-rows: 1fr;
}

/* Padding NGANG luôn cố định. Trước đây cả 4 cạnh chỉ có ở trạng thái mở, nên
   lúc đóng class .is-open mất ngay lập tức, padding-inline nhảy 24px → 0 trong
   khi chiều cao vẫn đang thu lại: nội dung nở rộng ra và ngắt dòng khác đi,
   nhìn như bị đẩy sang phải. Chỉ padding dọc còn đổi, và đổi có transition
   chạy đúng nhịp với grid-template-rows nên không giật. */
.faq-item__body {
    padding: 0 24px;
    overflow: hidden;
    transition: padding-top .28s var(--ease), padding-bottom .28s var(--ease);
}

.faq-item.is-open .faq-item__body {
    padding-top: 4px;
    padding-bottom: 20px;
}

.faq-bullets {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 8px;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(55, 65, 81, 1);
}

.faq-bullets a {
    color: var(--brand);
}

.faq-note {
    margin: 8px 0 0;
    font-size: 14px;
    font-style: italic;
    color: rgba(107, 114, 128, 1);
}

.faq-group-label {
    margin: 12px 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand);
}

.faq-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 4px;
    padding-left: 22px;
    font-size: 14.5px;
    line-height: 1.5;
    color: rgba(55, 65, 81, 1);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .rec-main { padding-bottom: 40px; }
    .rec-faq { padding: 28px 0 40px; }

    /* 200px đáy vốn để chừa chỗ cho ảnh nền đỏ của section kế dưới trồi lên
       120px (--why-bg-rise). Từ <=991px .why-bg đã bị tắt hẳn (xem why.css)
       nên khoảng chừa đó thành mảng trắng chết. */
    .rec-perks { padding: 44px 0 48px; }
}

@media (max-width: 1340px) {
    /* Không đủ chỗ cho 4 vòng tròn trên một hàng → cho xuống hàng */
    .rec-perks__list { flex-wrap: wrap; }
}

@media (max-width: 860px) {
    .rec-layout { grid-template-columns: 1fr; gap: 20px; }

    /* Nút bung/gập bộ lọc — chỉ có trên mobile */
    .rec-filters__toggle-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        border: 1px solid #ead9d9;
        border-radius: 12px;
        background: #fff;
        color: var(--brand);
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(58, 22, 22, .08);
        user-select: none;
    }

    .rec-filters__toggle-btn > span { flex: 1 1 auto; }

    .rec-filters__caret { transition: transform .2s var(--ease); }

    .rec-filters__toggle:checked ~ .rec-filters__toggle-btn .rec-filters__caret {
        transform: rotate(180deg);
    }

    /* Mặc định gập lại, mở ra khi checkbox ẩn được tick */
    .rec-filters { display: none; }

    .rec-filters__toggle:checked ~ .rec-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 24px;
        padding: 16px;
        border: 1px solid #f0e3e3;
        border-radius: 12px;
        background: #fff;
    }
}

/* --------------------------------------------------------------------------
   MOBILE (<=767px) — 4 vòng tròn quyền lợi xếp 2x2
   Vòng tròn khoá cứng 297px: màn 360px là nó gần chạm hai mép, wrap thành 4
   hàng dọc và section dài lê thê. Cho co theo bề ngang và giữ tròn bằng
   aspect-ratio.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .rec-perks__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(12px, 4vw, 24px);
        max-width: 440px;
        margin-inline: auto;
    }

    .perk {
        width: auto;
        height: auto;
        aspect-ratio: 1;
        gap: clamp(8px, 2.6vw, 16px);
        padding: clamp(12px, 4vw, 22px);
    }

    .perk__icon {
        width: clamp(38px, 12vw, 60px);
        height: clamp(38px, 12vw, 60px);
    }

    .perk__text { font-size: clamp(13px, 3.4vw, 17px); }
}

@media (max-width: 560px) {
    /* flex-wrap + input width:100% đẩy ô nhập xuống dòng riêng, để icon kính lúp
       đứng trơ một mình ở dòng trên. Đổi sang grid: hàng 1 = icon + ô nhập,
       hàng 2 = nút tìm kiếm trải hết bề ngang. */
    .rec-search {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .rec-search input { width: auto; }

    .rec-search__btn {
        grid-column: 1 / -1;
        width: 100%;
    }
    .job-row { flex-direction: column; align-items: flex-start; }
    .job-row__side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
    .rec-filters__toggle:checked ~ .rec-filters { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CHI TIẾT TIN TUYỂN DỤNG (recruitment.view)
   ========================================================================== */
.jd-breadcrumb,
.jd-wrap {
    font-family: var(--font-shell);
}

.jd-breadcrumb {
    padding: 22px 0 0;
}

.jd-breadcrumb .link {
    max-width: 1240px;
    margin: 0 auto;
    background: none;
    border: 0;
    padding: 0;
    font-family: var(--font-shell);
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    text-align: justify;
    color: rgba(80, 80, 80, 1);
}

.jd-breadcrumb .link a { color: rgba(80, 80, 80, 1); text-decoration: none; }
.jd-breadcrumb .link a:hover { color: var(--brand); }

.jd-wrap {
    display: grid;
    grid-template-columns: minmax(0, 832px) 380px;
    justify-content: center;
    align-items: start;
    gap: 28px;
    padding: 18px 0 20px;
}

/* -------------------------------------------------------------------------- */
/* Cột chính                                                                  */
/* -------------------------------------------------------------------------- */
.jd-main {
    min-width: 0;
    background: rgba(255, 255, 255, 1);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

/* Header card đỏ */
.jd-header {
    padding: 28px 34px 26px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    box-shadow: 3px 4px 30px 0 rgba(58, 22, 22, .1);
    color: rgba(255, 255, 255, 1);
}

.jd-header__badge {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .18);
    font-size: 14px;
    font-weight: 700;
}

.jd-header__title {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
}

.jd-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jd-header__meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
}

.jd-header__meta i { font-size: 14px; opacity: .9; }

/* Khối nội dung */
.jd-block { padding: 26px 34px 0; }
.jd-block:last-child { padding-bottom: 30px; }

.jd-block__title {
    position: relative;
    margin: 0 0 16px;
    padding-left: 14px;
    font-size: 20px;
    font-weight: 800;
    color: rgba(0, 0, 0, 1);
}

.jd-block__title::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 4px;
    height: calc(100% - 4px);
    border-radius: 4px;
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
}

/* Rich text từ CMS */
.jd-rich { font-size: 16px; line-height: 1.7; color: #3f3f3f; }
.jd-rich p { margin: 0 0 12px; }
.jd-rich ul, .jd-rich ol { margin: 0 0 12px; padding-left: 4px; list-style: none; }
.jd-rich ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.jd-rich ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--brand);
    font-size: 13px;
}
.jd-rich ol { padding-left: 20px; list-style: decimal; }
.jd-rich ol li { margin-bottom: 10px; }
.jd-rich h2, .jd-rich h3, .jd-rich h4 { font-size: 17px; font-weight: 700; margin: 18px 0 10px; color: rgba(0, 0, 0, 1); }
.jd-rich a { color: var(--brand); }

/* ---------- Dải card chạy hết bề ngang dưới 2 cột ---------- */
.jd-panels {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 64px;
}

.jd-panel {
    padding: 24px 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

/* Card "Cách thức ứng tuyển": tiêu đề trái, địa chỉ phải trên cùng một dòng */
.jd-panel--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.jd-panel__title {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 800;
    color: rgba(0, 0, 0, 1);
}

.jd-panel--row .jd-panel__title { margin: 0; }

/* Quyền lợi & phúc lợi */
.jd-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.jd-benefit {
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(243, 243, 243, 1);
    transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}

.jd-benefit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .08); }

.jd-benefit__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: rgba(0, 0, 0, 1); line-height: 1.3; }
.jd-benefit__desc { margin: 0; font-size: 14px; line-height: 1.45; color: #6f6f6f; }

.jd-address { margin: 0; font-size: 16px; line-height: 1.7; color: #3f3f3f; }

.jd-expired {
    margin: 20px 34px 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: #fff7e6;
    border: 1px solid #ffe2a8;
    color: #8a6d1f;
    font-size: 15px;
}
.jd-expired a { color: var(--brand); font-weight: 600; }

.jd-tags { padding: 18px 34px 28px; font-size: 14px; color: #6f6f6f; }
.jd-tags a {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--brand-soft, rgba(219, 31, 31, .1));
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Sidebar                                                                    */
/* -------------------------------------------------------------------------- */
.jd-side {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jd-card {
    background: rgba(255, 255, 255, 1);
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    padding: 22px 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
}

/* Hai khối dùng chung một card nên chỉ ngăn nhau bằng đường kẻ mảnh */
.jd-overview {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #f0f0f0;
}

.jd-cta__title { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: rgba(0, 0, 0, 1); }
.jd-cta__sub { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: #6f6f6f; }
.jd-cta__sub strong { color: var(--brand); }

.jd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 48px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}

.jd-btn--primary {
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    color: rgba(255, 255, 255, 1);
    border: 0;
    box-shadow: 0 8px 18px rgba(219, 31, 31, .28);
}
.jd-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(219, 31, 31, .34); }

.jd-btn--ghost {
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 1);
    color: var(--brand);
    border: 1px solid #e6b9b9;
}
.jd-btn--ghost:hover { background: var(--brand-soft, rgba(219, 31, 31, .08)); }
.jd-btn--ghost.is-active {
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    color: rgba(255, 255, 255, 1);
    border-color: transparent;
}

.jd-btn.is-disabled {
    background: #d9d9d9;
    color: rgba(255, 255, 255, 1);
    cursor: not-allowed;
    box-shadow: none;
}

/* Thông tin tổng quan */
.jd-overview__title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
    color: rgba(0, 0, 0, 1);
}

.jd-overview__list { margin: 0; padding: 0; list-style: none; }
.jd-overview__list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    font-size: 15px;
    border-bottom: 1px dashed #efefef;
}
.jd-overview__list li:last-child { border-bottom: 0; }
.jd-overview__list span { color: #8a8a8a; flex: 0 0 auto; }
.jd-overview__list strong { color: rgba(0, 0, 0, 1); font-weight: 700; text-align: right; }

/* --------------------------------------------------------------------------
   ỨNG TUYỂN NHANH — card đỏ, nhãn "tab" nhô lên mép trên bên trái
   -------------------------------------------------------------------------- */
/* Nhãn giữ nguyên hình dáng .cnnn-tag--red của posts-feed.css, treo dưới đường
   kẻ ngang và sát mép trái khung — đúng cách khối "Nổi bật tuần này" làm. */
.jd-quick {
    margin-top: 28px;
}

.jd-quick__head {
    margin-bottom: 20px;
    border-top: 1px solid rgba(203, 203, 203, 1);
    line-height: 0;
}

.jd-quick__card {
    padding: 40px 36px 32px;
    border-radius: 20px;
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    box-shadow: 0 10px 30px rgba(88, 0, 0, .18);
}

.jd-quick__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 48px;
    align-items: start;
}

.jd-quick__field { margin-bottom: 18px; }
.jd-quick__col > .jd-quick__field:last-of-type { margin-bottom: 0; }

.jd-quick__label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
}

.jd-quick__label span { color: rgba(255, 216, 216, 1); }

.jd-quick__input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    /* Ô nhập hơi ngả hồng để nổi trên nền đỏ mà không chói như trắng tinh */
    background: rgba(255, 255, 255, .92);
    font-family: inherit;
    font-size: 15px;
    color: rgba(0, 0, 0, 1);
}

.jd-quick__input::placeholder { color: #9a9a9a; }
.jd-quick__input:focus { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 1px; }

.jd-quick__drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 118px;
    padding: 18px;
    border: 1px dashed rgba(255, 255, 255, .6);
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    text-align: center;
    cursor: pointer;
    transition: background .18s var(--ease);
}

.jd-quick__drop:hover { background: rgba(255, 255, 255, .18); }

.jd-quick__drop-main {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
}

.jd-quick__drop-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
}

.jd-quick__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 380px;
    height: 48px;
    margin: 22px auto 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 1);
    color: var(--brand);
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.jd-quick__submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }
.jd-quick__submit:disabled { opacity: .7; cursor: not-allowed; }

.jd-quick__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(219, 31, 31, .3);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: jd-quick-spin .7s linear infinite;
}

@keyframes jd-quick-spin { to { transform: rotate(360deg); } }

.jd-quick__note {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    color: rgba(255, 255, 255, 1);
}

.jd-quick__alert {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 1);
    font-size: 15px;
    color: rgba(0, 0, 0, 1);
}

.jd-quick__alert--ok { color: #157347; }
.jd-quick__alert--err { color: var(--brand); }

@media (max-width: 860px) {
    .jd-quick__grid { grid-template-columns: 1fr; gap: 18px; }
    .jd-quick__card { padding: 34px 20px 26px; }
    .jd-quick__tab { left: 16px; }
}

/* ---------- Việc làm liên quan — dải card chạy hết bề ngang ---------- */
.jd-jobs__title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 800;
    color: rgba(0, 0, 0, 1);
}

.jd-jobs__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.jd-jobs .job-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 18px 18px 16px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(126, 126, 126, .12);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.jd-jobs .job-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(126, 126, 126, .18); }

.jd-jobs .job-card__badge {
    align-self: flex-start;
    display: inline-flex;
    padding: 4px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: var(--brand-soft, rgba(219, 31, 31, .1));
    font-size: 13px;
    font-weight: 700;
}
.jd-jobs .job-card__badge span {
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.jd-jobs .job-card__title { margin: 0 0 12px; font-size: 16px; font-weight: 800; line-height: 1.35; }
.jd-jobs .job-card__title a { color: rgba(39, 39, 39, 1); text-decoration: none; }
.jd-jobs .job-card__title a:hover { color: var(--brand); }

.jd-jobs .job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}
.jd-jobs .job-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6f6f6f;
}
.jd-jobs .job-card__meta i { color: var(--brand); font-size: 12px; }

/* Bootstrap đặt opacity .25 cho mọi <hr> nên đường kẻ chỉ hiện mờ 1/4 — phải
   trả về 1 thì mới đúng màu thiết kế. */
.jd-jobs .job-card__divider {
    height: 0;
    margin: 0 0 12px;
    border: 0;
    border-top: 1px solid rgba(216, 216, 216, 1);
    opacity: 1;
}

.jd-jobs .job-card__foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: auto;
}

.jd-jobs .job-card__fav {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ead9d9;
    border-radius: 50%;
    background: rgba(255, 255, 255, 1);
    color: var(--brand);
    font-size: 14px;
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.jd-jobs .job-card__fav:hover { background: var(--brand-soft, rgba(219, 31, 31, .08)); transform: scale(1.06); }
.jd-jobs .job-card__fav.is-active { background: var(--brand); color: rgba(255, 255, 255, 1); }

.jd-jobs .job-card__apply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    color: rgba(255, 255, 255, 1);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(219, 31, 31, .24);
}
.jd-jobs .job-card__apply:hover { transform: translateY(-1px); }

/* -------------------------------------------------------------------------- */
/* Responsive chi tiết                                                        */
/* -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .jd-benefits,
    .jd-jobs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .jd-wrap { grid-template-columns: 1fr; }
    .jd-side { position: static; }
}

@media (max-width: 700px) {
    .jd-benefits,
    .jd-jobs__grid { grid-template-columns: 1fr; }
    .jd-panel { padding: 20px; }
}

@media (max-width: 560px) {
    .jd-header { padding: 22px 20px; }
    .jd-block { padding: 22px 20px 0; }
}
