/* =========================================================
   수정본 파일명 : finance_support.css
   다운로드용 TXT : finance_support.css.txt
   ---------------------------------------------------------
   적용 프로젝트 : 하우징개봉 청년안심주택 웹사이트
   원본 기준     : 사용자가 업로드한 finance_support.css
   수정일        : 2026-05-03
   ---------------------------------------------------------
   [기존 대화 반영 사항]
   1. 사이트 대표 컬러는 #006655 기준으로 유지합니다.
   2. 이미지 및 정적 리소스 경로는 /hgaebong/assets/... 기준을 유지합니다.
   3. PC / 태블릿 / 모바일 반응형 구조를 유지합니다.
   4. 상단 서브 비주얼 영역은 과도하게 높아지지 않도록 기존 compact 높이 기준을 유지합니다.
   5. 유지보수자가 CSS 역할을 쉽게 파악할 수 있도록 한글 주석을 보강했습니다.
   6. 애니메이션을 지원하지 않거나 모션 최소화를 설정한 사용자 환경을 고려했습니다.
   ========================================================= */

/* =========================================================
   finance_support.css
   ---------------------------------------------------------
   모집안내 > 금융지원 페이지 전용 스타일
   ---------------------------------------------------------
   저장 경로 : /hgaebong/assets/css/finance_support.css

   [설명]
   - 기존 strength.css와 동일한 전체 톤과 구조를 유지
   - 상단 서브 비주얼 / 본문 공통 폭 / 섹션 제목 스타일 통일
   - 본문은 좌측 대표 비주얼 카드 + 우측 금융지원 링크 리스트 구조
   - 외부 링크 버튼은 세련되고 깔끔한 느낌으로 구성
   - 태블릿 / 모바일에서는 세로 1열 구조로 자동 전환
   ========================================================= */

/* =========================================================
   1. 공통 변수
   ========================================================= */
:root {
    --fs-primary: #006655;
    --fs-primary-dark: #01483c;
    --fs-primary-deep: #003d33;
    --fs-primary-soft: #edf5f3;
    --fs-primary-soft-2: #f5faf8;

    --fs-text-main: #1b2624;
    --fs-text-sub: #61706c;
    --fs-text-white: #ffffff;

    --fs-border: #d8e5e1;
    --fs-border-soft: #e8efec;
    --fs-line: rgba(0, 0, 0, 0.06);

    --fs-bg: #ffffff;
    --fs-bg-soft: #f7fbfa;
    --fs-bg-soft-2: #fbfcfc;

    --fs-shadow: 0 14px 34px rgba(0, 102, 85, 0.08);
    --fs-shadow-hover: 0 18px 42px rgba(0, 102, 85, 0.14);

    --fs-radius-md: 20px;
    --fs-radius-lg: 28px;

    --fs-width: 1280px;
}

/* =========================================================
   2. 기본 초기화
   ========================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /*
       사이트 전체 기본 글꼴입니다.
       header.css 또는 공통 CSS에서 이미 지정되어 있더라도,
       개별 페이지 CSS만 단독으로 로딩되는 경우를 대비해 동일한 폰트 스택을 명시합니다.
    */
    font-family:
        "Pretendard",
        "Noto Sans KR",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    margin: 0;
    padding: 0;
    background: #ffffff;
    color: var(--fs-text-main);
    word-break: keep-all;
    overflow-x: hidden;
}


/* =========================================================
   공통 이미지 안전 처리
   ---------------------------------------------------------
   - 이미지가 부모 영역보다 커져서 가로 스크롤을 만드는 문제를 방지합니다.
   - 각 페이지의 개별 이미지 클래스에서 object-fit을 별도로 지정하므로,
     여기서는 기본 안전값만 제공합니다.
   ========================================================= */
img {
    max-width: 100%;
}

/* =========================================================
   3. 페이지 전체 배경
   ========================================================= */
.finance-support-page {
    width: 100%;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

/* =========================================================
   4. 상단 서브 비주얼
   - 기존 서브 페이지와 동일한 구조 유지
   ========================================================= */
.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(--fs-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);
}

/* =========================================================
   5. 본문 공통 폭
   ========================================================= */
.page-content-wrap {
    width: 100%;
    max-width: var(--fs-width);
    margin: 0 auto;
    padding: 85px 20px 110px;
}

/* =========================================================
   6. 섹션 제목 공통
   ========================================================= */
.finance-intro-section {
    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(--fs-primary);
}

.section-title {
    margin: 0 0 16px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.03em;
    color: var(--fs-text-main);
}

.section-description {
    max-width: 860px;
    margin: 0;
    font-size: 17px;
    line-height: 1.85;
    color: var(--fs-text-sub);
}

/* =========================================================
   7. 금융지원 메인 레이아웃
   ========================================================= */
.finance-layout {
    display: grid;
    grid-template-columns: minmax(320px, 560px) minmax(420px, 1fr);
    gap: 38px;
    align-items: stretch;
}

/* =========================================================
   8. 좌측 대표 비주얼 카드
   ========================================================= */
.finance-hero-card {
    min-height: 100%;
}

.finance-hero-card-image-wrap {
    position: relative;
    height: 100%;
    min-height: 620px;
    border-radius: var(--fs-radius-lg);
    overflow: hidden;
    box-shadow: var(--fs-shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(145deg, rgba(20, 24, 23, 0.20), rgba(20, 24, 23, 0.58)),
        url("/hgaebong/assets/images/finance/finance_support_bg.webp") center center / cover no-repeat,
        linear-gradient(135deg, #8d7b58 0%, #5d4a35 100%);
}

/* ---------------------------------------------------------
   배경 이미지 파일이 아직 없는 경우에도 자연스럽게 보이도록
   오버레이를 추가하여 텍스트 가독성을 확보
   --------------------------------------------------------- */
.finance-hero-card-image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.44) 100%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.10), transparent 28%),
        radial-gradient(circle at 84% 75%, rgba(255, 199, 89, 0.14), transparent 26%);
    z-index: 1;
}

.finance-hero-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 42px 34px 42px;
    color: #ffffff;
}

.finance-hero-icon-group {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.finance-hero-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(6px);
}

.finance-hero-icon-circle .material-symbols-rounded {
    font-size: 28px;
    color: #ffffff;
}

.finance-hero-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.96);
}

.finance-hero-title {
    margin: 0 0 16px;
    font-size: 44px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.finance-hero-text {
    max-width: 430px;
    margin: 0;
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.94);
}

/* =========================================================
   9. 우측 링크 패널
   ========================================================= */
.finance-link-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
}

/* =========================================================
   10. 개별 금융지원 항목
   ========================================================= */
.finance-link-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 34px 0;
    border-top: 1px solid var(--fs-border-soft);
}

.finance-link-item:first-child {
    border-top: 1px solid var(--fs-border-soft);
}

.finance-link-item:last-child {
    border-bottom: 1px solid var(--fs-border-soft);
}

.finance-link-info {
    min-width: 0;
}

.finance-link-title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.finance-item-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fs-primary-soft);
    color: var(--fs-primary);
    font-size: 26px;
}

.finance-link-title {
    margin: 2px 0 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: var(--fs-text-main);
}

.finance-link-description {
    margin: 0;
    padding-left: 62px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--fs-text-sub);
}

/* =========================================================
   11. 버튼 영역
   ========================================================= */
.finance-link-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.finance-link-actions-single {
    min-width: 168px;
}

.finance-link-actions-stack {
    flex-direction: column;
    gap: 10px;
    min-width: 168px;
}

.finance-link-btn {
    min-width: 146px;
    min-height: 52px;
    padding: 13px 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease;
    white-space: nowrap;
}

.finance-link-btn:hover {
    transform: translateY(-2px);
}

.finance-link-btn-solid {
    background: var(--fs-primary);
    color: #ffffff;
    border: 1px solid var(--fs-primary);
    box-shadow: 0 10px 22px rgba(0, 102, 85, 0.16);
}

.finance-link-btn-solid:hover {
    background: var(--fs-primary-dark);
    border-color: var(--fs-primary-dark);
    box-shadow: 0 14px 28px rgba(0, 102, 85, 0.22);
}

.finance-link-btn-outline {
    background: #ffffff;
    color: var(--fs-text-main);
    border: 1px solid #d6dfdc;
}

.finance-link-btn-outline:hover {
    border-color: var(--fs-primary);
    color: var(--fs-primary);
    box-shadow: 0 10px 22px rgba(0, 102, 85, 0.08);
}

.btn-icon {
    font-size: 20px;
}

/* =========================================================
   12. 등장 애니메이션
   - 기존 서브 페이지와 동일한 reveal 방식
   ========================================================= */
.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);
}

/* =========================================================
   13. 태블릿 대응
   ========================================================= */
@media (max-width: 1180px) {
    .finance-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .finance-hero-card-image-wrap {
        min-height: 420px;
    }
}

@media (max-width: 900px) {
    .sub-hero-section {
        min-height: 200px;
        padding: 50px 20px 30px;
    }

    .sub-hero-title {
        font-size: 42px;
    }

    .sub-hero-description {
        font-size: 17px;
    }

    .page-content-wrap {
        padding: 70px 20px 90px;
    }

    .section-title {
        font-size: 34px;
    }

    .section-description {
        font-size: 16px;
    }

    .finance-hero-card-image-wrap {
        min-height: 380px;
    }

    .finance-hero-title {
        font-size: 34px;
    }

    .finance-link-item {
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: flex-start;
    }

    .finance-link-actions,
    .finance-link-actions-single,
    .finance-link-actions-stack {
        justify-content: flex-start;
        min-width: 0;
    }

    .finance-link-actions-stack {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* =========================================================
   14. 모바일 대응
   ========================================================= */
@media (max-width: 640px) {
    .sub-hero-section {
        min-height: 180px;
        padding: 42px 16px 24px;
    }

    .sub-hero-title {
        font-size: 28px;
    }

    .sub-hero-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .page-content-wrap {
        padding: 55px 16px 80px;
    }

    .section-title-wrap {
        margin-bottom: 24px;
    }

    .section-kicker {
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .finance-hero-card-image-wrap {
        min-height: 320px;
        border-radius: 22px;
    }

    .finance-hero-card-content {
        padding: 24px 20px 24px;
    }

    .finance-hero-icon-group {
        gap: 10px;
        margin-bottom: 18px;
    }

    .finance-hero-icon-circle {
        width: 44px;
        height: 44px;
    }

    .finance-hero-icon-circle .material-symbols-rounded {
        font-size: 24px;
    }

    .finance-hero-badge {
        margin-bottom: 12px;
        font-size: 11px;
        padding: 7px 12px;
    }

    .finance-hero-title {
        font-size: 27px;
        line-height: 1.32;
    }

    .finance-hero-text {
        font-size: 14px;
        line-height: 1.8;
    }

    .finance-link-item {
        padding: 24px 0;
        gap: 16px;
    }

    .finance-link-title-row {
        gap: 12px;
        margin-bottom: 10px;
    }

    .finance-item-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 22px;
    }

    .finance-link-title {
        font-size: 20px;
        line-height: 1.45;
    }

    .finance-link-description {
        padding-left: 54px;
        font-size: 14px;
        line-height: 1.75;
    }

    .finance-link-actions-stack {
        flex-direction: column;
        width: 100%;
    }

    .finance-link-btn {
        width: 100%;
        min-width: 0;
        min-height: 50px;
        font-size: 14px;
    }
}


/* =========================================================
   접근성 보완 : 모션 최소화 설정 대응
   ---------------------------------------------------------
   사용자의 브라우저 또는 OS에서 '동작 줄이기'가 설정되어 있으면
   스크롤 등장 애니메이션과 hover 이동 효과를 최소화합니다.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal.active {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .overview-image,
    .community-card,
    .community-card-image,
    .directions-map-link-btn,
    .transport-guide-card,
    .finance-link-btn,
    .floor-plan-card {
        transition: none;
    }
}
