
.header {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 0px;
    position: relative;
}

.header .list .items {
    position: absolute;
    inset: 0 0 0 0;
}

.header .list .items img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter:brightness(60%);
}

.header .list .items .content {
    position: absolute;
    top: 10%;
    width: 100%;
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}

.header .list .items .content .text {
     width: 142.65%;
     padding-top: 10px;
     padding-bottom:1px;
}

.header .list .items .content .author {
    font-size: 18px;
    font-weight: 1500;
    margin-bottom: 7px;
    padding-left: 10px;
    padding-right: 10px;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--main-color);
}

.header .list .items .content .title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    padding-left: 7px;
    margin-bottom: 20px;
    color: var(--bg-color);
}

.header .list .items .content .description {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 30px;
    padding-left: 7px;
    padding-right: 600px;
    color: var(--bg-color);
    margin-bottom: 10px;
}

.header .list .items .content .buttons {
    display: grid;
    grid-template-columns: repeat(2, 150px);
    grid-template-rows: 50px;
    gap: 5px;
    margin-top: 10px;
    padding-left: 14px;
}

.header .list .items .content button {
    padding: 1px 1px;
    background-color: var(--main-color);
    color: var(--text-color);
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 1px;
    transition: all .50s ease;
    cursor: pointer;
}

.header .list .items .content button:hover {
    border: 2px solid var(--text-color);
    background: rgba(255, 255, 255, 0.5);
    color: (--text-color);
}

/* tumbnail */
.thumbnail {
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.thumbnail .items {
    width: 240px;
    height: 270px;
    flex-shrink: 0;
    position: relative;
}

.thumbnail .items img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.thumbnail .items .content {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.thumbnail .items .content .title a{
    font-weight: bold;
    color: #ffa343;
}

.thumbnail .items .content .des {
    color: white;
}

.arrows {
    position: absolute;
    top: 85%;
    right: 45%;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 5px;
    align-items: center;
}

.arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
    color: black;
    border: none;
    font-weight: bold;
    font-size: large;
    transition: .5s;
    Z-index: 100;
}
 
.arrows button:hover {
    background-color: var(--main-color);
}

.header .list .items:nth-child(1){
    z-index: 1;
}

.header .list .items:nth-child(1) .author,
.header .list .items:nth-child(1) .title,
.header .list .items:nth-child(1) .topic,
.header .list .items:nth-child(1) .description,
.header .list .items:nth-child(1) .buttons {
   transform: translateY(50px);
   filter: blur(20px);
   opacity: 0;
   animation: showContent 0.5s 1s linear 1 forwards;
}

@keyframes showContent {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.header .list .items:nth-child(1) .title {
    animation-delay: 1.2s;
}

.header .list .items:nth-child(1) .topic {
    animation-delay: 1.4s;
}

.header .list .items:nth-child(1) .description {
    animation-delay: 1.6s;
}

.header .list .items:nth-child(1) .buttons {
    animation-delay: 1.8s;
}

.header.next .list .items:nth-child(1) img {
    width: 240px;
    height: 270px;
    position: absolute;
    left: 50%;
    bottom: 50px;
    border-radius: 20px;
    animation: showImage 0.5s linear 1 forwards;
}

@keyframes showImage {
    to {
        width: 100%;
        height: 100%;
        left: 0;
        bottom: 0;
        border-radius: 0;
    }
}

.header.next .thumbnail .items:nth-last-child(1){
    width: 0;
    overflow: hidden;
    animation: showTumbnail .5s linear 1 forwards;
}

@keyframes showThumbnail {
    to {
        width: 240px;
    }
}

.header.next ,thumbnail {
    transform: translateX(150px);
    animation: transformThumbnail .5s linear 1 forwards;
}

@keyframes transformThumbnail {
    to {
        transform: translateX(0);
    }
}

.header.prev .list .items:nth-child(2) {
    z-index: 2;
}

.header.prev .list .items:nth-child(2) img {
    position: absolute;
    bottom: 0;
    left: 0;
    animation: outImage 0.5s linear 1 forwards;
}

@keyframes outImage {
    to {
        width: 240px;
        height: 270px;
        border-radius: 20px;
        left: 50%;
        bottom: 20px;
    }
}

.header.prev .thumbnail .items:nth-child(1) {
    width: 0;
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail 0.5s linear 1 forwards; 
}

.header.prev .list .items:nth-child(2) .author,
.header.prev .list .items:nth-child(2) .title,
.header.prev .list .items:nth-child(2) .topic,
.header.prev .list .items:nth-child(2) .description,
.header.prev .list .items:nth-child(2) .buttons {
    animation: contentOut 1.5s linear 1 forwards;
}

@keyframes contentOut {
    to {
        transform: translateY(150px);
        filter: blur(20px);
        opacity: 0;
    }
}

.header.next .arrows button,
.header.prev .arrows button {
    pointer-events: none;
}

.time {
    width: 0%;
    height: 5px;
    background-color: #f1683a;
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
}

.header.next .time,
.header.prev .time {
    width: 100%;
    animation: timeRunning 2s linear 1 forwards;
}
.header.prev .time {
    width: 100%;
    animation: timeRunning 2s linear 1 forwards;
}
@keyframes timeRunning {
    to {
        width: 0;
    }
}

@media (max-width: 1200px) {
.header .list .items .content button {
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 1px;
}
.header .list .items .content .buttons {
    grid-template-columns: repeat(2, 150px);
    grid-template-rows: 50px;
}
.thumbnail .items {
    width: 240px;
    height: 270px;
    }
    
.header .list .items .content .description {
    font-size: 1.4rem;
    font-weight: 500;
    padding-right: 580px;
} 
}

@media (max-width: 1050px) {
    

.header .list .items .content .author {
    font-size: 17px;
    font-weight: 1470;
}

.header .list .items .content .title {
    font-size: 3.3rem;
    font-weight: 800;
    line-height: 1;
}

.header .list .items .content .description {
    font-size: 1.4rem;
    font-weight: 500;
    padding-right: 10px;
}

.header .list .items .content button {
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 1px;
}
.header .list .items .content .buttons {
    grid-template-columns: repeat(2, 150px);
    grid-template-rows: 50px;
}
.thumbnail .items {
    width: 210px;
    height: 240px;
    }
}    

@media (max-width: 800px) {

.header .list .items .content .author {
    font-size: 16px;
    font-weight: 1400;
}

.header .list .items .content .title {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1;
}

.header .list .items .content .description {
    font-size: 1.2rem;
    font-weight: 500;
    padding-right: 10px;
    line-height: 25px;
}

.header .list .items .content button {
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 1px;
}
.header .list .items .content .buttons {
    grid-template-columns: repeat(2, 150px);
    grid-template-rows: 50px;
}
.thumbnail .items {
    width: 190px;
    height: 250px;
    }
}
    
 @media (max-width: 600px) {

.header .list .items .content .author {
    font-size: 15px;
    font-weight: 1400;
}

.header .list .items .content .title {
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.1;
}

.header .list .items .content .description {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 25px;
}
     
.header .list .items .content button {
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 1px;
}
.header .list .items .content .buttons {
    grid-template-columns: repeat(2, 127px);
    grid-template-rows: 45px;
} 
.thumbnail .items {
    width: 150px;
    height: 220px;
    }
}

@media (max-width: 450px) {

.header .list .items .content .author {
    font-size: 12px;
    font-weight: 1400;
    letter-spacing: 5px;
}

.header .list .items .content .title {
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1;
}

.header .list .items .content .description {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 28px;
    padding-right: 4.5%;
}
     
.header .list .items .content button {
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 1px;
}
.header .list .items .content .buttons {
    grid-template-columns: repeat(2, 127px);
    grid-template-rows: 45px;
}
}

@media (max-width: 380px)  {

.header .list .items .content .author {
    font-size: 12px;
    font-weight: 1400;
    letter-spacing: 5px;
}

.header .list .items .content .title {
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1;
}

.header .list .items .content .description {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 20px;
}
     
.header .list .items .content button {
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 1px;
}
.header .list .items .content .buttons {
    grid-template-columns: repeat(2, 127px);
    grid-template-rows: 45px;
}
} 

@media (min-height: 950px) {

.header .list .items .content .author {
    font-size: 22px;
    font-weight: 1400;
}

.header .list .items .content .title {
    font-size: 5rem;
    font-weight: 800;
}

.header .list .items .content .description {
    font-size: 2rem;
    font-weight: 500;
    line-height: 40px;
}

.header .list .items .content button {
    font-size: 20px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 1px;
}
.header .list .items .content .buttons {
    grid-template-columns: repeat(2, 200px);
    grid-template-rows: 70px;
}
.thumbnail .items {
    width: 220px;
    height: 300px;
    }
}

@media (min-height: 1051px) {

.header .list .items .content .author {
    font-size: 24px;
    font-weight: 1400;
}

.header .list .items .content .title {
    font-size: 5.5rem;
    font-weight: 800;
}

.header .list .items .content .description {
    font-size: 2rem;
    font-weight: 500;
    line-height: 40px;
}

.header .list .items .content button {
    font-size: 20px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 1px;
}
.header .list .items .content .buttons {
    grid-template-columns: repeat(2, 200px);
    grid-template-rows: 70px;
}
.thumbnail .items {
    width: 250px;
    height: 330px;
    }
}

@media (min-height: 1201px) {

.header .list .items .content .author {
    font-size: 26px;
    font-weight: 1400;
}

.header .list .items .content .title {
    font-size: 6rem;
    font-weight: 800;
}

.header .list .items .content .description {
    font-size: 2rem;
    font-weight: 500;
    line-height: 40px;
}

.header .list .items .content button {
    font-size: 20px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 1px;
}
.header .list .items .content .buttons {
    grid-template-columns: repeat(2, 200px);
    grid-template-rows: 70px;
}
.thumbnail .items {
    width: 280px;
    height: 360px;
    }
}

@media (max-height: 380px) {

.header .list .items .content .author {
    font-size: 4px;
    font-weight: 1400;
}

.header .list .items .content .title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 25px;
    margin-bottom: 2px;
}

.header .list .items .content .description {
    font-size: 0.1rem;
    font-weight: 300;
    line-height: 15px;
    margin-bottom: 5px;
}

.header .list .items .content button {
    font-size: 5px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 1px;
}
.header .list .items .content .buttons {
    grid-template-columns: repeat(2, 90px);
    grid-template-rows: 20px;
    margin-top: 1px;
}
.thumbnail .items {
    width: 160px;
    height: 200px;
    }
    
.header .list .items .content .text {
     width: 60%;
     padding-top: 10px;
     padding-bottom:1px;
}
    
.arrows {
    right: 35%;
    top: 80%;
}

.arrows button {
    width: 30px;
    height: 30px;
}
}

@media (max-height: 410px) {

.header .list .items .content .author {
    font-size: 8px;
    font-weight: 1400;
}

.header .list .items .content .title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 25px;
    margin-bottom: 2px;
}

.header .list .items .content .description {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 15px;
    margin-bottom: 5px;
}

.header .list .items .content button {
    font-size: 8px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 1px;
}
.header .list .items .content .buttons {
    grid-template-columns: repeat(2, 100px);
    grid-template-rows: 30px;
    margin-top: 1px;
}
.thumbnail .items {
    width: 160px;
    height: 200px;
    }
    
.header .list .items .content .text {
     width: 60%;
     padding-top: 10px;
     padding-bottom:1px;
}
    
.arrows {
    right: 35%;
    top: 80%;
}

.arrows button {
    width: 30px;
    height: 30px;
}
}

@media (max-height: 500px) {

.header .list .items .content .author {
    font-size: 12px;
    font-weight: 1400;
}

.header .list .items .content .title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 29px;
    margin-bottom: 15px;
}

.header .list .items .content .description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 20px;
    margin-bottom: 15px;
}

.header .list .items .content button {
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 1px;
}
.header .list .items .content .buttons {
    grid-template-columns: repeat(2, 140px);
    grid-template-rows: 40px;
    margin-top: 1px;
}

.thumbnail {
    bottom: 50px;
}
    
.thumbnail .items {
    width: 160px;
    height: 200px;
    
    }
    
.header .list .items .content .text {
     width: 67%;
     padding-top: 10px;
     padding-bottom:1px;
}
    
.arrows {
    right: 35%;
    top: 80%;
}

.arrows button {
    width: 30px;
    height: 30px;
}
}



