.post-slider{
    margin-bottom: 38px;
}
.post-slider .head{
    margin-bottom: 25px;
    position: relative;
    padding: 0 16px;
}
.post-slider .head .line{
    content: "";
    height: 1px;
    width: auto;
    background: var(--black-10);
    z-index: -1;
    flex-grow: 1;
}
.post-slider .head-post-slider{
    display: flex;
    align-items: center;
    gap: 16px;
    /*background-color: var(--bg_color);*/
    padding-left: 24px;
}
.post-slider .head-post-slider .head-icon{
    width: 48px;
    height: 48px;
    background-color: var(--primary_color);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-slider .head-post-slider .head-icon svg{
    width: 18px;
    height: 18px;
}
.post-slider .head-post-slider .head-icon i{
    font-size: 18px;
    color: var(--white_color);
}
.post-slider .head-post-slider .head-icon svg path{
    fill: var(--white_color);
}

.post-slider .head-post-slider .head-post-slider-inner {
    display: flex;
    flex-wrap: wrap;
}

.post-slider .head-post-slider .head-post-slider-inner.flex-direction-column {
    flex-direction: column;
}

.post-slider .head-post-slider .head-post-slider-inner.flex-direction-row {
    flex-direction: row;
    align-items: center;
    gap: 0 16px;
}
.post-slider .head-post-slider .head-post-slider-inner .title{
    font-size: 24px;
    font-weight: 900;
    line-height: normal;
}
.post-slider .head-post-slider .head-post-slider-inner .subtitle{
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    color: var(--black-70);
}
.post-slider .head-btns{
    display: flex;
    gap: 8px;
    /*background-color: var(--bg_color);*/
    padding-right: 24px;
}

.post-slider.mid .head {
    transform: translateY(22%);
    z-index: 9;
}
.post-slider.mid .head .head-post-slider{
    min-width: 250px;
    width: max-content;
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0;
}
.post-slider.mid .head-post-slider .head-icon,
.post-slider.mid .head .head-post-slider .head-post-slider-inner{
    align-items: center;
    transform: translateY(22px);
}
.post-slider.mid .head .bg{
    position: absolute;
    width: 100%;
    bottom: 1px;
    transform: translateY(100%);
}
.post-slider.mid .head .bg svg{
    width: 100%;
    height: auto;
}
.post-slider.mid .head .bg svg path{
    fill: var(--bg_color);
}
.post-slider.mid .head .line,
.post-slider.mid .head-btns{
    display: none;
}
.post-slider.mid .body-post-slider .swiper-slide{
    transition: all .3s ease-in-out;
}
.post-slider.mid .body-post-slider .swiper-slide-active{
    transform: translateY(12%);
}
.post-slider .body-post-slider{
    position: relative;
}
.post-slider .body-post-slider.head-up-mask-wrap{
    padding-bottom: 56px;
}
:not(.archive-page) .post-slider .body-post-slider:before{
    content:"";
    width: 100%;
    height: 100%;
    /*background-color: transparent;*/
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
}

.post-related .head-up-mask-wrap .post-slider-swiper{
    padding: 0 16px;
}

.post-slider .body-btns{
    display: none;
}
.post-slider.mid .body-btns{
   display: block;
    width: max-content;
    margin: 58px auto 0;
}


.post-slider .btn{
    border: 0;
}
.post-slider .swiper-button-next,
.post-slider .swiper-button-prev{
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background-color: var(--white_color);
    position: relative;
    left: unset;
    right: unset;
    margin: 0;
    z-index: 1;
    border: 1px solid transparent;
}
.post-slider .swiper-button-next:after,
.post-slider .swiper-button-prev:after{
    font-size: 16px;
    color: var(--black_color);
}

.post-slider-horiz-swiper.swiper-grid-column>.swiper-wrapper .swiper-slide{
    margin: 0 !important;
}
.post-slider-horiz-swiper.swiper-grid-column>.swiper-wrapper{
    display: flex !important;
    flex-direction: row !important;
    gap: 24px;
}
.post-slider-horiz-swiper .swiper-slide:nth-of-type(2n) .main-post-box-wrapper.horiz-cart .btn-primary-light{
    --bs-btn-color: var(--secondary_color);
    --bs-btn-bg: var(--secondary-5);
    --bs-btn-border-color: var(--secondary-5);
    --bs-btn-hover-color: var(--white_color);
    --bs-btn-hover-bg: var(--secondary_color);
    --bs-btn-hover-border-color: var(--secondary_color);
    --bs-btn-active-color: var(--white_color);
    --bs-btn-active-bg: var(--secondary_color);
    --bs-btn-active-border-color: var(--secondary_color);
}
.post-slider-horiz-swiper .swiper-slide:nth-of-type(2n) .main-post-box-wrapper.horiz-cart .btn-primary-light svg path{
    stroke: var(--secondary_color);
}
.post-slider-horiz-swiper .swiper-slide:nth-of-type(2n) .main-post-box-wrapper.horiz-cart .btn-primary-light:hover svg path{
    stroke: var(--white_color);
}
.post-slider-horiz{
    position: relative;
    margin-bottom: 98px;
}
.post-slider-horiz:before{
    content: "";
    width: 22%;
    height: 287px;
    background-color: var(--primary_color);
    border-radius: 48px 0 0 48px;
    position: absolute;
    right: calc(-1 * var(--padding-inline-end));
    bottom: -32px;
    z-index: -1;
}
.post-slider-horiz:after{
    content: "";
    width: 22%;
    height: 287px;
    background-color: var(--secondary_color);
    border-radius: 0 48px 48px 0;
    position: absolute;
    left: calc(-1 * var(--padding-inline-start));
    bottom: -32px;
    z-index: -1;
}



.post-slider:before {
    content: "";
    width: 30%;
    height: 330px;
    background-color: transparent;
    border-radius: 48px 0 0 48px;
    position: absolute;
    right: calc(-1 * var(--padding-inline-end));
    bottom: 0;
    z-index: -1;
    outline: 2px solid transparent;
    outline-offset: 8px;
}

.post-slider:after {
    content: "";
    width: 30%;
    height: 330px;
    background-color: transparent;
    border-radius: 0 48px 48px 0;
    position: absolute;
    left: calc(-1 * var(--padding-inline-start));
    bottom: 0;
    z-index: -1;
    outline: 2px solid transparent;
    outline-offset: 8px;
}




@media (max-width: 991px) {
    .post-slider-horiz:before{
        right: 0;
    }
    .post-slider-horiz:after{
        left: 0;
    }
    .post-slider:before {
        right: 0;
    }

    .post-slider:after {
        left: 0;
    }
}
@media (max-width: 767px) {

    .post-slider.mid .body-post-slider .post-slider-swiper[data-mobile-rows="2"] .swiper-slide-active{
        transform: none;
    }

    .post-slider .head{
        position: unset;
    }
    .post-slider{
        padding-bottom: 82px;
        position: relative;
    }
    .post-slider.around_bg{
        padding-bottom: 60px;
    }
    .post-slider .head-btns{
        width: 100%;
        padding: 0;
        position: absolute;
        bottom: 0;
        right: 0;
        align-items: center;
        margin: 0;
    }
    .post-slider .head-btns .btn{
        margin-right: auto;
    }
    .post-slider.around_bg .head-btns{
        justify-content: center;
    }
    .post-slider .line{
        display: none;
    }
    .post-slider:not(.mid) .head{
        margin-bottom: 16px;
    }

    .post-slider .head-post-slider .head-icon{
        width: 32px;
        height: 32px;
    }
    .post-slider .head-post-slider .head-post-slider-inner .title{
        font-size: 20px;
    }
    .post-slider .head-post-slider .head-post-slider-inner .subtitle{
        font-size: 14px;
    }
    .post-slider-horiz-swiper.swiper-grid-column>.swiper-wrapper{
        gap: 16px;
    }
    .post-slider-horiz:before,
    .post-slider-horiz:after{
        bottom: 72px;
        height: 248px;
    }
    .post-slider-horiz.post-slider{
        padding-bottom: 0;
    }
    .post-slider-horiz.post-slider .inner-wrapper{
        position: relative;
        padding-bottom: 88px;
    }
    .post-slider:before,
    .post-slider:after {
        bottom: 72px;
        height: 248px;
    }
}

@media (max-width: 575px) {
    .post-slider.around_bg .head-post-slider.head-up-mask{
        border-radius: 32px 0 0 0;
    }
    .post-slider .head-btns{
        padding: 0 20px;
    }
    .post-slider .head{
        padding: 0 10px;
    }

     .post-slider ._head-up-mask{
        padding: 0 !important;
        margin: 0 -10px !important;
    }
    .head-up-mask-wrap{
        margin: 0 -10px !important;
    }
    .post-slider.mid .body-post-slider{
        margin: 0 -10px;
    }
    .head-up-mask-wrap:before{
        border-radius: 0;
    }
    .post-slider-horiz .body-post-slider{
        margin: 0 10px;
    }
}
/*@media (max-width: 480px) {*/
/*    .post-slider.around_bg .head-btns{*/
/*        padding: 0 0 0 10px;*/
/*    }*/
/*    .post-slider.around_bg .head-post-slider.head-up-mask{*/
/*        mask-size: 100% 100%, 85px 85px;*/
/*        padding: 10px 10px 5px 75px !important;*/
/*        align-items: start;*/
/*        min-height: 93px;*/
/*    }*/
/*}*/
