/* sub3.css - Company History (회사 연혁) Page Styles */

/* 1. 기본 서브 구조 (Banner, LNB, Sidebar) - sub2.css와 동기화 */
.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);
}

/* LNB 브레드크럼 */
.sub_lnb {
    border-bottom: 1px solid #eee;
    background-color: #fcfcfc;
    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 #eee;
    border-radius: 50%;
    font-size: 16px;
    color: #444;
    transition: 0.3s;
}

.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 #eee;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.sub_lnb .lnb_btn:hover {
    border-color: var(--accent-color);
}

.sub_lnb .lnb_btn.color_accent {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(130, 180, 41, 0.05);
}

.sub_lnb .lnb_dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: auto;
    min-width: 160px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: none;
    padding: 10px 0;
    overflow: hidden;
}

.sub_lnb .lnb_dropdown.show {
    display: block;
}

.sub_lnb .lnb_dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    transition: 0.2s;
}

.sub_lnb .lnb_dropdown li a:hover,
.sub_lnb .lnb_dropdown li.active a {
    background-color: #f9f9f9;
    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(45deg, var(--accent-color), #6e9a0f);
    padding: 30px 25px;
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.sub_sidebar .side_title {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sub_sidebar .side_menu_list {
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.sub_sidebar .side_menu_list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 16px;
    color: #555;
    font-weight: 500;
    border-bottom: 1px solid #f2f2f2;
    transition: 0.3s;
}

.sub_sidebar .side_menu_list li.active a {
    background-color: #f8faf2;
    color: var(--accent-color);
    font-weight: 700;
}

/* 메인 콘텐츠 영역 */
.sub_main_content {
    flex: 1;
}

.content_header { margin-bottom: 60px; }
.content_header .page_title { font-size: 36px; font-weight: 800; color: #111; margin-bottom: 15px; }
.content_header .title_bar { width: 40px; height: 4px; background-color: var(--accent-color); }

/* 2. 회사 연혁 타임라인 디자인 */
.history_timeline_section {
    padding-top: 20px;
}

.history_container {
    position: relative;
    padding: 20px 0;
}

/* 수직 중앙 선 */
.history_container::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #f0f0f0;
}

.history_year_block {
    position: relative;
    margin-bottom: 80px;
}

.history_year_block:last-child {
    margin-bottom: 0;
}

.year_label {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    text-align: right;
    font-size: 28px;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

.history_items {
    margin-left: 140px;
    border-top: 2px solid #333;
    padding-top: 25px;
}

.history_item {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.history_item:last-child {
    margin-bottom: 0;
}

/* 타임라인 포인트 */
.history_item::before {
    content: '';
    position: absolute;
    left: -44px;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: 10;
}

.history_month {
    width: 60px;
    font-size: 18px;
    font-weight: 800;
    color: #444;
    flex-shrink: 0;
}

.history_text {
    flex: 1;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    word-break: keep-all;
}

/* 태블릿 / 모바일 조정 */
@media screen and (max-width: 1024px) {
    .sub_content_area .content_inner {
        display: block;
    }
    .sub_sidebar {
        display: none;
    }
    .sub_main_content {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .sub_content_area {
        padding: 40px 0 80px;
    }
    .content_header .page_title {
        font-size: 28px;
    }
    
    .history_container::before {
        left: 20px;
    }
    
    .year_label {
        position: static;
        width: auto;
        text-align: left;
        font-size: 24px;
        margin-bottom: 15px;
        padding-left: 45px;
    }
    
    .history_year_block {
        margin-bottom: 50px;
    }
    
    .history_items {
        margin-left: 0;
        padding-top: 15px;
        border-top: 1px solid #ddd;
    }
    
    .history_item {
        padding-left: 45px;
        flex-direction: column;
        gap: 5px;
    }
    
    .history_item::before {
        left: 15px;
    }
    
    .history_month {
        width: auto;
        font-size: 16px;
        color: var(--accent-color);
    }
    
    .history_text {
        font-size: 15px;
    }

    .sub_lnb {
        height: auto;
        padding: 5px 0 10px 0 !important;
    }
    .sub_lnb .lnb_inner {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .sub_lnb .home_btn { width: 40px; height: 40px; min-width: 40px; }
    .sub_lnb .lnb_btn { padding: 0 15px; font-size: 13px; }

    /* 모바일 배너 텍스트 보정 */
    .hero_text_overlay .hero_title {
        font-size: 24px;
        margin-bottom: 5px;
    }
    .hero_text_overlay .hero_subtitle {
        font-size: 13px;
    }
}
