/* Category Page Styles */
.category-header {
    background-color: #f7f8fa;
    padding: 40px 0;
    margin-bottom: 30px;
    text-align: center;
}

.category-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.category-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    color: #666666;
}

.category-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.category-post {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.category-post-image {
    height: 200px;
    overflow: hidden;
}

.category-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-post:hover .category-post-image img {
    transform: scale(1.05);
}

.category-post-content {
    padding: 20px;
}

.category-post-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.category-post-excerpt {
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-post-meta {
    font-size: 12px;
    color: #999999;
    display: flex;
    justify-content: space-between;
}

/* Featured Post */
.category-featured-post {
    grid-column: 1 / -1;
    display: flex;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.category-featured-image {
    flex: 0 0 40%;
    height: 300px;
    overflow: hidden;
}

.category-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-featured-content {
    flex: 1;
    padding: 30px;
    background: #E1FFBB;
}

.category-featured-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.category-featured-excerpt {
    font-size: 16px;
    color: #666666;
    margin-bottom: 20px;
}

.category-featured-meta {
    font-size: 14px;
    color: #999999;
    display: flex;
    justify-content: space-between;
}

.category-featured-readmore {
    display: inline-block;
    margin-top: 15px;
    color: #3861fb;
    font-weight: 600;
    font-size: 14px;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-numbers {
    display: inline-block;
    margin: 0 5px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #111111;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #3861fb;
    color: #ffffff;
}

.page-numbers.prev,
.page-numbers.next {
    width: auto;
    padding: 0 15px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-featured-post {
        flex-direction: column;
    }
    
    .category-featured-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .category-posts {
        grid-template-columns: 1fr;
    }
}
