.bcf-widget-wrapper {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
}

.bcf-filter-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.bcf-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.bcf-filter-btn {
    background: transparent;
    border: 1px solid #000000;
    color: #000000;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.bcf-filter-btn.active {
    background-color: #F4C36A;
    border-color: #F4C36A;
    color: #000000;
}

.bcf-filter-btn:hover {
    background-color: #F4C36A;
    border-color: #F4C36A;
    color: #000000;
}

/* Search Bar Styles */
.bcf-search-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.bcf-search-input {
    width: 100%;
    outline: none;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    transition: all 0.3s ease;
}

.bcf-search-input::placeholder {
    color: #666666;
}

.bcf-search-icon {
    position: absolute;
    right: 15px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bcf-search-icon i {
    font-size: 16px;
    color: #000000;
}

/* Spinner Styles */
.bcf-posts-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.bcf-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #F4C36A;
    border-radius: 50%;
    animation: bcfSpin 0.8s linear infinite;
}

@stairs bcfSpin {
    to { transform: rotate(360deg); }
}

/* Posts Grid Layout with Equal Height Support */
.bcf-posts-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
    transition: opacity 0.3s ease;
}

.bcf-post-card {
    box-sizing: border-box;
    padding: 15px;
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.bcf-post-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.bcf-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/10;
    transition: transform 0.3s ease;
}

.bcf-post-card:hover .bcf-post-thumbnail img {
    transform: scale(1.05);
}

.bcf-post-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    border: 1px solid #eeeeee;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bcf-post-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.bcf-post-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bcf-post-title a:hover {
    color: #F4C36A;
}

.bcf-post-meta {
    font-size: 12px;
    color: #666666;
    margin-bottom: 12px;
}

.bcf-post-excerpt {
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.bcf-read-more {
    font-size: 14px;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    transition: letter-spacing 0.3s ease;
    margin-top: auto;
}

.bcf-read-more:hover {
    letter-spacing: 1px;
}

.bcf-no-posts {
    width: 100%;
    text-align: center;
    padding: 40px;
    color: #666666;
}

/* Responsive Grid Columns */
@media (min-width: 768px) {
    .bcf-post-card.bcf-grid-col-2,
    .bcf-post-card.bcf-grid-col-3,
    .bcf-post-card.bcf-grid-col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1025px) {
    .bcf-post-card.bcf-grid-col-3 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
    .bcf-post-card.bcf-grid-col-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}
