.dfx-search-filters button:hover .btn {
    color: #333;
    background-color: #ebebeb;
    border-color: #adadad;
}
.dfx-search-filters button:active .btn {
    color: #333;
    background-color: #ebebeb;
    border-color: #adadad;
    -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
    box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
}
.dfx-search-category, .dfx-search-date {
    width: 100%;
    position: relative;
}

.dfx-search-filters {
    margin: 10px 0;
}

.dfx-search-filters .btn-group {
    width: 100%;
}
.dfx-search-filters .btn-group .btn:first-child {
    overflow: hidden;
    width: calc(100% - 34px);
    padding-left: 8px;
}
.dfx-search-filters .btn-group .btn:first-child:lang(ar) {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.dfx-search-filters .btn-group .btn:last-child:lang(ar) {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
button.dfx-reset-styles-btn {
    background: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.dfx-search .dropdown-menu li {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.dfx-search .dropdown-menu li:hover, .dfx-search .dropdown-menu li.active {
    background-color: #ebebeb;   
}

.dfx-search-results {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    border-top: 1px solid #eee;
    margin-bottom: 20px;
}

.dfx-search-results .dfx-no-events-query {
    margin: 8% auto;
}

.dfx-search-item {
    font-family: Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;
    position: relative;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
    padding-top: 10px;
}
.dfx-search-item:last-child {
    border-bottom-color: transparent;
}
.dfx-search-item.dfx-search-item-type-page:last-child {
    border-bottom-color: #eee;
}
.dfx-search-item.dfx-search-item-type-page {
    background-color: #FFFAF1;
}
.dfx-search-item a {
    color: inherit;
}
.dfx-color-blue {
    color: #175877;
}
.dfx-color-gray {
    color: #94999c;
}
.dfx-search-item-author span {
    padding-left: 3px;
}
.badge.dfx-tag-item {
    color: #40B1CF;
    border: 1px solid #40B1CF;
    background-color: #fff;
    transition: background-color .2s, color .2s, border-color .2s;
    margin-right: .3em;
    font-weight: 400;
    border-radius: 0.95em;
    line-height: 1em;
    padding: .25em 0.5833em;
    font-size: 16px;
}
.badge.dfx-tag-item:lang(ar) {
    margin-right: auto;
    margin-left: .3em;
}
.badge.dfx-tag-item:hover {
    border-color: #398AC7;
    background-color: #398AC7;
    color: #fff;
}
.badge.dfx-tag-item.dfx-tag-item-small {
    font-size: 12px;
}
.dfx-search-item-title {
    margin-top: 0;
}
.dfx-search-item-img {
    display: none;
}
.dfx-search-item em {
    background-color: #FFEFD9;
    border-bottom: 1px solid #FFB95F;
    font-style: normal;
}
.dfx-search-item .news-brief {
    word-wrap: break-word;
}
.dfx-search-item-date-desktop {
    display: none;
}
.dfx-tags-list, .dfx-search-item-author {
    display: inline-block;
}

@media (max-width: 767px) {
    .dfx-search-item {
        padding-left: 5px;
        padding-right: 5px;
    }
    .dfx-search-item-date, .dfx-search-item-author, .dfx-search-item .dfx-tags-list {
        display: inline-block;
    }
    .dfx-search-date {
        margin-top: 10px;
    }
    .dfx-search-filters .dropdown-menu {
        width: 100%;
    }
    .dfx-search .form-control {
        font-size: 16px;
    }
}
@media (min-width: 768px) {
    .dfx-search-input-container {
        float: left;
        width: 66.4%;
    }
    .dfx-search-input-container:lang(ar) {
        float: right;
    }
    .dfx-search-date {
        position: absolute;
        right: 0;
        top: -44px;
        width: 32.7%;
    }
    .dfx-search-date:lang(ar) {
        right: auto;
        left: 0;
    }
    .dfx-search-category {
        float: none;
        width: 100%;
        padding: 0;
    }
    .dfx-search-category .dropdown-toggle { 
        display: none;
    }
    .dfx-search-category .dropdown-menu {
        display: block;
        position: static;
        padding: 0;
        margin: 0;
        border: none;
        box-shadow: none;
    }
    .dfx-search-category .dropdown-menu:lang(ar) {
        float: right;
    }
    .dfx-search-category .dropdown-menu li {
        min-width: 0;
        width: auto;
        display: inline-block;
        color: #40B1CF;
        border: 1px solid #40B1CF;
        background-color: #fff;
        transition: background-color .2s, color .2s, border-color .2s;
        margin-right: .3em;
        font-weight: 400;
        border-radius: 0.95em;
        line-height: 1em;
        padding: .25em 0.5833em;

        font-size: 16px;
    }
    .dfx-search-category .dropdown-menu li:hover, .dfx-search-category .dropdown-menu li.active {
        border-color: #398AC7;
        background-color: #398AC7;
        color: #fff;
    }

    .dfx-search-item-date-mobile {
        display: none;
    }
    .dfx-search-item-date-desktop {
        display: block;
    }
    .dfx-search-item-date {
        position: absolute;
        top: 10px;
        left: 10px;
        max-width: 15%;
    }
    .dfx-search-item-date:lang(ar) {
        left: auto;
        right: 0px;
        max-width: 20%;
    }
    .dfx-search-item-column {
        padding-left: 16.666666666667%;
        padding-right: 5px;
    }
    .dfx-search-item-column:lang(ar) {
        padding-left: 5px;
        padding-right: 20%;
    }

    .dfx-search-item-img[src*="."] {
        display: block;
        float: right;
        max-width: 16.666666666667%;
        margin-right: -5px;
    }
    .dfx-search-item-img[src*="."]:lang(ar) {
        float: left;
        margin-right: 0;
        margin-left: -5px;
    }
    .dfx-search-item-img[src*="."] + div {
        padding-right: 16.666666666667%;
    }
    .dfx-search-item-img[src*="."] + div:lang(ar) {
        padding-left: 20%;
        padding-right: 0;
    }
}

.dfx-search-pagination .pagination {
    margin: 0 0 20px 0;
}
.dfx-search-pagination .dfx-pagination-summary {
    float: right;
    margin: 6px 0;
    color: #94999c;
    font-style: italic;
}
.dfx-search-pagination .dfx-pagination-summary:lang(ar) {
    float: left;
}
.dfx-search-pagination .pagination:lang(ar),
.dfx-search-pagination .pagination li:lang(ar) {
    float: right;
}
.dfx-search-pagination .pagination li.dfx-pagination-previous a:lang(ar) {
    border-radius: 0 4px 4px 0;
    margin-left: -1px;
}
.dfx-search-pagination .pagination li.dfx-pagination-next a:lang(ar) {
    border-radius: 4px 0 0 4px;
}

.dfx-search-pagination .pagination-fix span {
    padding-left: 2px;
}


.dfx-search .dfx-search-autocomplete-results {
    left: 0;
    top: 40px;
    width: 100%;
    border-radius: 5px;
    background: #eaeaea;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: none;
}

.dfx-search .dfx-search-autocomplete-results.open {
    display: block;
}

.dfx-search .dfx-search-autocomplete-results:before {
    content: none;
}

.dfx-search .dfx-search-autocomplete-results a {
    color: #175877;
    border-color: #d1d1d1;
    font-weight: bold;
    display: block;
    float: left;
    width: 100%;
}

.dfx-search .dfx-search-autocomplete-results a:hover, .dfx-search .dfx-search-autocomplete-results a.highlighted {
    color: #57b5ec;
}

.dfx-search .dfx-search-autocomplete-results a em {
    color: inherit;
    font-weight: bold;
    background-color: #eadbc5;
    border-bottom: 2px solid #eac897;
    padding: 2px;
}

.dfx-search .dfx-search-autocomplete-results a span {
    float: left;
    display: inline-block;
    width: 30%;
    clear: both;
}

.dfx-search .dfx-search-autocomplete-results a:hover span, .dfx-search .dfx-search-autocomplete-results a.highlighted span {
    color: #919ca5;
}

.dfx-search .dfx-search-autocomplete-results-content a > div {
    float: left;
    width: 70%;
}