/*--------------------------------------------------------------
# Menu - Dynamic Search
--------------------------------------------------------------*/
#close_search_box {
    display: none;
}

.search_label {
    background-color: #FF956E;
    text-align: center;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    padding: 0 0 0 1em;
    box-shadow: 1px 1px 4px 0 rgba(0,0,0,0.2);
    border-radius: 2px 0 0 2px;
    color: #fff;
    margin: 1em 1em 0.4em 1em;
}

.search_label span {
    line-height: 2.3;
}

.dynamic_search {
    border: 1px solid #FF956E;
    border-radius: 0 2px 2px 0;
    color: #444;
    padding: 0.4em;
    width: calc(100% - 4rem);
    background: #fff;
}

.search_results {
    max-width: 60em;
    margin: 0 auto;
    overflow: auto;
    height: calc(100vh - 8.2em);
}

.search_results::-webkit-scrollbar {
    width: 0.3em;
}

.search_results::-webkit-scrollbar-thumb {
    background-color: #FF956E;
    border-radius: 1em;
}

.search_results::-webkit-scrollbar-track {
    background-color: #133348
}

.dynamic_search_block ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.dynamic_search_block li {
    display: inline-block;
    width: 46%;
    max-width: 50%;
    min-width: 13em;
    border: none;
    box-shadow: 0 0 6px 0 rgba(0,0,0,0.4);
    border-radius: 2px;
    margin: 2%;
    background: #fff;
    position: relative;
}

.search_results a, .search_results a {
    display: block;
    height: 100%;
    padding: 1rem;
    outline: 0 solid #FF956E;
}

.search_results a:hover, .search_results a:focus {
    outline: 3px solid #FF956E;
}

.search_for_label {
    text-align: center;
    color: #fff;
    font-size: 0.8em;
    padding: 0 1em 0.5em;
    margin-bottom: 0;
}

.search_result_title {
    font-size: 1.1em;
    border-bottom: 1px solid #FF956E;
    margin: 0 0 0.5em;
}

.search_results a:hover .search_result_title, .search_results a:focus .search_result_title {
    color: #FF956E;
}

.search_result_excerpt {
    color: #4A4A4A;
    font-size: 0.8em;
    text-align: left;
    padding-bottom: 1.5em;
}

.search_result_read_more {
    color: #FF956E;
    text-align: center;
    font-size: 0.9rem;
    margin: 0.5em 0 0;
    margin: 0.5em 0 0;
    display: block;
    position: absolute;
    bottom: 1em;
    left: 0;
    right: 0;
}

.search_results a:hover .search_result_read_more, .search_results a:focus .search_result_read_more {
    font-weight: bold;
}

.dynamic_search_block .no-results {
    color: #ccc;
    font-weight: normal;
    text-align: center;
}

.searching {
    display: none;
    color: #FF956E;
    margin: 0 auto;
}

.active-search.searching {
    display: block;
    animation: search 1.5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.dynamic_search_block {
    position: fixed;
    z-index: 100;
    background: linear-gradient(0deg, #407E9F, #163C55);
    display: block;
    visibility: hidden;
    transition: all 0.5s ease;
    overflow: hidden;
}

.dynamic_search_block.js-opened #close_search_box {
    opacity: 1;
}

@media only screen and (max-width: 68.4em) { /*1094px*/
    .dynamic_search_block {
        top: 100%;
        bottom: 0;
        right: 0;
        left: 0;
    }

    .dynamic_search_block.js-active {
        visibility: visible;
        top: 0;
        transition: top 700ms;
    }
}

@media only screen and (min-width: 68.5em) { /*1095px*/
    #close_search_box {
        color: #fff;
        width: 2rem;
        height: 2rem;
        display: block;
        text-align: center;
        line-height: 0;
        border-radius: 1em;
        position: absolute;
        opacity: 0;
        transition: all 0.3s ease;
        background: #FF956E;
        left: -1em;
        top: 2.6em;
        display: none;
    }

    #close_search_box:hover, #close_search_box:focus {
        background: rgba(255,255,255,0.2);
    }

    .dynamic_search_block {
        z-index: 9999;
    }

    .search-blanket {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        background: rgba(0, 0, 0, 0);
        z-index: 2;
    }

    .search_label {
        line-height: 2.4;
        margin: 1.65em auto 0.2em;
        max-width: 58rem;
    }

    .search_label span {
        line-height: 3.3;
    }

    .search_for_label {
        font-size: 1.2rem;
        padding-bottom: 0.5rem;
    }

    .search_results {
        margin: 0 auto;
        max-height: 20.5rem;
        ;}

    .search_result_title {
        font-size: 1.1em;
    }

    .search_result_excerpt {
        font-size: 0.9em;
    }

    .search_result_read_more {
        font-size: 1rem;
    }

    .dynamic_search_block:after {
        content: "";
        display: block;
        width: 100%;
        height: 1.8em;
    }

    .dynamic_search_block {
        height: calc(100vh - 7.1rem);
        max-height: 30rem;
        z-index: 99;
        visibility: hidden;
        opacity: 0;
        box-shadow: 0.05rem 0.05rem 0.25rem rgba(0, 0, 0, 0.2);
        transform: scale(0.7);
        transform-origin: 50% 0;
        transition: transform 500ms,opacity 300ms,visibility 0ms 500ms;
        background: #163C55;
        top: 100%;
        left: 3rem;
        right: 3rem;
        width: auto;
        position: absolute;
        padding-left: 1.5rem;
        padding-right: 1.5rem;

    }

    .dynamic_search_block.js-active {
        visibility: visible;
        transform: scale(1);
        opacity: 1;
        transition: transform 500ms,opacity 300ms 200ms;
    }

    .menus.sticky-active + .dynamic_search_block {
        top: 5.1rem;
        height: calc(100vh - 5.1rem);
    }
}

@keyframes search {
    from {
        transform: rotate(0deg) translateX(3px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(3px) rotate(-360deg);
    }
}
