@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');

/* carousel */
.veeha-carousel{
    height: 100vh;
    margin-top:0px;
    width: 100vw;
    overflow: hidden;
    position: relative;
}
.veeha-carousel .veeha-list .veeha-item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.veeha-carousel .veeha-list .veeha-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.veeha-carousel .veeha-list .veeha-item .veeha-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;
}
.veeha-carousel .veeha-list .veeha-item .veeha-author{
    font-weight: bold;
    letter-spacing: 10px;
}
.veeha-carousel .veeha-list .veeha-item .veeha-title,
.veeha-carousel .veeha-list .veeha-item .veeha-topic{
    font-size: 3em;
    font-weight: bold;
    line-height: 1.3em;
}
.veeha-carousel .veeha-list .veeha-item .veeha-topic{
    color: #f1683a;
}
.veeha-carousel .veeha-list .veeha-item  .veeha-des{
    font-size: 1.25em;
    padding-top: 20px;
    font-weight: 500;
}
.veeha-carousel .veeha-list .veeha-item .veeha-buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.veeha-carousel .veeha-list .veeha-item .veeha-buttons button{
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}
.veeha-carousel .veeha-list .veeha-item .veeha-buttons button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}
/* thumbail */
.veeha-thumbnail{
    position: absolute;
    
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}
.veeha-thumbnail .veeha-item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.veeha-thumbnail .veeha-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.veeha-thumbnail .veeha-item .veeha-content{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.veeha-thumbnail .veeha-item .veeha-content .veeha-title{
    font-weight: 500;
}
.veeha-thumbnail .veeha-item .veeha-content .veeha-description{
    font-weight: 300;
}

/* arrows */
.veeha-arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.veeha-arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.veeha-arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.veeha-carousel .veeha-list .veeha-item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.veeha-carousel .veeha-list .veeha-item:nth-child(1) .veeha-content .veeha-author,
.veeha-carousel .veeha-list .veeha-item:nth-child(1) .veeha-content .veeha-title,
.veeha-carousel .veeha-list .veeha-item:nth-child(1) .veeha-content .veeha-topic,
.carousel .list .item:nth-child(1) .content .veeha-des,
.carousel .list .item:nth-child(1) .content .veeha-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;
    }
}
.veeha-carousel .veeha-list .veeha-item:nth-child(1) .veeha-content .veeha-title{
    animation-delay: 1.2s!important;
}
.veeha-carousel .veeha-list .veeha-item:nth-child(1) .veeha-content .veeha-topic{
    animation-delay: 1.2s!important;
}
.veeha-carousel .veeha-list .veeha-item:nth-child(1) .veeha-content .veeha-des{
    animation-delay: 1.2s!important;
}
.veeha-carousel .veeha-list .veeha-item:nth-child(1) .veeha-content .veeha-buttons{
    animation-delay: 1.2s!important;
}
/* create animation when next click */
.veeha-carousel.next .veeha-list .veeha-item: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;
    }
}

.veeha-carousel.next .veeha-thumbnail .veeha-item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.veeha-carousel.prev .veeha-list .veeha-item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.veeha-carousel.next .veeha-thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.veeha-carousel .veeha-time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #d40080;
    left: 0;
    top: 0;
}

.veeha-carousel.next .veeha-time,
.veeha-carousel.prev .veeha-time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.veeha-carousel.prev .veeha-list .veeha-item:nth-child(2){
    z-index: 2;
}

.veeha-carousel.prev .veeha-list .veeha-item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.veeha-carousel.prev .veeha-thumbnail .veeha-item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.veeha-carousel.next .veeha-arrows button,
.veeha-carousel.prev .veeha-arrows button {
    pointer-events: auto; /* Allow button interaction */
}
.veeha-carousel.prev .veeha-list .veeha-item:nth-child(2) .veeha-content .veeha-author,
.veeha-carousel.prev .veeha-list .veeha-item:nth-child(2) .veeha-content .veeha-title,
.veeha-carousel.prev .veeha-list .veeha-item:nth-child(2) .veeha-content .veeha-topic,
.veeha-carousel.prev .veeha-list .veeha-item:nth-child(2) .veeha-content .veeha-des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
/* Tablet screens (max-width: 992px) */
@media screen and (max-width: 1199px) {
    .veeha-carousel .veeha-list .veeha-item .veeha-content {
        width: 90%;
        max-width: 700px;
        top: 15%;
        padding-right: 15%;
    }
    .veeha-carousel .veeha-list .veeha-item .veeha-title,
    .veeha-carousel .veeha-list .veeha-item .veeha-topic {
        font-size: 2em;
    }
    .veeha-carousel .veeha-list .veeha-item .veeha-des {
        font-size: 1em;
    }
    .veeha-thumbnail .veeha-item {
        width: 120px;
        height: 180px;
    }
    .veeha-arrows {
        top: 70%;
        right: 45%;
    }
    .veeha-arrows button {
        width: 35px;
        height: 35px;
    }
}

/* Large mobile screens (max-width: 768px) */
@media screen and (max-width: 768px) {
    .veeha-carousel {
        height: 100vh;
    }
    .veeha-carousel .veeha-list .veeha-item .veeha-content {
        width: 90%;
        max-width: 600px;
        top: 10%;
        padding-right: 10%;
    }
    .veeha-carousel .veeha-list .veeha-item .veeha-title,
    .veeha-carousel .veeha-list .veeha-item .veeha-topic {
        font-size: 1.8em;
    }
    .veeha-carousel .veeha-list .veeha-item .veeha-des {
        font-size: 0.95em;
    }
    .veeha-thumbnail .veeha-item {
        width: 100px;
        height: 160px;
    }
    .veeha-arrows {
        top: 65%;
        right: 40%;
    }
    .veeha-arrows button {
        width: 30px;
        height: 30px;
    }
}

/* Small mobile screens (max-width: 480px) */
@media screen and (max-width: 480px) {

    .veeha-carousel{
        max-height: 600px;
    }
    .veeha-carousel .veeha-list .veeha-item .veeha-content {
        width: 100%;
        max-width: 90%;
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
        padding-right: 5%;
    }
    .veeha-carousel .veeha-list .veeha-item .veeha-title {
        padding-top: 40px;
        font-size: 1.3em;
        line-height: 1.2em;
    }
    .veeha-carousel .veeha-list .veeha-item .veeha-des {
        padding-top: 40px;
        font-size: 1em;
    }
    .veeha-thumbnail {
        bottom: 20px;
        gap: 10px;
    }
    .veeha-thumbnail .veeha-item {
        width: 80px;
        height: 120px;
    }
    .veeha-arrows {
        padding-top: 30px;
        top: 60%;
        right: 35%;
    }
    .veeha-arrows button {
        width: 25px;
        height: 25px;
    }
}
