@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600&display=swap');

body {
    font-family: 'Kanit', sans-serif;
    background-color: #f2f4f9;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Breadcrumb */
.breadcrumb-area {
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    background-color: #0066cc;
    height: 50vh;
}

.breadcrumb-content h4 {
    color: #fff;
    font-size: 60px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* เนื้อหาหลัก */
.jointeam-content {
    padding: 60px 0;
}

.jointeam-container {
    max-width: 1500px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 100px;
}

.jointeam-container img.jointeam-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 100px;
}

/* หัวข้อกลาง */
.jointeam-mid-title h1 {
    font-size: 80px;
    font-weight: 600;
    text-align: center;
    background: rgb(21,168,21);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: -30px;
}

.jointeam-mid-title h2 {
    font-size: 60px;
    font-weight: 600;
    text-align: center;
    background: rgb(21,168,21);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.jointeam-mid-title i {
    font-size: 50px;
    margin-right: 10px;
    color: purple;
    transition: color 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    height: 10vh;
}

/* เนื้อหาด้านซ้าย */
.jointeam {
    text-align: center;
}

.jointeam h1 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #000000d3;
}

.jointeam p {
    font-size: 25px;
    color: rgb(43, 41, 41);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* ปุ่มดาวน์โหลด */
.downloadteam-btn, .registerteam-btn {
    background-color: #4a28a9;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    text-decoration: none; /* กรณีใช้ a */
}

.downloadteam-btn:hover, .registerteam-btn:hover {
    background-color: #3a1f7a;
}

/* รายการข่าวการจัดหางาน */
.job-news-list {
    margin-top: 30px;
    text-align: left;
}

.job-news-item {
    background-color: #f7f7f7;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
}

.job-news-item h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
}

.job-news-item p {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #444;
}

/* ปุ่มดาวน์โหลดไฟล์ประกอบข่าว */
.job-news-item .downloadteam-btn {
    font-size: 14px;
    padding: 8px 16px;
}

/* แถบสถานะ New */
.badge-new {
    background-color: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

/* ตารางข้อมูลแบบทางการ */
#jobNewsTable {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Kanit', sans-serif;
    font-size: 15px;
    color: #212121;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* ส่วนหัวตาราง */
#jobNewsTable thead {
    background-color: #004080; /* สีน้ำเงินเข้ม */
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
}

#jobNewsTable thead th {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 2px solid #002050;
    user-select: none;
}

/* แถวข้อมูล */
#jobNewsTable tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    cursor: default;
}

#jobNewsTable tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#jobNewsTable tbody tr:hover {
    background-color: #e6f0ff;
}

/* เซลล์ข้อมูล */
#jobNewsTable tbody td {
    padding: 14px 20px;
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ปุ่มแอคชันในตาราง */
#jobNewsTable tbody td a {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.25s ease;
    user-select: none;
}

/* ปุ่มแก้ไข */
#jobNewsTable tbody td a.edit-btn {
    background-color: #0073e6;
    color: #fff;
    border: 1px solid #005bb5;
}

#jobNewsTable tbody td a.edit-btn:hover {
    background-color: #005bb5;
}

/* ปุ่มลบ */
#jobNewsTable tbody td a.delete-btn {
    background-color: #d93025;
    color: #fff;
    border: 1px solid #a52714;
}

#jobNewsTable tbody td a.delete-btn:hover {
    background-color: #a52714;
}

/* รูปภาพตัวอย่าง */
#jobNewsTable tbody td img {
    max-height: 50px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.sidebar-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-family: 'Kanit', sans-serif;
}

.sidebar-box h4 {
    font-size: 20px;
    color: #553399;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'Kanit', sans-serif;
}

.filter-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background-color: #f2f2f2;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Kanit', sans-serif; /* เพิ่มตรงนี้ */
}

.filter-btn:hover {
    background-color: #6b47cc;
    color: #fff;
}

.filter-btn.active {
    background-color: #4a28a9;
    color: #fff;
    font-weight: 600;
}


/* Layout container */
.procu-flex-layout {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    align-items: flex-start;
    padding: 20px;
    box-sizing: border-box;
}

/* Sidebar fixed width */
.procu-flex-layout > .sidebar-box {
    width: 250px;
    flex-shrink: 0;
    height: auto;
    box-sizing: border-box;
}

/* Content area flexible */
.procu-flex-layout > .content-area {
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    box-sizing: border-box;
}

/* Responsive for tablets (max-width: 991px) */
@media (max-width: 991px) {
    .procu-flex-layout {
        flex-direction: column;
        padding: 15px;
    }

    .sidebar-box {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .content-area {
        width: 100%;
        min-width: 0;
    }
}

/* Responsive for mobile (max-width: 767px) */
@media (max-width: 767px) {
    #jobNewsTable thead {
        display: none;
    }

    #jobNewsTable tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 12px 16px;
        background-color: #fff;
        box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    }

    #jobNewsTable tbody td {
        display: flex;
        justify-content: space-between;
        padding: 10px 8px;
        border-bottom: 1px solid #eee;
        position: relative;
        word-break: break-word;
    }

    #jobNewsTable tbody td:last-child {
        border-bottom: none;
    }

    #jobNewsTable tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #004080;
        flex-basis: 40%;
        text-align: left;
        user-select: none;
        white-space: nowrap;
    }

    #jobNewsTable tbody td img {
        max-height: 40px;
    }
}
