/* Header Wrappers */
.post-header-wrapper,
.archive-header {
    position: relative;
    background: #f8f9fa;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.post-header-wrapper .header-placeholder,
.archive-header .header-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.post-header-wrapper .container,
.archive-header .container {
    position: relative;
    z-index: 2;
}

/* Archive Header Specific */
.archive-header {
    background: rgba(0,0,0,0.03);
    text-align: center;
    padding: 40px 0;
}

.archive-title {
    max-width: 800px;
    margin: 0 auto;
}

.archive-title h1 {
    font-family: var(--primary-heading);
    font-size: 2.5rem;
    color: var(--night-black);
    margin-bottom: 15px;
}

.archive-title p {
    color: var(--night-grey);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Author Header */
.author-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.author-avatar {
    margin-bottom: 20px;
}

.author-avatar img {
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-light);
}

.author-bio {
    color: var(--night-grey);
    margin: 15px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.author-meta {}

.post-count {
    background: rgba(var(--blue-light-rgb), 0.1);
    color: var(--blue-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.author-social a {
    color: var(--night-grey);
    transition: color 0.3s;
}

.author-social a:hover {
    color: var(--blue-light);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--night-grey);
    margin-bottom: 10px;
}

.breadcrumbs p {
    margin: 0;
}

.breadcrumbs a {
    color: var(--blue-light);
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--blue-dark);
}

/* Archive Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    justify-content: space-between;

}

.archive-post {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.archive-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.archive-post .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.archive-post .post-content {
    padding: 20px;
}

.archive-post .post-category {
    margin-bottom: 10px;
}

.archive-post .post-category a {
    color: var(--white-text);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--blue-darkest);
    padding: 7px;
    border-radius: 10px;
}

.archive-post .post-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.archive-post .post-title a {
    color: var(--night-black);
    transition: color 0.3s;
}

.archive-post .post-title a:hover {
    color: var(--blue-light);
}

.archive-post .post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--night-grey);
    margin-bottom: 15px;
}

.archive-post .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.archive-post .post-excerpt {
    color: var(--night-grey);
    font-size: 0.95rem;
    line-height: 1.6;
}

.post-excerpt p {
    font-size: 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--night-black);
    font-weight: 600;
    box-shadow: var(--shadow-light);
    transition: all 0.3s;
}

.pagination .page-numbers.current {
    background: var(--blue-light);
    color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
    background: var(--blue-light);
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .archive-title h1 {
        font-size: 2rem;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .archive-header {
        padding: 30px 0;
    }

    .archive-title h1 {
        font-size: 1.8rem;
    }

    .author-bio {
        font-size: 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 40px;
    }
}

@media (max-width: 576px) {
    .archive-header {
        padding: 20px 0;
    }

    .archive-title h1 {
        font-size: 1.5rem;
    }

    .archive-title p {
        font-size: 0.95rem;
    }

    .author-meta {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .archive-post .post-title {
        font-size: 1.2rem;
    }

    .archive-post .post-content {
        padding: 15px;
    }
}