/* ============================================================
   Achol HR - Job Details Page Stylesheet
   ============================================================
   @author  Magar
   @version 1.0
   ============================================================ */


/* ============================================================
   1. BREADCRUMB
   ============================================================ */

.job-breadcrumb-section {
    background-color: var(--white);
    padding: 20px 0 0;
}

.job-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}

.job-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.job-breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb-current {
    color: var(--navy);
    font-weight: 600;
}


/* ============================================================
   2. MAIN LAYOUT
   ============================================================ */

.job-details-main {
    background-color: var(--white);
    padding: 30px 0 80px;
}

.job-details-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}


/* ============================================================
   3. JOB CONTENT (LEFT)
   ============================================================ */

.job-details-content {
    background-color: var(--white);
    min-width: 0;
}


/* ============================================================
   4. JOB HEADER
   ============================================================ */

.job-details-header {
    margin-bottom: 32px;
}

.job-details-header .job-featured-badge {
    display: inline-block;
    background-color: var(--gold);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.job-details-title {
    font-size: 2.25rem;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.job-details-category {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 18px;
}

.job-details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.job-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
}

.job-details-meta .job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.job-details-meta svg {
    color: var(--gold);
    flex-shrink: 0;
}


/* ============================================================
   5. JOB SECTIONS
   ============================================================ */

.job-details-section {
    margin-bottom: 36px;
}

.job-details-section h2 {
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--grey-medium);
    position: relative;
}

.job-details-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--gold);
}


/* ============================================================
   6. PROSE (Body Text)
   ============================================================ */

.job-details-prose {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-line;
}


/* ============================================================
   7. QUALIFICATIONS GRID
   ============================================================ */

.job-qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    background-color: var(--grey-light);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.qualification-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qualification-item-full {
    grid-column: 1 / -1;
}

.qualification-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.qualification-value {
    font-size: 15px;
    color: var(--navy);
    font-weight: 600;
    line-height: 1.4;
}


/* ============================================================
   8. BENEFITS LIST
   ============================================================ */

.job-benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.benefit-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background-color: var(--gold);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 1px;
}


/* ============================================================
   9. NOTICES
   ============================================================ */

.job-notice {
    background-color: var(--grey-light);
    padding: 18px 22px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--gold);
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.6;
}

.job-notice strong {
    color: var(--navy);
    font-weight: 700;
}

.job-notice-info {
    border-left-color: var(--info);
    background-color: #eff6ff;
    color: #1e40af;
}

.job-notice-info strong {
    color: #1e40af;
}


/* ============================================================
   10. SIDEBAR (STICKY APPLY CARD)
   ============================================================ */

.job-details-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.job-apply-card {
    background-color: var(--white);
    border: 1px solid var(--grey-medium);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}


/* ============================================================
   11. SALARY BLOCK
   ============================================================ */

.job-apply-salary {
    text-align: center;
    margin-bottom: 8px;
}

.salary-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.salary-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}


/* ============================================================
   12. APPLY NOTE
   ============================================================ */

.apply-note {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin: 12px 0 0;
}

.apply-note a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.apply-note a:hover {
    color: var(--gold);
    text-decoration: underline;
}


/* ============================================================
   13. JOB SUMMARY (Under Apply Button)
   ============================================================ */

.job-summary {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--grey-medium);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
}

.summary-label {
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.summary-value {
    color: var(--navy);
    font-weight: 600;
    text-align: right;
    line-height: 1.4;
}


/* ============================================================
   14. SHARE CARD
   ============================================================ */

.job-share-card {
    background-color: var(--white);
    border: 1px solid var(--grey-medium);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.share-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--grey-light);
    color: var(--navy);
    border: 1px solid var(--grey-medium);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0;
}

.share-btn:hover {
    background-color: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    transform: translateY(-2px);
}

.share-btn-copy {
    background: none;
}


/* ============================================================
   15. RELATED JOBS SECTION
   ============================================================ */

.job-related-section {
    background-color: var(--grey-light);
    padding: 70px 0;
}

.job-related-section .section-header h2 {
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 8px;
}


/* ============================================================
   16. RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {

    .job-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .job-details-sidebar {
        position: static;
        order: -1;
    }

    .job-apply-card {
        padding: 24px;
    }
}


@media (max-width: 768px) {

    .job-details-main {
        padding: 20px 0 60px;
    }

    .job-details-title {
        font-size: 1.65rem;
    }

    .job-details-meta {
        gap: 12px 20px;
        font-size: 13px;
    }

    .job-details-section {
        margin-bottom: 28px;
    }

    .job-details-section h2 {
        font-size: 1.2rem;
    }

    .job-details-prose {
        font-size: 14.5px;
    }

    .job-qualifications-grid {
        padding: 20px;
        grid-template-columns: 1fr 1fr;
    }

    .job-benefits-list {
        grid-template-columns: 1fr;
    }

    .salary-main {
        font-size: 1.5rem;
    }

    .job-related-section {
        padding: 50px 0;
    }
}


@media (max-width: 480px) {

    .job-details-title {
        font-size: 1.4rem;
    }

    .job-details-tags {
        gap: 6px;
    }

    .job-qualifications-grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .qualification-item {
        padding-bottom: 10px;
        border-bottom: 1px solid var(--grey-medium);
    }

    .qualification-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .share-btn {
        width: 36px;
        height: 36px;
    }
}


/* ============================================================
   END OF JOB DETAILS STYLESHEET
   ============================================================ */