.bfe-widget,
.bfe-widget * {
    box-sizing: border-box;
}

.bfe-widget button {
    font: inherit;
}

.bfe-desktop-filters {
    width: 100%;
}

.bfe-category-row,
.bfe-tag-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.bfe-category-row {
    gap: 20px;
}

.bfe-tag-row {
    gap: 24px;
    margin-top: 18px;
    min-height: 32px;
}

.bfe-category-button,
.bfe-tag-button {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    margin: 0;
    cursor: pointer;
    transition:
        color .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        opacity .18s ease,
        transform .18s ease;
}

.bfe-category-button {
    background: transparent;
    color: #542177;
    padding: 12px 20px;
    border-radius: 28px;
}

.bfe-tag-button {
    background: transparent;
    color: #542177;
    padding: 7px 10px;
    border-radius: 18px;
}

.bfe-category-button:focus-visible,
.bfe-tag-button:focus-visible,
.bfe-load-more:focus-visible,
.bfe-mobile-filter-open:focus-visible,
.bfe-mobile-modal-close:focus-visible,
.bfe-mobile-modal-done:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.bfe-post-count {
    margin: 0 0 20px;
    color: #8e8e8e;
    line-height: 1.3;
}

.bfe-post-count-number,
.bfe-post-count-label {
    display: inline;
}

.bfe-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 52px;
    row-gap: 70px;
    transition: opacity .18s ease;
}

.bfe-widget.is-loading .bfe-grid {
    opacity: .45;
    pointer-events: none;
}

.bfe-card {
    min-width: 0;
    background-color: transparent;
    transition:
        background-color .22s ease,
        border-radius .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

@keyframes bfe-card-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bfe-card.bfe-card-enter {
    animation: bfe-card-fade-in .28s ease-out both;
    animation-delay: var(--bfe-enter-delay, 0ms);
}

.bfe-card-image-link {
    display: block;
    margin: 0 0 12px;
    text-decoration: none;
}

.bfe-card-image-wrap {
    position: relative;
    width: 100%;
    height: 430px;
    overflow: hidden;
    border-radius: 44px;
    background: #f2f2f2;
}

/*
 * Use absolute sizing + !important for height/object-fit because several
 * themes and Elementor global image rules force featured images to height:auto.
 */
.bfe-card-image-wrap > img.bfe-card-image {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: 50% 0%;
    margin: 0 !important;
}

.bfe-card-image--placeholder {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f3f3, #e7e7e7);
}

.bfe-lock-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #c22a74;
    color: #fff;
    z-index: 2;
}

.bfe-lock-badge svg,
.bfe-lock-custom-svg {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
}

.bfe-card-meta-line {
    min-height: 29px;
    padding: 0 0 8px;
    border-bottom: 1px solid #b7d8cf;
}

.bfe-card-category {
    display: inline-block;
    color: #542177;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 1.25;
}

.bfe-card-title {
    margin: 10px 0 0;
    padding: 0;
    font-size: clamp(30px, 3vw, 48px);
    line-height: .98;
}

.bfe-card-title a {
    color: #000;
    text-decoration: none;
}

.bfe-card-date {
    margin-top: 8px;
    color: #8e8e8e;
    font-size: 18px;
    line-height: 1.25;
}

.bfe-card-excerpt {
    margin-top: 22px;
    color: #222;
    font-size: 16px;
    line-height: 1.5;
}

.bfe-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

.bfe-load-more-wrap {
    margin-top: 48px;
    text-align: center;
}

.bfe-load-more-wrap[hidden] {
    display: none !important;
}

.bfe-load-more {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: #542177;
    border-radius: 28px;
    padding: 12px 24px;
    transition: opacity .18s ease, transform .18s ease, background-color .18s ease, color .18s ease;
}

.bfe-load-more:hover {
    opacity: .86;
}

.bfe-load-more:disabled {
    opacity: .45;
    cursor: wait;
}

.bfe-mobile-filter-bar,
.bfe-mobile-modal {
    display: none;
}

.bfe-mobile-filter-open {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    color: #542177;
    background: #eee5ef;
    padding: 12px 18px;
    border-radius: 28px;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;
}

.bfe-mobile-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.bfe-mobile-filter-icon svg,
.bfe-mobile-filter-icon img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.bfe-mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0,0,0,.45);
    padding: 0;
}

.bfe-mobile-modal.is-open {
    display: flex;
}

.bfe-mobile-modal-panel {
    width: 100%;
    max-height: min(88vh, 760px);
    background: #fff;
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -12px 40px rgba(0,0,0,.12);
}

.bfe-mobile-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 20px 14px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.bfe-mobile-modal-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.bfe-mobile-modal-close {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    background: transparent;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #111;
    border-radius: 50%;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.bfe-mobile-modal-close span {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}

.bfe-mobile-modal-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 20px 24px;
}

.bfe-mobile-section-label {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .55;
}

.bfe-category-row--mobile,
.bfe-tags--mobile {
    justify-content: flex-start;
}

.bfe-category-row--mobile {
    margin-bottom: 28px;
}

.bfe-tags--mobile {
    margin-top: 0;
}

.bfe-mobile-modal-foot {
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0,0,0,.08);
}

.bfe-mobile-modal-done {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 14px 18px;
    border-radius: 999px;
    background: #542177;
    color: #fff;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;
}

body.bfe-modal-open {
    overflow: hidden;
}

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

@media (max-width: 767px) {
    .bfe-desktop-filters {
        display: none;
    }

    .bfe-mobile-filter-bar {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 28px;
    }

    .bfe-grid {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        row-gap: 46px;
    }

    .bfe-card-image-wrap {
        height: 360px;
        border-radius: 28px;
    }

    .bfe-card-title {
        font-size: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bfe-widget *,
    .bfe-widget *::before,
    .bfe-widget *::after {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        transition-duration: .01ms !important;
    }
}
