/*--------------------------------------------------------------
# History Page - 연혁 페이지 스타일
--------------------------------------------------------------*/

:root {
    /* Primary Colors */
    --history-primary: #feb900;
    --history-primary-light: #ffc732;
    --history-primary-dark: #e5a600;

    /* Neutral Colors */
    --history-white: #FFFFFF;
    --history-gray-50: #FAFAFA;
    --history-gray-100: #F5F5F5;
    --history-gray-200: #EEEEEE;
    --history-gray-300: #E0E0E0;
    --history-gray-400: #BDBDBD;
    --history-gray-500: #9E9E9E;
    --history-gray-600: #757575;
    --history-gray-700: #616161;
    --history-gray-800: #424242;
    --history-gray-900: #212121;

    /* Text Colors */
    --history-text-primary: #212121;
    --history-text-secondary: #616161;
    --history-text-muted: #9E9E9E;

    /* Background Colors */
    --history-bg-white: #FFFFFF;
    --history-bg-light: #FAFAFA;
    --history-bg-gray: #F5F5F5;
}

/* ======= History Section ======= */
.history-section {
    background: var(--history-bg-white);
    padding: 80px 0;
}

.history-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.history-section .section-header .section-badge {
    display: inline-block;
    background: rgba(254, 185, 0, 0.15);
    color: var(--history-primary-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.history-section .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--history-text-primary);
    margin-bottom: 16px;
}

.history-section .section-header p {
    color: var(--history-text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ======= Timeline ======= */
.history-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Timeline center line */
.history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--history-gray-200);
    top: 0;
}

/* Year Block */
.history-year-block {
    position: relative;
    margin-bottom: 40px;
}

.history-year-block:last-child {
    margin-bottom: 0;
}

/* Year Badge */
.history-year-badge {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
}

.history-year-badge span {
    display: inline-block;
    background: linear-gradient(135deg, var(--history-primary) 0%, var(--history-primary-light) 100%);
    color: var(--history-white);
    font-size: 20px;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(254, 185, 0, 0.3);
}

/* Events Container */
.history-events {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Event Item */
.history-event {
    display: flex;
    align-items: flex-start;
    position: relative;
}

/* Alternating layout */
.history-event:nth-child(odd) {
    flex-direction: row;
}

.history-event:nth-child(even) {
    flex-direction: row-reverse;
}

/* Event Content */
.history-event-content {
    width: calc(50% - 30px);
    background: var(--history-bg-light);
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid var(--history-gray-200);
    transition: all 0.3s ease;
}

.history-event-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: var(--history-primary);
}

/* Month Badge */
.history-event-month {
    display: inline-block;
    background: rgba(254, 185, 0, 0.15);
    color: var(--history-primary-dark);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
    margin-bottom: 12px;
}

/* Event Items List */
.history-event-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-event-items li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: var(--history-text-secondary);
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid var(--history-gray-200);
}

.history-event-items li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.history-event-items li:first-child {
    padding-top: 0;
}

.history-event-items li i {
    color: var(--history-primary);
    font-size: 10px;
    margin-top: 6px;
    flex-shrink: 0;
}

/* Timeline dot */
.history-event-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--history-white);
    border: 3px solid var(--history-primary);
    border-radius: 50%;
    z-index: 2;
    top: 24px;
}

/* Spacer for alternating layout */
.history-event-spacer {
    width: calc(50% - 30px);
}

/* ======= Responsive ======= */
@media (max-width: 768px) {
    .history-section {
        padding: 60px 0;
    }

    .history-section .section-header h2 {
        font-size: 26px;
    }

    .history-timeline::before {
        left: 20px;
    }

    .history-year-badge {
        text-align: left;
        padding-left: 50px;
    }

    .history-event {
        flex-direction: row !important;
        padding-left: 50px;
    }

    .history-event-content {
        width: 100%;
    }

    .history-event-dot {
        left: 20px;
    }

    .history-event-spacer {
        display: none;
    }

    .history-year-badge span {
        font-size: 18px;
        padding: 10px 24px;
    }
}

@media (max-width: 576px) {
    .history-section {
        padding: 40px 0;
    }

    .history-event-content {
        padding: 16px 18px;
    }

    .history-event-items li {
        font-size: 13px;
    }
}
