/* ============================================
   1. 기본 서브 구조 - 공통 동기화 (sub1, biz2 동일)
   ============================================ */
.sub_wrapper { background-color: #fff; min-height: 100vh; }

.sub_hero { position: relative; width: 100%; margin: -1px 0 !important; padding: 0 !important; line-height: 0; font-size: 0; overflow: hidden; background: none !important; }
.sub_hero img { width: 100%; height: auto !important; display: block; margin: 0 !important; padding: 0 !important; border: none !important; }
.hero_text_overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; background-color: rgba(0,0,0,0.2); z-index: 10; }
.hero_text_overlay .hero_title { font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 10px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); letter-spacing: -1px; }
.hero_text_overlay .hero_subtitle { font-size: 18px; color: #eee; font-weight: 500; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }

.sub_lnb { border-bottom: 1px solid var(--border-soft); background-color: #fff; position: relative; z-index: 900; height: 60px; display: flex; align-items: center; margin: 0 !important; padding: 5px !important; border-top: none !important; }
.sub_lnb .lnb_inner { display: flex; align-items: center; gap: 15px; }
.sub_lnb .home_btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background-color: #fff; border: 1px solid var(--border-soft); border-radius: 50%; font-size: 16px; color: #444; transition: 0.3s; flex-shrink: 0; }
.sub_lnb .home_btn:hover { background-color: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.sub_lnb .lnb_item { position: relative; }
.sub_lnb .lnb_btn { height: 44px; padding: 0 25px; background-color: #fff; border: 1px solid var(--border-soft); border-radius: 30px; font-size: 14px; font-weight: 600; color: #444; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; white-space: nowrap; flex-shrink: 0; }
.sub_lnb .lnb_btn:hover { border-color: var(--accent-color); background: var(--bg-soft); }
.sub_lnb .lnb_btn.color_accent { border-color: var(--accent-color); color: var(--accent-color); background-color: var(--bg-light-green); }
.sub_lnb .lnb_dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 160px; background-color: #fff; border: 1px solid var(--border-soft); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); display: none; padding: 10px 0; overflow: hidden; z-index: 1000; }
.sub_lnb .lnb_dropdown.show { display: block; }
.sub_lnb .lnb_dropdown li a { display: block; padding: 12px 20px; font-size: 14px; color: var(--text-secondary); transition: 0.2s; font-weight: 500; white-space: nowrap; }
.sub_lnb .lnb_dropdown li a:hover,
.sub_lnb .lnb_dropdown li.active a { background-color: var(--bg-soft); color: var(--accent-color); font-weight: 700; }

.sub_content_area { padding: 80px 0 120px; }
.sub_content_area .content_inner { display: flex; gap: 80px; }

.sub_sidebar { width: 260px; flex-shrink: 0; }
.sub_sidebar .side_title_box { background: linear-gradient(135deg, var(--accent-color), #82b429); padding: 30px 25px; margin-bottom: 0; border-radius: 12px 12px 0 0; }
.sub_sidebar .side_title { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.sub_sidebar .side_menu_list { border: 1px solid var(--border-soft); border-top: none; border-radius: 0 0 12px 12px; overflow: hidden; background: #fff; }
.sub_sidebar .side_menu_list li a { display: flex; justify-content: space-between; align-items: center; padding: 18px 25px; font-size: 16px; color: var(--text-secondary); font-weight: 500; border-bottom: 1px solid #f3f4f6; transition: 0.3s; }
.sub_sidebar .side_menu_list li.active a { background-color: var(--bg-light-green); color: var(--accent-color); font-weight: 700; }

.sub_main_content { flex: 1; }

/* ============================================
   2. 시공절차 전용 스타일링 (고화질 보존형 미니멀리즘)
   ============================================ */
:root {
    --accent-color: #509a00;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --border-soft: #e5e7eb;
    --bg-soft: #f9fafb;
    --bg-light-green: #f2fbf0;
}

.process_page_wrap { display: flex; flex-direction: column; gap: 70px; }

/* 1. Video & Top Image */
.process_video_section {
    width: 100%; max-width: 1000px; margin: 0 auto;
    border-radius: 16px; overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    background: #000;
    line-height: 0;
}
.process_local_video { 
    width: 100%; 
    height: auto; 
    display: block;
    outline: none;
    border: none;
}

.process_top_img { 
    text-align: center;
    position: relative; z-index: 2; 
}
.process_top_img img { 
    max-width: 100%; 
    height: auto; /* 원본 해상도 유지, 가로 늘림 방지 */
    display: inline-block; 
    border-radius: 12px;
}

/* 3. Steps List */
.process_steps_list { 
    display: flex; flex-direction: column; gap: 30px; 
    max-width: 1000px; /* 전체 레이아웃 폭 제어 */
    margin: 0 auto;
}

.compact_step {
    background: #fff;
    border-radius: 20px;
    padding: 35px 45px;
    display: flex;
    gap: 40px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.04); /* 고급스러운 미세 그림자 */
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s;
    align-items: center; /* 세로 중앙 정렬 */
}
.compact_step:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
}

.compact_num_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 60px;
    flex-shrink: 0;
    position: relative;
}
.compact_num_box::after {
    content: ''; position: absolute; right: -25px; top: 10%; height: 80%; width: 1px;
    background-color: var(--border-soft);
}

.compact_num {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.compact_text {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ★ 저화질 방지 및 원본 이미지 절단(Cropping) 방지 스마트 프레임 ★ */
.compact_img {
    width: 320px; 
    height: 240px; /* 약간 여유를 구비 */
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    background-color: #f4f6f8; /* 사진 양옆/위아래 남는 여백을 채워줄 갤러리 벽면 컬러 */
    border: 1px solid rgba(0,0,0,0.03); /* 액자 프레임선 */
    display: flex;
    align-items: center;
    justify-content: center;
}
.compact_img img {
    width: 100%; height: 100%; 
    object-fit: contain; /* ★ 핵심: 절대 원본을 자르지 않고, 화면에 딱 맞게 정비율로 모두 표출 ★ */
    padding: 10px; /* 액자 느낌을 주기 위한 이너 패딩 */
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.compact_step:hover .compact_img img { transform: scale(1.06); }

.compact_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.compact_info .step_title {
    font-size: 26px; font-weight: 800; margin-bottom: 12px; color: var(--text-primary);
    letter-spacing: -0.5px;
}
.compact_info .step_intro {
    font-size: 16px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 25px;
    word-break: keep-all; font-weight: 400;
}
/* 흔한 박스 형태를 완전히 탈피한 "프리미엄 노드 타임라인(Blueprint Node)" 리스트 디자인 */
.compact_info .step_points {
    list-style: none; padding: 0; margin: 0; 
    margin-top: 18px; 
    position: relative;
    background: transparent; border: none; /* 기존 박스 제거 */
}
/* 세로 연결 가이드라인 */
.compact_info .step_points::before {
    content: ''; position: absolute;
    left: 4px; top: 12px; bottom: 12px;
    width: 1px; background-color: rgba(80, 154, 0, 0.2); /* 은은한 브랜드 컬러 라인 */
    z-index: 1;
}
.compact_info .step_points li {
    font-size: 15.5px;
    color: var(--text-secondary);
    position: relative; padding-left: 28px; margin-bottom: 14px; line-height: 1.6;
    font-weight: 500; letter-spacing: -0.3px;
    transition: color 0.3s ease;
}
.compact_info .step_points li:last-child { margin-bottom: 0; }

/* 정밀한 링(Ring) 형태의 노드 구성 */
.compact_info .step_points li::after {
    content: ''; position: absolute; 
    left: -1px; top: 8px; width: 9px; height: 9px; 
    border-radius: 50%; background-color: #fff; 
    border: 2px solid #ccc;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 마우스 오버 시 노드가 채워지는 인터랙티브 애니메이션 */
.compact_info .step_points li:hover::after {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--bg-light-green); /* 부드러운 물결 파동 효과 */
    transform: scale(1.1);
}
.compact_info .step_points li:hover {
    color: var(--text-primary);
}

/* Responsive Handling */
@media screen and (max-width: 900px) {
    .compact_step {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 25px;
    }
    .compact_num_box { flex-direction: row; width: 100%; justify-content: flex-start; gap: 15px; }
    .compact_num_box::after { display: none; }
    .compact_num { font-size: 28px; }
    
    .compact_img { width: 100%; height: auto; aspect-ratio: 4/3; }
    .compact_info .step_title { font-size: 22px; }
    .compact_info .step_intro { font-size: 15px; margin-bottom: 20px;}
}
@media screen and (max-width: 480px) {
    .compact_step { padding: 25px 20px; }
    .compact_info .step_points { padding: 15px 20px; }
}

/* ============================================
   3. 글로벌 서브 프레임 반응형 (모바일 최적화)
   ============================================ */
@media screen and (max-width: 1024px) {
    .sub_content_area { padding: 60px 0 90px; }
    
    /* 기존 2단 레이아웃을 1단으로 변환 */
    .sub_content_area .content_inner { 
        flex-direction: column; 
        gap: 40px; 
    }
    
    /* 사용자 요청: 모바일에서 좌측 사이드 네비게이션 안 보이게 숨김 */
    .sub_sidebar { 
        display: none !important; 
    }
    
    .sub_main_content { 
        width: 100%; 
        flex: auto; 
    }
}

@media screen and (max-width: 768px) {
    .sub_content_area { padding: 40px 0 60px; }
    .process_page_wrap { gap: 40px; }
    
    /* LNB 모바일 최적화 (sub1.css 동기화) */
    .sub_lnb .lnb_btn {
        padding: 0 15px;
        font-size: 13px;
        height: 40px;
    }
    .sub_lnb .home_btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .sub_lnb {
        height: auto;
        padding: 10px 0 !important;
        overflow: visible;
    }
    .sub_lnb .lnb_inner {
        gap: 8px;
        flex-wrap: wrap; /* 모바일에서 여러 개일 경우 줄바꿈 허용 */
        justify-content: center;
        padding-bottom: 5px;
        overflow: visible;
    }
    .sub_lnb .lnb_dropdown {
        z-index: 1000;
    }
}

/* End of process.css */
