.post-related-wrap {
    padding: 30px 0;
}

.post-related-slider .slick-slide {
    margin: 5px 8px;
}

.post-related-slider .slick-list {
    margin: 0 -8px;
}

.popup-content {
    max-height: 90vh;
    width: 90%;
}

.avatar-wrapper img {
    width: 100%;
    border-radius: 10px;
}

.btn-detail {
    margin-top: 10px;
}

/* popup */

#speaker-popup {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.popup-content {
    position: relative;
    max-width: 1022px;
    margin: 60px auto;
    animation: popupFade .3s ease;
    padding: 15px 20px 15px 20px;
    background-color: #e2f1e2;
    border-radius: 5px;
}

@keyframes popupFade {
    from {
        transform: scale(.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-body {
    display: flex;
    gap: 30px;
}

.popup-left {
    width: 40%;
}

.popup-left img {
    width: 100%;
    border-radius: 10px;
    margin-top: 15px;
}

.popup-right {
    width: 60%;
}

.popup-right h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.popup-title {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
}

.popup-description {
    line-height: 1.6;
}

.popup-description img {
    max-width: 100%;
    height: auto;
}

.close-popup {
    display: flex;
    cursor: pointer;
    text-align: center;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    line-height: 1;
    background-color: #FFFFFF;
    border-radius: 50%;
    font-size: 22px;
    position: absolute;
    top: -12px;
    right: -12px;
}

@media(max-width:768px) {

    .popup-body {
        flex-direction: column;
    }

    .popup-left,
    .popup-right {
        width: 100%;
    }

}

.speaker-card {
    margin-bottom: 20px;
    text-align: center;
    cursor: pointer;
}

.speaker-card .avatar-wrapper {
    /* viền xanh đậm */
    overflow: hidden;
    flex-shrink: 0;
}

.speaker-card .avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-card .name {
    font-size: 14px;
    font-weight: 400;
    color: #1a7fa8;
    /* màu xanh tên */
    text-transform: uppercase;
    margin: 4px 0 0;
    text-align: center;
}

.speaker-card .title {
    font-size: 13px;
    text-align: inherit;
    font-weight: 700;
    margin: 15px 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 39px;
}

.speaker-card .btn-detail {
    padding: 7px 20px;
    font-size: 17px;
    color: #FFF;
    background: var(--main-color);
    border-radius: 4px;
}

/* .sidebar-product ul li.active {
    background-color: rgb(162, 97, 97, .6);
} */

.sidebar-product ul li.active a {
    color: #3aaa35;
}

.sidebar-product .block {
    background-color: #f7f7f7;
}

.detail-page {
    padding: 15px 0 30px;
}

.tomtatnd {
    /* padding: 10px;
    background: #eee; */
    margin-bottom: 40px;
}

.header-tomtat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #DDD;
}

/* #toc-list {
    margin-left: 25px;
    margin-top: 8px;
} */

#toc-list li {
    list-style: none;
    font-size: 16px;
    line-height: 28px;
    /* font-weight: 700; */
}

.header-left-tomtat {
    display: flex;
    align-items: center;
}

.header-tomtat svg {
    width: 15px;
    height: 15px;
    margin-top: 5px;
}

.header-left-tomtat p {
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
}

.header-right-tomtat {
    cursor: pointer;
}

.tomtatnd .table-content {
    display: none;
}

.tomtatnd.active-scroll .table-content {
    display: block;
}

#myTabContent.active-scroll .header-right-tomtat svg {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.box_news_detail h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.box-right {
    position: sticky;
    top: 60px;
    padding-left: 10px;
}

.box_news_detail .news_note {
    font-size: 15px;
    padding: 10px 15px;
    background-color: #eee;
    line-height: 25px;
    text-align: justify;
    margin-bottom: 15px;
    line-height: 1.5;
}

.sidebar-news {
    margin-left: 10px;
    position: sticky;
    top: 60px;
}



.sidebar-news .block {
    border: 1px solid #d2d2d2;
    border-radius: 5px;
    margin-top: 20px;
}

.sidebar-news .title-block {
    font-weight: 500;
    background: var(--main-color);
    color: #FFF;
    padding: 10px 15px;
    font-size: 19px;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.block-news .item {
    display: grid;
    grid-template-columns: 75px auto;
    gap: 10px;
    padding: 0 15px 15px;
}

.block-news .item .wrap-img {
    width: 75px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.block-news .item h3 {
    font-weight: 500;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    text-align: justify;
}

.banner-sidebar {
    margin-top: 20px;
}

.tag-link {
    padding: 0 15px 15px;
}

.tag-link ul li {
    list-style: none;
}

.tag-link ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link ul li a {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 10px;
    background-color: #eee;
}

.author {
    margin-top: 65px;
}

.author .inner {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background-color: #eee;
    border-radius: 15px;
    position: relative;
    padding: 45px 15px 15px;
}

.author .inner .avt {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.author .inner .avt img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.author .inner .name {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.date-view {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 15px;
}

.date-view svg {
    width: 22px;
    height: 22px;
}

.date-view .item {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.date-view .item:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -10px;
    width: 1px;
    height: 70%;
    display: block;
    background-color: #000;
}

.block-news .item .wrap-img img {
    border-radius: 5px;
}

.content-tour-detail {
    font-size: 15px;
}

.content-tour-detail p {
    font-size: 15px;
}

.content-tour-detail ul li {
    font-size: 15px;
}

/* .content-tour-detail h2,
.content-tour-detail h3,
.content-tour-detail h4 {
    scroll-margin-top: 200px;
}

html {
    scroll-behavior: smooth;
} */

.blog-wrapper {
    padding: 15px 0 20px;
    --gutter: 5px;
}

.blog-wrapper .title-pri {
    margin-top: 5px;
}

.sidebar-product .block:not(:last-child) {
    margin-bottom: 24px;
}

.sidebar-product .title {
    font-size: 15px;
    line-height: 25px;
    background-color: #faa71b;
    color: #FFF;
    text-transform: uppercase;
    padding: 10px 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sidebar-product .block ul li {
    list-style: none;
    padding: 10px 15px;
    border-bottom: solid 1px #dddddd;
    font-weight: 500;
}

/* .blog-right {
    margin-left: 20px;
} */

.blog-right .cate a {
    font-size: 11px;
    color: #3aaa35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: inline-block;
}



/* .name-blog::before {
    content: "";
    position: absolute;
    bottom: -4px;
    border-bottom: 4px solid #faa71b;
    width: 50px;
} */

.news-bottom {
    margin-top: 10px;
}

.news-bottom .item-post {
    margin-top: 20px;
}

.news-bottom .item-post .name {
    -webkit-line-clamp: 2;
    height: 46px;
}

.row-gap-20 {
    row-gap: 20px;
}

@media (max-width: 992px) {
  
  

.content-tour-detail  table{
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
    .sidebar-news {
        margin-left: 0px;
        display: flex;
        flex-direction: column;
        margin-top: 20px;
    }

    .sidebar-news .list.first {
        margin-bottom: 15px;
    }

    .sidebar-news .list {
        margin-top: 0;
    }

    .sidebar-news .block.tags {
        order: -1;
    }

    .blog-right {
        margin-left: 0;
    }

    .blog-wrapper .right-content {
        order: -1;
    }

}

@media (max-width: 768px) {
    .box_news_detail h1 {
        font-size: 21px;
    }

    .detail-page {
        padding: 15px 0;
    }

    .post-related-wrap {
        padding: 20px 0;
    }

    .post-related-slider .slick-slide {
        margin: 5px 4px;
    }

    .post-related-slider .slick-list {
        margin: 0 -4px;
    }

    .row-gap-20 {
        row-gap: 0;
    }

    #toc-list {
        margin-left: 13px;
    }

    .popup-content {
        overflow-y: auto;
        margin: 50px auto;
    }

    .close-popup {
        top: 5px;
        right: 5px;
    }

    .box-right {
        margin-top: 20px;
        padding-left: 0;
    }

    .speaker-card .btn-detail {
        font-size: 14px;
    }
}
