
.card .card-body h3, .card .card-body h3 a{
    color: #FE6900;
    font-size: 1.3rem !important;
}
.card-body-content a {
    color: #333 !important;
}
button#bf-load-more{
    background:#E86203;
}
.load-more {
    text-align: center;
}
/* Filter Controls Row */
.bf-controls {
    display: flex;
    flex-wrap: wrap; /* Allows wrap on smaller screens */
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.bf-controls input,
.bf-controls select,
.bf-controls button {
    flex: 1;
    min-width: 150px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 14px;
    border-radius: 4px;
    box-sizing: border-box;
    height: 50px;
}

.bf-controls input {
    flex: 2; /* Make search box wider */
}

.bf-controls button {
    background: #d6366c;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.bf-controls button:hover {
    background: #b52a56;
}
.btn-group.btn-group-toggle {
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.btn-group-toggle .btn {
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    padding: 6px 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;

    height: 50px;
}

.btn-group-toggle .btn:not(:last-child) {
    border-right: none; /* Remove double borders */
}

.btn-group-toggle .btn:hover {
    background-color: #f8f9fa;
}

.btn-group-toggle .btn.active {
    background-color: #343a40; /* Dark background */
    color: #fff; /* White text */
    border-color: #343a40;
}

.btn-group-toggle .btn input[type="radio"] {
    display: none; /* Hide the actual radio */
}
.btn-group.float-right label{

flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}
/********/

div#bf-posts .bf-item{
    margin-bottom: 2rem !important;
    padding-right: 15px;
    padding-left: 15px;
}

.card {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    border-radius: .25rem !important;
    border: 0 !important;
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
}
.card img{
    width: 100% !important;
    height: 300px;
    object-fit: cover;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom: 1px solid #ddd;
}
.card .card-body{
    padding: 1rem !important;
}

/*
Grid
*/ 
div#bf-posts.bf-grid .bf-item{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
div#bf-posts.bf-grid .bf-thumb img {
    height: 300px;
    object-fit: cover;
}
.bf-grid{
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}

.bf-grid .bf-item{
flex: 0 0 33.333333%;
    max-width: 33.333333%;
}
@media (max-width: 768px) {
.bf-grid .bf-item {
    flex: 100%;
    max-width: 100%;
}

}

/*
* List
*/

.bf-list{
    margin-right: -15px;
    margin-left: -15px; 
}
.bf-list .card {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: row;
}

.bf-list .bf-thumb img {
    display: block;
    max-width: 200px;
    height: auto;
}

.bf-list .bf-info {
    flex: 1; /* take remaining space */
}

@media (max-width: 768px) {
    
    .bf-list .bf-thumb img {
        max-width: 100%;
    }
    .bf-list .card {
        flex-direction: row;
        text-align: left;
    }
    .bf-list .bf-thumb {
        width: 100px;
        display: none;
    }
}



/***************/
.bf-wrapper {
    position: relative;
}

.bf-loader-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    z-index: 999;
    display: none;
    text-align: center;
    padding-top: 60px;
}

.bf-loader-overlay::before {
    content: "";
    /*border: 4px solid rgba(255, 255, 255, 0.3);*/
    /*border-top: 4px solid #fff;*/
    /*border-radius: 50%;*/
    /*width: 32px;*/
    /*height: 32px;*/
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}