body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

* {
    box-sizing: border-box;
}

.display-none {
    display: none;
}

.display-block {
    display: block;
}

label {
    display: block;
}

h1 {
    font-size: 48px;
}

.pf-shortcode-wrap {
    background-color: #f2f2f2;
    border: 1px solid #d8d8d8;
    font-weight: bold;
    margin: 20px 0;
    padding: 15px;
}

.jbid-smart-searchify {
    width: 100%;
    margin: 0 auto!important;
    max-width: 1170px !important;
    padding: 0 !important;
    overflow: hidden;
}
.entry-header,.post-thumbnail{
    margin: 0 auto!important;
    max-width: 1170px !important;
}
header.entry-header {
    max-width: 1170px;
    margin: 0 auto;
}






/**************Common Controls**********/

select {
    border-color: #000;
    width: 100%;
    height: 40px;
    border-radius: 5px;
    padding:5px 30px 5px 10px;
    color: #000;
    font-size: 16px;
    background-image: url(../imgs/down-arrow.svg);
    background-size: 16px 16px;
    background-position: 95%;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;    
    font-family: inherit;
}

select::-ms-expand {
    display: none;
}
.multi-select-wrap{
    select{
        height: auto;
        background: none;
    }
}

.input-control {
    input[type="checkbox"] {
        padding: 0;
        height: initial;
        width: initial;
        margin-bottom: 0;
        cursor: pointer;
        width: 0;
        height: 0;
        position: absolute;
        visibility: hidden;
        opacity: 0;
    }

    input[type="checkbox"]+label {
        position: relative;
        cursor: pointer;
        display: flex;
        font-size: 16px;
        padding-left: 30px;
        align-self: flex-start;
        line-height: 1.4;
        &::before {
            content: "";
            -webkit-appearance: none;
            background-color: transparent;
            border: 1px solid #000;
            display: inline-block;
            position: relative;
            vertical-align: middle;
            cursor: pointer;
            margin-right: 5px;
            width: 24px;
            height: 24px;
            box-sizing: border-box;
            border-radius: 5px;
            position: absolute;
            left: 0;
            top: 0;
        }
    }
    input[type="checkbox"]:focus + label{
        &::before {
            border: 1px solid #003aff;  
        }
    }

    input[type="checkbox"]:checked+label:after {
        content: "";
        display: block;
        position: absolute;
        top: 6px;
        left: 10px;
        width: 4px;
        height: 12px;
        border: solid #000;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }
}

.input-control {
    input[type="radio"] {
        padding: 0;
        height: initial;
        width: initial;
        margin-bottom: 0;
        cursor: pointer;
        width: 0;
        height: 0;
        position: absolute;
        visibility: hidden;
        opacity: 0;
    }

    input[type="radio"]+label {
        display: inline-block;
        cursor: pointer;
        position: relative;
        padding-left: 30px;
        margin-right: 5px;
        font-size: 16px;
        line-height: 1.4;
        &::before {
            content: "";
            display: block;
            width: 22px;
            height: 22px;
            margin-right: 14px;
            position: absolute;
            top: 0px;
            left: 0;
            border: 1px solid #000;
            background-color: #fff;
            border-radius: 50%;
        }
    }

    input[type="radio"]:focus + label{
        &::before {
            border: 1px solid #003aff;  
        }
    }

    input[type="radio"]:checked+label:after {
        content: "";
        display: block;
        position: absolute;
        top: 5px;
        left: 5px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #000;
    }
}


.btn-wrapper {
    margin-top: 40px;
    display: flex;

    .jbid-btn {
        margin-right: 5px;
        padding: 10px;
        font-size: 16px;
        min-width: 100px;
        color: #003aff;
        font-weight: 500;
        border: 1px solid #003aff;
        background: white;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        border-radius: 5px;
        font-family: inherit;
        height: 40px;
        line-height: 2px; 
        &:hover {
            background-color: #003aff;
            color: white;
        }

        &.submit {
            background-color: #003aff;
            color: white;

            &:hover {
                color: #003aff;
                background-color: white;
            }
        }
    }
}

.filters{
    display: none;
    button{
        margin-right: 0px;
        padding: 10px;
        font-size: 16px;
        min-width: 100px;
        color: #003aff;
        font-weight: 500;
        border: 1px solid #003aff;
        background: white;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        border-radius: 5px;
        width: 100%;
        font-weight: 600;
        margin-bottom:20px;
    }
}


/************** Top Filters CSS****************/
.jbid-form-wrapper.display-top {
    display: flex;
    width: 100%;
    margin-bottom: 30px;
    .form-sortby-wrapper {
        width: 100%;
        display: flex;
    }
    .input-control{
        margin-bottom: 10px;
        &:last-child{
            margin-bottom: 0;
        }
    }
    .jbid-searchify-frm {
        display: flex;
        width: 100%;
    }

    .jbid-tax-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 5px;
        color: #000;
    }

    .jbid-filters-wrap {
        display: flex;
        margin-right: 10px;
        flex: 1;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .jbid-tax-container {
        width: 25%;
        padding-right: 10px;
        max-width: 25%;
        &:last-child{
            margin-right: 0;
        }
    }
    .multi-select-container {
        max-width: 100%;
    }

    .jbid-sortby-wrap {
        width: 25%;
        margin-left: 150px;
        order: 1;
        max-width: 150px;
    }

    .btn-wrapper {
        margin-top: 0;
        align-items: flex-start;
        margin-top: 28px;
        .jbid-btn{
            margin-right: 10px;
            &:last-child{
                margin-right: 0;
            }
        }
    }
}


/************** Left Filters CSS****************/
.jbid-form-wrapper.display-left {
    display: flex;
    padding-right: 4%;

    .jbid-searchify-frm {
        display: flex;
        width: 100%;
        flex-direction: column;
    }

    .form-sortby-wrapper{
        width: 100%;
    }
    .jbid-sortby-wrap {
        margin-bottom: 1.5rem;
    }

    .jbid-filters-wrap {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .jbid-tax-container {
        width: 100%;
        margin-bottom: 1.5em;
    }

    .jbid-tax-title {
        font-weight: 600;
        color: #000;
        font-size: 18px;
        display: block;
        letter-spacing: 0;
        border-bottom: 1px solid #000;
        padding-bottom: 10px;
        margin-bottom: 16px;
        margin-top: 0;
    }

    select#press_category {
        width: 100%;
        padding: 10px;
        font-size: 14px;
        border: 1px solid #000;
    }
    .btn-wrapper {
        margin-top: 0px;
    }
}

/**************Grid View CSS****************/
.jbid-post-items {
    &.grid-view {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -15px;
        padding: 0;
        overflow: hidden;

        .post-item {
            width: 25%;
            padding: 0 15px;
            margin-bottom: 30px;
            list-style: none;
            position: relative;
        }

        .featured-img-wrap {
            height: 250px;
            width: 100%;
            overflow: hidden;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 5px;
            }
        }

        .post-title {
            font-weight: 600;
            font-size: 18px;
            line-height: 1.4;
            margin-bottom: 10px;
            padding-bottom: 0;
            text-decoration: none;
            font-family: inherit;
            margin-top: 10px;
            color: #000;
            position: relative;
            a {
                text-decoration: none;
                display: block;

                &:hover {
                    text-decoration: underline;
                }

                &::after {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    height: calc(100% + 260px);
                    right: 0;
                    content: '';
                }
            }
        }

        p {
            margin: 0 0 10px;
            font-size: 16px;
            color: #5a5a5a;
            &.post-meta{
                margin-bottom: 5px;
                span{
                    margin-bottom: 5px;
                }
            }
        }

        .post-excerpts {
            font-weight: 400;
            color: #000;
            font-size: 16px;
            line-height: 1.4;
        }

        .read-more {
            a {
                color: #003aff;
                text-decoration: underline;
                font-weight: 700;
                font-size: 16px;

                &:hover {
                    text-decoration: none;
                }
            }
        }
    }
}
.jbid-lists-wrap {
    position: relative;
}

.jbid-smart-searchify.left-filters {
    display: flex;
    flex-wrap: wrap;

    .jbid-sortby-left {
        width: 100%;
        justify-content: flex-end;
        display: flex;
        margin-bottom: 30px;
      
    }
    .jbid-sortby-wrap {
        width: 25%;
        max-width: 150px;
        .jbid-tax-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 5px;
            color: #000;
        }


    }
    .jbid-form-wrapper {
        width: 25%;
        &.hide-left-filter {
            display: none;
            width: 0;
        }
    }
    .jbid-lists-wrap {
        width: 75%;
        &.full-width {
            width: 100%;
        }
    }
    .jbid-post-items {
        &.grid-view {    
            .post-item {
                width: 33.33%;
            }
        }
    }
    .input-control {
        display: flex;
        margin-bottom: 10px;
        font-size: 16px;
        align-items: center;

        &:last-child {
            margin-bottom: 0;
        }
    }
}


/**************List View CSS****************/
.jbid-post-items {
    &.list-view {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;

        .post-item {
            width: 100%;
            margin-bottom: 30px;
            align-items: center;
            display: flex;
            list-style: none;

            &:last-child {
                margin-bottom: 40px;
            }
        }

        .featured-img-wrap {
            height: 100%;
            min-width: 30%;
            width: 30%;
            overflow: hidden;
            min-height: 200px;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 5px;
            }
        }

        .post-details {
            width: 70%;
            padding-left: 40px;
        }

        .post-title {
            font-weight: 600;
            font-size: 18px;
            line-height: 1.4;
            margin-bottom: 10px;
            padding-bottom: 0;
            text-decoration: none;
            font-family: inherit;
            margin-top: 0px;

            a {
                text-decoration: none;
                display: block;

                &:hover {
                    text-decoration: underline;
                }
            }

            @media(min-width:991px){
                font-size: 24px;
            }
        }

        p {
            margin: 0 0 10px;
            font-size: 16px;
            color: #5a5a5a;
        }

        .post-excerpts {
            font-size: 16px;
            font-weight: 400;
            line-height: 1.4;
            color: #5a5a5a;
        }

        .read-more {
            margin-top: 40px;
            margin-bottom: 0;

            a {
                color: #003aff;
                text-decoration: underline;
                font-weight: 700;
                font-size: 16px;

                &:hover {
                    text-decoration: none;
                }
            }
        }
    }
}

.post-meta {
    font-size: 14px;
    line-height: 18px;
    color: #5a5a5a;
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    .published-on {
        position: relative;
        display: flex;
        align-items: center;

        &::before {
            content: '';
            width: 16px;
            height: 16px;
            background-image: url(../imgs/clock.svg);
            background-position: center;
            background-size: cover;
            position: relative;
            margin-right: 5px;
        }
        &::after{
            content: "|";
            margin-left: 5px;
        }
    }

    .published-by {
        padding-left: 5px;
        position: relative;

        // &::before {
        //     content: '|';
        //     margin-right: 5px;
        // }
    }
}

.no-result {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    font-size: 40px;
    padding: 0 20px;
    margin: 30px;

    p {
        margin: 0;
    }
}

/*************Pagination********************/
.jbid-ssearchify-pagination {
    text-align: center;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
    display: flex;
    padding: 30px 0;
    list-style: none;
    border-radius: 0.25rem;

    ul.jbid-ss-pagination {
        height: auto;
        width: auto;
        margin: 0;
        border-radius: 50%;
        list-style: none;
        display: flex;
        width: 100%;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    li {
        margin: 0 5px;
        height: 46px;
        width: 46px;
    }

    a.page-numbers,
    span.page-numbers {
        text-decoration: none;
        color: #555;
        height: 46px;
        width: 46px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 400;
        font-size: 20px;
        line-height: 35px;
        transition: all 0.3s;

        &.current,
        &:hover {
            background-color: #003aff;
            color: #fff;
            border-color: #003aff;
        }

        &.prev {
            width: 46px;
            height: 46px;
            display: inline-block;
            position: relative;
            text-indent: 9999em;
            overflow: hidden;
            top: 0;
            right: 0;
            border-radius: 50%;
            border: 2px solid #000;
            font-size: 20px;
            font-weight: 400;
            line-height: 35px;
            background: url(../imgs/prev-arrow.svg) no-repeat 50%;
            background-size: 14px;
            transform: rotate(180deg);
            &:hover {
                color: #fff;
                border-color: #003aff;
            }
        }

        &.next {
            width: 46px;
            height: 46px;
            display: inline-block;
            position: relative;
            text-indent: 9999em;
            overflow: hidden;
            top: 0;
            right: 0;
            border-radius: 50%;
            border: 2px solid #000;
            font-size: 20px;
            font-weight: 400;
            line-height: 35px;
            background: url(../imgs/next-arrow.svg) no-repeat 50%;
            background-size: 14px;

            &:hover {
                color: #fff;
                border-color: #003aff;
            }
        }
    }

    &:empty {
        display: none;
    }
}



/*******************Multiselct Dropdown*****************/

.multi-select-container {
    display: inline-block;
    position: relative;
    width: 100%;
}

.multi-select-menu {
    position: absolute;
    left: 0;
    top: 0.8em;
    z-index: 1;
    float: left;
    min-width: 100%;
    background: #fff;
    margin: 1em 0;
    border: 1px solid #000;
    display: none;
}

.multi-select-menuitem {
    display: flex;
    color: #000;
    font-size: 16px;
    padding: 0.6em 1em 0.6em 30px;
    white-space: nowrap;
    align-items: center;
}

.multi-select-menuitem--titled:before {
    display: block;
    font-weight: bold;
    content: attr(data-group-title);
    margin: 0 0 0.25em -20px;
}

.multi-select-menuitem--titledsr:before {
    display: block;
    font-weight: bold;
    content: attr(data-group-title);
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.multi-select-menuitem + .multi-select-menuitem {
    padding-top: 0;
}

.multi-select-presets {
    border-bottom: 1px solid #000;
}

.multi-select-menuitem input {
    position: absolute;
    margin-top: 1px;
    margin-left: -24px;
    color: black;
    width: 16px;
    height: 16px;
    border: 1px solid black;
}

.multi-select-button {
    display: inline-block;
    font-size: 16px;
    padding: 5px 10px;
    padding-right: 40px;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: -0.5em;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    cursor: pointer;
    min-height: 40px;
    background-image: url(../imgs/down-arrow.svg);
    background-size: 16px 16px;
    background-position: 95%;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    color: black;
}

.multi-select-button:after {
    display: none;
}

.multi-select-container--open .multi-select-menu {
    display: block;
}

.multi-select-container--open .multi-select-button:after {
    border-width: 0 0.4em 0.4em 0.4em;
    border-color: transparent transparent #000 transparent;
}

.multi-select-container--positioned .multi-select-menu {
    box-sizing: border-box;
}

.multi-select-container--positioned .multi-select-menu label {
    white-space: normal;
}

.jbid-ajax-loader {
    position: fixed;
    display: none;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: rgba(255,255,255,0.5);
    z-index: 1;
    &.active{
        display: flex;
    }
    .loader-icon{
        background-image: url(../imgs/loader.svg);
        width: 100px;
        height: 100px;
        background-size: cover;
    }
}


/***********Media Query***********/

@media(min-width:992px) and (max-width:1200px) {
    .jbid-post-items {
        &.grid-view {
            .post-item {
                width: 33.33%;
            }
        }
    } 
}
@media(min-width:768px) and (max-width:991px) {
    .jbid-post-items {
        &.grid-view {
            .post-item {
                width: 33.33%;
            }
        }
    }
    .jbid-smart-searchify.left-filters{
        .jbid-form-wrapper {
            width: 35%;
        }
        .jbid-lists-wrap {
            width: 65%;
        }
        .jbid-post-items {
            &.grid-view {
                .post-item {
                    width: 50%;
                }
            } 
            &.list-view{
                .featured-img-wrap {
                    min-width: 40%;
                    width: 40%;
                }
            }
        }  
    }  
    .jbid-form-wrapper.display-top .jbid-sortby-wrap {
        margin-left: 50px;
    }
}

@media (max-width:767px){
    .filters{
        display: block;
    }
    .jbid-smart-searchify.left-filters .jbid-sortby-left{
        display: none;
        .jbid-sortby-wrap {
            width: 100%;
            max-width: 100%;
            .jbid-tax-title {
                font-size: 18px;
                display: block;
                letter-spacing: 0;
                border-bottom: 1px solid #000;
                padding-bottom: 10px;
                margin-bottom: 16px;
                margin-top: 0;
            }
        }
    }
    .jbid-form-wrapper.display-top{
        display: none;
        .jbid-searchify-frm{
            flex-wrap: wrap;
        }
        .jbid-filters-wrap{
            margin-right: 0;
            flex-wrap: wrap;
            width: 100%;
            flex: initial;
        }
        .jbid-tax-container {
            width: 100%;
            margin-right: 0;
            margin-bottom: 15px;
            max-width: 100%;
        }
        .form-sortby-wrapper{
            flex-wrap: wrap;
        }
        .jbid-sortby-wrap{
            width: 100%;
            margin-right: 0;
            margin-bottom: 15px;
            order: 0;
            max-width: 100%;
            margin-left: 0;
        }
        .btn-wrapper{
            margin-top: 0;
        }
    }

    .jbid-smart-searchify.left-filters{
        display: block;
        .jbid-form-wrapper{
            width: 100%;
            padding-right: 0;
            display: none;
        }  
        .jbid-lists-wrap{
            width: 100%; 
        }
        .jbid-post-items {
            &.grid-view {
                .post-item {
                    width: 50%;
                }
            }
        }
    }
    .jbid-post-items {
        &.grid-view {
            .post-item {
                width: 50%;
            }
        }
        &.list-view .read-more{
            margin-top: 15px;
        }       
    }
    .jbid-form-wrapper.display-left{
        .jbid-searchify-frm{
            margin-bottom: 20px;
        }
        .btn-wrapper {
            margin-top: 20px;
        }
    } 
    .jbid-post-items {
        &.list-view {
            .featured-img-wrap {
                height: 100%;
                min-width: 40%;
                width: 40%;
            }
            .post-details {
                width: 60%;
                padding-left: 30px;
            }
        }
    }   
}

@media(max-width:540px) {
    .jbid-post-items {
        &.grid-view {
            .post-item {
                width: 100% !important;
            }
        }
    }
    .jbid-post-items {
        &.list-view {
            .post-item{
                flex-wrap: wrap;
            }            
            .featured-img-wrap {
                height:  250px;
                min-width: 100%;
                width: 100%;
                overflow: hidden;
                min-height: 250px;
            }
            .post-details {
                width:100%;
                padding-left: 0px;
                h3{
                    margin: 10px 0;
                }
            }
        }
    } 
}