.job-detail {
    padding: 26px 0 76px;
    background:
        radial-gradient(
            circle at 8% 3%,
            rgba(37, 87, 167, 0.07),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #f8fafc 0,
            #ffffff 320px
        );
}

.job-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 24px;
    margin-top: 22px;
}

.job-detail__main,
.apply-card,
.job-summary,
.job-detail__trust {
    background: var(--surface);
    border: 1px solid #e4e9f0;
    box-shadow: 0 14px 42px rgba(22, 38, 62, 0.06);
}

.job-detail__main {
    overflow: hidden;
    border-radius: 18px;
}

.job-detail__header {
    position: relative;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 20px;
    padding: 31px;
    background:
        linear-gradient(
            135deg,
            rgba(37, 87, 167, 0.055),
            rgba(255, 255, 255, 0) 55%
        ),
        #ffffff;
    border-bottom: 1px solid #e7ebf1;
}

.job-detail__header-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 190px;
    height: 6px;
    background: linear-gradient(
        90deg,
        var(--primary),
        #5f8fe1
    );
    border-radius: 0 0 0 10px;
}

.job-detail__company-logo {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #f4f7fc, #ffffff);
    border: 1px solid #dfe6ef;
    border-radius: 16px;
    box-shadow: 0 7px 20px rgba(26, 54, 92, 0.08);
}

.job-detail__company-logo img {
    width: 100%;
    height: 100%;
    padding: 9px;
    object-fit: contain;
}

.job-detail__company-logo span {
    color: var(--primary);
    font-size: 29px;
    font-weight: 550;
}

.job-detail__heading {
    min-width: 0;
}

.job-detail__label {
    width: max-content;
    margin-bottom: 8px;
    padding: 5px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    background: rgba(37, 87, 167, 0.09);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 550;
    letter-spacing: 0.2px;
}

.job-detail__header h1 {
    margin: 0;
    color: #182334;
    font-size: clamp(26px, 3vw, 35px);
    font-weight: 550;
    line-height: 1.22;
    letter-spacing: -0.75px;
}

.job-detail__company {
    margin: 7px 0 15px;
    color: #596679;
    font-size: 15px;
}

.job-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-detail__meta span {
    min-height: 31px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #536173;
    background: #f5f7fa;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    font-size: 12px;
}

.job-detail__meta svg {
    color: var(--primary);
    flex: 0 0 auto;
}

.job-detail__section {
    padding: 30px;
}

.job-detail__section + .job-detail__section {
    border-top: 1px solid #e8ecf1;
}

.job-detail__section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.job-detail__section-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--primary);
    background: rgba(37, 87, 167, 0.09);
    border-radius: 11px;
}

.job-detail__section-heading h2 {
    margin: 0;
    color: #1b2738;
    font-size: 19px;
    font-weight: 550;
}

.job-detail__section-heading p {
    margin: 3px 0 0;
    color: #8a95a4;
    font-size: 12px;
}

.job-detail__content {
    color: #3f4a59;
    font-size: 14px;
    line-height: 1.88;
    overflow-wrap: anywhere;
}

.job-detail__content p {
    margin: 0 0 15px;
}

.job-detail__content p:last-child {
    margin-bottom: 0;
}

.job-detail__content ul,
.job-detail__content ol {
    margin: 14px 0;
    padding-left: 23px;
}

.job-detail__content li {
    margin-bottom: 8px;
}

.job-detail__content strong,
.job-detail__content b {
    color: #263448;
    font-weight: 550;
}

.job-detail__notice {
    margin: 0;
    padding: 24px 30px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    background: #f7faff;
    border-top: 1px solid #e4eaf3;
}

.job-detail__notice-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #315f9f;
    background: #e8f1ff;
    border-radius: 10px;
}

.job-detail__notice h2 {
    margin: 0 0 5px;
    color: #25364d;
    font-size: 15px;
    font-weight: 550;
}

.job-detail__notice p {
    margin: 0;
    color: #647084;
    font-size: 13px;
    line-height: 1.7;
}

.job-detail__notice strong {
    color: #354760;
    font-weight: 550;
}

.job-detail__sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 15px;
}

.apply-card,
.job-summary {
    border-radius: 16px;
}

.apply-card {
    position: relative;
    overflow: hidden;
    padding: 27px 23px 23px;
    background:
        linear-gradient(
            155deg,
            rgba(37, 87, 167, 0.075),
            transparent 58%
        ),
        #ffffff;
}

.apply-card::before {
    content: "";
    position: absolute;
    top: -45px;
    right: -45px;
    width: 120px;
    height: 120px;
    background: rgba(37, 87, 167, 0.06);
    border-radius: 50%;
}

.apply-card__badge {
    position: relative;
    padding: 5px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #18815d;
    background: #eaf8f2;
    border: 1px solid #d8f0e6;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 550;
}

.apply-card__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #21a875;
    border-radius: 50%;
}

.apply-card__icon {
    width: 53px;
    height: 53px;
    margin: 20px 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(37, 87, 167, 0.1);
    border-radius: 14px;
}

.apply-card h2 {
    margin: 0 0 8px;
    color: #1d2a3c;
    font-size: 21px;
    font-weight: 550;
}

.apply-card p {
    margin: 0 0 20px;
    color: #6b7686;
    font-size: 13px;
    line-height: 1.65;
}

.apply-card__button {
    min-height: 49px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--primary),
        #376fca
    );
    border-radius: 10px;
    box-shadow: 0 9px 22px rgba(37, 87, 167, 0.2);
    font-size: 14px;
    font-weight: 550;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.apply-card__button:hover {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary)
    );
    box-shadow: 0 12px 27px rgba(37, 87, 167, 0.26);
    transform: translateY(-1px);
}

.apply-card small {
    display: block;
    margin-top: 13px;
    color: #8a94a2;
    text-align: center;
    font-size: 11px;
}

.job-summary {
    padding: 22px;
}

.job-summary__heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}

.job-summary__heading span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(37, 87, 167, 0.09);
    border-radius: 9px;
}

.job-summary h2 {
    margin: 0;
    color: #233147;
    font-size: 17px;
    font-weight: 550;
}

.job-summary dl {
    margin: 0;
}

.job-summary dl div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid #edf0f4;
}

.job-summary dt {
    color: #87919f;
    font-size: 12px;
}

.job-summary dd {
    margin: 0;
    color: #354155;
    text-align: right;
    font-size: 12px;
    font-weight: 500;
}

.job-summary dd a {
    color: var(--primary);
}

.job-detail__trust {
    padding: 15px 17px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #667386;
    border-radius: 13px;
    font-size: 11px;
    line-height: 1.55;
}

.job-detail__trust svg {
    flex: 0 0 auto;
    color: #23976e;
}

@media (max-width: 900px) {
    .job-detail__layout {
        grid-template-columns: 1fr;
    }

    .job-detail__sidebar {
        position: static;
    }

    .apply-card {
        order: 1;
    }
}

@media (max-width: 620px) {
    .job-detail {
        padding: 17px 0 48px;
    }

    .job-detail__layout {
        gap: 16px;
        margin-top: 16px;
    }

    .job-detail__main,
    .apply-card,
    .job-summary {
        border-radius: 13px;
    }

    .job-detail__header {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 13px;
        padding: 21px 18px;
    }

    .job-detail__header-accent {
        width: 115px;
        height: 5px;
    }

    .job-detail__company-logo {
        width: 56px;
        height: 56px;
        border-radius: 11px;
    }

    .job-detail__company-logo span {
        font-size: 22px;
    }

    .job-detail__label {
        margin-bottom: 6px;
        padding: 4px 7px;
        font-size: 10px;
    }

    .job-detail__header h1 {
        font-size: 22px;
        letter-spacing: -0.4px;
    }

    .job-detail__company {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .job-detail__meta {
        grid-column: 1 / -1;
        margin-left: -71px;
        margin-top: 15px;
    }

    .job-detail__meta span {
        min-height: 29px;
        padding: 5px 8px;
        font-size: 11px;
    }

    .job-detail__section {
        padding: 23px 19px;
    }

    .job-detail__section-heading {
        align-items: flex-start;
    }

    .job-detail__section-icon {
        width: 38px;
        height: 38px;
    }

    .job-detail__section-heading h2 {
        font-size: 17px;
    }

    .job-detail__content {
        font-size: 13px;
        line-height: 1.82;
    }

    .job-detail__notice {
        padding: 20px 18px;
    }

    .apply-card,
    .job-summary {
        padding: 21px 18px;
    }

    .apply-card__button {
        min-height: 47px;
    }
}