/* Shared card layout + optional grid for the "Post Types Block" widget */
.bp-post-types-block {
    width: 100%;
}

.bp-post-types-block .bp-block-header {
    text-align: center;
    margin-bottom: 36px;
}

.bp-post-types-block .bp-block-title {
    margin: 0 0 0.75rem 0;
    font-size: 44px;
    font-weight: 700;
    color: var(--bp-heading-color, #3c5388);
}

.bp-post-types-block .bp-block-subtitle {
    margin: 0;
    color: var(--bp-subtitle-color, rgba(60, 83, 136, 0.85));
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.bp-post-types-block .bp-pb-group {
    margin-bottom: 50px;
}

.bp-post-types-block .bp-pb-group:last-child {
    margin-bottom: 0;
}

.bp-post-types-block .bp-pb-group-header {
    text-align: center;
    margin-bottom: 22px;
}

.bp-post-types-block .bp-pb-group-title {
    margin: 0;
    font-size: 30px;
    color: var(--bp-heading-color, #3c5388);
}

.bp-post-types-block .bp-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.bp-post-types-block article.bp-card,
.bp-post-types-block .bp-card {
    /* Ensure flex layout can push the actions to bottom consistently */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bp-post-types-block .bp-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.bp-post-types-block .bp-card-actions {
    margin-top: auto !important;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1024px) {
    .bp-post-types-block .bp-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .bp-post-types-block .bp-cards-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.bp-post-types-block .bp-card-excerpt {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

