a{
    text-decoration: none;
}

.carousel-pack{
    height: 100vh;
    margin-top: -50px;
    overflow: hidden;
    position: relative;
}
.carousel-pack .list-pack .item-pack{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.carousel-pack .list-pack .item-pack img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-pack .list-pack .item-pack .content-pack{
    /* position: absolute;
    text-align: right;
    top: 10%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-left: 30%;
    box-sizing: border-box;
    color: #fff;
    z-index: 4; */


    position: absolute;
    text-align: right;
    top: 10%;
    /* width: 1140px; */
    /* max-width: 80%; */
    /* left: 50%; */
    /* transform: translateX(-50%); */
    /* padding-left: 30%; */
    /* box-sizing: border-box; */
    color: #fff;
    z-index: 4;
    padding: 0px 10%;
    padding-left: 25%;
}
.carousel-pack .list-pack .item-pack .author-pack{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel-pack .list-pack .item-pack .title-pack,
.carousel-pack .list-pack .item-pack .topic-pack{
    font-size: 45px;
    font-weight: 500;
    line-height: 21px;
    padding-bottom: 20px;
    font-family: 'Montserrat';
}
.carousel-pack .list-pack .item-pack .topic-pack{
    color: #f1683a;
}
.carousel-pack .list-pack .item-pack .buttons-pack{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousel-pack .list-pack .item-pack .buttons-pack button{
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}
.carousel-pack .list-pack .item-pack .buttons-pack button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}
/* thumbail */
.thumbnail-pack{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}
.thumbnail-pack .item-pack{
    width: 270px;
    height: 330px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail-pack .item-pack img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.thumbnail-pack .item-pack .content-pack{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnail-pack .item-pack .content-pack .title-pack{
    font-weight: 500;
}
.thumbnail-pack .item-pack .content-pack .description-pack{
    font-weight: 300;
}
/* arrows */
.arrows-pack{
    position: absolute;
    top: 86%;
    right: 42%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 0px;
    align-items: center;
}

.arrows-pack button #prev-pack{   
    width: 40px;
    height: 40px;
    background-size: 40px !important;
    background: url('<?php echo get_template_directory_uri(); ?>/images/aro-l-w.png') no-repeat;
    border: none; 
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    transition: .5s;
}

button#prev-pack {
    background: transparent;
    border: none;
}

button#next-pack {
    background: transparent;
    border: none;
}

.arrows-pack button #next-pack{   
    width: 40px;
    height: 40px;
    border-radius: 50%; 
    background: url('<?php echo get_template_directory_uri(); ?>/images/aro-r-w.png') no-repeat;
    border: none;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    transition: .5s;
}

/* .arrows-pack button:hover{
    background-color: #fff;
    color: #000;
} */


.carousel-pack .list-pack .item-pack:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

/* .carousel-pack .list-pack .item-pack:nth-child(1) .content-pack .author-pack,
.carousel-pack .list-pack .item-pack:nth-child(1) .content-pack .title-pack,
.carousel-pack .list-pack .item-pack:nth-child(1) .content-pack .topic-pack,
.carousel-pack .list-pack .item-pack:nth-child(1) .content-pack .des-pack,
.carousel-pack .list-pack .item-pack:nth-child(1) .content-pack .buttons-pack
{
    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;
    }
}
/* .carousel-pack .list-pack .item-pack:nth-child(1) .content-pack .title-pack{
    animation-delay: 1.2s!important;
}
.carousel-pack .list-pack .item-pack:nth-child(1) .content-pack .topic-pack{
    animation-delay: 1.4s!important;
}
.carousel-pack .list-pack .item-pack:nth-child(1) .content-pack .des-pack{
    animation-delay: 1.6s!important;
}
.carousel-pack .list-pack .item-pack:nth-child(1) .content-pack .buttons-pack{
    animation-delay: 1.8s!important;
} */



.carousel-pack.next-pack .list-pack .item-pack:nth-child(1) img{
    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;
    }
}

.carousel-pack.next-pack .thumbnail-pack .item-pack:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel-pack.prev-pack .list-pack .item-pack img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel-pack.next-pack .thumbnail-pack{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}



.carousel-pack .time-pack{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    /* background-color: #f1683a; */
    left: 0;
    top: 0;
}

.carousel-pack.next-pack .time-pack,
.carousel-pack.prev-pack .time-pack{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}



.carousel-pack.prev-pack .list-pack .item-pack:nth-child(2){
    z-index: 2;
}

.carousel-pack.prev-pack .list-pack .item-pack:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 270px;
        height: 330px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel-pack.prev-pack .thumbnail-pack .item-pack:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel-pack.next-pack .arrows-pack button,
.carousel-pack.prev-pack .arrows-pack button{
    pointer-events: none;
}

/* .carousel-pack.prev-pack .list-pack .item-pack:nth-child(2) .content-pack .author-pack,
.carousel-pack.prev-pack .list-pack .item-pack:nth-child(2) .content-pack .title-pack,
.carousel-pack.prev-pack .list-pack .item-pack:nth-child(2) .content-pack .topic-pack,
.carousel-pack.prev-pack .list-pack .item-pack:nth-child(2) .content-pack .des-pack,
.carousel-pack.prev-pack .list-pack .item-pack:nth-child(2) .content-pack .buttons-pack
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
} */

/* @media screen and (max-width: 800px) {
    .carousel-pack .list-pack .item-pack .content-pack{
        padding-left: 0%;
    }
} */




@media screen and (max-width: 678px) {
    /* .carousel-pack .list-pack .item-pack .content-pack{
        padding-right: 0;
    } */
    .carousel-pack .list-pack .item-pack .content-pack .title-pack{
        font-size: 36px;
    }
}

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

    .thumbnail-pack .item-pack{
        width: 150px;
        height: 230px;
        flex-shrink: 0;
        position: relative;
    }

    .carousel-pack.prev-pack .list-pack .item-pack:nth-child(2) img{
        animation: outFrame 0.5s linear 1 forwards;
        position: absolute;
        bottom: 0;
        left: 0;
    }
    @keyframes outFrame{
        to{
            width: 150px;
            height: 230px;
            bottom: 50px;
            left: 50%;
            border-radius: 20px;
        }
    }


}



@media screen and (max-width: 350px) {
    .arrows-pack {
        position: absolute;
        top: 80%;
        right: 60%;
    }

}