.box_carousel_hoivien {
    width: 650px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.box_carousel_quyenloi {
    width: 500px;
    margin: 0 auto;
}

.box_carousel_quyenloi #carouselHoivien {
    transform: scale(0.78);
    -webkit-transform: scale(0.78);
    -moz-transform: scale(0.78);
    -ms-transform: scale(0.78);
    -o-transform: scale(0.78);
}

#carouselHoivien {
    width: 100%;
    height: calc(410px + 200px);
    /* margin: 0 auto; */
    position: relative;
    vertical-align: top;
    clear: both;
    /* overflow:hidden; */
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
}

#carouselHoivien img {
    border: 4px solid transparent;
    /*hideimagesuntilcarouselcanhandlethem*/ visibility: hidden;
    /*otherwiseit'snotasobviousitemscanbeclicked*/ cursor: pointer;
    filter: blur(1px);
    -webkit-filter: blur(1px);
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}
    /* #carouselHoivien>a#item-1>img.carousel-center ~ h4{
    color: red
}
#carouselHoivien>a#item-2>img.carousel-center ~ h4{
    color: green
}
#carouselHoivien>a#item-3>img.carousel-center ~ h4{
    color: blue
} */
#carouselHoivien > a > img.carousel-center, img.carousel-center_user {
    box-shadow: 0 7px 16px 5px rgba(86,86,86,.3);
    border: 4px solid #fff;
    filter: blur(0px);
    -webkit-filter: blur(0px);
}


.row-NextPre-carousel {
    position: absolute;
    top: 48%;
    width: 600px;
    left: calc(50% - 300px);
}

    .row-NextPre-carousel a:first-child {
        float: left;
    }

    .row-NextPre-carousel a:last-child {
        float: right;
    }
    /* icon next pre */
    .row-NextPre-carousel #prev,
    .row-NextPre-carousel #next {
        background-color: #d1d1d1; /* defines the background color of the image */
        mask: url('../images/arrow-left-circle.svg') no-repeat center / contain;
        -webkit-mask: url('../images/arrow-left-circle.svg') no-repeat center / contain;
        width: 130px;
        height: 45px;
    }

.row-NextPre-carousel #next:hover,
.row-NextPre-carousel #prev:hover {
    background-color: #506CFF;
}

.row-NextPre-carousel #next {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
}

.row-NextPre-carousel #prev,
.row-NextPre-carousel #next {
    background-color: #d1d1d1; /* defines the background color of the image */
    mask: url('../images/arrow-left-circle.svg') no-repeat center / contain;
    -webkit-mask: url('../images/arrow-left-circle.svg') no-repeat center / contain;
    width: 130px;
    height: 45px;
}

.row-NextPre-carousel #next:hover,
.row-NextPre-carousel #prev:hover {
    background-color: #506CFF;
}

.row-NextPre-carousel #next {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
}

#carouselHoivien h4 {
    font-size: 24px;
    font-weight: 700;
    line-height: 45px;
    color: #201C64;
    display: none;
    position: relative;
    width: 100%;
    top: 48%;
    text-align: center;
}

#carouselHoivien img.carousel-center ~ h4 {
    display: inline-block;
}

/*Th�m css carousel popup user rank*/
.box-carousel-user-rank .carousel-center_user ~ h4 {
    top: 25% !important;
}

img.carousel-center_user {
    width: 100px;
    height: 100px;
    border-radius: 50px !important;
    padding: 5px !important;
    top: 5px !important;
}

.row-NextPre-carousel #nextRank,
.row-NextPre-carousel #prevRank {
    font-size: 35px;
    color: grey;
    text-decoration: none;
}

.row-NextPre-carousel #nextRank:hover,
.row-NextPre-carousel #prevRank:hover {
    color: #506CFF;
}

#carouselHoivien .rank-point {
    display: none;
    position: relative;
    width: 100%;
    text-align: center;
    color: #74797D;
    top: 27%;
    font-size: 16px;
}

#carouselHoivien img.carousel-center ~ .rank-point {
    display: inline-block;
}

/*tabs user rank*/

#carouselHoivien .tab-user-rank {
    position: absolute;
    display: none;
    width: 100%;
    top: 42%;
}

#carouselHoivien img.carousel-center ~ .tab-user-rank {
    display: block;
}
/* Style the buttons inside the tab */
.tab-user-rank button {
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 16px;
    width: calc(100% / 2);
    color: black;
    background-color: white;
    opacity: 0.5;
}

    /*Change background color of buttons on hover*/
.tab-user-rank button.active {
    opacity: 1;
    border-bottom: 3px solid #356EFD;
    transition: ease;
    font-weight: bold;
}

.tab-user-rank button:hover {
    opacity: 1;
}

.carousel-user-rank {
    top: 6% !important;
    width: 200px !important;
    left: calc(50% - 100px) !important
}

.box-carousel-user-rank {
    position: relative;
    height: 450px !important;
    width: 410px !important;
    margin: 0 auto;
}

.tabcontent-user-rank p {
    display: flex !important;
    gap: 15px;
    margin-top: 18px !important;
}
.tabcontent-user-rank p i {
    flex-shrink: 0;
}
.tabcontent-user-rank p span {
    color: black;
    text-align: left;
    font-size: 16px;
}
/* Style the tab content */
.tabcontent-user-rank {
    position: absolute;
    display: none;
    top: 110%;
}

.tabcontent-user-rank.active {
    display: block !important;
}


#carouselHoivien .row-item-gold {
    display: none;
    position: absolute;
    top: calc(48% + 45px);
    padding: 0 30px;
    width: 100%;
}

#carouselHoivien .row-item-gold .item-gold {
    padding-bottom: 10px;
}

#carouselHoivien .row-item-gold .item-gold strong {
    font-size: 13px;
}

#carouselHoivien .row-item-gold .item-gold p {
    font-size: 12px;
    line-height: 1.2;
}

#carouselHoivien img.carousel-center ~ .row-item-gold {
    display: flex;
}

#carouselHoivien .row-item-gold-m {
    display: none;
    position: absolute;
    top: 306px;
    left: 0;
    width: 100%;
}

#carouselHoivien .test {
    height: 400px;
    width: 100%;
    background: greenyellow;
    display: none;
}

#carouselHoivien img.carousel-center ~ .test {
    display: flex;
}

.row-item-gold-m {
    height: 448px;
    overflow-y: auto;
}

.row-item-gold-m::-webkit-scrollbar {
    height: 5px;
    width: 5px;
}

.row-item-gold-m::-webkit-scrollbar-track {
    background-color: rgba(209, 213, 219, 0);
}

.row-item-gold-m:hover::-webkit-scrollbar-thumb {
    background: rgb(228, 228, 228);
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
}

/* carousel Quyen loi */
.box_carousel_quyenloi #carouselHoivien {
    top: -20px
}

    .box_carousel_quyenloi #carouselHoivien h4 {
        font-size: 20px;
        color: #3D6AE2;
        top: 84%;
        transform: scale(1.33);
        -webkit-transform: scale(1.33);
        -moz-transform: scale(1.33);
        -ms-transform: scale(1.33);
        -o-transform: scale(1.33);
    }

.layout-quyenloi > div > div.box_carousel_quyenloi > div:before {
    display: none;
}

.box_carousel_quyenloi #carouselHoivien {
    /* height: 440px; */
    /* overflow: hidden; */
    margin-top: 41px;
    z-index: 99;
}

.box_carousel_quyenloi .row-NextPre-carousel {
    width: 90%;
    left: 5%;
    top: 84%;
    transform: scale(1.33);
    -webkit-transform: scale(1.33);
    -moz-transform: scale(1.33);
    -ms-transform: scale(1.33);
    -o-transform: scale(1.33);
}










#carouselHoivien ._left_1,
#carouselHoivien ._right_1,
#carouselHoivien ._left_2,
#carouselHoivien ._right_2 {
    display: none;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    color: #201C64;
}

#carouselHoivien img.carousel-center ~ ._left_1,
#carouselHoivien img.carousel-center ~ ._right_1,
#carouselHoivien img.carousel-center ~ ._left_2,
#carouselHoivien img.carousel-center ~ ._right_2 {
    /* display: flex; */
    display: block;
}


/* responsive */
@media screen and (max-width: 1280px) {
    #carouselHoivien .row-item-gold .item-gold strong {
        font-size: 12px;
    }
    #carouselHoivien .row-item-gold .item-gold p {
        font-size: 11px;
    }
}

@media screen and (max-width: 1024px) {

    .box_carousel_quyenloi #carouselHoivien {
        top: 0;
        /* border-top: 1px solid #000;
    border-bottom: 1px solid #000; */
        height: 820px;
        margin-top: -100px;
    }

    #carouselHoivien img.carousel-center ~ ._left_1,
    #carouselHoivien img.carousel-center ~ ._right_1,
    #carouselHoivien img.carousel-center ~ ._left_2,
    #carouselHoivien img.carousel-center ~ ._right_2 {
        display: none;
    }

    .box_carousel_quyenloi #carouselHoivien > a > img {
        margin-top: -233px;
    }

    .box_carousel_quyenloi .row-NextPre-carousel,
    .box_carousel_quyenloi #carouselHoivien h4 {
        top: 340px;
    }

    .box_carousel_quyenloi .row-NextPre-carousel {
        width: 440px;
        left: calc(50% - 220px)
    }

     /* --------------- */
    .about-quyenloi-m > div > div {
        padding: 18px;
        border-radius: 8px;
        /* background: #F3F4F9; */
        margin: 5px 0;
        display: flex;
        flex-direction: column;
        gap:10px;
        /* align-items: center; */
        height: auto;
        color: #201C64;
    }

        .about-quyenloi-m > div > div > p,
        .about-quyenloi-m > div > div > div {
            width: 100%;
        }

        .about-quyenloi-m > div > div > p {
            height: 30px
        }

        .about-quyenloi-m > div > div ._star_yellow {
            background: url('../images/i-star.svg') center left no-repeat;
            background-size: 24px;
            padding-left: 30px;
        }

    .about-quyenloi-m > div:last-child {
        text-align: center;
    }

    /* .about-quyenloi-m > div:nth-of-type(1),
    .about-quyenloi-m > div:nth-of-type(3),
    .about-quyenloi-m > div:nth-of-type(5),
    .about-quyenloi-m > div:nth-of-type(7),
    .about-quyenloi-m > div:nth-of-type(9) {
        padding-right: 0;
    }

    .about-quyenloi-m > div:nth-of-type(2),
    .about-quyenloi-m > div:nth-of-type(4),
    .about-quyenloi-m > div:nth-of-type(6),
    .about-quyenloi-m > div:nth-of-type(8),
    .about-quyenloi-m > div:nth-of-type(10) {
        padding-left: 0;
    } */
    .about-quyenloi-m > div {
        padding: 0;
        /* width: 48%; */
        background: #F3F4F9;
        flex: 1 1 48%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: 8px;
    }

    .about-quyenloi-m {
        /* display: block; */
        /* padding-top: 40px; */
    }

    #carouselHoivien img.carousel-center ~ .about-quyenloi-m {
        display: inline-block;
        border-left: 0px solid red;
        border-right: 0px solid red;
        margin-top: 440px;
        width: 660px;
        transform: scale(1.28);
        -webkit-transform: scale(1.28);
        -moz-transform: scale(1.28);
        -ms-transform: scale(1.28);
        -o-transform: scale(1.28);
    }

    .about-quyenloi-m {
        height: 376px;
        overflow-y: auto;
    }
    /* thêm  */

    #carouselHoivien img.carousel-center ~ .about-quyenloi-m {
        width: 100%;
        margin-top: 406px;
        transform: scale(1.2);
        -webkit-transform: scale(1.2);
        -moz-transform: scale(1.2);
        -ms-transform: scale(1.2);
        -o-transform: scale(1.2);
        /* thêm  */
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    /* thêm  */
    .about-quyenloi-m {
        
    }
}
/* end 1024 */
@media screen and (max-width: 834px) {
    #carouselHoivien img.carousel-center ~ .about-quyenloi-m {
        margin-top: 420px;
    }
}
@media screen and (max-width: 768px) {
    .box_carousel_hoivien {
        width: 100%;
    }

    #carouselHoivien {
        width: 100%;
        overflow-x: hidden;
        height: calc(410px + 346px);
    }

    #carouselHoivien img.carousel-center ~ .row-item-gold {
        display: none;
    }

    #carouselHoivien img.carousel-center ~ .row-item-gold-m {
        /* display: block; */
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .row-NextPre-carousel{
        top: 250px;
    }
     #carouselHoivien h4 {
        top: 250px;
        position: unset;
        margin-top: 250px;
     }


    #carouselHoivien img {
        margin-top: -16px;
    }
    #carouselHoivien .row-item-gold-m {
        width: calc(100% - 30px);
        left: 15px;
    }
    /* ---------------------- */
    .box_carousel_quyenloi #carouselHoivien {
        overflow: hidden;
        /* height: 900px; */
        height: 788px;
        margin-top: -18px;
        transform: scale(0.95);
        -webkit-transform: scale(0.95);
        -moz-transform: scale(0.95);
        -ms-transform: scale(0.95);
        -o-transform: scale(0.95);
    }

    #carouselHoivien img.carousel-center ~ .about-quyenloi-m {
        width: 100%;
        margin-top: 30px;
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        /* thêm  */
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    /* thêm  */
    .about-quyenloi-m___ {
        border: 1px solid red;
        transition: all ease-in-out 0.1s;
            -webkit-transition: all ease-in-out 0.1s;
            -moz-transition: all ease-in-out 0.1s;
            -ms-transition: all ease-in-out 0.1s;
            -o-transition: all ease-in-out 0.1s;
            border-radius: 8px;
            -webkit-border-radius: 8px;
            -moz-border-radius: 8px;
            -ms-border-radius: 8px;
            -o-border-radius: 8px;

            flex: 1 1 48%!important; /* 3 cột, trừ khoảng gap */
            display: flex; /* để stretch chiều cao */

            flex-direction: column; /* để nội dung theo chiều dọc */
            justify-content: space-between; /* cách đều nội dung */
            padding: 16px;
            box-sizing: border-box;
            background: #F6F7FB;
    }
    .box_carousel_quyenloi .row-NextPre-carousel,
    .box_carousel_quyenloi #carouselHoivien h4 {
        top: 316px;
    }
    .box_carousel_quyenloi #carouselHoivien h4 {
        margin-top: 316px;
    }
    /*---------Popup user rank--------------*/
    .box-carousel-user-rank {
        position: relative;
        height: 550px !important;
        width: 410px;
        overflow: hidden;
    }

    img.carousel-center_user {
        width: 100px;
        height: 100px;
        border-radius: 50px !important;
        padding: 5px !important;
        margin-top: 5px !important;
    }

    #carouselHoivien h4 {
        /* top: 20% !important; */
    }

    #carouselHoivien .rank-point {
        top: 21%;
    }

    #carouselHoivien .tab-user-rank {
        top: 35%;
    }
    .carousel-user-rank {
        top: 6% !important;
        width: 170px !important;
        left: calc(50% - 86px) !important
    }
    
}
    /* end 768 */
    @media screen and (max-width: 540px) {
        .box_carousel_hoivien {
            width: 100%;
        }

        #carouselHoivien {
            width: 100%;
            height: calc(410px + 288px);
        }

        .row-item-gold-m {
            height: 388px;
        }

        .row-NextPre-carousel {
            width: 100%;
            left: 0;
            top: 240px;
        }

            .row-NextPre-carousel #prev,
            .row-NextPre-carousel #next {
                width: 80px;
            }

        #carouselHoivien h4 {
            font-size: 20px;
            color: #3D6AE2;
            top: 243px;

            position: unset;
            margin-top: 243px;
        }

        .box_carousel_quyenloi #carouselHoivien h4 {
            top: calc(100% - 35px);
        }

        #carouselHoivien img.carousel-center ~ .about-quyenloi-m {
            width: 100%;
            margin-top: 277px;
            transform: scale(1);
            -webkit-transform: scale(1);
            -moz-transform: scale(1);
            -ms-transform: scale(1);
            -o-transform: scale(1);
        }

        .box_carousel_quyenloi .row-NextPre-carousel,
        .box_carousel_quyenloi #carouselHoivien h4 {
            top: 270px;
            transform: scale(1);
            -webkit-transform: scale(1);
            -moz-transform: scale(1);
            -ms-transform: scale(1);
            -o-transform: scale(1);
        }

        .box_carousel_quyenloi #carouselHoivien {
            height: 720px;
            transform: scale(1);
            -webkit-transform: scale(1);
            -moz-transform: scale(1);
            -ms-transform: scale(1);
            -o-transform: scale(1);
        }

        .about-quyenloi-m > div {
            padding-left: 0;
            padding-right: 0;
            flex: 1 1 45%;
        }

            .about-quyenloi-m > div > div > p {
                font-size: 14px;
            }

        .box_carousel_quyenloi #carouselHoivien > a > img {
            margin-top: -233px;
        }

        .box_carousel_quyenloi #carouselHoivien > a > img {
            margin-top: -210px;
        }

        .quyenloi-tieuchi._bottom_ .title {
            margin-top: 16px;
        }
        .about-quyenloi-m > div > div ._star_yellow {
            font-size: 16px;
            font-weight: 700;
        }
    #carouselHoivien img.carousel-center ~ .about-quyenloi-m {
        margin-top: 18px;
    }
    #carouselHoivien img.carousel-center ~ h4 {
        margin-top: 255px;
    }
/*---------Popup user rank--------------*/
/*.box-carousel-user-rank {
position: relative;
height: 550px !important;
width: 410px !important;
}

img.carousel-center_user {
    width: 90px;
    height: 90px;
}

#carouselHoivien h4 {
    top: 20% !important;
}

#carouselHoivien .rank-point {
    top: 21%;
}

#carouselHoivien .tab-user-rank {
    top: 35%;
}*/
    }

    /* end 540 */
    @media screen and (max-width: 479px) {
        #carouselHoivien .carousel-center {
            transform: scale(0.88);
            -webkit-transform: scale(0.88);
            -moz-transform: scale(0.88);
            -ms-transform: scale(0.88);
            -o-transform: scale(0.88);
        }

        .row-NextPre-carousel #prev,
        .row-NextPre-carousel #next {
            width: 50px;
        }

        .box_carousel_quyenloi .row-NextPre-carousel,
        .box_carousel_quyenloi #carouselHoivien h4 {
            width: 100%;
            left: 0;
            top: 255px;
        }

        .box_carousel_quyenloi #carouselHoivien {
            height: 700px;
        }

            .box_carousel_quyenloi #carouselHoivien > a > img {
                margin-top: -204px;
            }

        .about-quyenloi-m {
            padding-bottom: 4px;
        }

        .quyenloi-tieuchi._bottom_ .title {
            margin-top: 20px;
        }
        /*---------Popup user rank--------------*/
        .box-carousel-user-rank {
            position: relative;
            height: 550px !important;
            margin: 0;
            width: 370px !important;
        }

        img.carousel-center_user {
            width: 90px;
            height: 90px;
        }

        #carouselHoivien h4 {
            /* top: 20%; */
        }

        #carouselHoivien .rank-point {
            top: 21%;
        }

        #carouselHoivien .tab-user-rank {
            top: 35%;
        }
    }
    @media screen and (max-width: 400px){
        /*---------Popup user rank--------------*/
        .box-carousel-user-rank {
            position: relative;
            height: 550px !important;
            margin: 0;
            width: 345px !important;
        }

        img.carousel-center_user {
            width: 90px;
            height: 90px;
        }

        #carouselHoivien h4 {
            top: 20%;
        }

        #carouselHoivien .rank-point {
            top: 21%;
        }

        .tab-button button {
            font-size: 14px !important;
            font-weight: 900;
        }

        #carouselHoivien .tab-user-rank {
            top: 35%;
        }

        .carousel-user-rank {
            top: 6% !important;
            width: 135px !important;
            left: calc(50% - 70px) !important
        }
    }
    /* 400 */
    @media screen and (max-width: 375px) {
        .box_carousel_quyenloi #carouselHoivien {
            height: 660px;
        }

        .about-quyenloi-m {
            padding-bottom: 36px;
        }

        .box_carousel_quyenloi #carouselHoivien > a > img {
            margin-top: -190px;
        }

        .about-quyenloi-m {
            height: 338px;
            padding-bottom: 0px;
        }

        .quyenloi-tieuchi._bottom_ .title {
            margin-top: 62px;
        }

        /*---------Popup user rank--------------*/
        .box-carousel-user-rank {
        position: relative;
        height: 550px !important;
        margin: 0;
        width: 325px !important;
    }

    img.carousel-center_user {
        width: 90px;
        height: 90px;
    }

    .tab-user-rank button {
        font-size: 16px;
    }

    #carouselHoivien h4 {
        top: 20% !important;
    }

    #carouselHoivien .rank-point {
        top: 21%;
    }

    #carouselHoivien .tab-user-rank {
        top: 35%;
    }

    .carousel-user-rank {
        top: 6% !important;
        width: 155px !important;
        left: calc(50% - 82px) !important
    }
        .carousel-user-rank {
            top: 6% !important;
            width: 140px !important;
            left: calc(50% - 72px) !important;
        }
    }

    @media screen and (max-width: 360px) {
        .quyenloi-tieuchi._bottom_ .title {
            margin-top: 20px;
        }
        /*---------Popup user rank--------------*/
        .box-carousel-user-rank {
        position: relative;
        height: 550px !important;
        margin: 0;
        width: 310px !important;
    }

    img.carousel-center_user {
        width: 90px;
        height: 90px;
    }

    #carouselHoivien h4 {
        top: 20% !important;
    }

    #carouselHoivien .rank-point {
        top: 21%;
    }

    #carouselHoivien .tab-user-rank {
        top: 35%;
    }
    .tab-user-rank button {
        font-size: 14px;
    }
    .carousel-user-rank {
        top: 6% !important;
        width: 140px !important;
        left: calc(50% - 69px) !important
    }
    }

    /*end 360px*/
    @media screen and (max-width: 320px) {
        /*---------Popup user rank--------------*/
        .box-carousel-user-rank {
            position: relative;
            height: 550px !important;
            margin: 0;
            width: 275px !important;
        }

        img.carousel-center_user {
            width: 90px;
            height: 90px;
        }

        .tab-button button{
            font-size: 14px!important;
        }

        #carouselHoivien h4 {
            top: 20% !important;
        }

        #carouselHoivien .rank-point {
            top: 21%;
        }

        #carouselHoivien .tab-user-rank {
            top: 35%;
        }

        .tab-user-rank button {
            font-size: 14px;
        }

        .carousel-user-rank {
            top: 6% !important;
            width: 115px !important;
            left: calc(50% - 57px) !important
        }
        .tabcontent-user-rank p{
            margin-top:15px !important;
        }
    }
    /*end 320px*/

