:root {
    --archive-primary: #dc3545; 
    --archive-primary-hover: #c82333; 
    --archive-text-main: #333333;
    --archive-text-muted: #666666;
    --archive-border: #e5e7eb;
    --archive-bg: #ffffff;
}

.archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: inherit;
}

/* Simple Header */
.archive-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--archive-border);
}

.archive-header h1 {
    font-size: 2rem;
    color: var(--archive-text-main);
    margin-bottom: 1rem;
    font-weight: 600;
}

.archive-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--archive-text-muted);
    font-size: 0.9rem;
}

.archive-breadcrumb a {
    color: var(--archive-primary);
    text-decoration: none;
}

.archive-breadcrumb a:hover {
    color: var(--archive-primary-hover);
    text-decoration: underline;
}

.archive-breadcrumb i {
    font-size: 0.8rem;
}

/* Horizontal Wrapper */
.archive-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Navigation */
.archive-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-bottom: 1px solid var(--archive-border);
}

.nav-section h2 {
    font-size: 1.1rem;
    color: var(--archive-text-main);
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-section h2 i {
    color: var(--archive-text-muted);
}

.year-list, .month-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.year-list li a, .month-list li a {
    display: block;
    padding: 0.4rem 1rem;
    color: var(--archive-text-main);
    border: 1px solid var(--archive-border);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: var(--archive-bg);
}

.year-list li.active a, .month-list li.active a {
    background: var(--archive-primary);
    color: #ffffff;
    border-color: var(--archive-primary);
}

.year-list li a:hover:not(.active), .month-list li a:hover:not(.active) {
    border-color: var(--archive-primary);
    color: var(--archive-primary);
}

/* Articles */
.archive-content h2 {
    font-size: 1.5rem;
    color: var(--archive-text-main);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.articles-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.archive-article {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: none;
    border: 1px solid var(--archive-border);
    border-radius: 8px;
    background: var(--archive-bg);
}

.article-image {
    position: relative;
    width: 100%;
    min-height: 200px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: #f3f4f6;
}

.article-image img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.archive-article:hover .article-image img {
    opacity: 0.9;
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-content {
    display: flex;
    flex-direction: column;
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--archive-text-muted);
    margin-bottom: 0.75rem;
}

.article-meta i {
    margin-right: 0.3rem;
}

.article-category a {
    color: var(--archive-primary);
    text-decoration: none;
}

.article-category a:hover {
    text-decoration: underline;
}

.archive-article h2 {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
}

.archive-article h2 a {
    color: var(--archive-text-main);
    text-decoration: none;
}

.archive-article h2 a:hover {
    color: var(--archive-primary);
}

.excerpt {
    color: var(--archive-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    margin-top: auto;
    color: var(--archive-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Empty State */
.no-articles {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--archive-text-muted);
}

.no-articles i {
    font-size: 3rem;
    color: var(--archive-border);
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2rem;
}

.page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--archive-border);
    color: var(--archive-text-main);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    background: var(--archive-bg);
}

.page-link:hover {
    background: #f9fafb;
    color: var(--archive-primary);
    border-color: var(--archive-primary);
}

.current-page {
    height: 36px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--archive-primary);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid var(--archive-primary);
}

/* Responsive constraints */
@media (max-width: 992px) {
    .articles-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-header {
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }

    .archive-header h1 {
        font-size: 1.5rem;
    }

    .archive-wrapper {
        gap: 1.5rem;
    }

    .archive-nav {
        gap: 0.5rem;
    }

    .nav-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        border-bottom: 1px solid var(--archive-border);
        padding: 0.75rem 0;
    }
    
    .articles-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .archive-article {
        gap: 1rem;
        padding-bottom: 1.5rem;
    }
    
    .article-image {
        border-radius: 6px;
    }

    .archive-article h2 {
        font-size: 1.15rem;
    }

    .article-image,
    .article-image img {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .year-list li a, .month-list li a {
        padding: 0.3rem 0.75rem;
        font-size: 0.85rem;
    }



    .excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}