.pp-icon {
	display: inline-block;
	line-height: 1;
	text-align: center;
    transition: all .3s;
}

.pp-icon i,
.pp-icon svg {
    width: 1em;
    height: 1em;
    position: relative;
    display: block;
}

.pp-card-slider {
    width: 100%;
    position: relative;
    max-width: 800px;
    margin: auto;
    background: #fff;
    box-shadow: 0 14px 80px rgba(34, 35, 58, 0.2);
    padding: 25px;
    border-radius: 25px;
    min-height: 400px;
    transition: all .3s;

    &-item {
        display: flex;
        align-items: center;

        &.swiper-slide-active {

            .pp-card-slider-image {

                img {
                    opacity: 1;
                    transition-delay: .3s;
                }
            }

            .pp-card-slider-content-wrap {

                > * {
                    opacity: 1;
                    transform: none;

                    @for $i from 0 to 15 {
                        &:nth-child(#{$i + 1}) {
                            transition-delay: $i * 0.1 + 0.3s;
                        }
                    }
                }
            }
        }
    }

    .pp-card-slider-item {
        overflow: visible;
    }

    &-image {
        width: 300px;
        flex-shrink: 0;
        height: 300px;
        border-radius: 20px;
        margin-inline-start: -80px;
        margin-inline-end: 40px;
        overflow: hidden;
        position: relative;

        &::after {
            content: '';
            position: absolute;
            top: 0;
            inset-inline-start: 0;
            width: 100%;
            height: 100%;
            border-radius: 20px;
            opacity: 0.8;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            opacity: 0;
            border-radius: 20px;
            transition: all .3s;
        }

        &-right {

            .pp-card-slider-image {
                order: 1;
                margin: 0 -80px 0 40px;
            }

            .pp-card-slider-content-wrap {
                padding-inline-start: 25px;
                padding-inline-end: 0;
            }

            &.pp-card-slider-dots-aside .swiper-pagination {
                inset-inline-start: 20px;
                inset-inline-end: auto;
            }
        }
    }

    &-content-wrap {
        padding-inline-end: 25px;
    
        @media screen and (max-width: 576px) {
            padding: 0
        }

        > * {
            opacity: 0;
            transform: translateY(25px);
            transition: all .4s;
        }
    }

    &-meta {
        color: #7b7992;
        font-weight: 500;
        margin-bottom: 15px;

        > span:not(:last-child)::after {
            content: '-';
            margin: 0 4px;
        }
    }

    &-meta-icon {
        margin-inline-end: 4px;
    }

    &-date {
        display: block;
    }
  
    &-title {
        font-size: 24px;
        font-weight: 700;
        color: #0d0925;
        margin-bottom: 15px;

        a {
            color: inherit;
        }
    }
  
    &-content {
        color: #4e4a67;
        margin-bottom: 30px;
        line-height: 1.5em;
    }
  
    &-button {
        display: inline-flex;
        padding: 15px 35px;
        border-radius: 50px;
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        justify-content: center;
        text-align: center;
        letter-spacing: 1px;

        @media screen and (max-width: 576px) {
            width: 100%;
        }
    }

    .swiper-pagination {
        position: absolute;
        z-index: 21;
        width: 11px;
        text-align: center;
    }

    .swiper-container-horizontal>.swiper-pagination-bullets,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        bottom: 10px;
        inset-inline-start: 0;
        width: 100%;
    }

    &-dots-aside {

        .pp-card-slider {

            .swiper-pagination {
                inset-inline-end: 20px;
                inset-inline-start: auto;
                top: 50%;
                bottom: auto;
                transform: translateY(-50%);
                width: 11px;
            }

            .swiper-pagination-bullets .swiper-pagination-bullet {
                margin: 8px 0;
            }

            .swiper-pagination-bullet {

                &-active {
                    height: 30px;
                }
            }
        }
    }

    &-dots-bottom {

        .pp-card-slider {

            .swiper-pagination {
                bottom: 15px;
                transform: translateX(-50%);
                inset-inline-start: 50%;
                top: auto;
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
            }

            .swiper-pagination-bullets .swiper-pagination-bullet {
                margin: 0 5px;
            }

            .swiper-pagination-bullet {

                &-active {
                    width: 30px;
                }
            }
        }
    }

    .swiper-pagination-bullet {
        width: 11px;
        height: 11px;
        display: block;
        border-radius: 10px;
        background: #062744;
        opacity: 0.2;
        transition: all .3s;

        &-active {
            opacity: 1;
            background: #545454;
        }
    }
}

body.rtl {

	.pp-card-slider-item {
		flex-direction: row-reverse;
	}
}

.pp-card-slider .pp-card-slider-image a {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.pp-card-slider-box-link {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    content: '';
    display: block;
    z-index: 11;
}

.pp-card-slider-button {

	svg {
		transition: all 0.3s;
	}
}

@media (max-width: 1024px) {

    .pp-card-slider {
        max-width: 680px;
        min-height: 400px;
    }
}

.pp-card-slider-breakpoint-active.pp-card-slider {
    height: auto;
    margin: 180px auto 0;
}

.pp-card-slider-breakpoint-active {

    .pp-card-slider-item {
        flex-direction: column;
    }

    .pp-card-slider-image {
        margin: -180px 0 40px;
        width: 100%;

        &-right {

            .pp-card-slider-image {
                margin: -180px 0 40px;
                order: 0;
            }
        }
    }

    .pp-card-slider-image {
        margin-inline-start: 0 !important;
        margin-inline-end: 0 !important;
    }
}

.pp-card-slider-image-right .pp-card-slider-breakpoint-active.pp-card-slider .swiper-pagination,
.pp-card-slider-breakpoint-active.pp-card-slider .swiper-pagination {
    bottom: 15px;
    transform: translateX(-50%);
    inset-inline-start: 50%;
    top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pp-card-slider-breakpoint-active.pp-card-slider {

    .swiper-pagination-bullets .swiper-pagination-bullet {
        margin: 0 5px;
    }

    .swiper-pagination-bullet {

        &-active {
            height: 11px;
            width: 11px;
        }
    }

    .pp-card-slider-content-wrap,
    .pp-card-slider-image-right .pp-card-slider-content-wrap {
        padding: 0;
    }
}