﻿figure.image figcaption {
    background-color: #F0F0F0;
    margin-top: -7px;
    padding: 5px;
    font-family: Roboto Condensed;
    line-height: 25px;
}

.detail-page {
    width: 60%;
    min-width: 867px;
    margin: 0 auto;
    padding: 16px 0px;
    display: flex;
}

    .detail-page .main .story {
        --space: 24px;
        margin-bottom: var(--space);
        padding-bottom: var(--space);
        position: relative;
    }

        .detail-page .main .story::before {
            /* content: ''; */
            position: absolute;
            bottom: 0;
            left: 0;
            height: 1px;
            width: 120px;
            background-color: #BFC6C9;
        }

        .detail-page .main .story > .category {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            font-family: Roboto Condensed;
            font-weight: 700;
        }

            .detail-page .main .story > .category .icon {
                height: 20px;
                margin: 0 4px;
            }

            .detail-page .main .story > .category .text {
                color: #383F42;
                font-size: 14px;
                line-height: 20px;
            }

                .detail-page .main .story > .category .text.main-category {
                    font-size: 18px;
                    line-height: 25px;
                    color: var(--color-primary);
                }

        .detail-page .main .story .title {
            font-family: Source Serif;
            font-weight: 600;
            font-size: 32px !important;
            line-height: 40px;
            color: #0B1215;
            margin-bottom: 16px;
        }

        .detail-page .main .story .author-wrap {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

            .detail-page .main .story .author-wrap .link-box {
                padding: 0px;
                margin: 0px;
                border: none;
                margin-left: 0px;
            }

                .detail-page .main .story .author-wrap .link-box .social-wrap {
                    display: flex;
                    gap: 8px;
                }

                    .detail-page .main .story .author-wrap .link-box .social-wrap > * {
                        margin-right: 0px;
                    }

        .detail-page .main .story .author {
            display: flex;
            align-items: center;
        }

            .detail-page .main .story .author > *:nth-last-child(n+2) {
                margin-right: 8px;
            }

        .detail-page .main .story .author-wrap .img-box {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            overflow: hidden;
        }

            .detail-page .main .story .author-wrap .img-box img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

        .detail-page .main .story .author-wrap .info {
            position: relative;
            margin-right: 32px;
        }

            .detail-page .main .story .author-wrap .info::before {
                content: '';
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                right: -16px;
                width: 1px;
                height: 16px;
                background-color: #E8E8ED;
            }

        .detail-page .main .story .author-wrap .name {
            font-family: Roboto Condensed;
            font-weight: 700;
            font-size: 16px;
            line-height: 24px;
        }

        .detail-page .main .story .author-wrap .email {
            font-family: Roboto Condensed;
            font-weight: 400;
            font-size: 12px;
            line-height: 18px;
            text-decoration: underline;
            color: #2F54EB;
        }

        .detail-page .main .story .author-wrap .post-date {
            font-family: Roboto Condensed;
            font-size: 14px;
            line-height: 20px;
        }

        .detail-page .main .story .description {
            margin-bottom: 24px;
        }

            .detail-page .main .story .description .text {
                font-family: Roboto Condensed;
                font-weight: 500;
                font-size: 18px;
                line-height: 25px;
                color: #383F42;
            }

    .detail-page .link-box {
        display: flex;
        justify-content: space-between;
    }

        .detail-page .link-box > * {
            display: flex;
            align-items: center;
        }

            .detail-page .link-box > * > * {
                margin-right: 8px;
            }

        .detail-page .link-box .box {
            height: 32px;
            border: 1px solid #BFC6C9;
            display: flex;
            align-items: center;
            color: #383F42;
        }

            .detail-page .link-box .box img {
                width: 16px;
                height: 16px;
                object-fit: cover;
            }

        .detail-page .link-box .interact .box {
            border-radius: 21px;
            padding: 8px 12px;
        }

            .detail-page .link-box .interact .box .num {
                font-family: Inter;
                font-weight: 700;
                font-size: 14px;
                line-height: 20px;
                vertical-align: middle;
                display: inline-block;
                margin-left: 8px;
            }

        .detail-page .link-box .social-wrap .box {
            width: 32px;
            justify-content: center;
            border-radius: 50%;
        }

            .detail-page .link-box .social-wrap .box.on-mobile {
                display: none;
            }

    .detail-page .main .story .link-box {
        padding: 16px 0px;
        margin-bottom: 24px;
        border-top: 1px solid #EEF4F6;
        border-bottom: 1px solid #EEF4F6;
    }

    .detail-page .main .story .rating .link-box {
        padding: 0;
        margin-bottom: 0px;
        border: none;
    }

    .detail-page .main .story .rating .block-title {
        font-weight: 600;
        font-size: 18px;
        line-height: 23px;
    }

    .detail-page .main .story .rating .author-block {
        padding: 16px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 1px solid#BFC6C9;
        border-radius: 8px;
        margin: 20px 0 40px;
        position: relative;
    }

        .detail-page .main .story .rating .author-block .name {
            font-family: Roboto Condensed;
            font-weight: 700;
            font-size: 16px;
            line-height: 24px;
            text-decoration: underline;
            margin-bottom: 8px;
        }

        .detail-page .main .story .rating .author-block .time {
            font-family: Roboto Condensed;
            font-weight: 400;
            font-size: 14px;
            line-height: 20px;
        }

        .detail-page .main .story .rating .author-block::after {
            content: '';
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            height: 1px;
            width: 120px;
            background-color: #BFC6C9;
        }

    .detail-page .story-detail {
        font-family: Roboto Condensed;
        font-size: 18px;
        line-height: 25px;
        text-align: justify;
    }

        .detail-page .story-detail.column-count {
            column-count: 3;
            column-gap: 32px;
        }

            .detail-page .story-detail.column-count::first-letter {
                font-size: 400%;
                font-weight: bold;
                float: left;
                line-height: 1;
                padding-right: 4px;
            }

        .detail-page .story-detail p > a {
            color: #0772eb;
            text-decoration: underline;
        }

    .detail-page .block-title {
        font-family: Source Serif;
        font-weight: 700;
        font-size: 20px;
        line-height: 25px;
        color: var(--color-primary);
        margin-bottom: 8px;
    }

    .detail-page .star-wrap {
        margin-bottom: 16px;
    }

        .detail-page .star-wrap .rating-group {
            display: inline-flex;
        }

        .detail-page .star-wrap .rating-icon {
            pointer-events: none;
        }

        .detail-page .star-wrap .rating-input {
            position: absolute !important;
            left: -9999px !important;
        }

        .detail-page .star-wrap .rating-label {
            cursor: pointer;
            margin-right: 8px;
            font-size: 2rem;
            font-size: 21px;
        }

        .detail-page .star-wrap .rating-icon-star {
            fill: #E89A00;
        }

        .detail-page .star-wrap .rating-input:checked ~ .rating-label .rating-icon-star {
            fill: #2A2E33;
        }

        .detail-page .star-wrap .rating-group:hover .rating-label .rating-icon-star {
            fill: #E89A00;
        }

        .detail-page .star-wrap .rating-input:hover ~ .rating-label .rating-icon-star {
            fill: #2A2E33;
        }

    .detail-page .rating .comment-btn {
        background-color: var(--color-primary);
        padding: 12px 0px;
        border: none;
        border-radius: 8px;
        text-align: center;
        font-family: Inter;
        font-weight: 700;
        font-size: 16px;
        line-height: 24px;
        color: #fff;
        width: 100%;
        cursor: pointer;
        margin-bottom: 16px;
    }

    .detail-page .relate,
    .detail-page .key-word,
    .detail-page .main > .category {
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid #383F42;
    }

        .detail-page .relate .block-title {
            margin-bottom: 20px;
        }

        .detail-page .relate .list .item {
            font-family: Source Serif;
            font-weight: 600;
            font-size: 20px;
            line-height: 25px;
        }

            .detail-page .relate .list .item:nth-last-child(n+2) {
                padding-bottom: 16px;
                margin-bottom: 16px;
                border-bottom: 1px solid #E8E8ED;
            }

        .detail-page .relate .list .text {
            position: relative;
            -webkit-box-decoration-break: clone;
            box-decoration-break: clone;
            padding-left: 20px;
        }

            .detail-page .relate .list .text::after {
                content: '';
                position: absolute;
                top: 50%;
                left: 0;
                transform: translateY(-50%);
                width: 12px;
                height: 12px;
                border-radius: 50%;
                background-color: #0B1215;
            }

    .detail-page .key-word {
        display: flex;
    }

        .detail-page .key-word .block-title {
            margin-bottom: 0px;
            margin-right: 8px;
            white-space: nowrap;
        }

        .detail-page .key-word .list {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

            .detail-page .key-word .list .item {
                padding: 2px 8px;
                background-color: #EEF4F6;
                border-radius: 16px;
                font-family: Helvetica;
                font-size: 14px;
                line-height: 20px;
                color: #383F42;
                height: 24px;
            }

    .detail-page .category .title-block {
        margin-bottom: 16px;
    }

        .detail-page .category .title-block > * {
            display: flex;
            align-items: center;
            width: fit-content;
        }

        .detail-page .category .title-block .text {
            font-family: Source Serif;
            font-weight: 700;
            font-size: 20px;
            line-height: 25px;
            color: var(--color-primary);
            margin-right: 8px;
        }

        .detail-page .category .title-block .icon {
            border: 1px solid #92999C;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

    .detail-page .category .list .mobile-title {
        display: none;
    }

    .detail-page .category .list > * {
        flex-direction: row-reverse;
    }

        .detail-page .category .list > *:nth-last-child(n+2) {
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid #BFC6C9;
        }

        .detail-page .category .list > * .thumb {
            width: 27.97%;
            margin-bottom: 0px;
            margin-left: 32px;
            min-width: 240px;
        }

        .detail-page .category .list > * .info-wrapper {
            flex: 1;
        }

        .detail-page .category .list > * .title {
            font-size: 20px;
            line-height: 25px;
            margin-bottom: 8px;
        }

        .detail-page .category .list > * .info .text {
            font-size: 16px;
            line-height: 24px;
        }

            .detail-page .category .list > * .info .text > * {
                --line-num: 2;
            }

    .detail-page .mobile-header {
        display: none;
    }

        .detail-page .mobile-header .category {
            font-family: Roboto Condensed;
            font-weight: 700;
            font-size: 14px;
            line-height: 20px;
            color: #C77D00;
            margin-bottom: 8px;
        }

dialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 480px;
    max-width: 90vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border: none;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
    background-color: white;
}

    dialog[open] {
        transform: translateX(0);
    }

    dialog::backdrop {
        background-color: rgba(0, 0, 0, 0.5);
        animation: fadeIn 0.3s ease forwards;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.close-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: transparent;
    color: #333;
    border: none;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.close-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    position: relative;
}

    .close-icon::before,
    .close-icon::after {
        content: '';
        position: absolute;
        width: 12px;
        height: 2px;
        border-radius: 3px;
        background-color: currentColor;
        top: 7px;
        left: 0;
    }

    .close-icon::before {
        transform: rotate(45deg);
    }

    .close-icon::after {
        transform: rotate(-45deg);
    }

.drawer-content {
    width: 100%;
    height: calc(100vh - (68px + 225.6px));
    padding: 0px 16px;
    overflow-x: auto;
}

.drawer-footer {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    padding: 16px;
    box-shadow: 0px -20px 12px -8px rgba(0,0,0,0.1);
}

    .drawer-footer .comment-input {
        width: 100%;
        height: 96px;
        font-family: Inter;
        font-size: 16px;
        line-height: 24px;
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid #BFC6C9;
        margin-bottom: 16px;
    }

    .drawer-footer .wrap {
        display: flex;
        gap: 16px;
    }

        .drawer-footer .wrap .name-input {
            flex: 1;
            padding: 8px 12px;
            border-radius: 8px;
            border: 1px solid #BFC6C9;
            font-family: Inter;
            font-size: 16px;
            line-height: 24px;
        }

        .drawer-footer .wrap .sub-comment {
            border: none;
            width: 120px;
            border-radius: 8px;
            background-color: #EEF4F6;
            font-family: Inter;
            font-weight: 700;
            font-size: 14px;
            line-height: 20px;
            color: #BFC6C9;
            cursor: pointer;
        }

.detail-page .comment-box {
    display: flex;
    margin-bottom: 16px;
}

    .detail-page .comment-box .img-box {
        width: 32px;
        margin-right: 16px;
    }

        .detail-page .comment-box .img-box img {
            width: 32px;
            height: 32px;
            object-fit: cover;
            border-radius: 50%;
        }

    .detail-page .comment-box .info {
        flex: 1;
    }

        .detail-page .comment-box .info .name {
            font-family: Roboto Condensed;
            font-weight: 700;
            font-size: 18px;
            line-height: 25px;
            margin-bottom: 8px;
        }

        .detail-page .comment-box .info .text {
            font-family: Roboto Condensed;
            font-weight: 500;
            font-size: 18px;
            line-height: 25px;
            margin-bottom: 8px;
        }

    .detail-page .comment-box .control-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-family: Roboto Condensed;
        font-size: 14px;
        line-height: 20px;
        color: #383F42;
    }

        .detail-page .comment-box .control-box .control {
            display: flex;
            gap: 24px;
        }

            .detail-page .comment-box .control-box .control .btn {
                border: none;
                background-color: transparent;
                cursor: pointer;
            }

            .detail-page .comment-box .control-box .control .type {
                margin-left: 8px;
            }

        .detail-page .comment-box .control-box .like-num > *:not(span) {
            color: var(--color-primary);
        }

.drawer-content .answer-box {
    position: relative;
    margin-left: 48px;
    margin-top: -4px;
}

    .drawer-content .answer-box .answer {
        font-family: Roboto Condensed;
        font-size: 14px;
        line-height: 20px;
        color: #383F42;
        margin-bottom: 8px;
    }

    .drawer-content .answer-box .comment {
        padding-left: 16px;
        border-left: 1px solid #BFC6C9;
    }

        .drawer-content .answer-box .comment > *:nth-last-child(n+2) {
            padding-bottom: 16px;
            margin-bottom: 16px;
            border-bottom: 1px solid #BFC6C9;
        }

.taTabs {
    width: 100%;
}

.taTabs__navWap {
    list-style: none;
    display: flex;
    color: #4B5565;
    border-bottom: 1px solid #EEF4F6;
}

.taTabs__nav {
    text-align: center;
    cursor: pointer;
    font-family: Helvetica;
    font-size: 14px;
    line-height: 20px;
}

    .taTabs__nav:nth-last-child(n+2) {
        margin-right: 16px;
    }

.taTabs__nav--active {
    padding-bottom: 10px;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.taTabs__contentWrap {
    padding: 10px;
}

.taTabs__content {
    display: none;
}

.taTabs__content--active {
    display: block;
}

.detail-page .mobile {
    display: none;
    width: 100% !important;
}

.detail-page .pagination-container {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    margin-top: 16px;
    border-top: 1px solid #BFC6C9;
    margin-bottom: 0px;
}

.detail-page .showing-text {
    font-family: Inter;
    font-size: 14px;
    line-height: 20px;
}

.detail-page .pagination-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-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;
}

.detail-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;
}

    .detail-page .page-btn:hover:not(.active) {
        background-color: #f0f0f0;
        border-color: #bbb;
    }

    .detail-page .page-btn.active {
        background-color: var(--color-primary);
        border-color: var(--color-primary);
        color: white;
    }

.detail-page .ellipsis {
    padding: 0 8px;
    color: #666;
    font-size: 14px;
}

.detail-page .per-page-controls {
    margin-left: auto;
}

.detail-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;
}

.detail-page .goto-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    font-family: Inter;
    font-size: 14px;
    line-height: 20px;
}

.detail-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;
}

/*Reply comment*/
.activereply-cmt {
    display: block !important;
}

.answer-form .comment-input {
    width: 100%;
    height: 50px;
    font-family: Inter;
    font-size: 16px;
    line-height: 24px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #BFC6C9;
    margin-bottom: 8px;
}

.answer-form .wrap {
    display: flex;
    gap: 16px;
}

    .answer-form .wrap .name-input {
        flex: 1;
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid #BFC6C9;
        font-family: Inter;
        font-size: 16px;
        line-height: 24px;
    }

    .answer-form .wrap .sub-comment {
        border: none;
        width: 120px;
        border-radius: 8px;
        background-color: #EEF4F6;
        font-family: Inter;
        font-weight: 700;
        font-size: 14px;
        line-height: 20px;
        color: #BFC6C9;
        cursor: pointer;
    }

@media screen and (max-width: 996px) {
    .detail-page {
        min-width: unset;
        width: 100%;
        flex-direction: column;
    }

        .detail-page .main {
            padding-right: 0px;
            margin-right: 0px;
            border-right: none;
            width: 100%;
        }

            .detail-page .main .story .title {
                font-size: 24px !important;
                line-height: 30px;
            }

            .detail-page .main .story .link-box {
                padding: 12px 0px;
                margin-bottom: 12px;
            }

            .detail-page .main .story {
                --space: 12px;
            }

        .detail-page .rating {
            padding-bottom: 16px !important;
        }

        .detail-page .relate-topic .block-title,
        .detail-page .relate-story .block-title {
            margin-bottom: 16px;
        }

        .detail-page .relate-story .list > * .thumb,
        .detail-page .relate-story .list > * .info,
        .detail-page .relate-story .list > * .info-wrapper .type {
            display: none;
        }

        .detail-page .relate-story .list > * .title {
            margin-bottom: 0px;
        }

        .detail-page .relate-story .list > *:nth-last-child(n+2) {
            margin-bottom: 12px;
            padding-bottom: 12px;
        }

        .detail-page .key-word .block-title {
            white-space: nowrap;
            margin-bottom: 16px;
        }

        .detail-page .left .key-word {
            flex-direction: column;
        }

        .detail-page .category .list > * {
            flex-direction: row;
            flex-wrap: wrap;
        }

        .detail-page .category .list .mobile-title {
            display: flex;
            width: 100%;
            margin-bottom: 8px;
        }

            .detail-page .category .list .mobile-title .title {
                margin-bottom: 0px;
                font-size: 18px;
                line-height: 23px;
            }
        /* .detail-page .category .list>* .info .text{
        font-size: 14px;
        line-height: 20px;
    } */
        .detail-page .category .list > * .info-wrapper .title-wrap {
            display: none;
        }

        .detail-page .category .list > * .info .text > * {
            --line-num: 2;
        }

        .detail-page .category .list > * .thumb {
            width: 35%;
            min-width: 120px;
            margin-left: 0px;
            margin-right: 8px;
        }

        .detail-page .pagination-container {
            justify-content: center;
            padding: 12px 0px;
        }

            .detail-page .pagination-container > *:not(.pagination-nav) {
                display: none;
            }

        .detail-page .key-word .block-title {
            white-space: nowrap;
            margin-bottom: 16px;
        }

        .detail-page .left .key-word {
            flex-direction: column;
        }

        .detail-page .key-word {
            flex-direction: column;
        }
}

@media screen and (max-width: 768px) {
    .detail-page .link-box .social-wrap .box {
        display: none;
    }

        .detail-page .link-box .social-wrap .box.on-mobile {
            display: flex;
            justify-content: center;
            align-items: center;
        }

            .detail-page .link-box .social-wrap .box.on-mobile > * {
                width: 16px;
                height: 16px;
                border: none;
                outline: none;
                background-color: transparent;
            }

    .detail-page .main .story .author-wrap .link-box {
        display: none;
    }

    .detail-page .main .story .link-box.mobile {
        display: flex;
        width: 100% !important;
    }

    .detail-page .main .story .description {
        margin-bottom: 12px;
    }

    .detail-page .story-detail.column-count {
        column-count: 1;
        column-gap: 0px;
    }

    .detail-page .relate .list .item {
        font-size: 18px;
        line-height: 23px;
    }

        .detail-page .relate .list .item:nth-last-child(n+2) {
            padding-bottom: 12px;
            margin-bottom: 12px;
        }

    .detail-page .relate .list .text::after {
        border-radius: 1px;
    }

    .detail-page {
        padding: 16px 0px 24px 0px;
    }

    dialog {
        width: 100%;
        max-width: 100%;
    }

        dialog .block-title {
            margin-bottom: 16px;
        }

    .detail-page .main .story .rating .author-block {
        display: none;
    }

    .detail-page .main .story .rating {
        padding-top: 12px;
        margin-top: 12px;
        position: relative;
    }

        .detail-page .main .story .rating::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 120px;
            height: 1px;
            background-color: #BFC6C9;
        }

        .detail-page .main .story .rating .block-title {
            font-weight: 700;
            font-size: 20px;
            line-height: 25px;
        }
}

@media screen and (max-width: 576px) {
    .detail-page .relate, .detail-page .key-word, .detail-page .main > .category {
        margin-top: 16px;
        padding-top: 16px;
    }

    .drawer-content {
        padding: 0;
    }

    .detail-page .comment .comment-box .control-box .time {
        display: none;
    }

    .detail-page .comment-box .info .text,
    .detail-page .comment-box .info .name {
        font-size: 16px;
        line-height: 24px;
    }

    .taTabs__navWap {
        padding: 0 16px;
    }
}
