@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


.carousel{
    height: 100vh;
    margin-top: -50px;
    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: 93%;
    object-fit: cover;
}
.carousel .list .item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 5%;
    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: 2.4em;
    font-weight: bold;
    line-height: 1.3em;
}
.carousel .list .item .topic{
    color: #f1683a;
}
.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;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}
.carousel .list .item .buttons button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}
/* 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;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.thumbnail .item .content{
    color: #fff;
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: 10px;
}
.thumbnail .item .content .title{
    font-weight: 500 !important;
    font-size: 0.8em;
}
.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: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* 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 .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: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) img{
    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 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: 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 .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: 30px;
    }
}

.heroslider-area {
    position: relative;
    overflow: hidden;
}

.heroslider-slider ul.slick-dots {
    bottom: 30px;
    z-index: 2;
}

.heroslider-singleslider {
    background-attachment: scroll;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.heroslider-contentwrapper {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 1;
}

.heroslider-overlay {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: url(../images/heroslider/heroslider-shape.png);
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center center;
    z-index: -1;
    background-size: cover;
    opacity: 0.9;
}

.heroslider-overlay2 {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: url(../images/heroslider/heroslider-shape-2.png);
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center center;
    z-index: -1;
    background-size: cover;
    opacity: 0.9;
}

.heroslider-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 100px;
    padding-right: 30px;
    -webkit-transition: all 0.1s ease-in-out 0s;
    transition: all 0.1s ease-in-out 0s;
}

.heroslider-content h1 {
    margin-top: -10px;
    font-size: 60px;
    line-height: 65px;
    font-weight: 700;
    color: #000000;
}

.heroslider-content p {
    font-size: 18px;
    line-height: 30px;
    color: #000000;
    margin-top: 30px;
}

.heroslider-content .tm-button {
    margin-top: 28px;
}

.heroslider-content-white h1 {
    color: #ffffff;
}

.heroslider-content-white p {
    color: #ffffff;
}

.heroslider-content.text-center {
    padding-right: 0;
}

@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .heroslider-singleslider {
        background-position: 65% center;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .heroslider-singleslider {
        background-position: 65% center;
    }
    .heroslider-content h1 {
        font-size: 48px;
        line-height: 52px;
    }
    .heroslider-content p {
        margin-top: 20px;
    }
    .heroslider-content .tm-button {
        margin-top: 20px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .heroslider-content {
        padding-right: 0;
    }
    .heroslider-content h1 {
        font-size: 36px;
        line-height: 40px;
    }
    .heroslider-content p {
        font-size: 16px;
        line-height: 26px;
        margin-top: 15px;
    }
    .heroslider-content .tm-button {
        margin-top: 15px;
    }
    .heroslider-overlay {
        background: rgba(255, 255, 255, 0.9);
    }
    .heroslider-overlay2 {
        background: rgba(255, 255, 255, 0.9);
    }
}

@media only screen and (max-width: 767px) {
    .heroslider-slider ul.slick-dots {
        max-width: 510px;
    }
    .heroslider-content {
        padding-right: 0;
    }
    .heroslider-content h1 {
        font-size: 36px;
        line-height: 40px;
    }
    .heroslider-content p {
        font-size: 16px;
        line-height: 26px;
        margin-top: 15px;
    }
    .heroslider-content .tm-button {
        margin-top: 15px;
    }
    .heroslider-overlay {
        background: rgba(255, 255, 255, 0.9);
    }
    .heroslider-overlay2 {
        background: rgba(255, 255, 255, 0.9);
    }
    .heroslider-singleslider {
        min-height: 380px !important;
    }
}

@media only screen and (max-width: 575px) {
    .heroslider-slider ul.slick-dots {
        bottom: 20px;
        max-width: 480px;
        padding: 0 15px;
    }
    .heroslider-content h1 {
        font-size: 28px;
        line-height: 32px;
    }
    .heroslider-content p {
        margin-top: 15px;
        font-size: 14px;
    }
    .heroslider-content .tm-button {
        margin-top: 15px;
    }
}

.tm-hero_4 {
    min-height: 800px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .heroslider-slider-2.tm-slider-arrow .tm-slider-arrow-prev,
    .heroslider-slider-2.tm-slider-arrow .tm-slider-arrow-next {
        top: auto;
        bottom: 30px;
    }
    .heroslider-slider-2.tm-slider-arrow .tm-slider-arrow-prev {
        left: auto;
        right: calc(50% + 10px);
    }
    .heroslider-slider-2.tm-slider-arrow .tm-slider-arrow-next {
        right: auto;
        left: calc(50% + 10px);
    }
    .tm-hero_4 {
        min-height: initial;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .heroslider-slider-2.tm-slider-arrow .tm-slider-arrow-prev,
    .heroslider-slider-2.tm-slider-arrow .tm-slider-arrow-next {
        top: auto;
        bottom: 30px;
    }
    .heroslider-slider-2.tm-slider-arrow .tm-slider-arrow-prev {
        left: auto;
        right: calc(50% + 10px);
    }
    .heroslider-slider-2.tm-slider-arrow .tm-slider-arrow-next {
        right: auto;
        left: calc(50% + 10px);
    }
    .tm-hero_4 {
        min-height: initial;
    }
}

@media only screen and (max-width: 767px) {
    .heroslider-slider-2.tm-slider-arrow .tm-slider-arrow-prev,
    .heroslider-slider-2.tm-slider-arrow .tm-slider-arrow-next {
        top: auto;
        bottom: 20px;
    }
    .heroslider-slider-2.tm-slider-arrow .tm-slider-arrow-prev {
        left: auto;
        right: calc(50% + 10px);
    }
    .heroslider-slider-2.tm-slider-arrow .tm-slider-arrow-next {
        right: auto;
        left: calc(50% + 10px);
    }
    .tm-hero_4 {
        min-height: initial;
    }
}


/* Animated Heroslider */

.heroslider-animated-content .heroslider-content h1 {
    opacity: 0;
}

.heroslider-animated-content .heroslider-content p {
    opacity: 0;
}

.heroslider-animated-content .heroslider-content .tm-button {
    opacity: 0;
}

.heroslider-animated-content .slick-current .heroslider-content h1 {
    -webkit-animation: fadeInUp 0.6s ease-in-out 0.3s 1 normal backwards;
    animation: fadeInUp 0.6s ease-in-out 0.3s 1 normal backwards;
    opacity: 1;
}

.heroslider-animated-content .slick-current .heroslider-content p {
    -webkit-animation: fadeInUp 0.6s ease-in-out 0.6s 1 normal backwards;
    animation: fadeInUp 0.6s ease-in-out 0.6s 1 normal backwards;
    opacity: 1;
}

.heroslider-animated-content .slick-current .heroslider-content .tm-button {
    -webkit-animation: fadeInUp 0.6s ease-in-out 0.9s 1 normal backwards;
    animation: fadeInUp 0.6s ease-in-out 0.9s 1 normal backwards;
    opacity: 1;
}


/* Animateimage */

.heroslider-singleslider .heroslider-animateimage {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
}

.heroslider-singleslider .heroslider-animateimage img {
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform-origin: center center;
    transform-origin: center center;
    -webkit-animation: tmAnimatedBg 10s ease-out 0s infinite both;
    animation: tmAnimatedBg 10s ease-out 0s infinite both;
}


/* Particle Heroslider */

.heroslider-particle .particles-js {
    width: 100vw;
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 3;
    top: 0;
    left: 0;
}

.heroslider-particle .container {
    z-index: 4;
}

