.cnu-posts-display {
    width: 100%;
    position: relative;
    scroll-margin-top: 100px;
}

.cnu-posts-grid {
    display: grid;
    gap: 28px;
    transition: opacity .2s ease;
}

.cnu-posts-grid.cnu-columns-1 { grid-template-columns: 1fr; }
.cnu-posts-grid.cnu-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cnu-posts-grid.cnu-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cnu-posts-grid.cnu-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cnu-post-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cnu-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.cnu-post-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2f2f2;
    text-decoration: none;
}

.cnu-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.cnu-post-card:hover .cnu-post-image img {
    transform: scale(1.04);
}

.cnu-post-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
}

.cnu-post-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cnu-post-category {
    color: #9d0b0b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 9px;
}

.cnu-post-title {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.3;
}

.cnu-post-title a {
    color: #222;
    text-decoration: none;
}

.cnu-post-title a:hover {
    color: #9d0b0b;
}

.cnu-post-excerpt {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.cnu-post-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #888;
}

.cnu-post-read-more {
    color: #9d0b0b;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.cnu-post-read-more:hover {
    color: #c9a227;
}

.cnu-posts-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 35px;
}

.cnu-page-button {
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s ease;
}

.cnu-page-button:hover {
    border-color: #9d0b0b;
    color: #9d0b0b;
}

.cnu-page-button.active {
    background: #9d0b0b;
    border-color: #9d0b0b;
    color: #fff;
}

.cnu-posts-status {
    min-height: 22px;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #777;
}

.cnu-posts-display.is-loading .cnu-posts-grid {
    opacity: .35;
    pointer-events: none;
}

.cnu-posts-empty {
    grid-column: 1 / -1;
    padding: 50px 20px;
    text-align: center;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 12px;
    color: #777;
}

@media (max-width: 991px) {
    .cnu-posts-grid.cnu-columns-4,
    .cnu-posts-grid.cnu-columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cnu-posts-grid.cnu-columns-4,
    .cnu-posts-grid.cnu-columns-3,
    .cnu-posts-grid.cnu-columns-2 {
        grid-template-columns: 1fr;
    }

    .cnu-post-content {
        padding: 18px;
    }

    .cnu-post-title {
        font-size: 19px;
    }

    .cnu-posts-pagination {
        gap: 5px;
    }

    .cnu-page-button {
        width: 36px;
        height: 36px;
    }
}
