/* Post Listing — paginated grid for any selected post type. */
.post-listing { padding: 100px 0; }
.post-listing-lead { margin-bottom: 48px; max-width: 900px; }
.post-listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-listing-grid.cols-1 { grid-template-columns: 1fr; }
.post-listing-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.post-listing-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.post-listing-card {
    display: flex;
    flex-direction: column;
    background: var(--brand-white);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.post-listing-img-wrap { aspect-ratio: 4 / 3; overflow: hidden; }
.post-listing-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.post-listing-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.post-listing-date { font-family: var(--font-body); font-size: 14px; color: var(--tint-teal-80); text-transform: uppercase; letter-spacing: 0.5px; }
.post-listing-body h4 { color: var(--brand-teal); margin: 0; }
.post-listing-body p { font-family: var(--font-body); font-size: 16px; line-height: 24px; color: var(--brand-dark-grey); margin: 0; }
.post-listing .no-results { text-align: center; color: var(--brand-dark-grey); }

.post-listing-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.post-listing-pagination a,
.post-listing-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--tint-teal-10);
    color: var(--brand-dark-grey);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
}
.post-listing-pagination .current { background: var(--brand-teal); color: var(--brand-white); }
.post-listing-pagination a:hover { background: var(--brand-teal); color: var(--brand-white); }

@media (max-width: 1199.98px) {
    .post-listing-grid, .post-listing-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
    .post-listing { padding: 56px 0; }
    .post-listing-grid, .post-listing-grid.cols-2, .post-listing-grid.cols-3, .post-listing-grid.cols-4 { grid-template-columns: 1fr; }
}
