.page-header {
    margin-bottom: 3rem;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.page-title {
    font-size: 2.5rem;
    margin: 0;
}

.archive-description {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.archive-item {
    display: flex;
    flex-direction: column;
}

.post-thumbnail {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.cat-badge {
    display: inline-block;
    padding: 2px 8px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.entry-title {
    font-size: 1.25rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.entry-title a {
    color: var(--color-secondary);
}

.entry-title a:hover {
    color: var(--color-primary);
}

.entry-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.entry-summary {
    color: #555;
    font-size: 0.95rem;
    margin-top: auto; /* Push footer down if we had one */
}

/* Pagination */
.pagination-wrap {
    margin-top: 4rem;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 4px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.pagination .prev, 
.pagination .next {
    font-weight: 400;
}

/* 404 Styles */
.error-404-wrap {
    text-align: center;
    padding: 4rem 0 2rem;
}

.error-404-wrap .page-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.error-message {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #444;
    font-weight: 500;
    line-height: 1.5;
}

.error-search-form {
    max-width: 100%; /* Full width */
    margin: 0 auto 4rem;
}

/* Reusing Global Search Style now (in global.css) */

.error-recent-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.recent-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--color-secondary);
    font-weight: 700;
}

/* Search Results Styles */
.search-results-wrap {
    padding-top: 2rem;
}

.search-results-wrap .page-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 3rem;
    margin-bottom: 4rem;
}

.search-results-wrap .page-title {
    font-size: 2rem;
    font-weight: 400;
    color: #666;
}

.search-results-wrap .page-title span {
    color: var(--color-primary);
    font-weight: 700;
    font-style: normal;
    border-bottom: 2px solid var(--color-primary);
}

.no-results .page-content {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
}

.no-results .page-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

