/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/*-----Start Custom Filtering CSS-----*/

.ka-filters {
    font-size: 0%;
}
.ka-filters > button,
.ka-filters button.filter-dropdown,
.ka-filters button#filter-all {
    border-radius: 41px;
	border: none;
	background: var(--Button-background, #A12743);
    padding: 10px 15px;
    color: #fff;
	font-family: Roboto;
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 120%; /* 21.6px */
    display: inline-block;
    width: auto;
    margin-right: 11px;
    margin-bottom: 11px;
    min-width: 132px;
    position: relative;
}
.ka-filters button.filter-dropdown {
    position: relative;
    padding: 6px 16px 6px 16px;
}
.filter-dropdown.active {
    z-index: 99;
}

.ka-filters button.filter-dropdown.selected {
    border: solid 1px #062C3B;
    background-color: #062C3B;
    color: #fff;
}


.filter-dropdown .dropdown-label {
    position: relative;
    z-index: 5;
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.filter-dropdown .dropdown-label svg,
.filter-dropdown .dropdown-label i {
    margin-left: 5px;
    font-size: 12px;
}

.filter-dropdown .dropdown-label svg{
    transform: rotate(180deg);
}

.filter-dropdown.active .dropdown-label svg {
	transform: rotate(0deg);
}

.filter-dropdown.active .dropdown-label #Caret_icon_both #Path_5976{
    transform: translate(-50%, 0%);
}

.filter-dropdown.active .dropdown-label #Caret_icon_both #Path_9507{
    transform: translate(86%, 62%) rotate(180deg);
}

.filter-dropdown .dropdown-container {
	visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 50px;
    left: 0;
    right: auto;
    z-index: 1;
    min-width: 180px;
    background-color: #FFFFFF;
    padding: 10px;
    overflow: hidden;
}

.ka-filters > button.active, .ka-filters .filter-dropdown.active {
	border-radius: 16px 16px 0 0;
}
.filter-dropdown.active .dropdown-container {
    visibility: visible;
    opacity: 1;
	top: 34px;
}
.filter-dropdown:hover .dropdown-label path,
.filter-dropdown.active .dropdown-label path {
    fill: #fff;
}
#filter-date .dropdown-container {
    width: 497px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.dropdown-container #date-range {
    width: 100%!important;
    max-width: 100%!important;
    font-size: 15px;
}
.filter-item{
    /*display: grid;
    grid-template-columns: 1fr 24px 24px;
    grid-gap: 15px;*/
    display: flex;
    grid-gap: 10px;
    cursor: default;
}
.filter-item:not(:last-child) {
    margin-bottom: 10px;
}
.filter-item .term-name{
	color: #121619;
    font-family: Roboto;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 170%; /* 23.8px */
}
.filter-item .term-count {
    font-size: 13px;
    font-weight: 400;
    line-height: 23px;
    color: #3D4444;
    text-align: left;
    opacity: 0.7;
}
.filter-item .term-input{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #FFFFFF;
    border: 1.5px solid var(--Button-background, #A12743);
    cursor: pointer;
}
.filter-item .term-input svg {
    opacity: 0;
    visibility: hidden;
}
.filter-item .term-input.selected{
    border: 1px solid var(--Button-background, #A12743);
	background: var(--Button-background, #A12743);
}
.filter-item .term-input.selected svg {
    opacity: 1;
    visibility: visible;
}

.filter-item .term-input.selected svg path{
    fill: #fff;
}

#filter-sort .filter-item .term-input{
    border-radius: 30px;
    border: 1px solid #7994AC;
    position: relative;
}

#filter-sort .filter-item .term-input:before{
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    margin: auto;
    background-color: #4AC5FF;
    border-radius: 12px;
    opacity: 0;
}

#filter-sort .filter-item .term-input.selected{
    border: 1px solid #062C3B;
    background-color: transparent;
}

#filter-sort .filter-item .term-input.selected:before{
    opacity: 1;
}

.ka-applied-filters {
    text-align: left;
    font-size: 0%;
}
.ka-applied-filters .term-selected {
    display: inline-block;
    cursor: pointer;
/*    background-color: #F0F5F5;*/
    border: solid 1px #143348;
    border-radius: 100px;
    padding: 3px 16px;
    font-size: .85rem;
    font-weight: 400;
    line-height: 28px;
    color: #143348;
    margin: 0 16px 16px 0;
}
.daterangepicker::before {
    display: none;
}
.daterangepicker td:not(.off).active, .daterangepicker td:not(.off).active:hover {
    background-color: #117F91!important;
}
.drp-buttons button {
    background-color: #117F91!important;
    padding: 10px!important;
}
.drp-buttons button:hover {
    color: #3B4444!important;
    background-color: #D6D6D6!important;
}
.results-count {
    font-size: 15px;
    font-weight: 400;
    line-height: 23px;
}
.results-loader {
    position: relative;
}

.results-loader::before {
    visibility: hidden;
    opacity: 0;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    background-image: url(images/loading.gif);
    background-repeat: no-repeat;
    background-position: center;
}

.results-loader.loading {
	opacity: 0.5;
}

.results-loader.loading::before {
    visibility: visible;
    opacity: 1;
}

.results-progress {
    width: 190px;
    text-align: center;
    margin: 0 auto 27px;
}
.results-progress .progress-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 23px;
    color: #53616D;
    margin-bottom: 10px;
}
.results-progress .progress {
    display: block;
    position: relative;
    background-color: #C9D4DE;
    border-radius: 100px;
    height: 2px;
    overflow: hidden;
}
.results-progress .progress span {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #062C3B;
    transition: all 0.5s;
}

.ka-load-more {
    text-align: center;
    margin-top: 78px; 
}

.ka-results {
    min-height: 300px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 64px;
    row-gap: 48px;
}

/* .ka-results.congregation-results {
    grid-template-columns: repeat(1, 1fr);
} */

.ka-results article {
    position: relative;
    padding-bottom: 30px;
    margin-bottom: 31px !important;
    border-bottom: 1px solid #C5C7C9;
    max-width: 850px;
}

.ka-results .terms .term{
    background-color: #0D4C81;
}

.ka-results .elementor-widget-wrap .elementor-element:not(:first-child) {
    margin-bottom: 5px !important;
}

.ka-results .uael-infobox .uael-icon-wrap .uael-icon i:before {
    position: static;
}

a.load-more.elementor-button {
    width: 100%;
    max-width: 300px;
}

.ka-results article:not(.has-post-thumbnail) .elementor-column{
    width: 100%;
}

.ka-results .chips .chip{
    background-color: #6EA32D;
    color: #fff;
    border-color: #6EA32D;
}

.post-term span {
    background-color: #7994AC;
    color: #fff;
}

@media only screen and (max-width: 1024px) {
    .ka-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px){
    .ka-results {
        grid-template-columns: repeat(1, 1fr);
    }

    .filter-dropdown .dropdown-container {
        top: 50px;
        left: -45px;
        right: 0;
        z-index: 1;
        min-width: 210px;
        padding: 20px 16px;
    }

    .ka-load-more {
        margin-top: 25px; 
    }
}

@media (max-width: 400px){
    .ka-filters > button,
    .ka-filters button.filter-dropdown,
    .ka-filters button#filter-all{
        width: 100%;
    }

    .filter-dropdown .dropdown-container {
        top: 35px;
        left: 0;
    }
}

/*-----End Custom Filtering CSS-----*/