.carousel {
    /* width: 100vw; */
    height: 100vh;
    overflow: hidden;
    margin-top: -65px;
    position: relative;
}

.carousel .list .item {
    position: absolute;
    inset: 0 0 0 0;
}

.carousel .list .item .carousel-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.logo-carousel-slide {
    width: 350px !important;
    height: 35px !important;
    object-fit: inherit !important;
    filter: brightness(1) !important;
}

.carousel .list .item .content {
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translate(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #eee;
    text-shadow: 0 5px 10px #0004;
}

.carousel .list .item .content .author {
    font-weight: bold;
    letter-spacing: 10px;
}

.carousel .list .item .content .title,
.carousel .list .item .content .topic {
    font-weight: bold;
    font-size: 5em;
    list-style: 1.3em;
}

.carousel .list .item .content .topic {
    color: #336BB0;
}

.carousel .list .item .buttons {
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}

.carousel .list .item .buttons button {
    border: none;
    background-color: #eee;
    color: #00498E;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
    transition: .5s;
    border-radius: 4px;
}

.carousel .list .item .buttons button {
    cursor: pointer;
}

.carousel .list .item .buttons button:nth-child(1):hover {
    background-color: #00498E;
    color: #eee;
}

.carousel .list .item .content button:nth-child(2) {
    background-color: transparent;
    color: #eee;
    border: 1px solid #eee;
}

.carousel .list .item .content button:nth-child(2):hover {
    background-color: transparent;
    color: #00498E;
    border-color: #00498E;
    filter: brightness(1.8);
}

.social {
    display: flex !important;
    flex-direction: row !important;
    width: fit-content !important;
    height: fit-content !important;
    gap: 50px;
}

.carousel .list .item .social-link {
    width: 50px;
    height: 50px;
}

.carousel .list .item .social-link .social-icon {
    width: 100%;
    height: 100%;
    fill: #eee;
    transition: .5s;
}

.carousel .list .item .social-link:hover .social-icon {
    fill: #00498E;
}

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

.thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    border-radius: 20px;
    transition: .5s;
}

.thumbnail .item:hover {
    transform: translateY(-15px);
    cursor: pointer;
}

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

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00498E99;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.thumbnail .item:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail .item .content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 30px;
    position: absolute;
    bottom: 10px;
    text-align: center;
    background-color: #00498E;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

.thumbnail .item .content .title {
    color: #eee;
    font-size: 12px;
    font-weight: 900;
}

.thumbnail-icon {
    width: 38px;
    height: 38px;
    fill: #eee;
    transition: fill 0.3s ease, transform 0.3s ease;
}

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

.arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    font-family: monospace;
    color: #fff;
    font-weight: bold;
    font-size: large;
    transition: .5s;
    z-index: 1;
}

.arrows button:hover {
    background-color: #eee;
    color: #555;
    cursor: pointer;
}

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

.carousel .list .item:nth-child(1) .author,
.carousel .list .item:nth-child(1) .title,
.carousel .list .item:nth-child(1) .topic,
.carousel .list .item:nth-child(1) .desc,
.carousel .list .item:nth-child(1) .buttons {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.carousel .list .item:nth-child(1) .title {
    animation-delay: 1.2s;
}
.carousel .list .item:nth-child(1) .topic {
    animation-delay: 1.4s;
}
.carousel .list .item:nth-child(1) .desc {
    animation-delay: 1.6s;
}
.carousel .list .item:nth-child(1) .buttons {
    animation-delay: 1.8s;
}

/* effect next click */
.carousel.next .list .item:nth-child(1) .carousel-bg {
    width: 150px;
    height: 220px;
    position: absolute;
    left: 50%;
    bottom: 50px;
    border-radius: 20px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage {
    to {
        width: 100%;
        height: 100%;
        left: 0;
        bottom: 0;
        border-radius: 0;
        filter: brightness(.5);
    }
}

.carousel.next .thumbnail .item:nth-child(1) {
    width: 0;
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
@keyframes showThumbnail {
    to {
        width: 150px;
    }
}

.carousel.next .thumbnail {
    transform: translateX(150px);
    animation: transformThumbnail .5s linear 1 forwards;
}
@keyframes transformThumbnail {
    to {
        transform: translateX(0);
    }
}

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

.carousel.prev .list .item:nth-child(2) .carousel-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    animation: outImage .5s linear 1 forwards;
}
@keyframes outImage {
    to {
        width: 150px;
        height: 220px;
        border-radius: 20px;
        left: 50%;
        bottom: 50px;
        filter: brightness(1);
    }
}
@keyframes mobileOutImage {
    to {
        width: 0px;
        height: 0px;
        border-radius: 20px;
        left: 90%;
        bottom: 50px;
        filter: brightness(1);
    }
}

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

.carousel.prev .list .item:nth-child(2) .author,
.carousel.prev .list .item:nth-child(2) .title,
.carousel.prev .list .item:nth-child(2) .topic,
.carousel.prev .list .item:nth-child(2) .desc,
.carousel.prev .list .item:nth-child(2) .buttons {
    animation: contentOut 1.5s linear 1 forwards;
}
@keyframes contentOut {
    to {
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}

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

/* time */
.time {
    width: 0%;
    height: 5px;
    background-color: #00498E;
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
}

.carousel.next .time,
.carousel.prev .time {
    width: 100%;
    animation: timeRunning 2s linear 1 forwards;
}
@keyframes timeRunning {
    to {
        width: 0;
    }
}

/* responsive */
@media screen and (max-width: 380px) {
    .thumbnail {
        display: none;
    }
    .carousel.prev .list .item:nth-child(2) .carousel-bg {
        position: absolute;
        bottom: 0;
        left: 0;
        animation: mobileOutImage .5s linear 1 forwards;
    }
}

@media screen and (max-width: 678px) {
    .carousel .list .item .content {
        padding-right: 0;
    }
    .carousel .list .item .content .title {
        font-size: 30px;
    }
    .logo-carousel-slide {
        width: 200px !important;
        height: 20px !important;
        object-fit: inherit !important;
        filter: brightness(1) !important;
    }
}

@media (min-width: 992px) {
    .thumbnail .item .content {
        font-size: 12px;
    }
}

@media screen and (min-width: 1080px) {
    .carousel .list .item .content {
        width: 1500px;
    }
}