/* history.css - 주요 연혁 페이지 전용 스타일 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 920px;
    margin: 0 auto;
    padding: 50px 20px;
    color: #334155;
    line-height: 1.7;
    background-color: #f8fafc;
}

.history-wrap {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

/* 페이지 헤더 */
.history-header {
    text-align: center;
    margin-bottom: 45px;
}

.history-title {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.history-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0284c7, #0056b3);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.history-intro {
    font-size: 17px;
    font-weight: 500;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
    word-break: keep-all;
    line-height: 1.6;
}

/* 타임라인 연혁 영역 */
.timeline-section {
    position: relative;
    margin: 45px 0 50px 0;
    padding: 10px 0;
}

/* 타임라인 중앙 수직선 */
.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 140px;
    width: 3px;
    background: linear-gradient(180deg, #0284c7 0%, #38bdf8 50%, #cbd5e1 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* 연도 노드 라벨 */
.timeline-year {
    width: 120px;
    text-align: right;
    padding-right: 25px;
    font-size: 22px;
    font-weight: 800;
    color: #0284c7;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

/* 수직선 상의 불릿 포인트 (포인트 노드) */
.timeline-dot {
    position: absolute;
    left: 140px;
    top: 6px;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: #0284c7;
    border-color: #ffffff;
    box-shadow: 0 0 0 6px rgba(2, 132, 199, 0.25);
    transform: translateX(-50%) scale(1.25);
}

/* 내용 카드 */
.timeline-content {
    margin-left: 45px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 26px;
    flex-grow: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.1);
    border-color: #bae6fd;
}

.timeline-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 14px;
    color: #64748b;
    word-break: keep-all;
}

/* 맺음말 카드 */
.history-outro {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    margin-top: 50px;
}

.outro-quote {
    font-size: 18px;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 10px;
    word-break: keep-all;
    line-height: 1.5;
}

.outro-thanks {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
}

/* 하단 홈 버튼 */
.footer-nav {
    text-align: center;
    margin-top: 40px;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background-color: #0284c7;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
    transition: all 0.2s ease;
}

.home-link:hover {
    background-color: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

/* 모바일 반응형 */
@media (max-width: 650px) {
    body {
        padding: 30px 15px;
    }

    .history-wrap {
        padding: 30px 20px;
    }

    .history-title {
        font-size: 26px;
    }

    .history-intro {
        font-size: 15px;
    }

    /* 모바일 타임라인 좌측 정렬 변환 */
    .timeline-section::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        padding-left: 45px;
    }

    .timeline-year {
        width: auto;
        text-align: left;
        padding-right: 0;
        font-size: 20px;
        margin-bottom: 6px;
    }

    .timeline-dot {
        left: 20px;
        top: 4px;
    }

    .timeline-content {
        margin-left: 0;
        width: 100%;
        padding: 18px;
    }

    .outro-quote {
        font-size: 16px;
    }
}
