/* Add container padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Adds left and right padding */
}

.category-title {
    font-size: 2.5rem;
    margin: 2rem 0;
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Rest of your existing CSS remains the same */
.card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.read-more {
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 500;
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.category-header {
    text-align: center;
    margin: 2rem 0 3rem;
}

.category-description {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto;
}

.card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
    margin: 0.5rem 0;
}

.card-date, .card-author {
    display: inline-block;
}




/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem 0 2rem;
    padding: 1rem 0;
}

.pagination a {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 2px solid transparent;
}

.pagination a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.pagination a:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.pagination-info {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
}

/* Disabled state (if you want to add disabled buttons) */
.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #ccc;
    box-shadow: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pagination {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .pagination a {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .pagination-info {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        flex-direction: column;
        gap: 0.8rem;
    }

    .pagination a {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }

    .pagination-info {
        order: -1; /* Move info to top on mobile */
        width: 100%;
        text-align: center;
    }
}








/* Post Count Style - Add to category.css */
.post-count {
    font-size: 1rem;
    color: #888;
    margin-top: 0.5rem;
    font-weight: 500;
    display: inline-block;
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 30px;
    border: 1px solid #dee2e6;
}

/* Update category-header to accommodate the count */
.category-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
}

.category-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.category-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}
