@import "hero.css";

/* 회사연혁 페이지 스타일 */
.history-page {
    background-color: #ffffff;
    min-height: 100vh;
    width: 100%;
}

/* 헤더 섹션 */
.history-header {
    background-color: #ffffff;
    margin: 0 auto;
    padding: 60px 0 40px 0;
    position: relative;
    width: 100%;
}

.history-header-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    height: 100%;
    justify-content: flex-end;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

/* 회사연혁 컨텐츠 섹션 */
.history-content {
    background-color: #ffffff;
    padding: 0;
    position: relative;
    width: 100%;
}

.history-content-inner {
    margin: 0 auto;
    max-width: 1200px;
    padding: 60px 0;
    position: relative;
    width: 100%;
}

/* 섹션 헤더 */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 100px;
    width: 950px;
}

.section-label {
    color: var(--color-primary-02);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 30px;
}

.section-title {
    color: var(--color-gray-01);
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 54px;
    margin: 0;
}

/* 배경 텍스트 */
.history-info-text {
    color: var(--color-primary-04);
    font-size: 128px;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: absolute;
    right: 0;
    text-align: end;
    text-orientation: mixed;
    text-shadow: -1px 0 var(--color-primary-03), 0 1px var(--color-primary-03), 1px 0 var(--color-primary-03), 0 -1px var(--color-primary-03);
    top: 90px;
    writing-mode: vertical-rl;
    z-index: 0;
}

/* 연혁 타임라인 */
.history-timeline {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;

    max-width: 1000px;
    position: relative;
    width: 100%;
}

/* 타임라인 그룹 */
.timeline-group-wrapper {

}

.timeline-group {
    align-items: flex-start;
    display: flex;
    --width-dot: 19px;
    max-width: 1000px;
    padding-bottom: 100px;
    position: relative;

    --margin-right-dot: 55px;
    --margin-right-year: 66px;
    --font-size-year: 44px;
    width: 100%;
    --width-year: 109px;
}

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

/* 연도 표시 */
.timeline-year {
    flex-shrink: 0;
    margin-right: var(--margin-right-year);
    width: var(--width-year);
}

.year-text {
    color: var(--color-gray-01);
    display: inline-block;
    font-size: var(--font-size-year);
    font-weight: 600;
    line-height: 150%;
    white-space: nowrap;
}

/* 타임라인 도트 */
.timeline-dot {
    align-items: center;
    background-color: #ededed;
    border-radius: 50%;
    display: flex;
    flex-shrink: 0;
    height: var(--width-dot);
    justify-content: center;
    margin-right: var(--margin-right-dot);
    margin-top: 22px;
    width: var(--width-dot);
}

.timeline-dot::before {
    border-right: 1px dotted #A5A5A5;
    content: '';
    height: 100%;
    left: calc(var(--width-year) + var(--margin-right-year) + (var(--width-dot) * 0.5));
    position: absolute;
    top: 0;
}

.timeline-dot-inner {
    background-color: var(--color-gray-01);
    border-radius: 50%;
    height: 9px;
    width: 9px;
    z-index: 1;
}

/* 타임라인 컨텐츠 */
.timeline-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
    margin-top: 15px;
}

/* 타임라인 아이템 */
.timeline-item {
    align-items: flex-start;
    display: flex;
    gap: 20px;
}

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

.timeline-month {
    color: var(--color-gray-01);
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 150%;
    text-align: center;
    white-space: nowrap;
    width: 44px;
}

.timeline-description {
    color: var(--color-gray-01);
    flex: 1;
    font-size: 20px;
    font-weight: 400;
    line-height: 150%;
}

.timeline-description small {
    color: var(--color-gray-02);
    display: block;
    font-size: 16px;
}

.timeline-description small::before {
    content: "";
    margin-left: 8px;
}

/* 반응형 스타일 - 태블릿 */
@media (max-width: 1200px) {

    .history-header {
        padding: 40px 60px;
        width: 100%;
    }

    .history-info-text {
        display: none;
    }

    .history-header-content {
        gap: 20px;
        padding: 0;
    }

    .history-content-inner {
        padding: 40px 60px;
    }

    .section-header {
        margin-bottom: 80px;
        width: 100%;
    }

    .section-title {
        font-size: 28px;
        line-height: 42px;
    }

    .history-info-text {
        display: none;
    }

    .timeline-group {
        --margin-right-dot: 32px;
        --margin-right-year: 32px;
        --width-year: 92px;
    }

    .timeline-dot {
        margin-top: 18px;
    }

    .timeline-dot-inner {
        height: 8px;
        width: 8px;
    }

    .timeline-content {
        margin-top: 12px;
    }

    .year-text {
        line-height: 54px;
    }

    .timeline-item {
        gap: 16px;
    }

    .timeline-month {
        font-size: 18px;
        line-height: 27px;
    }

    .timeline-description {
        font-size: 18px;
        line-height: 27px;
    }

    .timeline-description small {
        font-size: 14px;
    }

}

/* 반응형 스타일 - 모바일 */
@media (max-width: 768px) {
    .history-header {
        padding: 20px 16px;
    }

    .history-content-inner {
        padding: 20px 16px;
    }

    .section-header {
        margin-bottom: 20px;
        width: 343px;
    }

    .section-label {
        font-size: 14px;
        line-height: 21px;
    }

    .section-title {
        font-size: 24px;
        line-height: 36px;
    }

    /* 모바일에서는 세로 스크롤 레이아웃으로 변경 */
    .history-timeline {
        display: flex;
        flex-direction: column;
        padding-top: 10px;
    }

    .history-info-text {
        display: none;
    }

    .timeline-group {
        display: flex;
        max-width: unset;
        padding-bottom: 40px;
        position: relative;
        width: 100%;
    }

    .timeline-group {
        --width-dot: 16px;
        --margin-right-dot: 16px;
        --margin-right-year: 16px;
        --font-size-year: 24px;
        --width-year: 40px;
    }

    .year-text {
        line-height: 42px;
    }


    .timeline-dot {
        margin-top: 12px;
    }

    .timeline-content {
        gap: 8px;
        margin-top: 8px;
    }

    .timeline-item {
        align-items: flex-start;
        gap: 12px;
    }

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

    .timeline-month {
        font-size: 16px;
        font-weight: 600;
        letter-spacing: -0.01em;
        line-height: 24px;
        width: 34px;
    }

    .timeline-description {
        font-size: 14px;
        font-weight: 400;
        letter-spacing: -0.01em;
        line-height: 24px;
    }

    .timeline-description small {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .timeline-group {
        --margin-right-dot: 12px;
        --margin-right-year: 12px;
        --width-year: 60px
    }
}