/* =========================================================
   UDJ SINGLE JOB
========================================================= */

.udj-single-job {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    box-sizing: border-box;
    color: #1d3665;
}


/* =========================================================
   JOB HEADER
========================================================= */

.udj-job-header {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 30px;
    align-items: center;

    padding: 35px;
    margin-bottom: 30px;

    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;

    box-shadow: 0 8px 30px rgba(29, 54, 101, 0.08);
}


/* =========================================================
   COMPANY LOGO
========================================================= */

.udj-logo {
    width: 100px;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f7fb;
    border: 1px solid #e5e8ef;
    border-radius: 12px;

    overflow: hidden;
}

.udj-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.udj-logo i {
    font-size: 42px;
    color: #c9ced8;
}


/* =========================================================
   HEADER CONTENT
========================================================= */

.udj-header-content {
    min-width: 0;
}

.udj-header-content h1 {
    margin: 0 0 8px;

    color: #1d3665;

    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
}

.udj-company-name {
    margin-bottom: 18px;

    color: #a9248e;

    font-size: 18px;
    font-weight: 600;
}


/* =========================================================
   JOB META
========================================================= */

.udj-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;

    margin-bottom: 10px;
}

.udj-job-meta span {
    color: #6f7785;
    font-size: 15px;
}


/* =========================================================
   HEADER BUTTONS
========================================================= */

.udj-header-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    margin-top: 22px;
}

.udj-save-btn,
.udj-apply-btn {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 22px;

    border-radius: 8px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;
    box-sizing: border-box;
}


/* Save */

.udj-save-btn {
    background: #ffffff;
    color: #1d3665;

    border: 1px solid #d8dce5;
}

.udj-save-btn:hover {
    background: #f5f7fb;
}


/* Apply */

.udj-apply-btn {
    background: #a9248e;
    color: #ffffff;

    border: 1px solid #a9248e;
}

.udj-apply-btn:hover {
    background: #8f1e78;
    color: #ffffff;
}


/* =========================================================
   JOB LAYOUT
========================================================= */

.udj-job-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 340px;

    gap: 28px;

    align-items: start;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.udj-main-content {
    min-width: 0;
}

.udj-main-content .udj-card,
.udj-sidebar .udj-card {
    width: 100%;
    margin-bottom: 24px;

    padding: 28px;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 14px;

    box-shadow: 0 6px 24px rgba(29, 54, 101, 0.06);

    box-sizing: border-box;
}


/* =========================================================
   CARD HEADINGS
========================================================= */

.udj-card h2 {
    margin: 0 0 18px;

    color: #1d3665;

    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

.udj-card p {
    margin: 0 0 12px;

    color: #5f6877;

    font-size: 15px;
    line-height: 1.8;
}

.udj-card p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   COMPANY SIDEBAR
========================================================= */

.udj-company-sidebar {
    text-align: center;
}

.udj-sidebar-logo {
    width: 90px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 16px;

    background: #f5f7fb;
    border: 1px solid #e5e8ef;
    border-radius: 12px;

    overflow: hidden;
}

.udj-sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.udj-sidebar-logo i {
    color: #c9ced8;
    font-size: 34px;
}

.udj-company-sidebar h3 {
    margin: 0 0 7px;

    color: #1d3665;

    font-size: 18px;
    font-weight: 700;
}

.udj-company-industry {
    margin: 0 0 14px;

    color: #7b8492;

    font-size: 14px;
}

.udj-company-website {
    display: inline-block;

    color: #a9248e;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
}

.udj-company-website:hover {
    text-decoration: underline;
}


/* =========================================================
   JOB SUMMARY
========================================================= */

.udj-summary {
    margin: 0;
    padding: 0;

    list-style: none;
}

.udj-summary li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 13px 0;

    border-bottom: 1px solid #eeeeee;
}

.udj-summary li:first-child {
    padding-top: 0;
}

.udj-summary li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.udj-summary strong {
    flex: 0 0 auto;

    color: #6e7684;

    font-size: 14px;
    font-weight: 600;
}

.udj-summary span {
    color: #1d3665;

    font-size: 14px;
    font-weight: 500;

    text-align: right;
}


/* =========================================================
   RESPONSIBILITIES / REQUIREMENTS / BENEFITS
========================================================= */

.udj-main-content .udj-card ul {
    margin: 0;
    padding-left: 20px;
}

.udj-main-content .udj-card li {
    margin-bottom: 8px;

    color: #5f6877;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .udj-job-layout {
        grid-template-columns: 1fr;
    }

    .udj-sidebar {
        width: 100%;
    }

}


@media (max-width: 767px) {

    .udj-single-job {
        padding: 25px 15px 60px;
    }

    .udj-job-header {
        grid-template-columns: 1fr;

        gap: 20px;

        padding: 24px;

        text-align: center;
    }

    .udj-logo {
        width: 80px;
        height: 80px;

        margin: 0 auto;
    }

    .udj-header-content h1 {
        font-size: 26px;
    }

    .udj-company-name {
        font-size: 16px;
    }

    .udj-job-meta {
        justify-content: center;
        gap: 8px 16px;
    }

    .udj-header-buttons {
        justify-content: center;
    }

    .udj-save-btn,
    .udj-apply-btn {
        width: 100%;
    }

    .udj-main-content .udj-card,
    .udj-sidebar .udj-card {
        padding: 22px;
    }

    .udj-summary li {
        gap: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .udj-header-content h1 {
        font-size: 23px;
    }

    .udj-job-meta {
        flex-direction: column;
        align-items: center;
    }

    .udj-summary li {
        flex-direction: column;
        gap: 5px;
    }

    .udj-summary span {
        text-align: left;
    }

}

/* Hide WordPress Job page title */
body.page .entry-title {
    display: none !important;
}