/* =========================================================
   수정본 파일명 : qualification.css
   다운로드용 TXT : qualification.css.txt
   ---------------------------------------------------------
   적용 프로젝트 : 하우징개봉 청년안심주택 웹사이트
   원본 기준     : 사용자가 업로드한 qualification.css
   수정일        : 2026-05-03
   ---------------------------------------------------------
   [기존 대화 반영 사항]
   1. 사이트 대표 컬러는 #006655 기준으로 유지합니다.
   2. 정적 리소스 경로는 /hgaebong/assets/... 기준을 유지합니다.
   3. PC / 태블릿 / 모바일 반응형 구조를 유지합니다.
   4. header.css, index.css, footer.css가 함께 로딩되어도 충돌이 적도록 구성합니다.
   5. 서브페이지 상단 비주얼 영역은 과도하게 높아지지 않도록 compact 기준을 유지합니다.
   6. 유지보수자가 CSS 역할을 쉽게 파악할 수 있도록 한글 주석을 보강했습니다.
   7. 사용자의 브라우저 모션 최소화 설정을 고려했습니다.
   ========================================================= */

/* =========================================================
   qualification.css
   ---------------------------------------------------------
   자격요건 본 페이지 전용 스타일
   ---------------------------------------------------------
   저장 경로 : /hgaebong/assets/css/qualification.css
   ========================================================= */

:root {
    --ql-primary: #006655;
    --ql-primary-dark: #01483c;
    --ql-primary-deep: #003d33;
    --ql-primary-soft: #edf6f3;
    --ql-primary-soft-2: #f6fbf9;
    --ql-primary-soft-3: #e6f2ee;

    --ql-text-main: #1b2624;
    --ql-text-sub: #667570;
    --ql-text-light: #8a9894;
    --ql-text-white: #ffffff;

    --ql-border: #d7e5e1;
    --ql-border-strong: #b9d4cc;
    --ql-bg-soft: #f8fbfa;

    --ql-shadow: 0 16px 38px rgba(0, 102, 85, 0.08);
    --ql-shadow-hover: 0 22px 46px rgba(0, 102, 85, 0.12);

    --ql-radius-md: 22px;
    --ql-radius-lg: 30px;

    --ql-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /*
       개별 서브페이지 CSS가 단독 로딩되는 경우에도
       공통 헤더와 비슷한 글꼴 기준을 유지하기 위한 안전 장치입니다.
    */
    font-family:
        "Pretendard",
        "Noto Sans KR",
        "Malgun Gothic",
        "Apple SD Gothic Neo",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    margin: 0;
    padding: 0;
    color: var(--ql-text-main);
    background: #ffffff;
    overflow-x: hidden;
    word-break: keep-all;
}

.qualification-page {
    width: 100%;
    background:
        radial-gradient(circle at top left, rgba(0, 102, 85, 0.04), transparent 20%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

.sub-hero-section {
    position: relative;
    width: 100%;
    min-height: 140px; /* 기존 대화 반영: 서브페이지 상단 배경 높이를 compact 기준으로 유지 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 20px;
    background:
        linear-gradient(135deg, rgba(0, 102, 85, 0.92), rgba(1, 72, 60, 0.88)),
        url("/hgaebong/assets/images/index/slide1.webp") center center / cover no-repeat;
    overflow: hidden;
}

.sub-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.10), transparent 28%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.08), transparent 24%),
        rgba(0, 0, 0, 0.08);
}

.sub-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--ql-width);
    margin: 0 auto;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.84);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.breadcrumb a:hover {
    opacity: 0.78;
}

.breadcrumb-separator {
    opacity: 0.7;
}

.breadcrumb-current {
    font-weight: 700;
    color: #ffffff;
}

.sub-hero-title {
    margin: 0 0 10px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.sub-hero-description {
    margin: 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.page-content-wrap {
    width: 100%;
    max-width: var(--ql-width);
    margin: 0 auto;
    padding: 85px 20px 110px;
}

.qualification-intro-section,
.qualification-section,
.qualification-bottom-guide {
    width: 100%;
}

.section-title-wrap {
    margin-bottom: 34px;
}

.section-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--ql-primary);
}

.section-title {
    margin: 0 0 16px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.03em;
    color: var(--ql-text-main);
}

.section-description {
    max-width: 900px;
    margin: 0;
    font-size: 17px;
    line-height: 1.85;
    color: var(--ql-text-sub);
}

.current-standard-banner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
    padding: 22px 24px;
    border: 1px solid rgba(0, 102, 85, 0.14);
    border-radius: var(--ql-radius-md);
    background: linear-gradient(180deg, #f9fcfb 0%, #eff8f5 100%);
    box-shadow: var(--ql-shadow);
}

.current-standard-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: var(--ql-primary);
}

.current-standard-head .material-symbols-rounded {
    font-size: 24px;
}

.current-standard-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    color: var(--ql-text-sub);
}

.current-standard-text strong {
    color: var(--ql-primary-deep);
}

.qualification-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 46px;
}

.summary-card {
    position: relative;
    padding: 28px 24px 26px;
    border: 1px solid var(--ql-border);
    border-radius: var(--ql-radius-md);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    box-shadow: var(--ql-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ql-shadow-hover);
    border-color: rgba(0, 102, 85, 0.24);
}

.summary-card-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ql-primary), var(--ql-primary-dark));
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.summary-card-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--ql-text-main);
}

.summary-card-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--ql-text-sub);
}

.qualification-section {
    margin-bottom: 34px;
}

.content-card {
    padding: 34px 34px 38px;
    border: 1px solid var(--ql-border);
    border-radius: var(--ql-radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    box-shadow: var(--ql-shadow);
}

.content-card-header {
    margin-bottom: 30px;
}

.content-card-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--ql-primary);
}

.content-card-title {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: var(--ql-text-main);
}

.content-card-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ql-text-sub);
}

.qualification-subsection {
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.qualification-subsection:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.subsection-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.subsection-badge {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #dff2eb, #cfe8df);
    border: 1px solid #afd4c8;
    color: var(--ql-primary);
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 102, 85, 0.12);
}

.subsection-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--ql-text-main);
}

.subsection-caption {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ql-text-sub);
}

.inline-info-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.inline-info-icon {
    font-size: 28px;
    color: var(--ql-primary);
    flex-shrink: 0;
}

.inline-info-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--ql-text-main);
}

.inline-info-body {
    padding-left: 0;
}

.inline-info-main-text {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--ql-text-main);
}

.inline-info-sub-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--ql-text-sub);
}

.inline-info-paragraph {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.85;
    color: var(--ql-text-main);
}

.inline-info-paragraph:last-child {
    margin-bottom: 0;
}

.quick-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.quick-check-card {
    padding: 24px 22px;
    border: 1px solid var(--ql-border);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
    box-shadow: 0 12px 30px rgba(0, 102, 85, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.quick-check-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ql-shadow-hover);
    border-color: rgba(0, 102, 85, 0.22);
}

.income-guide-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 2px;
}

.income-guide-item {
    padding: 2px 0 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.income-guide-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.requirement-box {
    padding: 24px 24px 22px;
    border: 1px solid #dfe6e3;
    border-radius: var(--ql-radius-md);
    background: linear-gradient(180deg, #fafdfc 0%, #f6fbf9 100%);
}

.requirement-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.requirement-main-item {
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.requirement-main-item:first-child {
    padding-top: 0;
}

.requirement-main-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.requirement-main-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.requirement-icon {
    font-size: 24px;
    color: var(--ql-primary);
    flex-shrink: 0;
}

.requirement-label {
    display: inline-block;
    font-size: 17px;
    font-weight: 800;
    color: var(--ql-text-main);
}

.requirement-main-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--ql-text-main);
    padding-left: 34px;
}

.requirement-subtext {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--ql-text-light);
}

.bullet-note-group {
    margin-top: 16px;
    padding: 18px 20px;
    border-left: 4px solid rgba(0, 102, 85, 0.16);
    border-radius: 0 16px 16px 0;
    background: var(--ql-bg-soft);
}

.bullet-note-group p {
    margin: 0 0 9px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--ql-text-sub);
}

.bullet-note-group p:last-child {
    margin-bottom: 0;
}

.compact-note {
    margin-top: 14px;
}

.table-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
}

.qualification-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--ql-border);
    border-radius: 18px;
    background: #ffffff;
}

.qualification-table thead th {
    padding: 16px 14px;
    background: linear-gradient(180deg, #eef6f3 0%, #e5f0ec 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #335a52;
}

.qualification-table thead th:last-child {
    border-right: none;
}

.qualification-table tbody td {
    padding: 18px 16px;
    border-right: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    vertical-align: middle;
    text-align: center;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ql-text-main);
    background: #ffffff;
}

.qualification-table tbody tr:nth-child(even) td {
    background: #fcfefd;
}

.qualification-table tbody td:last-child {
    border-right: none;
}

.qualification-table tbody tr:last-child td {
    border-bottom: none;
}

.mini-table-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.mini-table-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--ql-text-main);
}

.table-year-label {
    display: inline-block;
    margin-left: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ql-primary);
}

.mini-table-unit {
    font-size: 14px;
    font-weight: 700;
    color: var(--ql-text-light);
    white-space: nowrap;
}

.bottom-guide-box {
    padding: 30px 28px;
    border-radius: var(--ql-radius-md);
    border: 1px solid var(--ql-border);
    background: linear-gradient(135deg, rgba(0, 102, 85, 0.95), rgba(1, 72, 60, 0.92));
    box-shadow: var(--ql-shadow);
}

.bottom-guide-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
}

.bottom-guide-text {
    margin: 0;
    max-width: 980px;
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.92);
}

.reveal {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-up {
    transform: translateY(44px);
}

.reveal-left {
    transform: translateX(-44px);
}

.reveal-right {
    transform: translateX(44px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 1180px) {
    .qualification-summary-grid {
        grid-template-columns: 1fr;
    }

    .quick-check-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-card {
        padding: 30px 28px 34px;
    }
}

@media (max-width: 900px) {
    .sub-hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 34px;
    }

    .content-card-title {
        font-size: 28px;
    }

    .subsection-title {
        font-size: 23px;
    }

    .mini-table-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .sub-hero-section {
        min-height: 180px;
        padding: 42px 16px 24px;
    }

    .sub-hero-title {
        font-size: 28px;
    }

    .page-content-wrap {
        padding: 55px 16px 80px;
    }

    .section-title {
        font-size: 28px;
    }

    .content-card {
        padding: 22px 18px 26px;
    }

    .content-card-title {
        font-size: 24px;
    }

    .quick-check-grid {
        grid-template-columns: 1fr;
    }

    .subsection-badge {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .subsection-title {
        font-size: 21px;
    }

    .inline-info-title {
        font-size: 18px;
    }

    .requirement-main-body {
        padding-left: 0;
        font-size: 14px;
    }

    .qualification-table {
        min-width: 720px;
    }

    .bottom-guide-title {
        font-size: 22px;
    }

    .bottom-guide-text {
        font-size: 14px;
    }
}


/* =========================================================
   공통 이미지 안전 처리
   ---------------------------------------------------------
   이미지가 부모 영역보다 커져 가로 스크롤이 생기는 문제를 방지합니다.
   ========================================================= */
img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   접근성 보완 : 모션 최소화 설정 대응
   ---------------------------------------------------------
   사용자의 브라우저 또는 OS에서 '동작 줄이기'가 설정되어 있으면
   스크롤 등장 애니메이션, 슬라이드 텍스트 애니메이션, hover 이동 효과를 최소화합니다.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal,
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal.show,
    .reveal.active {
        opacity: 1;
        filter: none;
        transform: none;
    }
}
