/* 공개 채용 홈 이미지형 메인 레이아웃을 정의한다. */
.recruit-home-page {
    background: var(--k-bg-white);
}

/* 공개 홈 본문을 헤더 바로 아래부터 전체 너비로 표시합니다. */
body.frit-home-page .recruit-home-main {
    padding: 0 0 80px;
    background: var(--k-bg-white);
}

/* 전체 너비 섹션의 순서는 문서 흐름을 따르고 콘텐츠 높이는 데이터에 맞춥니다. */
body.frit-home-page .recruit-home-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 0;
}

/* 피그마의 원본 사진 위에 흰색 소개 문구를 중앙 정렬합니다. */
body.frit-home-page .frit-home-hero {
    position: relative;
    isolation: isolate;
    min-height: 500px;
    padding: 60px 32px;
    overflow: hidden;
    background: var(--k-text-black);
}

/* 사진은 피그마의 중앙 확대 비율을 유지하며 본문 높이에 영향을 주지 않습니다. */
body.frit-home-page .frit-home-hero-image {
    position: absolute;
    z-index: 0;
    top: -78.02%;
    left: 0;
    width: 100%;
    max-width: none;
    height: 256.03%;
    object-fit: fill;
    pointer-events: none;
}

/* 사진 위 검정 오버레이로 피그마의 65% 명암과 글자 대비를 유지합니다. */
body.frit-home-page .frit-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--k-text-black);
    opacity: 0.65;
    pointer-events: none;
}

/* 사진과 분리된 실제 텍스트로 제목의 줄바꿈과 반응형 크기를 제어합니다. */
body.frit-home-page .frit-home-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: min(1260px, 100%);
    word-break: keep-all;
    overflow-wrap: break-word;
}

body.frit-home-page .frit-home-hero-eyebrow {
    margin: 0;
    color: var(--frit-white);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

body.frit-home-page .frit-home-hero-title {
    color: var(--frit-white);
    font-size: 72px;
    font-weight: 600;
    line-height: 1.4;
}

/* 프로젝트 표면은 전체 너비로, 카드와 제목은 1260px 중심축에 배치합니다. */
body.frit-home-page .recruit-content-section {
    padding-block: 60px;
}

body.frit-home-page .recruit-content-inner {
    width: calc(100% - 64px);
    max-width: 1260px;
    margin-inline: auto;
}

body.frit-home-page .recruit-content-section.is-popular {
    background: var(--frit-talent-skill-background);
}

/* 신규 프로젝트 아래에 전폭 배너 원본을 80px 높이로 표시합니다. */
body.frit-home-page .frit-home-promo {
    border-radius: 0;
}

body.frit-home-page .frit-home-promo a,
body.frit-home-page .frit-home-promo picture {
    display: block;
}

body.frit-home-page .frit-home-promo img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: center;
}

body.frit-home-page .frit-home-promo a:focus-visible {
    outline: 3px solid var(--frit-primary);
    outline-offset: -3px;
}

/* 공개 채용 홈 이미지형 섹션 헤더를 정의한다. */
.recruit-section-head {
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 0;
    border-bottom: none;
}

/* 공개 채용 홈 이미지형 섹션 제목을 정의한다. */
.recruit-section-title {
    margin-top: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--ref-ink);
}

/* 공개 채용 홈 이미지형 더보기 링크를 정의한다. */
.recruit-section-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-color: var(--ref-warm-200);
    border-radius: var(--k-radius-pill);
    background: var(--k-bg-white);
    color: var(--k-text-gray);
    font-size: 13px;
    font-weight: 600;
    justify-content: center;
    line-height: 1;
}

/* 공개 채용 홈 이미지형 더보기 화살표를 정의한다. */
.recruit-section-link::after {
    content: "";
    display: inline-flex;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--k-text-gray);
    border-bottom: 2px solid var(--k-text-gray);
    transform: rotate(-45deg) skew(6deg, 6deg);
    transform-origin: center;
}

/* 공개 채용 홈 하단 배너 섹션을 정의한다. */
.recruit-bottom-banner-section {
    margin-top: 0;
}

/* 공개 채용 홈 하단 단일 배너를 정의한다. */
.recruit-bottom-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 84px;
    padding: 0 42px;
    border-radius: var(--k-radius-md);
    background: var(--ref-ink);
    color: var(--k-bg-white);
    text-decoration: none;
    overflow: hidden;
}

/* 공개 채용 홈 하단 배너 문구 영역을 정의한다. */
.recruit-bottom-banner-copy {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    font-size: 22px;
    font-weight: 500;
    white-space: nowrap;
}

/* 공개 채용 홈 하단 배너 강조 문구를 정의한다. */
.recruit-bottom-banner-copy strong {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
    color: var(--k-bg-white);
}

/* 공개 채용 홈 하단 배너 첫 이용 문구를 정의한다. */
.recruit-bottom-banner-copy em {
    padding: 0 4px;
    background: var(--ref-accent-green);
    color: var(--ref-ink);
    font-style: normal;
}

/* 공개 채용 홈 하단 배너 행동 버튼을 정의한다. */
.recruit-bottom-banner-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--k-radius-pill);
    background: var(--ref-accent-orange);
    color: var(--ref-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

/* 공개 채용 홈 광고 문의 모달의 입력 영역을 정의한다. */
.recruit-inquiry-modal .input-freemode,
.recruit-inquiry-modal .contact-modal-textarea {
    width: 100%;
    box-sizing: border-box;
}

/* 공개 채용 홈 광고 문의 모달의 본문 입력 높이를 정의한다. */
.recruit-inquiry-modal .contact-modal-textarea {
    min-height: 180px;
    color: var(--ref-ink);
    line-height: 1.6;
}

/* 공개 채용 홈 하단 배너 장식 아이콘을 정의한다. */
.recruit-bottom-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--k-radius-sm);
    background: var(--k-bg-white);
    color: var(--ref-accent-orange);
    font-size: 24px;
    transform: rotate(-14deg);
}

/* 공개 채용 홈 하단 배너 우측 장식 아이콘을 정의한다. */
.recruit-bottom-banner-icon.is-right {
    color: var(--ref-accent-blue);
    transform: rotate(10deg);
}

/* 태블릿 이하 이미지형 채용 홈 레이아웃을 정의한다. */
@media (max-width: 1200px) {
    .recruit-bottom-banner {
        gap: 18px;
        padding: 22px;
    }

    .recruit-bottom-banner-copy {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 18px;
        white-space: normal;
    }

    .recruit-bottom-banner-copy strong {
        font-size: 26px;
    }

}

/* 좁은 태블릿에서는 배너 문구와 사진이 잘리지 않도록 모바일 자산과 중앙 자르기를 사용합니다. */
@media (max-width: 1023px) {
    body.frit-home-page .frit-home-promo img {
        height: auto;
    }

    body.frit-home-page .frit-home-hero-image {
        object-fit: cover;
    }
}

/* 모바일 이미지형 채용 홈 레이아웃을 정의한다. */
@media (max-width: 768px) {
    /* 프릿 홈의 모바일 섹션 간격을 공통 홈 스타일보다 우선 적용합니다. */
    body.frit-home-page .recruit-home-shell {
        gap: 52px;
    }

    body.frit-home-page .recruit-home-main {
        padding-bottom: 52px;
    }

    body.frit-home-page .frit-home-hero {
        min-height: 420px;
        padding: 52px 20px;
    }

    body.frit-home-page .frit-home-hero-eyebrow {
        font-size: 20px;
    }

    body.frit-home-page .frit-home-hero-title {
        font-size: 36px;
    }

    body.frit-home-page .recruit-content-section {
        padding-block: 0;
    }

    body.frit-home-page .recruit-content-inner {
        width: calc(100% - 40px);
    }

    /* 모바일의 52px 간격을 유지하며 인기 영역의 배경 여백을 확보합니다. */
    body.frit-home-page .recruit-content-section.is-popular {
        padding-block: 26px;
        margin-block: -26px;
    }

    .recruit-section-head {
        align-items: stretch;
        gap: 12px;
        margin-bottom: 18px;
    }

    .recruit-section-link {
        width: fit-content;
    }

    .recruit-bottom-banner {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
    }

    .recruit-bottom-banner-icon.is-right {
        display: none;
    }

    .recruit-bottom-banner-action {
        width: 100%;
    }

}
