/* Blog listing page — /blog section index */
/* All classes use .bl-* namespace to avoid collisions with existing blog.css */

.bl-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
    justify-content: flex-start;
}

.bl-card-link {
    text-decoration: none;
    display: block;
}

.bl-card {
    background-color: var(--white);
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 328px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.bl-card:hover {
    box-shadow: 0 8px 24px rgba(26, 5, 47, 0.08);
}

/* Cards without a hero image keep the original fixed height */
.bl-card--no-image {
    height: 337px;
}

.bl-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.bl-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bl-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 40px;
    flex: 1;
    min-height: 200px;
}

@media screen and (max-width: 1077px) {
    .bl-grid {
        flex-direction: column;
    }

    .bl-card {
        width: 100%;
    }

    .bl-card--no-image {
        height: auto;
        min-height: 160px;
    }
}

@media screen and (max-width: 744px) {
    .bl-card-body {
        padding: 24px;
    }
}

/* Pagination */
.bl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.bl-pagination-btn {
    display: inline-block;
    background-color: var(--white);
    color: var(--violet900);
    font-family: var(--font-family-epilogue);
    font-size: var(--font-size-s);
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 100px;
    transition: box-shadow 0.2s ease;
}

.bl-pagination-btn:not(.bl-pagination-btn--disabled):hover {
    box-shadow: 0 4px 16px rgba(26, 5, 47, 0.12);
}

.bl-pagination-btn--disabled {
    opacity: 0.3;
    cursor: default;
}

.bl-pagination-info {
    opacity: 0.6;
}
