@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

.section {
    padding: 0 0 40px 0;
    /* padding-bottom: 60px; */
}

body {
    margin: 0;
    font-family: "Noto Sans KR", system-ui, sans-serif;
    background: radial-gradient(1200px 520px at 15% -10%, rgba(0, 133, 203, 0.2), transparent 60%),
        radial-gradient(900px 520px at 90% -10%, rgba(0, 90, 158, 0.18), transparent 60%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.section-title {
    font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
    font-size: clamp(32px, 6vw, 56px);
    margin: 0 0 12px;
}

.section-sub {
    color: var(--muted);
    margin: 0 0 32px;
    line-height: 1.7;
}

.timeline-wrap {
    padding: 8px 0;
}

.timeline {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.24) 12%, rgba(255, 255, 255, 0.24) 88%, transparent 100%);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 84px;
    padding: 22px 0;
    align-items: start;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 34px;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--brand);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 6px rgba(0, 133, 203, 0.15);
    z-index: 2;
}

.timeline-year {
    color: var(--brand);
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

.timeline-item>div:last-child {
    width: min(100%, 420px);
}

.timeline-item:nth-child(odd) .timeline-year {
    grid-column: 1;
    justify-self: end;
    text-align: right;
    margin-right: 14px;
}

.timeline-item:nth-child(odd)>div:last-child {
    grid-column: 1;
    justify-self: end;
    text-align: right;
    margin-top: 15px;
}

.timeline-item:nth-child(even) .timeline-year {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    margin-left: 14px;
}

.timeline-item:nth-child(even)>div:last-child {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    margin-top: 15px;
}

.timeline-title {
    margin: 0 0 6px;
    font-size: 18px;
}

.timeline-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

@media (max-width: 720px) {
    .section {
        padding: 60px 0;
    }

    .timeline-wrap {
        padding: 0;
    }

    .timeline::before {
        left: 14px;
        transform: none;
    }

    .timeline-item {
        grid-template-columns: 28px 1fr;
        column-gap: 12px;
        row-gap: 4px;
        padding: 14px 0;
    }

    .timeline-dot {
        grid-column: 1;
        grid-row: 1;
        position: relative;
        left: auto;
        top: 8px;
        transform: none;
        margin-top: 0;
    }

    .timeline-year,
    .timeline-item>div:last-child,
    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(odd)>div:last-child,
    .timeline-item:nth-child(even) .timeline-year,
    .timeline-item:nth-child(even)>div:last-child {
        grid-column: 2;
        justify-self: start;
        text-align: left;
    }
}

.title {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 56px);
    font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
    color: white;
}

.timeline-desc-l {
    margin-top: 0;
    padding-right: 20px;
}

.timeline-desc-r {
    padding-left: 20px;
}

.wrap-title {
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
        url("../image/title_back.png") center/cover no-repeat;
    padding: 50px 0;
}