/* Custom Style Halaman Job Description */

/* Ensure sign-in button stays blue on white header */
.header-area .main-nav .nav li.nav-btn-signin a {
    background: #2a5298 !important;
    color: #fff !important;
    border-color: #2a5298 !important;
}

.header-area .main-nav .nav li.nav-btn-signin a:hover {
    background: #1e3c72 !important;
    border-color: #1e3c72 !important;
    color: #fff !important;
}

.page-content {
    padding: 60px 0;
    min-height: calc(100vh - 170px);
    background-color: #f4f7f6;
}

.card-table {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-top: 20px;
}

.table thead th {
    border-bottom: none;
    font-weight: 600;
}

.btn-jobdesc-view {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    transition: 0.2s ease;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.18);
}

.btn-jobdesc-view:hover {
    background: linear-gradient(135deg, #142b4f 0%, #1e3c72 100%);
    color: #fff !important;
}

.jobdesc-detail-wrap {
    background: #f5f7fb;
    padding: 40px 0 80px;
}

.jobdesc-detail-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(20, 43, 79, 0.08);
    border: 1px solid rgba(30, 60, 114, 0.08);
    overflow: hidden;
}

.jobdesc-detail-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 28px 32px;
}

.jobdesc-detail-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 2rem;
}

.jobdesc-detail-header .sub-head {
    margin-top: 8px;
    opacity: 0.9;
    font-size: 0.96rem;
}

.jobdesc-detail-body {
    padding: 28px 32px 16px;
    color: #2d3748;
}

.jobdesc-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.jobdesc-meta-item {
    background: #f8fafc;
    border: 1px solid #e7edf5;
    border-radius: 10px;
    padding: 12px 14px;
}

.jobdesc-meta-item small {
    display: block;
    color: #60708a;
    margin-bottom: 4px;
    font-weight: 600;
}

.jobdesc-section {
    margin-top: 26px;
}

.jobdesc-section h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.jobdesc-section .section-box {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 18px 18px 10px;
}

.jobdesc-section ul {
    margin: 0;
    padding-left: 20px;
}

.jobdesc-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.jobdesc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 0.96rem;
}

.jobdesc-table th,
.jobdesc-table td {
    border: 1px solid #e5edf7;
    padding: 10px 12px;
    vertical-align: top;
}

.jobdesc-table thead th {
    background: #1e3c72;
    color: #fff;
    font-weight: 600;
}

.jobdesc-table tbody tr:nth-child(even) {
    background: #f8fbff;
}

.jobdesc-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}

.jobdesc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.jobdesc-btn-primary {
    background: #1e3c72;
    color: #fff;
}

.jobdesc-btn-primary:hover {
    color: #fff;
    background: #142b4f;
}

.jobdesc-btn-secondary {
    background: #edf3ff;
    color: #1e3c72;
    border: 1px solid #d8e2f4;
}

.jobdesc-btn-secondary:hover {
    background: #e1ebff;
    color: #1e3c72;
}

@media (max-width: 767px) {
    .card-table {
        padding: 14px;
        overflow: hidden;
    }

    #jobTable.table-mobile-md {
        display: block;
        width: 100% !important;
    }

    #jobTable.table-mobile-md thead {
        display: none;
    }

    #jobTable.table-mobile-md tbody,
    #jobTable.table-mobile-md tr,
    #jobTable.table-mobile-md td {
        display: block;
        width: 100%;
    }

    #jobTable.table-mobile-md tr {
        margin-bottom: 12px;
        padding: 8px 0;
        border: 1px solid #e5edf7;
        border-radius: 8px;
        background: #fff;
    }

    #jobTable.table-mobile-md td {
        padding: 8px 10px !important;
        border: 0;
        text-align: left !important;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #jobTable.table-mobile-md td::before {
        display: block;
        margin-bottom: 3px;
        color: #60708a;
        content: attr(data-label);
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    #jobTable.table-mobile-md td[data-label="No"] {
        display: none;
    }

    #jobTable.table-mobile-md td[data-label="Action"] .btn {
        width: 100%;
    }

    .jobdesc-detail-header,
    .jobdesc-detail-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .jobdesc-detail-header h2 {
        font-size: 1.5rem;
    }
}
