@charset "utf-8";

/* 연혁 히어로 섹션 */
.history-hero {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1976f7 0%, #3ee887 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.history-hero-content h1 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.history-hero-content .main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'NanumSquareNeoExtraBold', sans-serif;
}

.history-hero-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* 연혁 타임라인 섹션 */
.history-timeline {
    padding: 100px 0;
    background: #fff;
}

.history-timeline-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px;
}

.history-timeline-content {
    position: relative;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* 타임라인 이미지들 (좌측) */
.timeline-images {
    flex: 0 0 500px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    align-items: flex-start;
}

/* 이미지들 사이의 지그재그 연결선 */
.timeline-image:nth-child(1)::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: 5%;
    width: 150px;
    height: 17px;
    background: linear-gradient(to right, #D4E3FF, #89B1FF);
    transform: rotate(45deg);
    transform-origin: left center;
    z-index: 4;
    display: block;
}

.timeline-image:nth-child(2)::before {
    content: '';
    position: absolute;
    left: -121px;
    bottom: 6%;
    width: 150px;
    height: 15px;
    background: linear-gradient(to left, #89B1FF, #4181FF);
    transform: rotate(-45deg);
    transform-origin: right center;
    z-index: 4;
    display: block;
}



.timeline-image:nth-child(3)::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: 5%;
    width: 150px;
    height: 17px;
    background: linear-gradient(to right, #4181FF, #0055FF);
    transform: rotate(45deg);
    transform-origin: left center;
    z-index: 4;
    display: block;
}


/* 2번째와 4번째 이미지 요소만 우측 정렬 */
.timeline-image:nth-child(2),
.timeline-image:nth-child(4) {
    align-self: flex-end;
}

.timeline-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 15px solid #1976f7;
    position: relative;
    z-index: 2;
}

/* 각 이미지별 다른 보더 색상 */
.timeline-image:nth-child(1) {
    border: 15px solid #D4E3FF;
}

.timeline-image:nth-child(2) {
    border: 15px solid #89B1FF;
}

.timeline-image:nth-child(3) {
    border: 15px solid #4181FF;
}

.timeline-image:nth-child(4) {
    border: 15px solid #0055FF;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 -3px 5px 0 rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 3px 5px 0 rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-image:hover img {
    transform: scale(1.05);
}

/* 타임라인 메인 */
.timeline-main {
    flex: 1;
    position: relative;
}

/* 타임라인 수직선 */
.timeline-line {
    position: absolute;
    left: 120px; /* 연도 영역 너비에 맞춰 조정 */
    top: 0;
    bottom: 65px;
    width: 4px;
    background: #0055FF;
    border-radius: 2px;
}

/* 타임라인 아이템 */
.timeline-item {
    position: relative;
    margin-bottom: 65px;
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* 타임라인 점 */
.timeline-dot {
    position: absolute;
    left: 122px; /* 연도 영역 너비에 맞춰 조정 */
    top: 0px;
    width: 20px;
    height: 20px;
    background: #0055FF;
    border-radius: 50%;
    z-index: 5;
    transform: translateX(-50%);
}

/* 타임라인 화살표 (마지막 요소) */
.timeline-arrow {
    position: absolute;
    left: 122px; /* 연도 영역 너비에 맞춰 조정 */
    top: 0px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 20px solid #0055FF;
    z-index: 5;
    transform: translateX(-50%);
}

/* 연도 (좌측) */
.timeline-year {
    flex: 0 0 120px;
    font-size: 1.4rem;
    font-weight: 500;
    font-family: 'GangwonEduPowerExtraBoldA', sans-serif;
    color: #333;
    text-align: right;
    padding-right: 40px;
    line-height: 1;
}

/* 타임라인 콘텐츠 (우측) */
.timeline-content {
    flex: 1;
    padding-left: 40px;
    background: transparent;
    position: relative;
}

/* 제목 */
.timeline-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #0055FF;
    margin-bottom: 15px;
    font-family: 'GangwonEduPowerExtraBoldA', sans-serif;
}

/* 설명 */
.timeline-desc {
    font-family: 'NanumGothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    color: #000;
}

.timeline-desc-title {
    font-family: 'NanumGothic', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}



/* 반응형 */

@media (max-width: 1024px) {
    
    .timeline-year {
        margin-bottom: 20px;
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 910px) {
    .timeline-images {
        display: none;
    }
    .timeline-main {
        flex: none;
    }

    .history-timeline-content {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .history-hero {
        height: 300px;
    }
    
    .history-hero-content .main-title {
        font-size: 2.2rem;
    }
    
    .history-hero-content p {
        font-size: 1rem;
    }
    
    .history-timeline {
        padding: 60px 0;
    }

    .timeline-line {
        bottom: 55px;
    }
    
    .timeline-item {
        margin-bottom: 50px;
    }
    
    .timeline-year {
        font-size: 1.4rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .history-hero-content .main-title {
        font-size: 1.4rem;
    }
    
    .history-hero-content h1 {
        font-size: 1rem;
    }
    
    .timeline-item {
        margin-bottom: 40px;
    }
    
    .timeline-year {
        font-size: 1.2rem;
    }

    .timeline-line {
        bottom: 50px;
    }
} 