/* Category Archive Layout */
.category-archive .page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.category-archive .page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.archive-description {
    color: #666;
    margin-bottom: 2rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.entry-header {
    padding: 1.5rem;
}

.entry-title {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.entry-summary {
    padding: 0 1.5rem 1.5rem;
    color: #555;
    line-height: 1.6;
}

.entry-footer {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* Pagination */
.pagination {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .category-archive .page-title {
        font-size: 1.75rem;
    }
}
