/* body, html { font-family: 'Kanit', sans-serif !important; } */
/* Body style ควรจะมาจาก global */
.job-container {
    /* Main wrapper for single job content */
    max-width: 900px;
    margin: 30px auto 60px auto;
    padding: 25px 30px;
    font-family: "Kanit", sans-serif;
    /* var(--font-main) */
    line-height: 1.6;
    color: #222;
    /* สีตัวอักษรหลัก อาจกำหนดเป็นตัวแปร */
    background-color: #fff;
    border-radius: 16px;
    /* var(--radius) ? */
    box-shadow: 0 10px 40px rgba(255, 51, 153, 0.2);
    /* var(--pink-shadow) หรือปรับค่า */
    transition: box-shadow 0.3s ease;
}

.job-container:hover {
    box-shadow: 0 15px 60px rgba(255, 51, 153, 0.35);
    /* ปรับค่าเงา */
}

.job-header h1 {
    /* ชื่อบริษัท/ร้าน */
    font-size: 32px;
    /* rem? */
    font-weight: 900;
    color: var(--pink-main);
    /* #e91e63 */
    letter-spacing: 1px;
    /* อาจจะไม่จำเป็นสำหรับภาษาไทย */
    margin-bottom: 0;
}

.job-type-btn {
    /* ปุ่มประเภทงาน เช่น "พริตตี้" */
    background-color: var(--pink-main);
    /* #e91e63 */
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    /* หรือค่าที่สอดคล้อง */
    font-weight: 800;
    /* 700 หรือ 900 */
    font-size: 15px;
    /* rem? */
    display: inline-block;
    align-self: flex-start;
    /* ถ้า .job-header เป็น flex */
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    /* var(--pink-shadow) หรือปรับค่า */
    transition: background-color 0.3s ease;
    margin-top: 8px;
    /* เพิ่มระยะห่างจาก h1 */
}

.job-type-btn:hover {
    background-color: #d81b60;
    /* สีชมพูเข้มกว่าเดิม */
    box-shadow: 0 6px 20px rgba(216, 27, 96, 0.6);
}

.job-tags {
    /* Tags เช่น #รายวัน #พร้อมที่พัก */
    display: inline-flex;
    gap: 8px;
    margin-left: 12px;
    font-weight: 600;
    font-size: 13px;
    /* rem? */
    color: #f48fb1;
    /* สีชมพูอ่อน อาจเป็น var(--pink-strong) หรือใกล้เคียง */
    text-transform: uppercase;
    /* อาจจะไม่จำเป็นสำหรับภาษาไทย */
    font-style: italic;
    user-select: none;
    cursor: default;
}

.job-tags span {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--pink-light);
    /* #fce4ec */
    padding: 2px 8px;
    border-radius: 14px;
    transition: background 0.3s ease;
    color: var(--pink-main);
    /* เพิ่มสีตัวอักษรให้ tag */
}

.job-tags span:hover {
    background: var(--pink-xlight);
    /* #f8bbd0 */
}

.job-tags i {
    color: var(--pink-main);
    /* #e91e63 */
}

.section-title {
    /* หัวข้อของแต่ละส่วน เช่น "รายละเอียดงาน" */
    font-weight: 900;
    font-size: 22px;
    /* rem? */
    border-left: 6px solid var(--pink-main);
    /* #e91e63 */
    padding-left: 14px;
    margin: 35px 0 18px 0;
    color: var(--pink-main);
    /* #e91e63 */
    text-shadow: 1px 1px 1px rgba(255, 105, 180, 0.4);
    /* เงาข้อความ */
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 24px;
    /* rem? */
}

.section-content {
    /* เนื้อหาภายใต้ .section-title */
    padding: 16px 20px;
    background-color: var(--pink-xlight);
    /* #fff0f6 */
    border-radius: 12px;
    /* var(--radius) ? */
    margin-bottom: 22px;
    color: #7b1fa2;
    /* สีม่วง อาจกำหนดเป็นตัวแปร */
    box-shadow: inset 0 0 10px rgba(233, 30, 99, 0.1);
    /* เงาภายใน */
    font-weight: 600;
    white-space: pre-line;
    /* ทำให้ \n ขึ้นบรรทัดใหม่ */
    letter-spacing: 0.02em;
}

.job-info-item {
    /* รายการข้อมูล เช่น รายได้, เวลาทำงาน */
    background: var(--pink-light);
    /* #fce4ec */
    border-radius: 12px;
    /* var(--radius) ? */
    margin-bottom: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #880e4f;
    /* สีชมพูเข้มมาก อาจกำหนดเป็นตัวแปร */
}

.job-info-item i {
    font-size: 22px;
    /* rem? */
    min-width: 28px;
    color: var(--pink-main);
    /* #e91e63 */
}

.job-info-label {
    /* ป้ายกำกับ เช่น "รายได้" */
    flex-shrink: 0;
    min-width: 110px;
    color: #ad1457;
    /* สีชมพูเข้ม อาจกำหนดเป็นตัวแปร */
    font-weight: 700;
}

.job-info-value {
    /* ค่าข้อมูล */
    flex-grow: 1;
    font-weight: 600;
    color: #6a1b9a;
    /* สีม่วงเข้ม อาจกำหนดเป็นตัวแปร */
}

.job-image {
    /* รูปภาพหลักของงาน */
    text-align: center;
    margin: 20px 0;
    /* เพิ่มระยะห่างบนล่าง */
}

.job-image img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    /* var(--radius) ? */
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
    /* var(--pink-shadow) หรือปรับค่า */
    transition: transform 0.4s ease;
    cursor: pointer;
    /* ถ้าต้องการให้คลิกแล้วซูม หรือไปที่ไหน */
}



.job-image img:hover {
    transform: scale(1.05);
}

.job-map {
    /* แผนที่ Google Map */
    margin: 20px 0;
    border-radius: 12px;
    /* var(--radius) ? */
    overflow: hidden;
    /* ให้ iframe โค้งตาม */
}

.job-steps {
    /* ขั้นตอนการสมัครงาน */
    padding-left: 20px;
    /* ให้มี bulletเยื้องเข้ามา */
    margin-bottom: 20px;
    color: #555;
    /* สีตัวอักษร */
}

.job-steps li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.apply-buttons {
    /* กลุ่มปุ่มสมัครงาน */
    display: flex;
    gap: 10px;
    margin: 40px 0 30px 0;
    /* ปรับระยะห่างล่าง */
}

.btn-apply {
    /* ปุ่ม "สนใจงานนี้" */
    background: linear-gradient(135deg, #ff4081, #f50057);
    /* gradient ชมพู-แดง */
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
    font-weight: 700;
    border-radius: 8px;
    /* var(--radius) หรือค่าที่สอดคล้อง */
    padding: 14px 0;
    font-size: 18px;
    /* rem? */
    color: white;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    /* เพิ่ม transition box-shadow */
    user-select: none;
    flex: 1;
    font-family: var(--font-main);
    /* เพิ่ม font */
}

.btn-apply:hover {
    background: linear-gradient(135deg, #e040fb, #d500f9);
    /* gradient ม่วง */
    box-shadow: 0 12px 30px rgba(194, 24, 91, 0.6);
}

.btn-line {
    /* ปุ่ม "สมัครผ่าน LINE" */
    background: var(--green-line);
    /* ใช้ตัวแปรสีเขียว */
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.5);
    font-weight: 700;
    border-radius: 8px;
    padding: 14px 0;
    font-size: 18px;
    /* rem? */
    color: white;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    flex: 1;
    font-family: var(--font-main);
    /* เพิ่ม font */
    text-decoration: none;
    /* เพิ่มสำหรับ <a> tag */
    display: flex;
    /* จัด icon กับ text ให้อยู่กลาง */
    align-items: center;
    justify-content: center;
}

.btn-line:hover {
    background: linear-gradient(135deg, #00c853, #009624);
    /* สีเขียวเข้มขึ้น */
    box-shadow: 0 12px 30px rgba(0, 154, 41, 0.7);
}

.btn-line i {
    /* ถ้าจะใส่ icon ในปุ่ม LINE */
    margin-right: 8px;
}

.share-report-container {
    /* กลุ่มปุ่มแชร์/รายงาน */
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* จัดให้อยู่กึ่งกลางแนวตั้ง */
    margin-top: 25px;
    font-family: "Kanit", sans-serif;
    /* var(--font-main) */
}

.btn-share {
    /* ปุ่มแชร์ */
    background-color: #3b5998;
    /* สี Facebook */
    color: white;
    font-weight: 700;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    /* var(--radius) ? */
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(59, 89, 152, 0.6);
    transition: background-color 0.3s ease;
    font-family: var(--font-main);
    /* เพิ่ม font */
    display: inline-flex;
    /* จัด icon กับ text */
    align-items: center;
    gap: 8px;
}

.btn-share:hover {
    background-color: #2d4373;
    /* สี Facebook เข้มขึ้น */
}

.btn-report {
    /* ปุ่มรายงานปัญหา */
    font-size: 13px;
    /* rem? */
    color: #777;
    cursor: pointer;
    user-select: none;
    border: none;
    background: none;
    padding: 0;
    text-decoration: underline;
    transition: color 0.3s ease;
    font-family: var(--font-main);
    /* เพิ่ม font */
}

.btn-report:hover {
    color: var(--pink-main);
    /* #ff4081 */
}

/* Responsive Styles for Single Job Page */
@media (max-width: 600px) {
    .job-container {
        padding: 20px 15px;
        /*ลด padding*/
        margin-top: 15px;
        margin-bottom: 30px;
    }

    .job-header h1 {
        font-size: 26px;
        /*ลดขนาด h1*/
    }

    /* .job-header { flex-direction: column; align-items: flex-start; gap: 8px; } */
    /* เดิมมีอยู่ ถ้ายังต้องการให้ uncomment */
    .job-info-label {
        min-width: 80px;
    }

    .apply-buttons {
        flex-direction: column;
    }

    .btn-apply,
    .btn-line {
        font-size: 16px;
        /* ลดขนาด font ปุ่ม */
        padding: 12px 0;
    }

    .section-title {
        font-size: 20px;
        /*ลดขนาด section title*/
    }

    .section-content,
    .job-info-item {
        padding: 12px 15px;
        /*ลด padding*/
    }
}


/* --- เพิ่มเติม/แก้ไขใน style-single-job.css --- */

/* ... (สไตล์เดิมของคุณสำหรับ .job-container, .section-title ฯลฯ ยังคงอยู่) ... */

/* Styles for Single Job Tags Container (อยู่ใต้ job-header หรือใต้รูปภาพหลัก) */
.single-job-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* ระยะห่างระหว่างแท็ก */
    margin-top: 15px;
    /* ระยะห่างจากส่วนด้านบน */
    margin-bottom: 25px;
    /* ระยะห่างก่อนถึงรายละเอียดงาน */
    justify-content: center;
    /* หรือ left ถ้าต้องการ */
}

.single-job-tag {
    background-color: var(--pink-xlight, #fff0f6);
    /* สีพื้นหลังแท็ก */
    color: var(--pink-strong, #ad1457);
    /* สีตัวอักษรแท็ก */
    padding: 6px 12px;
    border-radius: 16px;
    /* ทำให้ดูโค้งมน */
    font-size: 0.85em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.single-job-tag:hover {
    background-color: var(--pink-light, #f8bbd0);
    color: var(--pink-dark, #c2185b);
}

.single-job-tag i {
    margin-right: 6px;
    font-size: 0.9em;
}

/* Styles for Related Jobs Section */
.related-jobs-section {
    clear: both;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--color-border, #e0e0e0);
}

.related-jobs-title {
    font-size: 2em;
    /* ปรับขนาดให้เด่น แต่ไม่เท่า H1 หลัก */
    color: var(--color-text-heading, #333);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.related-jobs-title::after {
    /* เพิ่มเส้นใต้ให้หัวข้อ related jobs */
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--pink-main);
    border-radius: 2px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}


.related-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    /* ปรับขนาดการ์ดให้เล็กลงหน่อย */
    gap: 25px;
}

.related-job-card {
    background-color: var(--color-background-card, #fff);
    border-radius: var(--border-radius-card, 10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    /* เงาจางกว่าการ์ดหลัก */
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    /* เพิ่มเพื่อให้ link ครอบได้ */
    flex-direction: column;
    /* เพิ่มเพื่อให้ link ครอบได้ */
}

.related-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-job-card-link {
    /* ทำให้ทั้งการ์ดเป็นลิงก์ */
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* สำคัญ: ทำให้การ์ดที่เนื้อหาน้อยยังคงสูงเท่ากัน (ถ้า grid row นั้นๆ มีการ์ดอื่นที่สูงกว่า) */
}

.related-job-thumbnail {
    width: 100%;
    padding-top: 66.66%;
    /* Aspect ratio 3:2 (height is 2/3 of width) - หรือปรับตามต้องการ */
    position: relative;
    /* สำหรับ absolute positioning ของ img */
    background-color: #f0f0f0;
    overflow: hidden;
    /* ซ่อนส่วนเกินของ img */
}

.related-job-thumbnail.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* ให้เต็มพื้นที่ padding-top */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.related-job-thumbnail.placeholder i {
    font-size: 3em;
    /* ขนาดไอคอน placeholder */
    color: #d0d0d0;
}

.related-job-thumbnail img {
    position: absolute;
    /* จัดตำแหน่งรูปภาพให้เต็ม thumbnail div */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-job-card:hover .related-job-thumbnail img {
    transform: scale(1.07);
}

.related-job-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* ดัน location ลงล่าง ถ้า title สั้น */
}

.related-job-title {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--color-text-heading, #333);
    margin: 0 0 8px 0;
    line-height: 1.4;
    /* CSS for truncating text to 2 lines with ellipsis (optional) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
    /* ประมาณ 2 บรรทัด (1.4 * 2) ปรับตาม line-height และ font-size */
}

.related-job-location {
    font-size: 0.85em;
    color: var(--color-text-muted, #777);
    margin: 0;
    display: flex;
    align-items: center;
    /* margin-top: auto; ไม่จำเป็นถ้า justify-content: space-between ใน .related-job-info */
}

.related-job-location i {
    margin-right: 6px;
    font-size: 0.9em;
}

.related-jobs-footer {
    text-align: center;
    margin-top: 40px;
    /* เพิ่มระยะห่าง */
}

.btn-view-all-jobs {
    display: inline-block;
    padding: 12px 30px;
    /* ปรับขนาดปุ่ม */
    background: var(--gradient-primary, linear-gradient(135deg, #e91e63 0%, #c2185b 100%));
    color: #fff !important;
    border-radius: var(--border-radius-button, 8px);
    text-decoration: none;
    font-size: 1em;
    /* ปรับขนาด font */
    font-weight: 700;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-view-all-jobs:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.btn-view-all-jobs i {
    margin-left: 8px;
}



