/* =========================================
   1. VARIABLES & BASE STYLES
   ========================================= */
:root {
    /* Colors */
    --color-granite-05: #f5f5f5;
    /* Typography */
    font-size: 10px;
    /* Base font size for easy rem calculations */
}

body {
    font-family: "NeueHaasUnicaPro", sans-serif;
    margin: 0;
    color: var(--color-granite-120);
    font-size: 1.6rem;
    /* Default font size */
    line-height: 1.6;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   2. JOB DETAILS HEADER
   ========================================= */
.job-details__header {
    background-color: var(--color-red-100);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    justify-content: center;
    padding: 1.6rem 0 4rem;
    box-sizing: border-box;
}

.job-details__breadcrumb {
    width: 100%;
    max-width: 144rem;
    padding: 0 1.6rem;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb__link {
    color: var(--color-white);
    font-weight: 400;
    text-decoration: underline;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: max-content;
}

.breadcrumb__separator,
.breadcrumb__current {
    font-weight: 400;
}

.job-details__title {
    color: var(--color-white);
    width: 100%;
    max-width: 144rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.6rem;
    font-family: "MidnightSansRDPro-36", sans-serif;
    font-size: 3.6rem;
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    letter-spacing: 0;
}

/* =========================================
   3. MAIN LAYOUT CONTAINER
   ========================================= */
.job-details__container {
    padding: 4rem 1.6rem;
    width: 100%;
    max-width: 144rem;
    margin-left: auto;
    margin-right: auto;
}

.job-details__section {
    margin: 0 auto;
}

.job-details__layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 3.8rem;
}

/* =========================================
   4. JOB DESCRIPTION (Left Column)
   ========================================= */
.job-description {
    width: 100%;
    overflow: hidden;
}

.job-description .apply-button {
    margin-top: 2.8rem;
}

.job-description__meta {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-bottom: 2.4rem;
}

.job-description__location {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.job-description__location-icon {
    flex-shrink: 0;
}

.job-description__heading,
.job-description__content h2.title {
    font-family: "MidnightSansRDPro-36", sans-serif;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    letter-spacing: 0;
    /* margin-bottom: 2.4rem; */
}

.job-description__content h2.title:nth-of-type(n + 2) {
    margin-top: 4rem;
}

.job-description__content {
    line-height: 1.7;
}

.job-description__content p {
    margin-bottom: 1.5rem;
}

.job-description__content ul {
    list-style-position: inside;
    padding-left: 1rem;
}

/* =========================================
   5. JOB SUMMARY (Right Column)
   ========================================= */
.job-summary {
    width: 100%;
    flex-shrink: 0;
}

.job-summary__card {
    padding: 2.4rem 2rem;
    border-radius: 1.6rem;
    background-color: var(--color-granite-05);
}

.job-summary__title {
    font-family: "MidnightSansRDPro-36", sans-serif;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
    letter-spacing: 0;
    margin-bottom: 1.2rem;
}

.job-summary__list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-bottom: 1.2rem;
}

.job-summary__list-divider {
    width: 100%;
    height: 0.1rem;
    background-color: var(--color-granite-20);
}

.job-summary__item {
    display: flex;
    flex-direction: row;
    gap: 3.2rem;
}

/* Hide item if value is empty */
.job-summary__item:has(.job-summary__value:empty) {
    display: none;
}

.job-summary__label {
    margin: 0;
    font-family: "NeueHaasUnicaPro", sans-serif;
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 700;
    line-height: 2rem;
    letter-spacing: 0.02rem;
    width: 36%;
    flex-shrink: 0;
}

.job-summary__value {
    margin: 0;
    color: var(--color-black);
    font-family: "NeueHaasUnicaPro", sans-serif;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2.4rem;
    letter-spacing: 0.02rem;
    word-break: break-word;
}

.job-summary__actions {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
}

/* Hide desktop buttons on mobile */
.job-summary .btn {
    display: none;
}

.job-summary__contact {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
}

.job-summary__share {
    margin-top: 2.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.job-summary__share-title {
    font-size: 2rem;
    /* h6 equivalent */
    margin-bottom: 1.2rem;
}

.job-summary__share-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.job-summary__share-links a svg {
    width: 2.8rem;
    height: 2.8rem;
}

.job-summary__share-links a.btn-facebook svg {
    color: #0866FF;
}

.job-summary__share-links a.btn-linkedin svg {
    color: #0077B5;
}

/* =========================================
   6. INTERACTIVE ELEMENTS (Buttons & Overlays)
   ========================================= */
.apply-button {
    justify-content: center;
}

.share-button-container {
    position: relative;
    width: 100%;
}

.job-share-button {
    justify-content: center;
}

.share-overlay {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: .8rem;
    overflow: hidden;
    display: flex;
    /* Flex is defined but set to none below, assuming toggled via JS */
    flex-direction: column;
    width: 100%;
    height: auto;
    background-color: #ffffff;
    border: 1px solid var(--color-granite-20);
    display: none;
}

.share-links-wrapper {
    display: flex;
    flex-direction: column;
}

.share-link-item {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    padding-left: 2.4rem;
    padding-right: 2.4rem;
    font-family: "NeueHaasUnicaPro", sans-serif;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2.4rem;
    letter-spacing: 0.02rem;
    cursor: pointer;
}

.share-link-item:hover {
    background-color: var(--color-granite-120);
    color: #ffffff;
}

/* =========================================
   7. RESPONSIVE STYLES (Tablet - 768px+)
   ========================================= */
@media (min-width: 768px) {

    /* Header & Layout */
    .job-details__header {
        padding: 1.6rem 0 5.6rem;
    }

    .job-details__header .job-details__title {
        font-size: 6.4rem;
        /* h4 equivalent */
        gap: 5.6rem;
        padding: 0 2.4rem;
    }

    .job-details__breadcrumb {
        padding: 0 2.4rem;
    }

    .job-details__container {
        padding: 6rem 2.4rem;
    }

    .job-details__layout {
        flex-direction: row;
    }

    /* Headings */
    .job-description__heading,
    .job-description__content h2.title,
    .job-summary__title {
        font-size: 2.4rem;
    }

    /* Sidebar/Summary */
    .job-summary {
        width: 39.7rem;
    }

    .job-summary__card {
        position: sticky;
        top: 13rem;
        padding-left: 2.4rem;
        padding-right: 2.4rem;
    }

    /* Buttons */
    .btn--mobile-only {
        display: none;
    }

    .job-summary .btn {
        display: flex;
    }
}

/* =========================================
   8. RESPONSIVE STYLES (Desktop - 1024px+)
   ========================================= */
@media (min-width: 1024px) {

    /* Header & Layout */
    .job-details__header .job-details__title {
        padding: 0 8rem;
    }

    .job-details__breadcrumb {
        padding: 0 8rem;
    }

    .job-details__container {
        padding: 8rem;
    }

    /* Content Spacing */
    .job-description {
        margin-bottom: 0;
    }

    .job-description__meta {
        margin-bottom: 4.7rem;
    }

    /* Sidebar */
    .job-summary__card {
        padding: 2.4rem 3.2rem;
    }

    .job-summary__title {
        margin-bottom: 2.4rem;
    }

    .job-summary__list {
        margin-bottom: 2.4rem;
    }
}

.job-summary__item ul li {
    margin: 0;
    color: var(--color-black);
    font-family: "NeueHaasUnicaPro", sans-serif;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2.4rem;
    letter-spacing: 0.02rem;
    word-break: break-word;
 }