/* ==========================================================================
   Homepage — "Bạn đã sẵn sàng cho bước tiến tiếp theo?"
   Section nằm ngay dưới Hero banner. Reuse .job-card / .jobs--grid từ
   job-cards.css với biến thể .jobs--homepage (ẩn meta số lượng / hạn nộp /
   tags và cho phép 4 cards / hàng ở desktop).
   ========================================================================== */

.ready-section {
    background-color: var(--color-white);
    padding: 48px 16px 80px;
}

.ready-section__container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* ---- Top "T" lines (240×200 image) ---- */
.ready-section__lines-top {
    width: 150px;
    max-width: 100%;
    line-height: 0;
}

.ready-section__lines-top img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Heading ---- */
.ready-section__heading {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.ready-section__title {
    margin: 0;
    font-family: var(--font-base);
    font-weight: 500;
    font-size: clamp(32px, 6vw, 54px);
    line-height: 1.2;
    color: var(--color-black);
}

.ready-section__subtitle {
    margin: 0;
    font-family: var(--font-base);
    font-weight: 500;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.5;
    color: rgba(18, 9, 30, 0.6);
}

/* ---- Single vertical divider between heading and listing ---- */
.ready-section__divider {
    height: 50px;
    line-height: 0;
}

.ready-section__divider img {
    height: 100%;
    width: auto;
    display: block;
}

/* ---- Job listing wrapper (reuses .jobs / .job-card from job-cards.css) ---- */
.ready-section__jobs {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ready-section__jobs .jobs {
    width: 100%;
}

/* ---- Homepage variant: hide some meta items + tags ---- */
.jobs--homepage .job-card__meta {
    grid-template-columns: 1fr;
}

.jobs--homepage .job-card__meta > .job-meta-item:nth-child(2),
.jobs--homepage .job-card__meta > .job-meta-item:nth-child(3),
.jobs--homepage .job-card__meta > .job-meta-item:nth-child(4) {
    display: none;
}

.jobs--homepage .job-card__tags {
    display: none;
}

.jobs--homepage .job-card__actions {
    display: none;
}

.jobs--homepage .job-card__body {
    position: relative;
}

.jobs--homepage .job-card__badges {
    position: absolute;
    top: 20px;
    right: 20px;
    margin-top: 0;
}

/* Footer: drop the arrow button; turn "Ứng tuyển" into a right-aligned pill
   that fills with primary on card hover. */
.jobs--homepage .job-card__apply-btn {
    display: none;
}

.jobs--homepage .job-card__footer {
    justify-content: flex-end;
}

.jobs--homepage .job-card__apply {
    padding: 8px 16px;
    border: 1px solid var(--color-neutral-200, #d1d5db);
    border-radius: 999px;
    background-color: transparent;
    color: var(--color-neutral-900);
    font-size: 14px;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.jobs--homepage .job-card-wrap:hover .job-card__apply,
.jobs--homepage .job-card-wrap.is-open .job-card__apply {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Hover popup: 2x size for the homepage variant. */
.jobs--homepage .job-popup {
    width: min(880px, 35vw);
    max-width: 96vw;
}

/* ---- 4-col layout: scale down type so cards don't feel cramped ---- */
.jobs--homepage .job-card__title {
    font-size: 16px;
}

.jobs--homepage .job-meta-item {
    font-size: 14px;
}

/* ---- Responsive grid: 1 → 2 → 3 → 4 columns ---- */
@media (min-width: 576px) {
    .jobs--homepage.jobs--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .ready-section {
        padding: 64px 32px 100px;
    }
    .ready-section__container {
        gap: 40px;
    }
}

@media (min-width: 992px) {
    .jobs--homepage.jobs--grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .ready-section {
        padding: 24px 80px 120px;
    }
    .ready-section__container {
        gap: 48px;
    }
    .jobs--homepage.jobs--grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
