.cp-category-posts {
    width: 100%;
}

.cp-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: opacity 0.3s;
}

.cp-posts-grid.cp-loading {
    opacity: 0.5;
    pointer-events: none;
}

.cp-post-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
}

.cp-post-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.cp-post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.cp-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.cp-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.cp-post-card:hover .cp-post-thumbnail img {
    transform: scale(1.05);
}

.cp-no-thumb {
    background: #f0f0f0;
}

.cp-post-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    text-align: center;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.cp-date-day {
    font-size: 26px;
    font-weight: 700;
    display: block;
    color: #333;
    line-height: 1.1;
}

.cp-date-month {
    font-size: 13px;
    display: block;
    color: #888;
    line-height: 1.4;
}

.cp-post-content {
    padding: 20px 25px 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    text-align: left;
}

.cp-post-title {
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    width: 100%;
}

.cp-post-title a {
    text-decoration: none;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.cp-post-title a:hover {
    opacity: 0.8;
}

.cp-post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 18px;
    flex: 1;
    text-align: left;
}

.cp-read-more {
    display: inline-block;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
    align-self: flex-start;
}

.cp-read-more:hover {
    color: #388E3C;
}

.cp-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-size: 16px;
    padding: 40px 0;
}

/* Pagination */
.cp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.cp-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    flex-shrink: 0;
}

.cp-nav-btn svg {
    width: 20px;
    height: 20px;
}

.cp-nav-btn:hover:not(.disabled) {
    background: #f5f5f5;
    border-color: #bbb;
}

.cp-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.cp-page-numbers-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cp-page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s;
    border: none;
    user-select: none;
}

.cp-page-numbers.active {
    color: #4CAF50;
    font-weight: 600;
    border: 2px solid #4CAF50;
    border-radius: 4px;
}

.cp-page-numbers:hover:not(.active) {
    background: #f5f5f5;
}

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

@media (max-width: 640px) {
    .cp-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cp-post-title a {
        font-size: 17px;
    }

    .cp-post-excerpt {
        font-size: 13px;
    }

    .cp-pagination {
        margin-top: 30px;
    }
}
