﻿.story-card {
    display: flex;
    flex-direction: column
}

    .story-card .thumb {
        position: relative;
        margin-bottom: 16px
    }

        .story-card .thumb .thumb-wrapper {
            background-color: transparent;
            position: relative;
            overflow: hidden;
            height: 0;
            padding: 0 0 56.25%;
            border-radius: 16px
        }

        .story-card .thumb .thumb-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .story-card .thumb .type {
            overflow: hidden;
            display: flex;
            justify-content: start;
            align-items: flex-end;
            position: absolute;
            bottom: 4px;
            left: 4px;
            width: 114px;
            height: 52px;
            border-radius: 0 0 0 8px;
            border-bottom: 1px solid #FFFFFF80;
            border-left: 1px solid #FFFFFF80
        }

            .story-card .thumb .type .icon {
                width: 28px;
                height: 28px;
                background-color: #FFFFFF;
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 4px
            }

            .story-card .thumb .type .text {
                color: #FFFFFF
            }

    .story-card .type svg {
        max-width: 18px;
        max-height: 18px
    }

    .story-card .thumb .type path {
        fill: #383F42
    }

    .story-card .thumb .status {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 114px;
        height: 52px;
        border-top: 1px solid #FFFFFF80;
        border-right: 1px solid #FFFFFF80;
        border-radius: 0 8px 0 0;
        display: flex;
        padding: 4px;
        justify-content: flex-end
    }

        .story-card .thumb .status.live path {
            fill: #A31B24
        }

        .story-card .thumb .status path {
            fill: #ffffff
        }

    .story-card .thumb.small .status .block {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 20px;
        height: 20px
    }

    .story-card .thumb.small .type, .story-card .thumb.small .status {
        width: 56px;
        height: 32px
    }

        .story-card .thumb.small .type .icon {
            width: 20px;
            height: 20px
        }

            .story-card .thumb.small .type .icon svg, .story-card .thumb.small .status .block, .story-card .thumb.small .status .block svg {
                width: 12px;
                height: 12px
            }

    .story-card .title {
        font-family: var(--serif-font);
        font-weight: 600;
        line-height: 100%
    }

        .story-card .title > * {
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical
        }

    .story-card .info .text {
        font-family: var(--serif-font);
        font-weight: 400;
        color: #383F42
    }

        .story-card .info .text > * {
            --line-num: 3;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: var(--line-num);
            -webkit-box-orient: vertical
        }

    .story-card .type {
        align-items: center
    }

    .story-card .info-wrapper .type {
        display: none
    }

    .story-card .type .type-icon {
        width: 18px;
        height: 18px;
        object-fit: cover
    }

    .story-card .type .text {
        font-weight: 700;
        font-size: 14px;
        line-height: 20px;
        color: #383F42;
        margin-left: 9px
    }

    .story-card .title-wrap ~ .type.Photostory .text {
        color: #08979C
    }

    .story-card .title-wrap ~ .type.Photostory path {
        fill: #08979C
    }

    .story-card .title-wrap ~ .type.eMagazine .text {
        color: #E89A00
    }

    .story-card .title-wrap ~ .type.eMagazine path {
        fill: #E89A00
    }

    .story-card .title-wrap ~ .type.Longform .text, .story-card .title-wrap ~ .type.Infographic .text {
        color: #7CB305
    }

    .story-card .title-wrap ~ .type.Longform path, .story-card .title-wrap ~ .type.Infographic path {
        fill: #7CB305
    }

    .story-card .title-wrap ~ .type.News .text, .story-card .title-wrap ~ .type.News .text {
        color: var(--color-primary)
    }

    .story-card .title-wrap ~ .type.News path, .story-card .title-wrap ~ .type.Live path {
        fill: var(--color-primary)
    }

    .story-card .title-wrap ~ .type.Video path, .story-card .title-wrap ~ .type.Audio path, .story-card .title-wrap ~ .type.Music path {
        fill: #383F42
    }

.search-page {
    padding: 32px 0;
}

    .search-page .longform-header__content {
        width: fit-content;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        column-gap: 8px;
        font: 700 36px / 48px var(--inter-font);
        color: var(--primary-500);
        text-transform: uppercase;
        letter-spacing: 2%;
        margin-bottom: 16px;
    }

    .search-page .search-header {
        --space: 28px;
        padding-bottom: var(--space);
        margin-bottom: var(--space);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        position: relative;
    }

        .search-page .search-header::after {
            content: "";
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 5px;
            background: #C4CBE3;
            clip-path: polygon(0.4% 0%, 99.6% 0%, 100% 100%, 0% 100%);
        }

        .search-page .search-header .search-form {
            background-color: #EEF4F6;
            border-radius: 29px;
            display: flex;
            align-items: center;
            padding: 0px 12px;
        }

            .search-page .search-header .search-form .btn {
                border: none;
                background-color: transparent;
                cursor: pointer;
            }

            .search-page .search-header .search-form .text {
                flex: 1;
                margin: 0 8px;
                padding: 8px 0;
                background-color: transparent;
                border: none;
                outline: none;
                font-weight: 400;
                font-size: 16px;
                line-height: 24px;
            }

        .search-page .search-header .title-input {
            margin-bottom: 16px;
            font: 600 18px / 20px var(--inter-font);
        }

        .search-page .search-header .search_condition {
            width: 100%;
            height: 40px;
            background-color: #EEF4F6;
            border: none;
            border-radius: 29px;
            display: flex;
            align-items: center;
            padding: 0px 12px;
            outline: 0;
        }

    .search-page .result {
        font-weight: 700;
        font-size: 16px;
        line-height: 100%;
        color: #656C6F;
        margin-bottom: 20px;
    }

    .search-page .content {
        display: flex;
        justify-content: space-between;
    }

        .search-page .content .story {
            width: 71%;
        }

        .search-page .content .taTabs__content .mobile-title {
            display: none;
        }

        .search-page .content .taTabs__content > * {
            flex-direction: row-reverse;
        }

            .search-page .content .taTabs__content > *:nth-last-child(n+2) {
                margin-bottom: 16px;
                padding-bottom: 16px;
                border-bottom: 1px solid #BFC6C9;
            }

            .search-page .content .taTabs__content > * .thumb {
                width: 27.97%;
                margin-bottom: 0px;
                margin-left: 32px;
                min-width: 240px;
            }

            .search-page .content .taTabs__content > * .info-wrapper {
                flex: 1;
            }

            .search-page .content .taTabs__content > * .title {
                font-size: 20px;
                line-height: 25px;
                margin-bottom: 8px;
            }

            .search-page .content .taTabs__content > * .info .text {
                font-size: 16px;
                line-height: 24px;
            }

                .search-page .content .taTabs__content > * .info .text > * {
                    --line-num: 5;
                }

            .search-page .content .taTabs__content > * .info .post-time {
                font-size: 14px;
                line-height: 24px;
                margin-top: 8px;
                opacity: .6;
            }

        .search-page .content .banner {
            width: 22.79%;
            position: relative;
        }

            .search-page .content .banner a > * {
                width: 100%;
                object-fit: cover;
                border-radius: 8px;
            }

        .search-page .content .taTabs__content .story-card-loading.deactive {
            display: none;
        }

            .search-page .content .taTabs__content .story-card-loading .info-wrapper .title-wrap {
                height: 35px;
                margin-bottom: 10px;
            }

            .search-page .content .taTabs__content .story-card-loading .info-wrapper .info {
                height: 45px;
                margin-bottom: 10px;
            }

            .search-page .content .taTabs__content .story-card-loading .info-wrapper .post-time {
                height: 25px;
                margin-bottom: 10px;
            }

.taTabs {
    width: 100%;
}

.taTabs__navWap {
    list-style: none;
    display: flex;
    color: #4B5565;
}

.taTabs__nav {
    text-align: center;
    cursor: pointer;
    font-family: Helvetica;
    font-size: 14px;
    line-height: 20px;
    color: #0B1215;
}

    .taTabs__nav:nth-last-child(n+2) {
        margin-right: 16px;
    }

.taTabs__nav--active {
    padding-bottom: 12px;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.taTabs__content {
    display: none;
}

.taTabs__content--active {
    display: block;
}

.search-page .pagination-container {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    margin-top: 16px;
    border-top: 1px solid #BFC6C9;
    margin-bottom: 0px;
}

.search-page .showing-text {
    font-family: Inter;
    font-size: 14px;
    line-height: 20px;
}

.search-page .pagination-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-page .nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    color: #0B1215;
}

.search-page .page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #EEF4F6;
    background: white;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: Inter;
    font-size: 14px;
    line-height: 20px;
    color: #0B1215;
    text-decoration: none;
}

    .search-page .page-btn:hover:not(.active) {
        background-color: #f0f0f0;
        border-color: #bbb;
    }

    .search-page .page-btn.active {
        background-color: var(--color-primary);
        border-color: var(--color-primary);
        color: white;
    }

.search-page .ellipsis {
    padding: 0 8px;
    color: #666;
    font-size: 14px;
}

.search-page .per-page-controls {
    margin-left: auto;
}

.search-page .per-page-select {
    padding: 6px 0px 6px 10px;
    border: 1px solid #C7C9D3;
    border-radius: 6px;
    font-family: Helvetica;
    font-size: 14px;
    line-height: 20px;
    background: white;
    color: var(--color-primary);
    cursor: pointer;
}

.search-page .goto-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    font-family: Inter;
    font-size: 14px;
    line-height: 20px;
}

.search-page .goto-input {
    width: 56px;
    padding: 6px 8px;
    border: 1px solid #EEF4F6;
    border-radius: 6px;
    font-family: Inter;
    line-height: 20px;
    font-size: 14px;
    text-align: center;
}

.search-page .sticky-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.search-page .sticky-content {
    position: sticky;
    top: 75px;
}

    .search-page .sticky-content img {
        width: 100%;
    }

.longform-more {
    margin-top: 24px;
}

    .longform-more > * {
        display: block;
        width: fit-content;
        margin: 0 auto;
        padding: 8px 24px;
        border-radius: 8px;
        background-color: var(--primary-500);
        color: #fff;
        font: 600 16px/24px var(--serif-font);
    }

        .longform-more > *:hover {
            color: #fff;
        }

@media screen and (max-width: 1200px) {
    .search-page .pagination-container {
        padding: 18px 0px;
    }

    .search-page .showing-text {
        display: none;
    }
}

@media screen and (max-width: 996px) {
    .search-page .search-header {
        grid-template-columns: repeat(1, 1fr);
        gap: 0;
    }

    .search-page .content .story {
        width: 100%;
    }

    .search-page .content .banner {
        display: none;
    }

    .search-page .pagination-container {
        justify-content: center;
    }

        .search-page .pagination-container > *:not(.pagination-nav) {
            display: none;
        }

    .search-page .content .taTabs__content > * {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .search-page .content .taTabs__content .mobile-title {
        display: flex;
        width: 100%;
        margin-bottom: 8px;
    }

        .search-page .content .taTabs__content .mobile-title .title {
            margin-bottom: 0px;
            font-size: 18px;
            line-height: 23px;
        }

    .search-page .content .taTabs__content > * .info .text {
        font-size: 14px;
        line-height: 20px;
    }

    .search-page .content .taTabs__content > * .info-wrapper .title-wrap {
        display: none;
    }

    .search-page .content .taTabs__content > * .info .text > * {
        --line-num: 5;
    }

    .search-page .content .taTabs__content > * .thumb {
        width: 35%;
        min-width: 120px;
        margin-left: 0px;
        margin-right: 8px;
    }
}

@media screen and (max-width: 576px) {
    .search-page .pagination-container {
        display: none;
    }

    .search-page {
        padding: 16px 0 24px;
    }
}
