﻿main {
    gap: 50px;
}

/* ===== Page ===== */
.career-page {
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== Header ===== */
.joinus-section {
    text-align: center;
}

.text-header {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 16px;
}

.text-desc {
    font-size: 21px;
    line-height: 1.6;
    color: #333;
}

/* ===== Tabs ===== */
.career-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.career-tab {
    padding: 12px 32px;
    border-radius: 999px;
    border: 1px solid #000;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    transition: all .2s ease;
}

.career-tab:hover {
    background: #000;
    color: #fff;
}

.career-tab.active {
    background: #ffe600;
    border-color: #ffe600;
}

/* ===== Cards ===== */
.career-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.career-card {
    background: #f6f6f6;
    padding: 32px;
}

.career-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.career-card h2 {
    font-size: 16px;
    margin-bottom: 12px;
}

.career-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;   /* จำนวนบรรทัด */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.learn-more {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .career-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .career-page {
        padding: 60px 24px;
    }

    .text-header {
        font-size: 40px;
    }

    .career-list {
        grid-template-columns: 1fr;
    }
}


/* ===== Layout ===== */
.career-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

/* ===== Sidebar ===== */
.career-sidebar {
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* reuse tab style */
.career-tab {
    padding: 12px 32px;
    border-radius: 999px;
    border: 1px solid #000;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    text-align: center;
    transition: all .2s ease;
}

.career-tab:hover {
    background: #000;
    color: #fff;
}

.career-tab.active {
    background: #ffe600;
    border-color: #ffe600;
}

/* ===== Cards Area ===== */
.career-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1024px) {
    .career-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .career-layout {
        flex-direction: column;
    }

    .career-sidebar {
        flex-direction: row;
        justify-content: center;
    }

    .career-list {
        grid-template-columns: 1fr;
    }
}

/* ===== Page ===== */
.career-detail-page {
    padding: 60px 24px;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== Back ===== */
.career-back {
    margin-bottom: 48px;
}

.career-back a {
    font-size: 18px;
    font-weight: 600;
    color: #999;
    text-decoration: none;
}

.career-back a:hover {
    color: #000;
}

/* ===== Content ===== */
.career-detail-content {
    max-width: 640px;
    margin: 0 auto;
}

/* ===== Title ===== */
.position-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.updated-date {
    text-align: center;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 48px;
}

/* ===== Detail Block ===== */
.detail-block {
    margin-bottom: 32px;
}

.detail-block h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-block p {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

/* ===== Apply Button ===== */
.apply-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 48px;
}

.btn-apply {
    background: #ffe600;
    color: #000;
    padding: 14px 40px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.btn-apply:hover {
    background: #000;
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .position-title {
        font-size: 28px;
    }

    .apply-wrap {
        justify-content: center;
    }
}
