@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-1 {
    max-width: 1500px; /* กำหนดความกว้างสูงสุด */
    margin: 0 auto; /* จัดให้อยู่ตรงกลาง */
    padding-left: 5px; /* ระยะห่างด้านซ้าย */
    padding-right: 5px; /* ระยะห่างด้านขวา */
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* จัดเรียงคอลัมน์ในแนวตั้ง */
}

.jointeam-container-1 img {
    width: 1700px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 100px;
}

/* หัวข้อกลาง */
.jointeam-mid-title {
    margin-top: 20px;
    margin-bottom: 60px;
    text-align: center;
}

.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;
    margin-left: 140px;
}

.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;
}

 /* ปุ่มลิงค์ดาวน์โหลดเอกสารสมัคร*/
.dlt-btn {
    position: relative;
    font-family: inherit;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.05em;
    border-radius: 4em;
    cursor: pointer;
    border: 1px solid #ccc;
    background: linear-gradient(to right, #8e2de2, #4a00e0);
    color: ghostwhite;
    overflow: hidden;
    text-decoration: none;
    width: 100%;
    max-width: 300px; /* กำหนดความกว้างสูงสุดของปุ่ม */
    margin-top: 50px; /* ระยะห่างด้านบน */
    margin-bottom: 10px;
  }
.btn-download {
    color: white;
}

  .dlt-btn svg {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5em;
  }

  .dlt-btn span {
    position: relative;
    z-index: 10;
    transition: color 0.4s;
    display: inline-flex;
    align-items: center;
    padding: 0.8em 1.2em 0.8em 1.05em;
  }

  .dlt-btn::before,
  .dlt-btn::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .dlt-btn::before {
    content: "";
    background: #09c912;
    width: 120%;
    left: -10%;
    transform: skew(30deg);
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
  }

  .dlt-btn:hover::before {
    transform: translate3d(100%, 0, 0);
  }

  .dlt-btn:active {
    transform: scale(0.95);
  }

    /* ปุ่มลิงค์คู่มือการสมัคร*/
  .rgt-btn {
    position: relative;
    font-family: inherit;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.05em;
    border-radius: 4em;
    cursor: pointer;
    border: 1px solid #ccc;
    background: linear-gradient(to right, #8e2de2, #4a00e0);
    color: ghostwhite;
    overflow: hidden;
    text-decoration: none;
    width: 100%;
    max-width: 300px; /* กำหนดความกว้างสูงสุดของปุ่ม */
    margin: 0 auto; /* จัดให้อยู่ตรงกลาง */
  }

  .rgt-btn svg {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5em;
  }

  .rgt-btn span {
    position: relative;
    z-index: 10;
    transition: color 0.4s;
    display: inline-flex;
    align-items: center;
    padding: 0.8em 1.2em 0.8em 1.05em;
  }

  .rgt-btn::before,
  .rgt-btn::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .rgt-btn::before {
    content: "";
    background: #0ca4ca;
    width: 120%;
    left: -10%;
    transform: skew(30deg);
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
  }

  .rgt-btn:hover::before {
    transform: translate3d(100%, 0, 0);
  }

  .rgt-btn:active {
    transform: scale(0.95);
  }

/*-- ปุ่มดาวน์โหลดในตาราง --*/
.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);
}

/* Responsive สำหรับมือถือ */
@media (max-width: 768px) {
    #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;
    }

    #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;
    }

    #jobNewsTable tbody td img {
        max-height: 40px;
    }
}

/* ทำให้การแสดงผลเหมาะสมบนมือถือ */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .jointeam-mid-title{
        padding: 40px;
        text-align: center;
        align-items: center;
    }

    .jointeam-mid-title h1,
    .jointeam-mid-title i
    {
        font-size: 35px;
    }

    .jointeam-mid-title h2 {
        font-size: 35px;
        line-height: 1.7;
        margin: 0 auto;
        margin-top: 40px;
    }
    
    .jointeam h1{
        font-size: 30px;
        padding: 5px;
    }
    .jointeam p {
        font-size: 20px;
        padding: 5px;
    }

    .jointeam-container-1 img {
        max-width: 100%;
    }
}