
/* ── 섹션 공통 ── */
.section-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

/* ── 타임라인 섹션 ── */
.timeline-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 5%;
}

.timeline-header {
    text-align: center;
    margin-bottom: 80px;
}

/* 타임라인 컨테이너 */
.timeline {
    position: relative;
}

/* 중앙 세로선 */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--navy) 5%, var(--navy) 50%, var(--navy) 95%, transparent);
    transform: translateX(-50%);
}

/* 타임라인 아이템 */
.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideIn 0.6s ease forwards;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 40px);
    transform: translateX(30px);
}

/* 중앙 점 */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px; 
    height: 14px;
    border-radius: 50%;
    background: var(--navy);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--navy);
    transform: translateX(-50%);
    z-index: 1;
    transition: transform 0.2s;
}

.timeline-item:hover::before {
    transform: translateX(-50%) scale(1.3);
}

/* 카드 */
.timeline-card {
    background: var(--white);
    border-radius: 14px;
    padding: 28px 30px;
    max-width: 380px;
    box-shadow: 0 2px 20px rgba(44,59,82,0.07);
    border: 1.5px solid rgba(44,59,82,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(44,59,82,0.13);
}

/* 카드 화살표 (왼쪽 아이템) */
.timeline-item:nth-child(odd) .timeline-card::after {
    content: '';
    position: absolute;
    right: -9px;
    top: 22px;
    width: 16px; height: 16px;
    background: var(--white);
    border-right: 1.5px solid rgba(44,59,82,0.06);
    border-top: 1.5px solid rgba(44,59,82,0.06);
    transform: rotate(45deg);
}

/* 카드 화살표 (오른쪽 아이템) */
.timeline-item:nth-child(even) .timeline-card::after {
    content: '';
    position: absolute;
    left: -9px;
    top: 22px;
    width: 16px; height: 16px;
    background: var(--white);
    border-left: 1.5px solid rgba(44,59,82,0.06);
    border-bottom: 1.5px solid rgba(44,59,82,0.06);
    transform: rotate(45deg);
}

.timeline-year {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1;
}

.timeline-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.4;
    align-items: center;
    padding-left: 14px;
    text-indent: -14px;
}

.timeline-title::before {
  content: '';
  display: inline-block;
  width: 7px; /* 동그라미 크기 */
  height: 7px;
  background-color: var(--red);
  border-radius: 50%; /* 완벽한 원으로 만들기 */
  margin-right: 6px; /* 동그라미와 글자 사이의 간격 */
}

/* 연도 태그 */
.year-tag {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* 강조 카드 */
.timeline-card.highlight {
    border-color: var(--navy);
    border-width: 2px;
}
.timeline-card.highlight .timeline-year {
    color: var(--navy);
}

/* 애니메이션 */
@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }

/* ── 반응형 ── */
@media (max-width: 768px) {
    .timeline::before { left: 20px; }

    .timeline-item,
    .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 56px;
    transform: translateX(-20px);
    }

    .timeline-item::before { left: 20px; }

    .timeline-card { max-width: 100%; }

    .timeline-item:nth-child(odd) .timeline-card::after,
    .timeline-item:nth-child(even) .timeline-card::after {
    left: -9px;
    right: auto;
    border-left: 1.5px solid rgba(44,59,82,0.06);
    border-bottom: 1.5px solid rgba(44,59,82,0.06);
    border-right: none;
    border-top: none;
    }
}