/* @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); */



/* style 3 */
body{
    overflow-x: hidden !important;
}

.carousel2{
    height: 62vh;
    /* margin-top: -50px; */
    width: 100vw;
    overflow: hidden;
    position: relative;
    /* box-shadow: 0 30px 50px #5050507a; */
}
.carousel2 .list2 .item2{
    width: 38%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
    margin-left: 14%;
}
.carousel2 .list2 .item2 .img2{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel2 .list2 .item2 .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}
.carousel2 .list2 .item2 .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel2 .list2 .item2 .title,
.carousel2 .list2 .item2 .topic{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}
.carousel2 .list2 .item2 .topic{
    color: #f1683a;
}
.carousel2 .list2 .item2 .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousel2 .list2 .item2 .buttons button{
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}
.carousel2 .list2 .item2 .buttons button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}
/* thumbail */
.thumbnail2{
    position: absolute;
    bottom: 7%;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}
.thumbnail2 .item2{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail2 .item2 .img2{
    width: 100%;
    height: 85%;
    /* object-fit: cover; */
    border-radius: 20px;
}
.thumbnail2 .item2 .content{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnail2 .item2 .content .title{
    font-weight: 500;
}
.thumbnail2 .item2 .content .description{
    font-weight: 300;
}
/* arrows */
.arrows2{
    position: absolute;
    top: 90%;
    right: 44%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows2 button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FFCD00;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows2 button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel2 .list2 .item2:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousel2 .list2 .item2:nth-child(1) .content .author,
.carousel2 .list2 .item2:nth-child(1) .content .title,
.carousel2 .list2 .item2:nth-child(1) .content .topic,
.carousel2 .list2 .item2:nth-child(1) .content .des,
.carousel2 .list2 .item2:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousel2 .list2 .item2:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.carousel2 .list2 .item2:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.carousel2 .list2 .item2:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.carousel2 .list2 .item2:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}
/* create animation when next click */
.carousel2.next2 .list2 .item2:nth-child(1) .img2{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel2.next2 .thumbnail2 .item2:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel2.prev2 .list2 .item2 .img2{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel2.next2 .thumbnail2{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousel2 .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel2.next2 .time,
.carousel2.prev2 .time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev2 click */

.carousel2.prev2 .list2 .item2:nth-child(2){
    z-index: 2;
}

.carousel2.prev2 .list2 .item2:nth-child(2) .img2{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
    /* display: none; */
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel2.prev2 .thumbnail2 .item2:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel2.next2 .arrows2 button,
.carousel2.prev2 .arrows2 button{
    /* pointer-events: none; */
}
.carousel2.prev2 .list2 .item2:nth-child(2) .content .author,
.carousel2.prev2 .list2 .item2:nth-child(2) .content .title,
.carousel2.prev2 .list2 .item2:nth-child(2) .content .topic,
.carousel2.prev2 .list2 .item2:nth-child(2) .content .des,
.carousel2.prev2 .list2 .item2:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .carousel2 .list2 .item2 .content{
        padding-right: 0;
    }
    .carousel2 .list2 .item2 .content .title{
        font-size: 30px;
    }
}
@media screen and (max-width: 991px) { 
    .thumbnail2{
        display: none;
    }
    .carousel2 .list2 .item2 {
        width: 78%;
        height: 100%;
        position: absolute;
        inset: 0 0 0 0;
        margin-left: 11%;
    }
    .arrows2 {
        position: absolute;
        top: 86%;
        right: 30%;
        z-index: 100;
        width: 300px;
        max-width: 30%;
        display: flex;
        gap: 10px;
        align-items: center;
    }
    .carousel2 {
        height: 35vh;
        /* margin-top: -50px; */
        width: 100vw;
        overflow: hidden;
        position: relative;
        /* box-shadow: 0 30px 50px #5050507a; */
        margin-left: -15%;
        margin-bottom: -17%;
    }
}
@media screen and (min-width: 991px) {
    .carousel2{
        height: 62vh;
        margin-top: 70px;
        width: 100vw;
        overflow: hidden;
        position: relative;
        margin-left: -186px;
        /* box-shadow: 0 30px 50px #5050507a; */
    }
    
    .thumbnail2{
        position: absolute;
        bottom: 7%;
        left: 48%;
        width: max-content;
        z-index: 100;
        display: flex;
        gap: 20px;
    }
}


.img2{
    border: 2px solid #FFCD00;
}
.img3{
    border: 2px solid #FFCD00;
}