.ap-posts-grid {
    display: grid;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.ap-posts-grid.ap-cols-1 { grid-template-columns: 1fr; }
.ap-posts-grid.ap-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ap-posts-grid.ap-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ap-posts-grid.ap-cols-4 { grid-template-columns: repeat(4, 1fr); }

.ap-post-item {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ap-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ap-post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.ap-post-content {
    padding: 24px;
    flex-grow: 1;
}

.ap-post-title {
    margin: 0 0 12px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.ap-post-title a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.ap-post-title a:hover {
    color: #f2295b;
}

.ap-post-excerpt {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
}

.ap-post-excerpt p {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .ap-posts-grid.ap-cols-3,
    .ap-posts-grid.ap-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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