﻿:root {
    --roboto-font: "Roboto";
    --white: #ffffff;
    --category-border: #EEEEEF;
    --border-gray: #B0B5D5;
    --border-blue: #3D4897;
    --deep-red: #920818;
    --bg-blue: #3D4897;
    --red: #DE192C;
    --gray: #EDEDED;
    --txt-gray: #5C5C5C;
    --txt-black: #181818;
    --txt-blue: #3D4897;
    --side-bar-bg: #F9F9F9;
    --content-border: #ddd;
}

mark {
    background: #F2994A !important;
    color: black !important;
    padding: 0 !important;
}

.story-wrap .info-wrap .name {
    line-height: 1;
}

.search-page .content-wrap .tool-bar {
    position: absolute;
    top: 0;
    left: calc(-1*(32px + 36px));
    height: 100%;
}

    .search-page .content-wrap .tool-bar .tool {
        position: sticky;
        top: 132px;
        padding-left: 0;
        z-index: 10;
    }

    .search-page .content-wrap .tool-bar .item {
        --size: 36px;
        width: var(--size);
        height: var(--size);
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        border: 1px solid #EEEEEE;
        background-color: var(--side-bar-bg);
        cursor: pointer;
    }

    .search-page .content-wrap .tool-bar .tool > *:nth-last-child(n+2) {
        margin-bottom: 16px;
    }

.search-page .content-wrap {
    margin: 24px 0px;
    position: relative;
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 74.5% 1fr;
    grid-template-areas: "title title" "content side";
    column-gap: 24px;
}

.search-page .title {
    text-transform: uppercase;
    font-size: 22px;
    font-weight: 800;
    line-height: 32.78px;
    color: var(--txt-blue);
    display: flex;
    align-items: center;
    padding-bottom: 24px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--content-border);
    grid-area: title;
}

    .search-page .title::before {
        content: "";
        display: inline-block;
        width: 8px;
        height: 26px;
        background-color: #D7081F;
        margin-right: 12px;
    }

.search-page .content {
    grid-area: content;
}

    .search-page .content > *:nth-last-child(n+2) {
        margin-bottom: 16px;
    }

    .search-page .content .search-box {
        background-color: var(--category-border);
        padding: 13px 16px;
        border-radius: 4px;
        display: flex;
        align-items: center;
    }

        .search-page .content .search-box .input-txt {
            border: none;
            outline: none;
            background-color: transparent;
            font-size: 16px;
            font-weight: 400;
            line-height: 23.84px;
            color: var(--txt-black);
            flex: 1;
            margin-right: 8px;
        }

        .search-page .content .search-box .search-btn {
            border: none;
            outline: none;
            background-color: transparent;
        }

    .search-page .content .result {
        font-size: 16px;
        font-weight: 700;
        line-height: 23.84px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--content-border);
    }

        .search-page .content .result .total {
            color: #D7081F;
        }

    .search-page .content .filter-wrap {
        display: flex;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--content-border);
    }

        .search-page .content .filter-wrap .item {
            flex: 1;
        }

            .search-page .content .filter-wrap .item .item-title {
                font-size: 16px;
                font-weight: 600;
                line-height: 23.84px;
                margin-bottom: 4px;
            }

            .search-page .content .filter-wrap .item > *:nth-child(2) {
                background-color: var(--side-bar-bg);
                border: 1px solid var(--category-border);
                border-radius: 4px;
                height: 50px;
            }

                .search-page .content .filter-wrap .item > *:nth-child(2) input {
                    background-color: var(--side-bar-bg);
                    border: none;
                }

                .search-page .content .filter-wrap .item > *:nth-child(2) .input-group-append > * {
                    padding-right: 16px;
                    height: 100%;
                    border: none;
                }

        .search-page .content .filter-wrap > *:nth-last-child(n+2) {
            margin-right: 24px;
        }

    .search-page .content .article-list .list {
        margin-bottom: 16px;
    }

        .search-page .content .article-list .list .story-wrap .info-wrap .name a {
            font-weight: 600;
            font-size: 1rem;
            line-height: 1.5rem;
            color: var(--txt-black);
        }

        .search-page .content .article-list .list > *:nth-last-child(n+2) {
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--content-border);
        }

        .search-page .content .article-list .list .story-wrap {
            display: flex;
            flex-direction: row;
        }

        .search-page .content .article-list .list .img-wrap {
            width: 32.34%;
            margin-right: 16px;
            min-width: 124px;
        }

        .search-page .content .article-list .list .info-wrap {
            flex: 1;
        }

        .search-page .content .article-list .list .story-wrap .info-wrap .story-title {
            margin-bottom: 8px;
        }

        .search-page .content .article-list .list .info-wrap .description {
            font-size: 14px;
            font-weight: 400;
            line-height: 20.86px;
            color: var(--txt-gray);
            margin-bottom: 8px;
        }

    .search-page .content .article-list .more {
        text-align: center;
    }

        .search-page .content .article-list .more > * {
            border-radius: 8px;
            padding: 12px 32px;
            border: 1px solid var(--border-blue);
            background-color: #ffffff;
            font-size: 16px;
            font-weight: 600;
            line-height: 23.84px;
            color: var(--txt-blue);
        }

.search-page .side-bar {
    grid-area: side;
}

.search-page .content-wrap .side-bar .banner {
    position: sticky;
    top: 0;
}

    .search-page .content-wrap .side-bar .banner > * {
        margin-bottom: 8px;
    }

    .search-page .content-wrap .side-bar .banner img {
        width: 100%;
        height: auto;
    }

.search-page .under-banner {
    margin-bottom: 24px;
}

@media only screen and (max-width: 40em) {
    .search-page .content-wrap .tool-bar {
        display: none;
    }

    .search-page .content-wrap {
        margin-bottom: 0px;
        margin-top: 16px;
        grid-template-columns: 1fr;
        grid-template-areas: "title" "content";
    }

    .search-page .title {
        padding-bottom: 16px;
    }

    .search-page .content > *:nth-last-child(n+2) {
        margin-bottom: 8px;
    }

    .search-page .content .result,
    .search-page .content .filter-wrap {
        padding-bottom: 8px;
    }

    .search-page .content .filter-wrap {
        flex-wrap: wrap;
        row-gap: 16px;
    }

        .search-page .content .filter-wrap .item {
            width: calc((100% - 16px) / 2);
            flex: auto;
        }

        .search-page .content .filter-wrap > *:nth-last-child(n+2) {
            margin-right: unset;
        }

        .search-page .content .filter-wrap > *:nth-child(odd) {
            margin-right: 16px;
        }

    .search-page .content .article-list .list .story-wrap {
        flex-direction: column-reverse;
    }

    .search-page .content .article-list .list .img-wrap {
        width: 100%;
        margin-right: 0px;
        margin-left: 0px;
    }

    /*.search-page .content .article-list .list .info-wrap .description {
        display: none;
    }*/

    .search-page .side-bar {
        display: none;
    }
}
