/* =========================================================
   JOB DETAIL HEADER
========================================================= */

.job-detail-header {
    background: #f3f6fc;
    padding: 38px 0;
    border-bottom: 1px solid #e7ebf2;
}

.job-detail-header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
}

.job-detail-logo {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
}

.job-detail-logo img,
.job-detail-logo-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    object-fit: contain;
}

.job-detail-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #176fd1;
    color: #fff;

    font-size: 28px;
}

.job-detail-main {
    flex: 1;
}

.job-detail-company {
    margin-bottom: 5px;

    color: #1c9a55;

    font-size: 14px;
    font-weight: 500;
}

.job-detail-main h1 {
    margin: 0 0 12px;

    color: #111827;

    font-size: 27px;
    font-weight: 700;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    color: #687386;

    font-size: 13px;
}

.job-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.job-detail-meta i {
    color: #6c8db6;
}

.job-detail-badges {
    display: flex;
    gap: 8px;

    margin-top: 12px;
}

.job-badge {
    padding: 5px 13px;

    border-radius: 20px;

    background: #dce8f9;

    color: #2165bd;

    font-size: 11px;
}

.job-badge.featured {
    background: #dff4e7;
    color: #16a34a;
}


/* =========================================================
   APPLY
========================================================= */

.job-detail-action {
    width: 220px;
    flex: 0 0 220px;

    text-align: right;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    height: 48px;

    border-radius: 6px;

    background: #176bd1;

    color: #fff;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: .2s;
}

.apply-btn:hover {
    background: #1059b4;
    color: #fff;
}

.application-deadline {
    margin-top: 12px;

    color: #687386;

    font-size: 11px;
}

.application-deadline strong {
    color: #dc3d3d;
}


/* =========================================================
   MAIN SECTION
========================================================= */

.job-detail-section {
    padding: 55px 0 80px;

    background: #fff;
}

.job-content-block {
    margin-bottom: 42px;
}

.job-content-block h2 {
    margin-bottom: 20px;

    color: #111827;

    font-size: 19px;
    font-weight: 700;
}

.job-rich-content {
    color: #657184;

    font-size: 14px;
    line-height: 1.9;
}

.job-rich-content p {
    margin-bottom: 15px;
}

.job-rich-content ul,
.job-rich-content ol {
    padding-left: 22px;

    margin-bottom: 15px;
}

.job-rich-content li {
    margin-bottom: 10px;
}

.job-rich-content strong {
    color: #374151;
}


/* =========================================================
   SIDEBAR
========================================================= */

.job-sidebar-card {
    margin-bottom: 25px;
    padding: 25px;

    border-radius: 8px;

    background: #f5f7fc;
}

.job-sidebar-card h3 {
    margin: 0 0 25px;

    color: #111827;

    font-size: 17px;
    font-weight: 700;
}


/* =========================================================
   OVERVIEW
========================================================= */

.overview-item {
    display: flex;

    gap: 14px;

    margin-bottom: 21px;
}

.overview-item:last-child {
    margin-bottom: 0;
}

.overview-item>i {
    width: 24px;

    color: #2772d2;

    font-size: 17px;

    padding-top: 2px;
}

.overview-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.overview-item strong {
    color: #374151;

    font-size: 12px;
}

.overview-item span {
    color: #6b7585;

    font-size: 12px;
}


/* =========================================================
   COMPANY
========================================================= */

.company-card-logo {
    width: 75px;
    height: 75px;

    margin-bottom: 15px;
}

.company-card-logo img,
.company-logo-placeholder {
    width: 75px;
    height: 75px;

    border-radius: 8px;

    object-fit: contain;
}

.company-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #176bd1;

    color: #fff;

    font-size: 28px;
}

.company-card h4 {
    margin-bottom: 20px;

    font-size: 16px;
}

.company-card p {
    margin-bottom: 14px;

    color: #6b7585;

    font-size: 12px;
    line-height: 1.6;
}

.company-card p strong {
    color: #374151;
}

.company-card a {
    color: #176bd1;
    text-decoration: none;
}


/* =========================================================
   RELATED JOBS
========================================================= */

.related-jobs-section {
    margin-top: 25px;

    padding-top: 40px;

    border-top: 1px solid #e5e9ef;
}

.related-jobs-section>h2 {
    margin-bottom: 25px;

    font-size: 20px;
}

.related-job-card {
    position: relative;

    display: flex;
    align-items: center;

    gap: 15px;

    min-height: 100px;

    padding: 18px;

    border: 1px solid #e5e9ef;

    border-radius: 7px;

    color: inherit;

    text-decoration: none;

    transition: .2s;
}

.related-job-card:hover {
    border-color: #b9cce6;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
}

.related-job-logo {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: #f0f3f7;

    overflow: hidden;
}

.related-job-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.related-job-logo i {
    color: #64748b;
}

.related-job-content {
    flex: 1;
}

.related-job-content h4 {
    margin: 0 0 5px;

    color: #111827;

    font-size: 14px;
}

.related-job-content div {
    margin-bottom: 5px;

    color: #17a050;

    font-size: 11px;
}

.related-job-content small {
    color: #6b7585;

    font-size: 11px;
}

.related-job-type {
    align-self: flex-start;

    padding: 5px 12px;

    border-radius: 20px;

    background: #dce8f8;

    color: #176bd1;

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .job-detail-header-inner {
        flex-wrap: wrap;
    }

    .job-detail-action {
        width: 100%;
        flex-basis: 100%;

        text-align: left;
    }

    .apply-btn {
        max-width: 250px;
    }

}

@media (max-width: 767px) {

    .job-detail-header {
        padding: 30px 0;
    }

    .job-detail-main h1 {
        font-size: 22px;
    }

    .job-detail-meta {
        flex-direction: column;
        gap: 7px;
    }

    .job-detail-badges {
        flex-wrap: wrap;
    }

    .job-detail-section {
        padding-top: 35px;
    }

    .job-sidebar-card {
        padding: 20px;
    }

    .related-job-card {
        align-items: flex-start;
    }

}


/* =========================================================
   JOB APPLICATION MODAL
========================================================= */

.job-application-modal {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

.job-application-modal .modal-header {
    padding: 22px 25px;

    border-bottom: 1px solid #e8edf3;

    background: #f6f9fd;
}

.job-application-modal .modal-title {
    margin: 0;

    color: #111827;

    font-size: 20px;
    font-weight: 700;
}

.application-job-title {
    margin: 4px 0 0;

    color: #176bd1;

    font-size: 13px;
}

.job-application-modal .modal-body {
    padding: 25px;
}

.application-label {
    display: block;

    margin-bottom: 7px;

    color: #374151;

    font-size: 13px;
    font-weight: 600;
}

.application-label span {
    color: #dc3545;
}

.application-input {
    min-height: 46px;

    border: 1px solid #dce3eb;

    border-radius: 6px;

    background: #fff;

    color: #374151;

    font-size: 13px;

    box-shadow: none;
}

.application-input:focus {
    border-color: #176bd1;

    box-shadow: 0 0 0 3px rgba(23, 107, 209, .08);
}

.application-input[readonly] {
    background: #f4f7fa;
    color: #176bd1;
    font-weight: 600;
}

.resume-help {
    margin-top: 6px;

    color: #8993a2;

    font-size: 11px;
}

.application-submit-btn {
    width: 100%;
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 0;
    border-radius: 6px;

    background: #176bd1;
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    transition: .2s;
}

.application-submit-btn:hover {
    background: #1059b4;
}


/* MOBILE */

@media (max-width: 575px) {

    .job-application-modal .modal-header {
        padding: 18px;
    }

    .job-application-modal .modal-body {
        padding: 18px;
    }

    .job-application-modal .modal-title {
        font-size: 18px;
    }

    .application-job-title {
        font-size: 12px;
    }

    .application-label {
        font-size: 12px;
    }

    .application-input {
        min-height: 45px;
    }

}


.application-submit-btn {
    position: relative;

    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    transition: all .2s ease;
}

.application-submit-btn:disabled {
    opacity: .75;
    cursor: not-allowed !important;
}

#submitButtonLoader {
    align-items: center;
    justify-content: center;
}