 /* carousel */
 .carousel {
     height: 85vh;
     width: 100vw;
     overflow: hidden;
     position: relative;
 }

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

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

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

 }



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

 .carousel .list .item .title,
 .carousel .list .item .topic {
     font-size: 5em;
     font-weight: bold;
     line-height: 1.3em;
     text-shadow: 1px 1px 3px rgb(0, 0, 0);
     text-transform: uppercase;
 }

 .carousel .list .item .des {
     text-shadow: 1px 1px 3px rgb(0, 0, 0) !important;
 }

 .carousel .list .item .topic {
     color: #f1683a;
 }

 @media (max-width: 719px) {
     .carousel .list .item .buttons {
         display: grid;
         grid-template-columns: 1fr;
         grid-template-rows: 1fr 1fr;
         gap: 20px;
         margin-top: 20px;
     }
 }

 @media (min-width: 720px) {
     .carousel .list .item .buttons {
         display: grid;
         grid-template-columns: repeat(2, auto);
         grid-template-rows: 40px;
         gap: 5px;
         margin-top: 20px;
     }
 }


 .carousel .list .item .buttons .btn-1 {
     background-color: #d16c00;
     border: 1px solid #eee;
     color: rgb(255, 255, 255);
 }


 .carousel .list .item .buttons .btn-2 {
     background-color: #00000085;
     color: white;
     border: 1px solid #eee;
 }


 .carousel .list .item .buttons a {
     font-size: 13px;
     text-transform: uppercase;
     text-decoration: none;
     padding: 10px 20px;
     font-weight: 500;
     cursor: pointer;
     transition: all .3s ease-in;
     display: flex;
     justify-content: center;
     align-items: center;
     width: max-content;
     font-family: 'Barlow', sans-serif;
     letter-spacing: .05em;
 }


 .carousel .list .item .buttons a.btn-1:hover {

     color: rgb(255, 255, 255);
     background-color: #000000;
 }


 .carousel .list .item .buttons a.btn-2:hover {
     border-color: white;
     color: rgb(255, 255, 255);
     background-color: #000000;
 }


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

 }

 .thumbnail .item {
     width: 120px;
     height: 80px;
     flex-shrink: 0;
     position: relative;

 }

 .thumbnail .item img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     border-radius: 10px;
     border: 2px solid white !important;
     box-shadow: 0 0 3px rgba(0, 0, 0, 0.27);

 }

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

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

 .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: rgba(238, 238, 238, 0.848);
     border: none;
     color: #000000;
     font-family: monospace;
     font-weight: bold;
     transition: .5s;
     cursor: pointer;
 }

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

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

 .carousel .list .item .content .title {
     font-family: "Poppins", sans-serif;
 }

 /* 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 .buttons {
     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 .content .des {

     font-size: 22px;
     font-weight: 600;
     animation-delay: 1.6s !important;
     font-family: "poppins", sans-serif;
     letter-spacing: .05em;
 }

 @media (max-width: 780px) {
     .carousel .list .item .content .des {
         font-size: 18px;
     }
 }

 @media (max-width: 520px) {
     .carousel .list .item .content .des {
         display: none !important;
     }
 }

 .carousel .list .item .content .des a {
     text-decoration: none;
     color: white;
 }

 .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) img {
     width: 120px;
     height: 80px;
     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 img {
     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 */

 .carousel .time {
     position: absolute;
     z-index: 1000;
     width: 0%;
     height: 3px;
     background-color: #f1683a;
     left: 0;
     top: 0;
 }

 .carousel.next .time,
 .carousel.prev .time {
     animation: runningTime 3s linear 1 forwards;
 }

 @keyframes runningTime {
     from {
         width: 100%
     }

     to {
         width: 0
     }
 }


 /* prev click */

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

 .carousel.prev .list .item:nth-child(2) img {
     animation: outFrame 0.5s linear 1 forwards;
     position: absolute;
     bottom: 0;
     left: 0;
 }

 @keyframes outFrame {
     to {
         width: 120px;
         height: 80px;
         bottom: 50px;
         left: 50%;
         border-radius: 10px;
     }
 }

 .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 .buttons {
     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) {
     .carousel .list .item .content {
         padding-right: 0;
     }

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

 @media screen and (min-width: 679px) {
     .carousel .list .item .content .title {
         font-size: 56px;
     }
 }

 @media screen and (min-width: 1020px) {
     .carousel .list .item .content .title {
         font-size: 68px !important;
     }
 }