.hero {
    width: 100%;
    height: 520px;
    overflow: hidden;
    margin-top: 6px;
    position: relative;
}

.hero .list .item{
    position: absolute;
    inset: 0 0 0 0;  
}

.hero .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .list .item .content {
    position: absolute;
    height: 100%;
    width: 100%;
    padding: 0 8%;
    display: flex;
    align-items: center;
    top: 0%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
    background: rgba(0, 0, 0, 0.4); 
}


.hero .list .item .content .bustitle,  .hero .list .item .content .topic{
    font-weight: bold;
    font-size: 1.5em;
    list-style: 1.3em;
    margin-bottom: 15px;
}

.hero .list .item .content .topic{
    font-size: 2em;
    color: #f1683a;
}

.hero .list .item .content .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 12px;
    margin-top: 18px;
}

.hero .list .item .content button{
    border: none;
    background-color: #eee;
    letter-spacing: 2px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 18px;
}

.hero .list .item .content button:nth-child(2){
    background-color: transparent;
    color: #eee;
    border: 1px solid #eee;
}

.hero .thumbnail {
    position: absolute;
    gap: 8px;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 10;
    display: none;
}

 .hero .thumbnail .item{
    width: 110px;
    height: 200px;
    flex-shrink: 0;
    position: relative;
}

.hero .thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.hero .thumbnail .item .content{
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.hero .thumbnail .item .content .bustitle {
    font-weight: bold;
}

.hero .arrow {
    width: 100%;
    height: 100%;
    z-index: 25;
    background-color: #003366;
}

.hero .arrows {
    position: absolute;
    inset: 0 0 0 0;  
    padding: 0 2px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    align-items: center;
}

.hero .arrows button{
    width: 21px;
    height: 32px;
    background-color: #bdddfd;
    border: none;
    font-family: monospace;
    color: #fff;
    font-weight: bold;
    font-size: large;
    z-index: 20;
}

.hero .arrows button:hover{
    background-color: #eee;
    color: #555;
}

.hero .list .item:nth-child(1){
    z-index: 1;
}

.hero .list .item:nth-child(1) .bustitle,
.hero .list .item:nth-child(1) .topic,
.hero .list .item:nth-child(1) .des,
.hero .list .item:nth-child(1) .buttons{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0; 
    animation: showContent 0.5s 1s linear 1 forwards;
}

.hero .list .item:nth-child(1) .bustitle {
    animation-delay: 1.4s;
}

.hero.next .list .item:nth-child(1) img {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 100%;
    animation: changeImage 0.5s linear 1 forwards;
}

.hero.next .thumbnail .item:nth-child(1){
    width: 0;
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}

.hero.next .thumbnail{
    transform: translateX(150px);
    animation: transformThumnail .5s linear 1 forwards;
}

@keyframes showContent {
    to{
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }   
}

@keyframes changeImage {
    to{
        width: 100%;
        height: 100%;
        left: 0;
    }
}

@keyframes showThumbnail{
    to{
        width: 110px;
    }
}

@keyframes transformThumnail {
    to{
        transform: translateX(0);
    }
}
/* ltr controls*/
.hero.prev .list .item:nth-child(2){
    z-index: 2;
}

.hero.prev .list .item:nth-child(2) img{
    position: absolute;
    bottom: 0;
    left: 0;
    animation: removeImage 0.5s linear 1 forwards;
}

.hero.prev .thumbnail .item:nth-child(1) {
    width: 0;
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail 0.5s linear 1 forwards;
}

@keyframes removeImage {
    to{
        width: 100%;
        height: 100%;
        left: 100%;
    }
}

.hero.prev .list .item:nth-child(2) .bustitle,
.hero.prev .list .item:nth-child(2) .topic,
.hero.prev .list .item:nth-child(2) .des,
.hero.prev .list .item:nth-child(2) .buttons{
    animation: removeContent 1.5s 1s linear 1 forwards;
}

@keyframes removeContent {
    to{
        transform: translateY(150px);
        filter: blur(20px);
        opacity: 0;
    }
}

.hero.next .arrows button, .hero.prev .arrows button{
    pointer-events: none;
}

.hero .time {
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    position: absolute;
    z-index: 30;
    top: 0;
    left: 0;
}

.hero.next .time, .hero.prev .time{
    width: 100%;
    animation: slidetiming 2s linear 1 forwards;
}

@keyframes slidetiming {
    to{
        width: 0;
    }    
}

@media screen and (max-width: 680px) {
    .hero .list .item .content{
        padding-right: 0;
    }

    .hero .list .item .content .bustitle {
        font-size: 30px;
    }   
}