.wp-block-saae-posts-grid.saae-posts-grid {
    --saae-grid-columns: 2;
    width: 100%;
}

.saae-posts-grid__items {
    display: grid;
    grid-template-columns: repeat(var(--saae-grid-columns), minmax(0, 1fr));
    gap: 32px;
}

@media (max-width: 768px) {
    .saae-posts-grid__items {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.saae-posts-grid__card {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.saae-posts-grid__media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.saae-posts-grid__image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.saae-posts-grid__image--placeholder {
    background: #e9ecef;
    width: 100%;
    height: 100%;
    min-height: 320px;
    aspect-ratio: 1 / 1;
}

.saae-posts-grid__term {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);

    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
    color: #006898;
}

.saae-posts-grid__content {
    display: block;
}

.saae-posts-grid__date {
    margin-bottom: 8px;

    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #BCBDBF;
}

.saae-posts-grid__title {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.09;
    letter-spacing: -0.05em;
    color: #6774FF;
}


a.saae-posts-grid__card:hover .saae-posts-grid__title {
    text-decoration: underline;
}

.saae-posts-grid__card--static {
    cursor: default;
}

/* Pagination */
.saae-posts-grid__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 40px;
}

.saae-posts-grid__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: inherit;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.saae-posts-grid__page:hover:not(.is-disabled):not(.is-current) {
    background: #f4f4f5;
}

.saae-posts-grid__page.is-current {
    background: #6774FF;
    border-color: #6774FF;
    color: #fff;
    pointer-events: none;
}

.saae-posts-grid__page.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.saae-posts-grid__page--ellipsis {
    border: 0;
    background: transparent;
    min-width: 24px;
    padding: 0;
}

.saae-posts-grid--empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-family: "Manrope", sans-serif;
}