/* carousel */
::-webkit-scrollbar {
    display: none;
}

:root {
    --border-color: #D5A08A;
    --font-color-primary :#9CC99F;
    --font-color-secondary : #D5A08A;
}

.carousel {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    font-family: "Playfair Display", serif;
}

.carousel .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
}

.carousel .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel .list .item .content {
    position: absolute;
    top: 30%;
    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;
    
}

.carousel .list .item .author {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--font-color-secondary)
}

.carousel .list .item .title,
.carousel .list .item .topic {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--font-color-primary);
}

.carousel .list .item .content .des{
    line-height: 2em;
    font-family: "Montserrat", sans-serif;
}


.carousel .list .item .btn {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 15px;
}

.carousel .list .item .btn .ctaLink{
    position: relative;
}

.carousel .list .item .btn .ctaLink .cta-bottom{
 position: absolute;
 left: 0;
 bottom: -9px;
 width: 7%;
 height: auto;
}

/* thumbail */
.thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.thumbnail .item .content {
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.thumbnail .item .content .title {
    font-weight: 500;
    color: var(--font-color-secondary);
    font-family: "Montserrat", sans-serif;
}

.thumbnail .item .content .description {
    font-weight: 300;
    
}

/* arrows */
.arrows {
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: #fff;
    font-weight: bold;
    transition: .5s;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.arrows button:hover {
    background-color: #60122E;
    color: #000;
}

.arrows button img {
    width: 80%;
    /* Adjust size if needed */
    height: auto;
}

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

/* animation text in first item */

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

.carousel .list .item:nth-child(1) .content .topic {
    animation-delay: 1.4s !important;
}

.carousel .list .item:nth-child(1) .content .des {
    animation-delay: 1.6s !important;
}

.carousel .list .item:nth-child(1) .content .buttons {
    animation-delay: 1.8s !important;
}

/* create animation when next click */
.carousel.next .list .item:nth-child(1) .list-image {
    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.next .thumbnail .item:nth-last-child(1) {
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}

.carousel.prev .list .item .list-image {
    z-index: 100;
}

@keyframes showThumbnail {
    from {
        width: 0;
        opacity: 0;
    }
}

.carousel.next .thumbnail {
    animation: effectNext .5s linear 1 forwards;
}

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

/* running time */

/* prev click */

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

.carousel.prev .list .item:nth-child(2) .list-image {
    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;
    }
}

.carousel.prev .thumbnail .item:nth-child(1) {
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}

.carousel.next .arrows button,
.carousel.prev .arrows button {
    pointer-events: none;
}

.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .btn {
    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) {

    .thumbnail{
        display: none;
    }

    .carousel .list .item .content {
        padding-right: 0;
    }

    .carousel .list .item .content .title {
        font-size: 30px;
    }

    .list .item .btn{
        flex-direction: row;
    }

    .list .item .btn .ctaLink a{
        /* width: 20px; */
        padding: 10px 20px;
    }

    .carousel .list .item .content{
        /* bottom: 2%; */
        top: 70%;
    }

    .carousel .arrows{
        top: 90%;
        justify-content: center;
        right: 0;
        left: 35%;
    }
}

@media screen and (max-width: 380px) {
    .carousel .arrows{
      padding-top: 15px !important;
    }
  }