* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb-home {
    color: #333;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* Page Banner */
.page-banner {
    background-image: url('/image/category_banner.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    width: 100%;
    aspect-ratio: 4.13 / 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 20px 40px;
    min-height: 300px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.page-banner .breadcrumb {
    background-color: transparent;
    padding: 0;
    font-size: 13px;
    color: #666;
    margin-bottom: 40px;
}

/* Tab Navigation */
.tab-navigation {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.tab-menu {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab-item {
    text-align: center;
}

.tab-item a {
    display: block;
    padding: 20px 0;
    text-decoration: none;
    color: #fff;
    background-color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.tab-item.active a {
    background-color: #4A90E2;
}

.tab-item:not(.active) a:hover {
    background-color: #4d4d4d;
}

/* History Section */
.history-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #4A90E2;
}

/* Timeline */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #4A90E2;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-marker {
    position: absolute;
    left: -50px;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4A90E2;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #4A90E2;
}

.timeline-content {
    padding-left: 40px;
}

.timeline-year {
    font-size: 32px;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 30px;
}

.timeline-events {
    border-left: 2px solid #e0e0e0;
    padding-left: 30px;
}

.event {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.event:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.event-month {
    display: inline-block;
    min-width: 50px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-right: 20px;
}

.event-description {
    flex: 1;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1100px) {
    .page-title {
        font-size: 40px;
    }

    .page-banner {
        padding: 30px 20px 40px;
    }
}

@media (max-width: 1024px) {
    .tab-menu {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .page-title {
        font-size: 38px;
    }

    .page-banner {
        padding: 25px 20px 40px;
    }
}

@media (max-width: 810px) {
    .page-title {
        font-size: 35px;
    }

    .page-banner {
        padding: 22px 20px 40px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        background-image: url('/image/m_category_banner.png');
        aspect-ratio: 4.13 / 1;
        min-height: 200px;
        padding: 30px 15px 30px;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .page-banner .breadcrumb {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .banner-illustration img {
        max-height: 180px;
    }

    .tab-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tab-navigation::-webkit-scrollbar {
        display: none;
    }

    .tab-menu {
        display: flex;
        gap: 0;
        justify-content: center;
    }

    .tab-item {
        flex-shrink: 0;
    }

    .tab-item a {
        white-space: nowrap;
        padding: 15px 18px;
        font-size: 14px;
        color: #333;
        background-color: #fff;
        border-bottom: 3px solid transparent;
    }

    .tab-item.active a {
        color: #4A90E2;
        background-color: #fff;
        border-bottom: 3px solid #4A90E2;
    }

    .tab-item:not(.active) a:hover {
        background-color: #f8f9fa;
        color: #333;
    }

    .tab-item:last-child a {
        border-bottom: 3px solid transparent;
    }

    .section-title {
        font-size: 28px;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-marker {
        left: -35px;
        width: 16px;
        height: 16px;
    }

    .timeline-year {
        font-size: 26px;
    }

    .timeline-content {
        padding-left: 20px;
    }

    .event-month {
        min-width: 40px;
        font-size: 16px;
    }

    .event-description {
        font-size: 14px;
    }
}

/* Extra small screens (Z Fold outer screen, etc.) */
@media (max-width: 350px) {
    .container {
        padding: 0 15px;
    }

    .breadcrumb {
        font-size: 12px;
        padding: 12px 0;
    }

    .breadcrumb-separator {
        margin: 0 6px;
    }

    .page-banner {
        min-height: 150px;
        padding: 25px 10px 20px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .page-banner .breadcrumb {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .tab-item a {
        padding: 15px 12px;
        font-size: 14px;
    }

    .history-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 40px;
        padding-bottom: 15px;
    }

    .section-title::after {
        width: 45px;
        height: 3px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 6px;
    }

    .timeline-item {
        margin-bottom: 30px;
    }

    .timeline-marker {
        left: -27px;
        width: 14px;
        height: 14px;
    }

    .timeline-year {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .timeline-content {
        padding-left: 15px;
    }

    .event-month {
        min-width: 35px;
        font-size: 14px;
    }

    .event-description {
        font-size: 13px;
        line-height: 1.6;
    }
}
