/* =========================================================
   수정본 파일명 : community.css
   다운로드용 TXT : community.css.txt
   ---------------------------------------------------------
   적용 프로젝트 : 하우징개봉 청년안심주택 웹사이트
   원본 기준     : 사용자가 업로드한 community.css
   수정일        : 2026-05-03
   ---------------------------------------------------------
   [기존 대화 반영 사항]
   1. 사이트 대표 컬러는 #006655 기준으로 유지합니다.
   2. 이미지 및 정적 리소스 경로는 /hgaebong/assets/... 기준을 유지합니다.
   3. PC / 태블릿 / 모바일 반응형 구조를 유지합니다.
   4. 상단 서브 비주얼 영역은 과도하게 높아지지 않도록 기존 compact 높이 기준을 유지합니다.
   5. 유지보수자가 CSS 역할을 쉽게 파악할 수 있도록 한글 주석을 보강했습니다.
   6. 애니메이션을 지원하지 않거나 모션 최소화를 설정한 사용자 환경을 고려했습니다.
   ========================================================= */

/* =========================================================
   community.css
   ---------------------------------------------------------
   단지안내 > 커뮤니티 페이지 전용 스타일
   ---------------------------------------------------------
   저장 경로 : /hgaebong/assets/css/community.css

   [설명]
   - 특장점 페이지의 전체 톤은 유지
   - 본문 배치는 "위 이미지 + 아래 설명" 카드형 구조 적용
   - 젊은층이 선호할 만한 감각적인 카드 그리드 스타일 구성
   - 카드별 크기와 강조 스타일을 다르게 하여 리듬감 부여
   - 태블릿 / 모바일에서는 자연스럽게 1열 또는 2열로 전환
   ========================================================= */

/* =========================================================
   1. 공통 변수
   ========================================================= */
:root {
    --cm-primary: #006655;
    --cm-primary-dark: #01483c;
    --cm-primary-deep: #003d33;
    --cm-primary-soft: #edf5f3;
    --cm-primary-soft-2: #f4faf8;

    --cm-text-main: #1b2624;
    --cm-text-sub: #61706c;
    --cm-text-white: #ffffff;

    --cm-border: #d9e6e2;
    --cm-line: rgba(0, 0, 0, 0.06);

    --cm-bg: #ffffff;
    --cm-bg-soft: #f7fbfa;
    --cm-bg-accent: linear-gradient(180deg, #f7fffc 0%, #eef8f5 100%);

    --cm-shadow: 0 14px 34px rgba(0, 102, 85, 0.08);
    --cm-shadow-hover: 0 22px 48px rgba(0, 102, 85, 0.14);

    --cm-radius-sm: 18px;
    --cm-radius-md: 24px;
    --cm-radius-lg: 30px;

    --cm-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(--cm-text-main);
    word-break: keep-all;
    overflow-x: hidden;
}


/* =========================================================
   공통 이미지 안전 처리
   ---------------------------------------------------------
   - 이미지가 부모 영역보다 커져서 가로 스크롤을 만드는 문제를 방지합니다.
   - 각 페이지의 개별 이미지 클래스에서 object-fit을 별도로 지정하므로,
     여기서는 기본 안전값만 제공합니다.
   ========================================================= */
img {
    max-width: 100%;
}

/* =========================================================
   3. 페이지 전체 배경
   ========================================================= */
.community-page {
    width: 100%;
    background:
        radial-gradient(circle at top left, rgba(0, 102, 85, 0.035), transparent 26%),
        radial-gradient(circle at right center, rgba(0, 102, 85, 0.045), transparent 18%),
        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("/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(--cm-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(--cm-width);
    margin: 0 auto;
    padding: 85px 20px 110px;
}

/* =========================================================
   6. 섹션 제목 영역
   ========================================================= */
.community-main-section {
    width: 100%;
}

.section-title-wrap {
    margin-bottom: 28px;
}

.section-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--cm-primary);
}

.section-title {
    margin: 0 0 16px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.03em;
    color: var(--cm-text-main);
}

.section-description {
    max-width: 900px;
    margin: 0;
    font-size: 17px;
    line-height: 1.85;
    color: var(--cm-text-sub);
}

/* =========================================================
   7. 커뮤니티 칩 영역
   - 젊고 가벼운 분위기의 태그형 요소
   ========================================================= */
.community-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.community-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid rgba(0, 102, 85, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 20px rgba(0, 102, 85, 0.05);
    font-size: 14px;
    font-weight: 700;
    color: var(--cm-primary-dark);
    backdrop-filter: blur(6px);
}

/* =========================================================
   8. 카드 그리드 레이아웃
   - 일반적인 동일 박스 나열이 아니라
     카드 크기를 다르게 주어 감각적으로 배치
   ========================================================= */
.community-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

/* ---------------------------------------------------------
   기본 카드
   --------------------------------------------------------- */
.community-card {
    grid-column: span 4;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    box-shadow: var(--cm-shadow);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.community-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--cm-shadow-hover);
    border-color: rgba(0, 102, 85, 0.24);
}

/* ---------------------------------------------------------
   강조형 카드
   --------------------------------------------------------- */
.community-card-feature {
    grid-column: span 8;
}

.community-card-wide {
    grid-column: span 8;
}

.community-card-accent {
    background: var(--cm-bg-accent);
}

/* =========================================================
   9. 카드 이미지 영역
   ========================================================= */
.community-card-image-wrap {
    position: relative;
    width: 100%;
    min-height: 255px;
    overflow: hidden;
    background: #dfe9e6;
}

.community-card-feature .community-card-image-wrap,
.community-card-wide .community-card-image-wrap {
    min-height: 300px;
}

.community-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.community-card:hover .community-card-image {
    transform: scale(1.04);
}

/* ---------------------------------------------------------
   카드 상단 배지
   --------------------------------------------------------- */
.community-card-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 102, 85, 0.92);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 20px rgba(0, 102, 85, 0.22);
}

/* =========================================================
   10. 카드 설명 영역
   ========================================================= */
.community-card-content {
    padding: 28px 26px 30px;
}

.community-card-title {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--cm-text-main);
}

.community-card-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: var(--cm-text-sub);
}

/* =========================================================
   11. 등장 애니메이션
   ---------------------------------------------------------
   - HTML에서 .reveal 클래스를 가진 요소는 처음에는 투명하고
     좌/우/아래 방향으로 살짝 밀린 상태로 대기합니다.
   - 각 페이지 전용 JS가 화면 진입 여부를 감지하여 .active 클래스를 붙이면
     opacity / transform / filter가 동시에 변하면서 자연스럽게 나타납니다.
   - --reveal-delay 값은 JS에서 순차적으로 부여하여 카드들이 한꺼번에
     튀어나오지 않고 부드럽게 차례로 등장하도록 합니다.
   ========================================================= */
.reveal {
    opacity: 0;
    filter: blur(6px);
    transition:
        opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
    backface-visibility: hidden;
}

.reveal-up {
    transform: translate3d(0, 56px, 0);
}

.reveal-left {
    transform: translate3d(-72px, 0, 0);
}

.reveal-right {
    transform: translate3d(72px, 0, 0);
}

.reveal.active {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
}

/* =========================================================
   12. 데스크톱 중간 해상도 대응
   ========================================================= */
@media (max-width: 1180px) {
    .community-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-card,
    .community-card-feature,
    .community-card-wide {
        grid-column: auto;
    }

    .community-card-image-wrap,
    .community-card-feature .community-card-image-wrap,
    .community-card-wide .community-card-image-wrap {
        min-height: 260px;
    }
}

/* =========================================================
   13. 태블릿 대응
   ========================================================= */
@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;
    }

    .community-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .community-card-image-wrap,
    .community-card-feature .community-card-image-wrap,
    .community-card-wide .community-card-image-wrap {
        min-height: 250px;
    }

    .community-card-title {
        font-size: 24px;
    }

    .community-card-text {
        font-size: 16px;
    }
}

/* =========================================================
   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: 22px;
    }

    .section-kicker {
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .community-chip-row {
        gap: 10px;
        margin-bottom: 26px;
    }

    .community-chip {
        min-height: 38px;
        padding: 8px 14px;
        font-size: 13px;
    }

    .community-card-image-wrap,
    .community-card-feature .community-card-image-wrap,
    .community-card-wide .community-card-image-wrap {
        min-height: 210px;
    }

    .community-card-badge {
        top: 14px;
        left: 14px;
        min-height: 30px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .community-card-content {
        padding: 22px 18px 24px;
    }

    .community-card-title {
        margin-bottom: 12px;
        font-size: 21px;
    }

    .community-card-text {
        font-size: 15px;
        line-height: 1.8;
    }
}


/* =========================================================
   접근성 보완 : 모션 최소화 설정 대응
   ---------------------------------------------------------
   사용자의 브라우저 또는 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;
    }
}
