html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #000;
    color: #fff;
    font-family: 'Google Sans', 'Google Sans Flex', sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: inherit;
}


img {
    max-width: 100%;
    height: auto;
}
/* Shell + notch */
.details-shell {
    position: relative;
    background: #000;
    padding: 28px 28px 0;
    overflow: visible;
}

.nav-notch {
    position: absolute;
    top: 28px;
    left: 50%;
    z-index: 40;
    width: 492px;
    height: 38px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: visible;
}

.nav-notch-bg {
    position: absolute;
    inset: 0;
    background: #000;
    clip-path: polygon(0 0, 100% 0, 93.089% 100%, 6.911% 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 93.089% 100%, 6.911% 100%);
    pointer-events: none;
}

.nav {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0 28px;
    width: 100%;
    display: flex;
    gap: clamp(16px, 4vw, 46px);
    align-items: center;
    justify-content: center;
    transform: translateY(-3px);
    pointer-events: auto;
}

.nav li {
    flex-shrink: 0;
}

.nav li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Google Sans', 'Google Sans Flex', sans-serif;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav li a:hover {
    color: #fff;
}

/* Hero with blue glow */
.details-hero {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 28px 28px 0 0;
    isolation: isolate;
    overflow: hidden;
}

.details-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 320px;
    background: url("../assets/C-Subtract.png") center top / cover no-repeat;
    border-radius: 28px 28px 0 0;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, 0.5) 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, 0.5) 78%, transparent 100%);
    pointer-events: none;
}

.details-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 56px 0;
    min-height: 38px;
}

.nex {
    width: 213px;
    height: auto;
    display: block;
}

.btn2 {
    color: white;
    font-family: 'Google Sans', 'Google Sans Flex', sans-serif;
    font-size: 15px;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.08);
    min-width: 171px;
    height: 52px;
    padding: 0 24px;
    border-radius: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    flex-shrink: 0;
}

.btn2 img {
    width: 14px;
    height: 14px;
}

.details-intro {
    position: relative;
    z-index: 1;
    padding: 100px 56px 56px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 36px;
    font-size: 13px;
    font-family: 'Google Sans', 'Google Sans Flex', sans-serif;
    color: rgba(255, 255, 255, 0.45);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.65);
}

.job-title {
    margin: 0 0 36px;
    font-family: 'Neue Montreal', 'Google Sans', sans-serif;
    font-size: clamp(52px, 6.5vw, 86px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: #fff;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
    max-width: 100%;
}

.job-meta-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 clamp(20px, 3vw, 44px);
    min-width: 0;
    flex: 0 1 auto;
}

.job-meta-item:first-child {
    padding-left: 0;
}

.job-meta-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #B8BABD;
    font-size: 12px;
    font-family: 'Google Sans', 'Google Sans Flex', sans-serif;
    font-weight: 400;
    line-height: 1.4;
}

.job-meta-label img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.85;
}

.job-meta-value {
    margin: 0;
    color: #fff;
    font-family: 'Google Sans', 'Google Sans Flex', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.job-meta-divider {
    width: 1px;
    height: 46px;
    background: rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}

/* Body content */
.job-details {
    position: relative;
    z-index: 1;
    padding: 8px 84px 64px;
    background: #000;
}

.content-block {
    margin-top: 32px;
}

.content-block:first-child {
    margin-top: 0;
}

.content-block h2 {
    margin: 0 0 18px;
    font-family: 'Google Sans', 'Google Sans Flex', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}

.content-block p {
    margin: 0 0 20px;
    max-width: 1180px;
    color: rgba(255, 255, 255, 0.58);
    font-family: 'Google Sans', 'Google Sans Flex', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
}

.content-block p:last-child {
    margin-bottom: 0;
}

.btn-apply-large {
    margin-top: 36px;
    height: 48px;
    min-width: 168px;
    padding: 0 28px;
    color: #fff;
    font-family: 'Google Sans', 'Google Sans Flex', sans-serif;
    font-size: 14px;
    font-weight: 400;
    background: #2D8D9A;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 80px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-apply-large img {
    width: 12px;
    height: 12px;
}

/* Footer — defined top, open bottom */
.footer {
    position: relative;
    width: calc(100% - 56px);
    margin: 24px auto 0;
    padding: 48px 56px 48px;
    background: url("../assets/careers-footer-1.png") center top / cover no-repeat;
    border-radius: 30px 30px 0 0;
    color: white;
}

.footer-content {
    position: relative;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 36px;
}

.footer-brand {
    max-width: 420px;
}

.footer-logo {
    width: 180px;
    margin-bottom: 16px;
    display: block;
}

.footer-text {
    font-size: 14px;
    font-family: 'Google Sans', 'Google Sans Flex', sans-serif;
    line-height: 1.7;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.footer-links {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.footer-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
}

.footer-bottom-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 24px;
}

.footer-middle {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 12px;
    max-height: 140px;
    align-content: flex-start;
}

.social-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    align-self: center;
    font-size: 12px;
    opacity: 0.75;
}

.footer-bottom p {
    margin: 0;
}

.footer-info {
    display: flex;
    gap: 64px;
    justify-self: end;
}

.contact-info,
.location {
    line-height: 1.8;
    font-size: 12px;
    font-family: 'Google Sans', 'Google Sans Flex', sans-serif;
}

@media (max-width: 1100px) {
    .details-header,
    .details-intro {
        padding-left: 40px;
        padding-right: 40px;
    }

    .job-details {
        padding-left: 48px;
        padding-right: 48px;
    }

    .job-meta-item {
        padding: 0 28px;
    }
}

@media (max-width: 900px) {
    .nav-notch {
        width: min(420px, calc(100% - 40px));
        height: 36px;
    }

    .nav {
        gap: clamp(14px, 3.5vw, 28px);
        padding: 0 22px;
    }

    .details-header,
    .details-intro,
    .job-details {
        padding-left: 28px;
        padding-right: 28px;
    }

    .details-intro {
        padding-top: 72px;
        padding-bottom: 40px;
    }

    .nex {
        width: min(180px, 42vw);
    }

    .job-title {
        font-size: clamp(40px, 7vw, 64px);
        margin-bottom: 28px;
    }

    .job-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .job-meta-item {
        padding: 0;
    }

    .job-meta-divider {
        width: 100%;
        height: 1px;
    }

    .footer {
        width: calc(100% - 32px);
        padding: 40px 28px 36px;
    }

    .footer-middle {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
    }
}

@media (max-width: 720px) {
    .details-shell {
        padding: 16px 16px 0;
    }

    .nav-notch {
        top: 16px;
        width: min(340px, calc(100% - 24px));
        height: 34px;
    }

    .nav {
        gap: 12px;
        padding: 0 16px;
        transform: translateY(-2px);
    }

    .nav li a {
        font-size: 12px;
    }

    .details-header {
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 10px;
    }

    .btn2 {
        min-width: 140px;
        height: 44px;
        font-size: 13px;
    }

    .details-header,
    .details-intro,
    .job-details {
        padding-left: 20px;
        padding-right: 20px;
    }

    .details-intro {
        padding-top: 56px;
    }

    .breadcrumb {
        margin-bottom: 24px;
    }

    .job-title {
        font-size: clamp(32px, 8vw, 44px);
    }

    .btn-apply-large {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    .footer-bottom-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        order: 3;
    }

    .footer-info {
        justify-self: start;
        flex-direction: column;
        gap: 20px;
    }
}
