/*Start Back to top*/
.back-to-top {
    display: flex;
    position: fixed;
    right: 35px;
    bottom: 100px;
    width: 60px;
    height: 60px;
    background-color: var(--white);
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    cursor: pointer;
    border: 1px solid #E5E5E5;
    opacity: 0;
}

    .back-to-top.active {
        opacity: 1;
        pointer-events: auto;
        bottom: 50px;
        z-index: 999;
    }
/*End Back to top*/

/*Start Ảnh thumbnail mặc định*/
img.loading {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    animation: shimmer 15s infinite;
}

.lazy-loaded {
    background-color: transparent;
    opacity: 1;
}

@keyframes shimmer {
    from {
        background-position: -1000px 0;
    }

    to {
        background-position: 1000px 0;
    }
}
/*End Ảnh thumbnail mặc định*/

.sub-glass-wrap {
    z-index: 1000;
    position: absolute;
    top: 100%;
    background-color: #1F293333;
    width: calc(100vw - 16px);
    height: 100vh;
    left: 50%;
    transform: translateX(-50%);
    max-height: 0;
    transition: max-height, 0.3s ease-in-out;
    overflow-y: hidden;
    overflow-x: hidden;
    z-index: 3;
}

    .sub-glass-wrap::before {
        content: '';
        z-index: -1;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: 100%;
        background: inherit;
    }

.dropdown-menu--open {
    max-height: 100vh;
}

.sub-wrap {
    position: relative;
    padding: 40px 16px;
    background-color: #ffffff;
    display: grid;
    grid-template-columns: 72% 1fr;
    height: calc(100vh - 243px);
    z-index: 4;
}

    .sub-wrap::before {
        z-index: -1;
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: 100%;
        background: inherit;
    }

    .sub-wrap .sub-list {
        grid-column: 1/2;
        grid-row: 1/5;
        display: flex;
        flex-wrap: wrap;
        gap: 48px 20px;
        height: calc(100% - 1px);
        overflow-y: auto;
        /* padding-right: 16px; */
        margin-right: 16px;
        border-right: 1px solid var(--border-cl);
    }

        .sub-wrap .sub-list .list {
            width: calc((100% / 5) - 20px);
        }

        .sub-wrap .sub-list .title {
            font-family: Roboto Condensed;
            font-weight: 700;
            font-size: 18px;
            line-height: 25px;
            margin-bottom: 16px;
            color: var(--color-primary);
        }

        .sub-wrap .sub-list .item {
            list-style: none;
            font-family: Roboto Condensed;
            font-weight: 500;
            font-size: 16px;
            line-height: 24px;
            color: var(--sub-menu-cl);
        }

            .sub-wrap .sub-list .item:nth-last-child(n+2) {
                margin-bottom: 12px;
            }

    .sub-wrap .sub-title {
        font-family: Roboto Condensed;
        font-weight: 700;
        font-size: 18px;
        line-height: 25px;
        color: var(--sub-menu-title-cl);
        margin-bottom: 8px;
    }

    .sub-wrap > *:nth-child(n+2):nth-last-child(n+2) {
        padding-bottom: 24px;
        margin-bottom: 24px;
        border-bottom: 1px solid var(--border-cl);
    }

    .sub-wrap .search-wrap {
        grid-column: 2/3;
        grid-row: 1/2;
    }

    .sub-wrap .sub-trend {
        grid-column: 2/3;
        grid-row: 2/3;
    }

    .sub-wrap .sub-social {
        grid-column: 2/3;
        grid-row: 3/4;
    }

    .sub-wrap .trend-list {
        display: flex;
        flex-wrap: wrap;
    }

        .sub-wrap .trend-list .item {
            margin-right: 12px;
            margin-bottom: 12px;
        }







/* FOOTER START */

.footer-bg {
    /* background: #2E0000; */
    max-width: calc(100vw - 1px);
    background-image: url('https://cloudwebhn.tek4tv.vn/image/footerbg.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.footer {
    padding: 64px 40px;
}

    .footer > *:nth-last-child(n+2) {
        margin-bottom: 32px;
    }

.footer-search {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 29px;
    padding: 8px 12px;
}

    .footer-search input {
        margin-left: 8px;
        flex: 1;
        border: none;
        background: transparent;
        font-size: 15px;
        outline: none;
        line-height: 24px;
    }

.search-btn {
    width: 20px;
    height: 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 20px;
    width: 100%;
    font-family: 'Roboto Condensed', sans-serif;
}

    .footer-links .link-tap {
        width: calc((100% / 7) - 18px);
    }

    .footer-links .title {
        font-weight: 700;
        font-size: 18px;
        line-height: 25px;
        color: #ffffff;
        margin-bottom: 16px;
    }

    .footer-links .link {
        color: var(--color-gray);
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        list-style: none;
    }

        .footer-links .link:nth-last-child(n+2) {
            margin-bottom: 12px;
        }

.footer-logo-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 32px 0;
}

.footer-logo > * {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo span {
    text-transform: uppercase;
    font-family: Helvetica Bold;
    font-weight: 700;
    font-size: 14.1px;
    line-height: 140%;
    color: var(--color-red);
}

.footer-control {
    display: flex;
    align-items: center;
}

    .footer-control > *:nth-child(n+2) {
        position: relative;
        margin-left: 32px;
    }

        .footer-control > *:nth-child(n+2)::after {
            position: absolute;
            content: '';
            top: 50%;
            transform: translateY(-50%);
            left: -15px;
            width: 1px;
            height: 32px;
            background-color: #fff;
        }

.footer-nav-social {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    min-width: 320px;
}

.footer-nav {
    display: flex;
    gap: 18px;
}

    .footer-nav > * {
        font-family: 'Roboto Condensed', sans-serif;
        color: #ffffff;
        text-decoration: none;
        font-weight: 700;
        font-size: 16px;
        line-height: 24px;
    }

.footer-social,
.footer-control .download > * {
    display: flex;
    gap: 12px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #ffffff;
}

    .footer-social img {
        width: 20px;
        height: 20px;
    }

.footer-control .download {
    display: flex;
    align-items: center;
}

    .footer-control .download > *:nth-last-child(n+2) {
        margin-right: 12px;
    }

    .footer-control .download .img-holder {
        width: 120px;
        height: 40px;
    }

        .footer-control .download .img-holder > * {
            width: 100%;
            height: 100%;
        }

.footer-info {
    display: flex;
    justify-content: space-between;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;
}

    .footer-info .footer-contact {
        width: 55.52%;
    }

    .footer-info .footer-address {
        flex: 1;
    }

    .footer-info p {
        margin-bottom: 14px;
    }

    .footer-info .cap {
        text-transform: uppercase;
    }

.event-header {
    width: 100%;
    margin-bottom: -4px;
}

.accordion-wrap, .nav-wrapper .contact, .nav-wrapper .license {
    display: none;
}
/* FOOTER END */

@media screen and (max-width: 1200px) {
    .footer-links .link-tap {
        width: calc((100% / 5) - 18px);
    }
}

@media screen and (max-width: 600px) {
}

@media screen and (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .nav-wrapper {
        overflow-y: hidden;
        overflow-x: scroll;
        white-space: nowrap;
    }

        .nav-wrapper::-webkit-scrollbar {
            height: 6px;
            background-color: transparent;
        }

        .nav-wrapper::-webkit-scrollbar-thumb {
            background-color: #656C6F;
            border-radius: 8px;
        }

    .main-nav .nav-item:first-child {
        padding-right: 16px;
        padding-left: 0px;
    }

    .main-nav .nav-item {
        padding: 0px 12px;
    }

        .main-nav .nav-item:last-child {
            padding-right: 0px;
        }

        .main-nav .nav-item:nth-child(n+2):nth-last-child(n+2) > *:first-child {
            padding: 0 12px;
        }

    .sub-wrap .sub-list .list {
        width: calc((100% / 4) - 20px);
    }
}

@media screen and (max-width: 992px) {
    /*Header event*/


    /*Start Back to top*/
    .back-to-top {
        right: 15px;
        width: 45px;
        height: 45px;
    }

        .back-to-top.active {
            opacity: 1;
            pointer-events: auto;
            bottom: 25px;
            z-index: 999;
        }
    /*End Back to top*/

    .container {
        max-width: 720px;
    }

    .sub-wrap {
        grid-template-columns: 66% 1fr;
    }

    .container:has(.nav-wrapper)::before {
        width: 100vw;
    }

    .top-header {
        padding: 8px 0px;
        background-image: none;
    }

        .top-header .logo .thumb {
            width: 34px;
            height: 32px;
            margin-right: 6.77px;
        }

        .top-header .logo .text {
            font-size: 11.28px;
            line-height: 16px;
        }

    /*.main-nav .nav-item:first-child {
        display: none;
    }*/

    .main-nav .nav-item {
        padding: 0;
    }

        .main-nav .nav-item:last-child,
        .top-header .search-box,
        .top-header .social-bar .social-item,
        .top-header .user-box::before,
        .top-header .user-box .user > *:last-child {
            display: none;
        }

    .top-header .social-bar {
        width: unset;
    }

    .top-header .user-box .user > *:first-child {
        margin-right: 0px;
    }

    .top-header .user-box {
        margin-left: 0px;
        padding-left: 0px;
    }

    .top-header .mobile-nav-toggle {
        display: block;
    }

    .main-nav .nav-list {
        max-height: 56px;
        padding: 8px 0;
    }

    .main-nav .nav-item:nth-child(n+2):nth-last-child(n+2) > * {
        line-height: 56px;
    }

    .story-card .thumb.mobile-small .status .block {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 20px;
        height: 20px;
    }

    .story-card .thumb.mobile-small .type,
    .story-card .thumb.mobile-small .status {
        width: 56px;
        height: 32px;
    }

        .story-card .thumb.mobile-small .type .icon {
            width: 20px;
            height: 20px;
        }

            .story-card .thumb.mobile-small .type .icon svg,
            .story-card .thumb.mobile-small .status .block,
            .story-card .thumb.mobile-small .status .block svg {
                width: 12px;
                height: 12px;
            }

    .sub-wrap .sub-list .list {
        width: calc((100% / 3) - 20px);
    }

    .footer-logo-info {
        flex-direction: column;
    }

        .footer-logo-info .footer-logo {
            margin-bottom: 32px;
        }

    .footer-control {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav,
    .footer-social {
        padding-bottom: 16px;
        margin-bottom: 16px;
        position: relative;
    }

    .footer-control > *:nth-child(n+2) {
        margin-left: 0px;
    }

        .footer-control > *:nth-child(n+2)::after {
            display: none;
        }

    .footer-nav::before,
    .footer-social::before {
        position: absolute;
        content: '';
        bottom: 0px;
        height: 1px;
        width: 120px;
        background-color: #fff;
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social > *:first-child,
    .footer-control .download > *:first-child {
        display: inline-block;
        width: 100%;
        text-align: center;
        margin-bottom: 12px;
    }

    .footer-social,
    .footer-control .download {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-info {
        flex-direction: column;
    }

        .footer-info .footer-contact {
            margin-bottom: 32px;
            width: 100%;
        }

    .footer-nav > * {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    /*Start Back to top*/
    .back-to-top {
        right: 15px;
        width: 45px;
        height: 45px;
    }

        .back-to-top.active {
            opacity: 1;
            pointer-events: auto;
            bottom: 25px;
            z-index: 999;
        }
    /*End Back to top*/

    #header.on-scroll {
        left: 0;
        top: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .container {
        max-width: 540px;
    }

    .footer {
        padding: 40px 16px;
    }

    .footer-links .link-tap {
        width: calc((100% / 4) - 18px);
    }

    .footer .footer-links {
        display: none;
    }

    .footer > *:nth-last-child(n+2) {
        margin-bottom: 24px;
    }

    .footer-logo-info {
        padding: 24px 0;
    }

    .sub-wrap {
        grid-template-columns: 100%;
        height: 100%;
        height: calc(100vh - 82px);
        overflow-y: auto;
        overflow-x: hidden;
    }

        .sub-wrap .search-wrap {
            grid-column: 1/2;
            grid-row: 1/2;
        }

            .sub-wrap .search-wrap .sub-title {
                display: none;
            }

        .sub-wrap .sub-list {
            display: none;
        }

        .sub-wrap .sub-trend {
            grid-column: 1/2;
            grid-row: 2/3;
        }

        .sub-wrap .sub-social {
            grid-column: 1/2;
            grid-row: 4/5;
        }

    .sub-glass-wrap {
        left: 0;
        right: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        transform: translateX(0);
        height: calc(100vh - 56px);
    }

    .dropdown-menu--open {
        max-height: unset;
    }

    .accordion-wrap {
        display: block;
        margin-bottom: 0px !important;
        border-bottom: none !important;
    }

    button.accordion {
        width: 100%;
        background-color: transparent;
        border: none;
        outline: none;
        text-align: left;
        padding: 16px 0px;
        color: var(--color-primary);
        cursor: pointer;
        font-family: Roboto Condensed;
        font-weight: 700;
        font-size: 16px;
        line-height: 24px;
        border-bottom: 1px solid var(--border-cl);
    }

        button.accordion:after {
            border-style: solid;
            border-width: 2px 2px 0 0;
            content: " ";
            display: inline-block;
            float: right;
            height: 10px;
            left: -10px;
            position: relative;
            right: 20px;
            top: 2px;
            transform: rotate(135deg);
            transition: 0.35s ease-in-out;
            vertical-align: top;
            width: 10px;
        }

        button.accordion.is-open:after {
            transform: rotate(-45deg);
            transition: 0.25s ease-in-out;
        }

    .accordion-content {
        background-color: white;
        /* padding: 0 16px; */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-in-out;
    }

    .sub-glass-wrap {
        top: 56px;
        top: 50px;
        background-color: #fff;
    }

    .accordion-wrap .accordion-content .item {
        list-style: none;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-cl);
        font-family: Roboto Condensed;
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 1px;
    }

    .sub-wrap .sub-title {
        font-family: Roboto Condensed;
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        color: #656C6F;
        margin-bottom: 8px;
    }

    .sub-wrap .sub-social .social-list > * {
        margin: 10px;
        display: inline-block;
    }

    .sub-wrap .trend-list {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .nav-wrapper .contact {
        display: block;
        margin-bottom: 24px;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border-cl);
    }

        .nav-wrapper .contact .title {
            font-family: Roboto Condensed;
            font-weight: 500;
            font-size: 14px;
            line-height: 20px;
            color: #656C6F;
            margin-bottom: 8px;
        }

        .nav-wrapper .contact .phone-wrap {
            display: flex;
        }

            .nav-wrapper .contact .phone-wrap > * {
                flex: 1;
            }

            .nav-wrapper .contact .phone-wrap .name {
                font-family: Roboto Condensed;
                font-weight: 700;
                font-size: 16px;
                line-height: 24px;
                margin-bottom: 4px;
            }

            .nav-wrapper .contact .phone-wrap .num {
                font-family: Roboto Condensed;
                font-size: 14px;
                line-height: 20px;
                text-decoration: underline;
                color: var(--color-primary);
            }

    .nav-wrapper .license {
        display: block;
        white-space: initial;
    }

        .nav-wrapper .license > * {
            font-family: Roboto Condensed;
            font-size: 14px;
            line-height: 20px;
        }

            .nav-wrapper .license > *:first-child {
                margin-bottom: 16px;
            }

    .main-nav .nav-item .sub-list {
        display: none;
    }

    .nav-wrapper {
        margin-right: calc(-50vw + 50%);
        width: calc(100% + 50vw - 50%);
    }
}

@media screen and (max-width: 576px) {
    /*Start Back to top*/
    .back-to-top {
        right: 15px;
        width: 45px;
        height: 45px;
    }

        .back-to-top.active {
            opacity: 1;
            pointer-events: auto;
            bottom: 25px;
            z-index: 999;
        }
    /*End Back to top*/

    .container {
        max-width: 100%;
    }

        .container:has(.nav-wrapper)::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 25px;
            height: 100%;
            background: linear-gradient(91.54deg, rgba(176, 31, 35, 0) 2.79%, #F47422 169.52%);
            /* background: linear-gradient(90deg, rgba(238, 244, 246, 0.1) 0%, #EEF4F6 100%); */
        }

    .main-nav .nav-list {
        gap: 0px;
        border-color: #BFC6C9;
    }

    .container:has(.nav-wrapper) {
        box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 10px;
    }

    .sub-glass-wrap {
        top: 1px;
    }
}
