/* History Timeline Styles */
.history-timeline {
    position: relative;
    padding: 40px 0;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), rgba(212, 162, 89, 0.3));
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-left: 140px;
}

.timeline-year {
    position: absolute;
    left: 0px;
    top: -43px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--white);
    z-index: 2;
}

/* 첫번째 */ 
.timeline-item:nth-child(1) .timeline-year {
    background: linear-gradient(135deg, #ff9100 0%, #E91E63 100%);
}

/* 두번째 */
/* .timeline-item:nth-child(1) .timeline-year {
    background: linear-gradient(135deg, #fd6a49 0%, #34495e 100%);
} */

/* 세번째 */
/* .timeline-item:nth-child(3) .timeline-year {
    background: linear-gradient(135deg, #e95155 0%, #34495e 100%);
} */

/* 네번째 */
/* .timeline-item:nth-child(2) .timeline-year {
    background: linear-gradient(135deg, #b11f3c 0%, #34495e 100%);
} */

/* 다섯번째 */
/* .timeline-item:nth-child(5) .timeline-year {
    background: linear-gradient(135deg, #d969b2 0%, #34495e 100%);
} */

/* 여섯번째 */
.timeline-item:nth-child(2) .timeline-year {
    background: linear-gradient(135deg, #b567e8 0%, #FF5722 100%);
}

/* 일곱번째 */
/* .timeline-item:nth-child(7) .timeline-year {
    background: linear-gradient(135deg, #7e7ff5 0%, #34495e 100%);
} */

/* 여덟번째 */
.timeline-item:nth-child(3) .timeline-year {
    background: linear-gradient(135deg, #458cfb 0%, #34495e 100%);
}

/* 아홉번째 */
/* .timeline-item:nth-child(9) .timeline-year {
    background: linear-gradient(135deg, #19bbb9 0%, #34495e 100%);
} */

/* 열번째 */
.timeline-item:nth-child(4) .timeline-year {
    background: linear-gradient(135deg, #08af6c 0%, #34495e 100%);
}

.timeline-year .year-main {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 4px;
}

.timeline-year .year-sub {
    font-size: 20px;
    opacity: 0.9;
}

.timeline-content {
    background: var(--white);
    /* padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-color); */
}

.timeline-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.timeline-section {
    margin-bottom: 30px;
}

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

.timeline-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.timeline-section h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.timeline-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline-section ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.timeline-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    background: var(--white);
}

.timeline-section ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.timeline-intro {
    padding-left: 10px;
    /* border-left: 3px solid var(--accent-color); */
    margin-bottom: 20px;
}

.timeline-intro p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 768px) {

    .timeline-year {
        left: 0px;
        top: 20px;
    }
    .history-timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        padding-left: 100px;
    }
    
    .timeline-year {
        width: 80px;
        height: 80px;
    }
    
    .timeline-year .year-main {
        font-size: 20px;
    }
    
    .timeline-year .year-sub {
        font-size: 16px;
    }
    
    .timeline-content {
        padding: 25px 0px;
    }
    
    .timeline-content h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .timeline-section h4 {
        font-size: 16px;
    }
    
    .timeline-section ul li {
        font-size: 14px;
        padding: 6px 0 6px 20px;
    }
}

@media (max-width: 480px) {
    .history-timeline {
        padding: 20px 0;
    }
    
    .history-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 50px;
        margin-bottom: -40px;
    }
    
    .timeline-year {
        width: 60px;
        height: 60px;
        border: 3px solid var(--white);
    }
    
    .timeline-year .year-main {
        font-size: 13px;
    }
    
    .timeline-year .year-sub {
        font-size: 14px;
    }
    
    .timeline-content {
        padding: 20px 15px;
    }
    
    .timeline-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .timeline-section {
        margin-bottom: 20px;
    }
    
    .timeline-section h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .timeline-section ul li {
        font-size: 13px;
        padding: 5px 0 5px 18px;
    }
    
    .timeline-section ul li::before {
        width: 10px;
        height: 10px;
        top: 13px;
    }
}
