.job-detail-heading {
    padding: 20px 0 28px;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(circle at 91% 57%, transparent 0 92px, rgba(196, 0, 11, .04) 93px 94px, transparent 95px 122px, rgba(196, 0, 11, .03) 123px 124px, transparent 125px), #fff;
}

.detail-breadcrumb {
    margin-bottom: 26px;
    color: #8b929d;
    font-size: 12px;
}

.detail-breadcrumb a {
    color: #8b929d;
}

.detail-breadcrumb .active {
    max-width: 440px;
    overflow: hidden;
    color: #505864;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}

.detail-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.job-detail-heading h1 {
    margin: 0;
    font-size: clamp(2.15rem, 3vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.12;
}

.detail-featured-badge {
    padding: 6px 12px;
    border-radius: 20px;
    background: #fff1cf;
    color: #8b6200;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-company {
    margin: 0 0 18px;
    color: #343c48;
    font-size: 14px;
    font-weight: 600;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 24px;
    color: #5f6875;
    font-size: 12px;
}

.detail-meta span {
    position: relative;
}

.detail-meta span:not(:last-of-type)::after {
    position: absolute;
    top: 50%;
    right: -13px;
    width: 3px;
    height: 3px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #b8bec6;
    content: "";
}

.detail-meta strong {
    padding: 7px 16px;
    border-radius: 24px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
}

.detail-hero-visual {
    display: grid;
    min-height: 205px;
    place-items: center;
    border: 1px solid rgba(196, 0, 11, .08);
    border-radius: 12px;
    background: linear-gradient(140deg, #fff7f7, #fff);
    color: rgba(196, 0, 11, .34);
}

.job-detail-main {
    padding: 28px 0 40px;
    background: #fff;
}

.detail-card {
    padding: 0 28px 28px;
}

.detail-section {
    padding: 27px 0;
    border-bottom: 1px solid var(--line);
}

.detail-section h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0;
}

.detail-icon {
    display: inline-grid;
    width: 30px;
    flex: 0 0 30px;
    place-items: center;
    color: var(--brand);
}

.job-text {
    color: #515b67;
    font-size: 13px;
    line-height: 1.75;
    white-space: pre-line;
}

.job-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 42px;
}

.job-info-grid p {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 14px;
    margin: 0;
    color: #515b67;
    font-size: 13px;
    line-height: 1.55;
}

.job-info-grid strong {
    color: #151b27;
}

.apply-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    padding: 22px;
    border-radius: 9px;
    background: linear-gradient(90deg, #fff7f7, #fff);
}

.apply-icon,
.resume-icon,
.cv-icon {
    display: grid;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
}

.apply-strip > div:nth-child(2) {
    flex: 1;
}

.apply-strip h2,
.resume-strip h2,
.cv-card h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

.apply-strip p,
.resume-strip p,
.cv-card p {
    margin: 0;
    color: #596270;
    font-size: 13px;
    line-height: 1.55;
}

.apply-button {
    min-width: 190px;
    justify-content: space-between;
}

.apply-strip form {
    margin: 0;
}

.apply-button--completed {
    color: #17663a;
    background: #e3f6eb;
    border: 1px solid #bde6cc;
    cursor: default;
}

.job-application-alert {
    margin-bottom: 22px;
    padding: 14px 17px;
    border-radius: 7px;
    font-weight: 700;
}

.job-application-alert.is-success {
    color: #17663a;
    background: #e5f7ec;
    border: 1px solid #bde6cc;
}

.job-application-alert.is-info {
    color: #0b4f8a;
    background: #e5f2ff;
    border: 1px solid #bfddf8;
}

.detail-sidebar {
    display: grid;
    gap: 16px;
    align-content: start;
}

.side-card {
    padding: 22px;
}

.side-card h2 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-buttons a,
.share-buttons button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-weight: 800;
}

.share-buttons .linkedin {
    background: #0878b9;
}

.share-buttons .whatsapp {
    background: #2fc36b;
}

.share-buttons .facebook {
    background: #4d70b8;
}

.share-buttons .copy {
    background: #eef0f3;
    color: #596270;
}

.copy-feedback {
    min-height: 18px;
    margin: 8px 0 0;
    color: #55705d;
    font-size: 11px;
}

.related-card {
    padding-bottom: 18px;
}

.related-job {
    position: relative;
    margin-bottom: 10px;
    padding: 14px 38px 14px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(20, 26, 36, .03);
}

.related-job h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
}

.related-job h3 a {
    color: #1d2430;
}

.related-job h3 a:hover {
    color: var(--brand);
}

.related-job p {
    margin: 3px 0;
    color: #66707d;
    font-size: 10px;
}

.related-job-arrow {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--brand);
    font-size: 32px;
    line-height: 1;
}

.all-jobs-link {
    display: block;
    margin-top: 12px;
    color: var(--brand);
    text-align: right;
    font-size: 13px;
    font-weight: 700;
}

.cv-card {
    background: linear-gradient(140deg, #fff, #fff5f5);
}

.cv-card .cv-icon {
    margin-bottom: 16px;
}

.cv-card p {
    margin-bottom: 20px;
}

.cv-button {
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
}

.resume-strip {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding: 26px 38px;
    background: linear-gradient(100deg, #fff7f7, #fff);
}

.resume-strip > div:nth-child(2) {
    flex: 1;
}

.resume-button {
    min-width: 225px;
    justify-content: space-between;
}

.job-ended-card {
    margin-top: 18px;
    padding: 48px 28px;
    text-align: center;
}

.job-ended-card h1 {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.job-ended-card p {
    max-width: 560px;
    margin: 0 auto 24px;
    color: #65707c;
}

@media (max-width: 991.98px) {
    .detail-hero-visual {
        min-height: 150px;
    }

    .apply-strip,
    .resume-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .apply-button,
    .resume-button {
        width: 100%;
    }

    .detail-sidebar {
        margin-top: 8px;
    }
}

@media (max-width: 767.98px) {
    .detail-breadcrumb {
        margin-bottom: 20px;
    }

    .detail-breadcrumb .active {
        max-width: 180px;
    }

    .job-detail-heading h1 {
        font-size: 2rem;
    }

    .detail-meta {
        gap: 8px 16px;
    }

    .detail-meta span:not(:last-of-type)::after {
        right: -9px;
    }

    .detail-card {
        padding: 0 18px 20px;
    }

    .job-info-grid {
        grid-template-columns: 1fr;
    }

    .job-info-grid p {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .resume-strip {
        padding: 22px;
    }
}
