/**
*  Swiper Custom
*/

.slide-swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-swiper .swiper-slide {
    height: 500px;
    background: #fff;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}


/* caption */
.slide-swiper .swiper-slide .item-caption {
    position: absolute;
    top: 0;
    height: 100%;
}

.slide-swiper .swiper-slide .item-caption h1,
.slide-swiper .swiper-slide .item-caption p {
    text-align: left;
    color: #fff;
    word-break: keep-all;
    transform: translateY(20px);
    transition: 1s 0.5s;
    opacity: 0;
}

.slide-swiper .swiper-slide .item-caption h1 {
    transition: 1s 0.2s;
    line-height: 1;
}

.slide-swiper .swiper-slide-active .item-caption h1,
.slide-swiper .swiper-slide-active .item-caption p {
    transform: translateY(0);
    opacity: 1;
}

.slide-swiper .swiper-pagination {
    top: calc( 50% + 36px );
    margin-left: calc( 8.33333333% + calc(var(--bs-gutter-x) * 0.5));
}
.slide-swiper .swiper-pagination-bullet {
    margin-right: .5rem;
    background: #fff;
    transition: width .3s ease;
    opacity: .6;
}
.slide-swiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 10px;
    opacity: 1;
}

/* navbar */
.swiper-navbar {
    display: flex;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 2;
}

.swiper-navbar .progress-box {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 170px;
    height: 50px;
    z-index: 11;
}

.swiper-navbar .arrow-box {
    display: flex;
    align-items: center;
    position: relative;
    width: 100px;
    height: 50px;
}

.swiper-navbar .swiper-pagination {
    display: flex;
    color: #333;
    justify-content: space-between;
    position: static;
    text-align: left;
}

/*progress*/
.progress-wrap {
    width: 170px;
}

.swiper-progress-bar {
    display: block;
    position: absolute;
    top: 0px;
    left: 50%;
    height: 50px;
    width: calc(100% - 70px);
    transform: translate(-50%, 0%);
    z-index: 1;
}

.swiper-progress-bar .bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, .1);
    opacity: 0;
    clear: both;
}

.swiper-progress-bar .bar:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 0;
    background-color: #000;
}

.swiper-progress-bar.active .bar {
    opacity: 1;
}

.swiper-progress-bar.animate .bar:after {
    transition: width linear;
    transition-delay: unset;
    width: 100%;
    transition-duration: 4s;
}

.swiper-navbar .swiper-icon-next,
.swiper-navbar .swiper-icon-prev {
    display: flex;
    align-items: center;
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #F4F4F4;
    background-image: none;
}

.swiper-navbar .swiper-icon-next i,
.swiper-navbar .swiper-icon-prev i {
    padding: 20px;
    color: #333;
    font-size: 13px;
}

.swiper-navbar .swiper-icon-next:hover,
.swiper-navbar .swiper-icon-prev:hover {
    background-color: #318dff;
}

.swiper-navbar .swiper-icon-next:hover i,
.swiper-navbar .swiper-icon-prev:hover i {
    color: rgba(255, 255, 255, .5);
}

.swiper-navbar .btn-play i,
.swiper-navbar .btn-pause i {
    color: #999;
    cursor: pointer;
}

.swiper-navbar .btn-play.on i,
.swiper-navbar .btn-pause.on i {
    color: #000;
}

.slide-swiper .swiper-slide .item-caption h1 {
    font-weight: bold;
    line-height: 1.2;
}


/* media query */
@media(min-width: 576px) {
    .progress-wrap {
        width: 215px;
    }
}

@media(min-width: 1200px) {
    .slide-swiper .swiper-slide {
        height: 100%;
    }
}

@media(max-width: 991px) {
    .swiper-navbar {
        padding: 0;
    }
    .slide-swiper .swiper-slide .item-caption {
        padding: 0 2rem;
    }
}

@media(max-width: 575px) {
    .slide-swiper .swiper-slide .item-caption p {
        font-size: 15px;
    }

    .swiper-navbar .progress-box {
        width: 100%;
    }
}