.sp-smart-post-slider-two {
    .sp-smart-post-background-layout {
        &.post-slider-two-layout-three {
            .sp-smart-post-card {
                background: transparent !important;
                // img {
                //     width: unset !important;
                //     max-width: 100%;
                // }
            }
        }

        .sp-smart-post-card {
            .sp-smart-post-template-one-content {
                display: flex;
                flex-direction: row;

                .sp-smart-post-card-content {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                }
            }
        }
    }

    .sp-h-left {
        .sp-smart-post-template-one-content {
            justify-content: flex-start;
        }
    }

    .sp-h-center {
        .sp-smart-post-template-one-content {
            justify-content: center;
        }
    }

    .sp-h-right {
        .sp-smart-post-template-one-content {
            justify-content: flex-end;
        }
    }

    .sp-v-left {
        .sp-smart-post-template-one-content {
            align-items: flex-start;
        }
    }

    .sp-v-center {
        .sp-smart-post-template-one-content {
            align-items: center;
        }
    }

    .sp-v-right {
        .sp-smart-post-template-one-content {
            align-items: flex-end;
        }
    }

    .sp-smart-post-background-layout {
        .sp-smart-post-card.overlay-type-box .image-overlay {
            width: 100% !important;
            height: 100% !important;
            left: 0 !important;
            top: 0 !important;
        }
    }

    .sp-smart-post-swiper-nav-arrow {
        padding: 0 30px;
    }
}

.sp-smart-post-wrapper.sp-smart-post-slider-two.sp-pagination {
    padding-bottom: 40px;

    .sp-smart-post-slider-two {
        .post-slider-two-layout-three+.sp-smart-post-swiper-nav-arrow {
            top: calc(100% - 190px);
            left: calc(100% - 80px);
            padding: 0;
        }
    }
}

@media screen and (max-width: 767px) {
    .sp-smart-post-slider-two .sp-smart-post-swiper-nav-arrow {
        padding: 0px 0px;
    }

    .sp-smart-post-wrapper.sp-smart-post-slider-two.sp-pagination {
        padding-bottom: 40px;

        .sp-smart-post-slider-two {
            .post-slider-two-layout-three+.sp-smart-post-swiper-nav-arrow {
                top: calc(100% - 190px);
                left: calc(100% - 80px);
                padding: 0;
            }
        }
    }
}



// // title animate effect..................................................
.sp-smart-post-slider-two .sp-smart-post-card .sp-smart-post-title {
    position: relative;
    display: inline-block;
}

.sp-smart-post-slider-two .sp-smart-post-card .sp-smart-post-title:after {
    content: "";
    position: absolute;
    transition: width 0.6s ease;
}

.sp-smart-post-slider-two .sp-smart-post-card .sp-smart-post-title::before {
    content: "";
    position: absolute;
    transition: width 0.6s ease;
}


.sp-smart-post-slider-two .sp-smart-post-card .sp-smart-post-title .line {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.sp-smart-post-slider-two .sp-smart-post-card .sp-smart-post-title .line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    // height: 2px;
    // background: linear-gradient(90deg, #ff416c, #ff4b2b);
    // transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: -1;
}

.sp-smart-post-slider-two .sp-smart-post-card .sp-smart-post-title:hover .line::after {
    transform: scaleX(1);
}

/* Using :nth-of-type to target only .line elements */
.sp-smart-post-slider-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(1)::after {
    transition-delay: 0s;
}

.sp-smart-post-slider-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(2)::after {
    transition-delay: 0.2s;
}

.sp-smart-post-slider-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(3)::after {
    transition-delay: 0.4s;
}

.sp-smart-post-slider-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(4)::after {
    transition-delay: 0.6s;
}

.sp-smart-post-slider-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(5)::after {
    transition-delay: 0.8s;
}

.sp-smart-post-slider-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(6)::after {
    transition-delay: 1s;
}

.sp-smart-post-slider-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(7)::after {
    transition-delay: 1.2s;
}

.sp-smart-post-slider-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(8)::after {
    transition-delay: 1.4s;
}