.job-list-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}
.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

/* === TABLE STYLES === */
.job-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden; /* Cần thiết để bo góc cho bảng */
}

/* Header */
.job-table thead th {
    background-color: #05a;
    color: #fff;
    font-weight: 600;
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
}
.job-table thead th:first-child {
    border-top-left-radius: 8px;
}
.job-table thead th:last-child {
    border-top-right-radius: 8px;
}

/* Row (Hàng) */
.job-table tbody .job-row {
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}
.job-table tbody .job-row:last-child {
    border-bottom: none;
}
.job-table tbody .job-row:hover {
    background-color: #f0f8ff; /* Hiệu ứng rê chuột */
}

/* Cells (Ô dữ liệu) */
.job-table td {
    padding: 15px 20px;
    font-size: 15px;
    color: #555;
    vertical-align: middle;
}

/* Căn giữa */
.col-center {
    text-align: center !important;
}

/* Cột Lương */
.job-table .salary-cell strong {
    color:var(--tertiary-color);
    font-weight: bold;
}

/* Cột Tiêu đề */
.job-table .col-job-title {
    font-weight: 600;
    color: #333;
    width: 35%; /* Cho cột này rộng hơn */
}
.job-table .job-company-mobile {
    display: none; /* Ẩn công ty trên desktop */
}

/* Tags (Hình thức làm việc) */
.job-type {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}
.job-type-full-time {
    background-color: #e6f7ff;
    color: #1890ff;
}
.job-type-remote {
    background-color: #fffbe6;
    color: #faad14;
}

/* Table Footer */
.table-footer-actions {
    text-align: center;
    margin-top: 25px;
}
.btn-load-more {
    padding: 10px 30px;
    background-color: #05a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}
.btn-load-more:hover {
    background-color: #049;
}

/* === RESPONSIVE (Dành cho Mobile) === */
@media (max-width: 768px) {
    .job-table {
        border-radius: 0;
        box-shadow: none;
    }

    /* Ẩn tiêu đề bảng */
    .job-table thead {
        display: none;
    }

    .job-table, .job-row, .job-table tbody, .job-table tr, .job-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .job-row {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
    }

    .job-table td {
        padding: 8px 15px;
        text-align: left !important;
        border-bottom: 1px dashed #eee;
    }
    .job-table tr:last-child td {
        border-bottom: none;
    }

    /* Ẩn cột Công ty trên desktop */
    .col-company-desktop {
        display: none;
    }
    /* Hiện Công ty dưới tên Job trên mobile */
    .col-job-title {
        border-bottom: none !important;
    }
    .job-table .job-company-mobile {
        display: block;
        font-size: 13px;
        color: #888;
        font-weight: normal;
        margin-top: 2px;
    }

    /* Tạo nhãn (Label) cho các ô dữ liệu */
    .job-table td:nth-child(3)::before,
    .job-table td:nth-child(4)::before,
    .job-table td:nth-child(5)::before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 80px;
        color: #333;
    }

    /* Thêm data-label vào HTML (ví dụ) */
    /* <td data-label="Địa điểm:">...</td> */

    /* Đảm bảo cột Tiêu đề chiếm toàn bộ chiều rộng */
    .job-table .col-job-title {
        width: 100%;
    }
}

/* === CSS BỔ SUNG CHO ẨN/HIỆN === */
.job-table .job-row-hidden {
    display: none; /* Mặc định ẩn các hàng ngoài giới hạn 5 */
}

/* Responsive Fix: Đảm bảo ẩn trên mobile */
@media (max-width: 768px) {
    .job-table .job-row-hidden {
        display: none; /* Vẫn phải ẩn các khối trên mobile */
    }
}
.hidden-job { display: none; }

/* Hover effect */
.job-row:hover {
    background-color: #f9f9f9;
    cursor: pointer;
}

/* Responsive: mobile table */
@media (max-width: 768px) {
    .job-table, .job-table thead, .job-table tbody, .job-table th, .job-table td, .job-table tr {
        display: block;
    }
    .job-table thead tr {
        display: none;
    }
    .job-row {
        margin-bottom: 1em;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 8px;
    }
    .job-row td {
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
    }
    .job-row td[data-label]::before {
        content: attr(data-label);
        font-weight: bold;
    }
}