.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;
}

/* 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)
    }

    #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;
    }
}
/* end 1024 */

@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;
    }

    .row-NextPre-carousel, #carouselHoivien h4 {
        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: 363px;
        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: 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;
        }

        .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;
        }

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

        .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;
        }
        /*---------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*/
}
