/**
 * Job Detail Page Styles
 *
 * Styles specific to the job detail page.
 * Extracted from job.php inline styles.
 */

/* ========================================
   Job Main Container
   ======================================== */

.job-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

/* ========================================
   Job Header
   ======================================== */

.job-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 3px solid #e0e0e0;
}

.job-header::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background-color: #e63946;
    position: absolute;
    bottom: -3px;
    left: 0;
}

.job-title {
    color: #14264A;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    padding-top: 1rem;
}

/* ========================================
   Job Meta Information
   ======================================== */

.job-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.job-meta-item {
    display: flex;
    align-items: center;
    color: #14264A;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.job-meta-item svg {
    color: #666;
    margin-right: 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
}

/* ========================================
   Job Content Layout
   ======================================== */

.job-content-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.job-description-container {
    flex: 1;
    min-width: 0;
    padding-right: 2rem;
}

.job-action-container {
    width: 300px;
    margin-left: auto;
}

/* ========================================
   Job Description
   ======================================== */

.job-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #333;
}

.job-description h2 {
    color: #14264A;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
}

.job-description h3 {
    color: #14264A;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem 0;
}

.job-description ul,
.job-description ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.job-description li {
    margin-bottom: 0.75rem;
}

.job-description p {
    margin-bottom: 1rem;
}

/* ========================================
   Job Description Content
   ======================================== */

.job-description-content {
    font-family: inherit;
    color: #333;
    line-height: 1.6;
}

.job-description-content h2 {
    color: #14264A;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: none;
}

.job-description-content .section-title {
    color: #14264A;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    text-transform: uppercase;
}

.job-description-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.job-description-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.job-description-content li {
    margin-bottom: 0.75rem;
    position: relative;
}

.job-description-content strong {
    font-weight: 600;
    color: #14264A;
}

.job-description-content .job-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-left: 4px solid #14264A;
    font-size: 1rem;
}

/* ========================================
   Apply Button
   ======================================== */

.apply-button-container {
    position: sticky;
    top: 6rem;
}

.apply-button {
    background-color: #e63946;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    display: block;
    text-decoration: none;
}

.apply-button:hover {
    background-color: #c1121f;
    color: white;
    text-decoration: none;
}

/* ========================================
   Applied Notice
   ======================================== */

.applied-notice {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
    color: #495057;
    margin-bottom: 1rem;
}

.applied-status {
    font-size: 1.2rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.applied-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.view-application-button {
    background-color: #14264A;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.view-application-button:hover {
    background-color: #0d1b33;
    color: white;
    text-decoration: none;
}

/* ========================================
   Section Title
   ======================================== */

.section-title {
    color: #14264A;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    text-transform: uppercase;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 991.98px) {
    .job-content-wrapper {
        flex-direction: column;
    }

    .job-description-container {
        padding-right: 0;
        width: 100%;
    }

    .job-action-container {
        width: 100%;
        margin-top: 2rem;
        margin-left: 0;
    }

    .apply-button-container {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .job-title {
        font-size: 2rem;
    }

    .job-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .job-meta-item {
        margin-right: 0;
    }

    .job-description-content .section-title {
        font-size: 1.2rem;
    }

    .job-description-content li {
        margin-bottom: 0.5rem;
    }
}
