@charset "utf-8";


/* 타임라인 레이아웃 */
.timeline-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0; 
    bottom: 0; 
    width: 8px;
    background-color: #eee;
    transform: translateX(-50%);
    border-radius:100px;
}
.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #c62128;
}
.timeline-progress::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: #c62128;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(198, 33, 40, 0.2);
}
.timeline-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 100px;
    position: relative;
}
.timeline-section:last-child { margin-bottom: 0; }

.timeline-img-wrap, .timeline-content {
    width:calc(50% - 120px);
}

/* 이미지 박스 */
.img-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 350px;
}

.img-box img{object-fit:cover;width: 100%;}


.img-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-overlay span {
    font-family: 'Pretendard', sans-serif !important;
    color: #fff;
    font-size: 70px;
    font-weight: 600;
    letter-spacing: -1px;
}

/* 연혁 텍스트 */
.timeline-content {
    text-align: left;
}
.timeline-content.left { text-align: right; }

.year-group {
    margin-bottom: 50px;
    position: relative;
}
.year-group:last-child { margin-bottom: 0; }

.year {
    font-size: 30px;
    color: #bbb;
    margin-bottom: 10px;
}
.history-list {
    list-style: none;
    padding: 0;
}
.history-list li {
    font-size: 24px;
    line-height: 1.4;
    color: #333;
    word-break: keep-all;
    font-weight:600;
    margin-bottom:20px;
}
.history-list li:first-child:nth-last-child(1),
.history-list li:first-child:nth-last-child(1) ~ li{margin-bottom:0px;}


.history-list li small {
    color: #c62128;
    font-weight: 600;
    font-size:18px;
}

.timeline-content.right .year-group::after {
    left: -5.5%; /* 중앙 라인 위치에 맞춤 */
}
.timeline-content.left .year-group::after {
    right: -5.5%;
}

/* 반응형 */
@media (max-width: 1600px) {
    .img-box {min-height: auto;}
    .timeline-img-wrap, .timeline-content {width: calc(50% - 80px);}
    .img-overlay span{font-size:40px;}
    .year{font-size:26px;}
    .history-list li{font-size:18px;}   
}

@media (max-width: 1400px) {
.history-page-wrap .container{padding:160px 5%}
}

@media (max-width: 1024px) {
    .timeline-line { left: 40px; }
    .timeline-section { flex-direction: column; align-items: flex-start; padding-left: 80px; }
    .timeline-img-wrap, .timeline-content { width: 100%; text-align: left !important; }
    .timeline-img-wrap { order: 1; margin-bottom: 40px; }
    .timeline-content { order: 2; }
    .year-group::after { left: -46px !important; right: auto !important; }

}

@media (max-width: 768px) {

    .history-page-wrap .container{padding:100px 5%}
    .img-overlay span { font-size: 28px; }
    .timeline-section{margin-bottom:60px;}
    .timeline-line{left:20px;}
    .timeline-section{padding-left:60px;}
    .img-overlay span{font-size:30px;}
    .year-group{margin-bottom:30px;}
    .year{font-size:20px;line-height:1;}
    .history-list li{font-size:16px;}   
}
