.main-slider {
    width: 100wv;
    height: 100vh;
    overflow: hidden;
    position: relative;
    font-weight: bold;
    margin-top: 1rem;
}

.main-slider .list .item {
    position: absolute;
    inset: 0 0 0 0;

}

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

.main-slider .list .item .content {
    position: absolute;
    top: 20%;
    width: 1140px;
    color: white;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: var(--white);
    background-color: rgba(2, 61, 95, 0.6);
    border-radius: 2rem;
    padding: 1.5rem;
    text-shadow: 0 5x 10px #0004;
}

.main-slider .list .item .content .author {
    font-weight: bolder;
    color: white;
    letter-spacing: 10px;
    margin-bottom: .1rem;
}

.main-slider .list .item .content .title, .main-slider .list .item .content .des {
    color: white;
}

.main-slider .list .item .content .title, .main-slider .list .item .content .topic {
    font-weight: bold;
    font-size: clamp(2rem, 3rem, 5rem);
    margin-top: 6px;
    margin-bottom: 6px;
    line-height: 2rem;
}

.main-slider .list .item .content .topic {
    color: orange;
    line-height: normal;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

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

.main-slider .list .item .content button {
    border: none;
    background-color: var(--main-shade);
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: bolder;
}

.main-slider .list .item .content button:nth-child(2) {
    background-color: transparent;
    color: var(--main-shade);
    border: 1px solid var(--main-shade);
}

.thumbnail {
    overflow: hidden;
    position: absolute;
    bottom: 10%;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 5%;
}

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

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

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

.thumbnail .item .content .title {
    font-weight: bold;
}

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

.arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #00599a;
    border: none;
    font-family: monospace;
    columns: var(--white);
    font-weight: bold;
    font-size: large;
    transition: .5s;
}

.arrows button:hover {
    background-color: #f28d1f;
    color: #000000;
}

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

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

@keyframes showContent {
    to{
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.main-slider .list .item:nth-child(1) .title {
    animation-delay: 1.3s;
}

.main-slider .list .item:nth-child(1) .topic {
    animation-delay: 1.4s;
}

.main-slider .list .item:nth-child(1) .des {
    animation-delay: 1.5s;
}

.main-slider .list .item:nth-child(1) .buttons {
    animation-delay: 1.6s;
}

.main-slider.next .list .item:nth-child(1) img {
    width: 150px;
    height: 200px;
    position: absolute;
    left: 50%;
    bottom: 50%;
    border-radius: 20px;
    animation: showImage .5s linear 1 forwards;
}

@keyframes showImage {
    to{
        width: 100%;
        height: 100%;
        left: 0;
        bottom: 0;
        border-radius: 0;
    }
}

.main-slider.next .thumbnail .item:nth-last-child(1) {
    width: 0;
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}

@keyframes showThumbnail {
    to {
        width: 150px;
    }
}

.main-slider.next .thumbnail {
    transform: translateX(150px);
    animation: transformThumb .5s linear 1 forwards;
}

@keyframes trannsformThumb {
    to {
        transform: translateX(0);
    }
}

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

.main-slider.prev .list .item:nth-child(2) img {
    position: absolute;
    bottom: 0;
    left: 0;
    animation: outImage .5s linear 1 forwards;
}

@keyframes outImage {
    to{
        width: 150px;
        height: 200px;
        border-radius: 20px;
        left: 50%;
        bottom: 50px;
    }
}

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

.main-slider.prev .list .item:nth-child(2) .author,
.main-slider.prev .list .item:nth-child(2) .title,
.main-slider.prev .list .item:nth-child(2) .topic,
.main-slider.prev .list .item:nth-child(2) .des,
.main-slider.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;
    }
}

.main-slider.next .arrows .buttons,
.main-slider.prev .arrows .buttons {
    pointer-events: none;
}

.time {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
}

.main-slider.next .time,
.main-slider.prev .time{
    width: 100%;
    animation: timeRun 2s linear 1 forwards;
}

@keyframes timeRun {
    to {
        width: 0;
    }
}

@media screen and (max-width: 678px) {
    .main-slider .list .item .content {
        padding-right: 0;

    }

    .main-slider .list .item .content .title {
        font-size: 2rem;

    }

    .main-slider .list .item .content .topic {
        font-size: 2rem;
        margin-top: 1rem;

    }
}
