/* -------------------------------
------------- GLOBAL -------------
---------------------------------*/

#search-page #search-result,
.page #search-result{
    position: relative;
    top: initial !important;
}

#search-page #search-box,
.page #search-box{
    color: #000;
}

#search{position: relative;/* z-index: 10; */}

.search-infos button,
.ais-InfiniteHits-loadMore {
    background: #191919;
    color: #fff;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    cursor: pointer;
    transition: ease-in .1s;
}

.search-infos button i {
    margin-left: 10px;
    position: relative;
}

.search-infos button:hover,
.ais-InfiniteHits-loadMore:hover {
    background: #353535;
}

#reset-topics button {
    background: transparent;
    border: solid 1px #353535;
    color: #353535;
}

.ais-InfiniteHits-loadMore--disabled{
    display: none;
}

#search-result mark {
    background: #a2fff3;
}

/* -------------------------------
----------- SEARCH BOX -----------
---------------------------------*/

#search-box {
    /* background: #fff; */
    z-index: 9;
    padding: 30px 0;
    color: #fff;
    display: flex;
    justify-content: center;
}

#search-box>* {
    max-width: 850px;
    width: 100%;
}

#search-box form {
    display: flex;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgb(238, 238, 238), 0 2px 2px rgba(0, 0, 0, 0.24);
}

#search-box form input {
    width: 100%;
    padding: 15px 30px;
    border-right: solid 1px #eeeeee;
    font-weight: 400;
    color: #000;
    background: #fff;
    border-radius: 0;
    outline: none;
}

#search-box form input::placeholder {
    opacity: 0.5;
}

#search-box form button {
    width: 8%;
    min-width: 50px;
    background: #fff;
    color: #2197f3;
    cursor: pointer;
    transition: ease-in .1s;
    padding-right: 6px;
}

#search-box form button:hover {
    background: #eeeeee;
}

/* ------- Sticky Option ------- */

#search.sticky #search-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

#search.sticky .suggest-search {
    display: none;
}

#search.sticky #search-result {
    margin-top: 125px;
}

.sticky+#search-result {
    padding-top: 120px;
}

/* -------- Suggestions -------- */

.suggest-search {
    display: flex;
    margin-top: 15px;
}

.suggest-search span {
    font-weight: 400;
    margin-right: 10px;
    flex-shrink: 0;
}

.suggest-search ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.suggest-search ul li {
    list-style: none;
    margin-right: 5px;
    text-decoration: underline 1px;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* -------------------------------
------------ FILTERS -------------
---------------------------------*/

#topics-list {
    display: none;
}

#topics-list.open {
    display: block;
    background: #bdbdbd;
}

#topics-list ul,
#topics-list-selected ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    grid-gap: 4px;
}

#topics-list ul li a,
#topics-list-selected ul li {
    padding: 6px 10px;
    background: #2296f3;
    color: #fff;
    font-size: 0.8em;
    border-radius: 3px;
    font-weight: 400;
    display: inline-block;
    transition: ease-in .1s;
}

#topics-list ul li a:hover,
#search-result .left ol li:hover,
#search-result .right ol li:hover {
    box-shadow: -2px 2px 5px 0px rgb(0 0 0 / 10%);
    transform: translateX(1px)translateY(-1px);
}

#topics-list-selected ul li {
    background: transparent;
    border: solid 1px #2197f3;
    color: #2197f3;
    display: flex;
    align-items: center;
}

#topics-list-selected ul li:first-child {
    margin-top: 10px;
}

#topics-list-selected ul li button {
    background: none;
    font-size: 0.6em;
    font-weight: 600;
    width: 18px;
    height: 18px;
    background: #2197f3;
    color: #ffffff;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
    transition: ease-in .1s;
}

#topics-list-selected ul li button:hover {
    background: #fff;
    color: #2197f3;
}


/* -------------------------------
--------- SEARCH RESULT ----------
---------------------------------*/

#search-result-container{
    background: #eaeaea;
    box-shadow: 0px 5px 15px 5px rgb(0 0 0 / 30%);
}

#search-result {
    /* background: #f5fbff; */
    /* box-shadow: 0px 5px 15px 5px rgb(0 0 0 / 50%); */
    margin-bottom: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    z-index: 10;
    width: 100%;
    max-width: 1500px;
    padding: 0 15px;
}

#search-result-container>div {
    padding: 30px;
}

#search-result ol {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
}

#search-result li {
    list-style: none;
}

/* ------- Search Infos ------- */

#search-result .top {
    background: #ffffff;
    border-bottom: solid 1px #bdbdbd;
}

#search-result .top .search-infos {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#topics-counter {
    color: #bdbdbd;
}

#search-stats .current-query,
#search-stats .nb-results {
    font-weight: 600;
}

#search-stats .nb-results {
    font-size: 1.5em;
}

#search-help{
    display: none;
    font-size: 0.9em;
    color: grey;
}

/* --------- Speakers --------- */

#main-result .left {
    flex-grow: 1;
    width: 75%;
}

#search-result .left ol li {
    transition: ease-in .1s;
}

.ais-InfiniteHits {
    text-align: center;
}

.ais-InfiniteHits-loadMore {
    margin-top: 15px;
}

#main-result {
    display: flex;
    grid-gap: 30px;
    /* padding-top: 60px !important; */
    /* padding-bottom: 60px !important; */
}

.speaker-card {
    height: 100%;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.speaker-card:hover i span{
    opacity: 1;
}

.speaker-card .card-image {
    height: 240px;
    background-size: cover;
    background-position: center;
}

.speaker-card .card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* height: calc(100% - 170px); */
    position: absolute;
    width: 100%;
    bottom: 0;
    /* height: 50%; */
    display: flex;
    justify-content: flex-end;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
}

.speaker-card .card-content span {
    /* display: block; */
    color: #fff;
}

.speaker-card .card-content .card-title {
    font-weight: 600;
    display: block;
}

.speaker-card .card-content .card-desc {
    font-size: 0.8em;
}

.speaker-card .card-content .card-link {
    font-size: 0.9em;
    font-weight: 600;
    margin-top: 15px;
}

.speaker-card i{
    position: absolute;
    left: 5px;
    top: 5px;
    z-index: 5;
    display: flex;
    align-items: center;
}

.speaker-card i span{
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    margin-left: 4px;
    opacity: 0;
    transition: ease-in .1s;
}

/* ---------- Posts ---------- */

#main-result .right {
    width: 25%;
}

#main-result.full #speakers-result ol {
    grid-template-columns: repeat(6, 1fr);
}

#main-result.full .right {
    display: none;
}

#posts-result .blog-post .post-image img{
    height: 125px;
}

#posts-result ol {
    grid-template-columns: 1fr;
}

.ais-InfiniteHits--empty img{
    width: 78px;
}

/* -------------------------------
----------- RESPONSIVE -----------
---------------------------------*/

@media only screen and (max-width: 1024px) {

    #search-result ol {
        grid-template-columns: repeat(3, 1fr);
    }

    #posts-result ol {
        grid-template-columns: 1fr;
    }

    #main-result.full #speakers-result ol {
        grid-template-columns: repeat(4, 1fr);
    }

}

@media only screen and (max-width: 767px) {

    #search-result ol {
        grid-template-columns: repeat(2, 1fr);
    }

    #main-result .right {
        display: none;
    }

    #main-result.full #speakers-result ol {
        grid-template-columns: repeat(2, 1fr);
    }

    .suggest-search {
        display: none;
    }

    #search-result .top .search-infos {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-actions {
        margin-top: 10px;
    }

}

@media only screen and (max-width: 480px) {

    #search-result ol {
        grid-template-columns: repeat(1, 1fr);
    }

    #main-result.full #speakers-result ol {
        grid-template-columns: repeat(1, 1fr);
    }

    .suggest-search {
        flex-direction: column;
    }

    .speaker-card a {
        display: flex;
        align-items: center;
        position: relative;
        min-height: 70px;
    }

    .speaker-card a .card-image {
        width: 70px;
        height: 100%;
        position: absolute;
    }

    .speaker-card a .card-content {
        position: relative;
        background: none;
        text-align: left;
        padding-left: 80px;
    }

    .speaker-card .card-content span {
        color: #000;
    }

    #search-box form input {
        font-size: 0.9em;
        padding: 15px;
    }

    .speaker-card i{
        right: 5px;
        left: auto;
    }

    .speaker-card i span{
        display: none;
    }

}