.sp-smart-post-wrapper.sp-smart-thumbnail-slider-two {
    .sp-smart-post-thumbnail-two-thumb {
        .sp-smart-post-swiper2 {
            margin-top: 0;
            .sp-smart-post-thumbs-template {
                cursor: pointer;
            }
        }
        .sp-taxonomy-type-tag,
        .sp-taxonomy-type-category,
        .sp-smart-post-title,
        .sp-smart-post-card-content {
            pointer-events: none !important;
        }
    }

    .sp-smart-post-block-wrapper {
        &.sp-smart-thumbnail-slider-two {
            position: relative;
            .sp-smart-post-thumbnail-slide-two {
                width: 100%;
                margin-bottom: 0;
                .sp-background-image-wrapper {
                    .image-overlay.overlay-custom {
                        left: 0;
                    }
                }
                .sp-smart-post-template-one-content {
                    .sp-smart-post-card-content {
                        height: max-content;
                        gap: 6px;
                    }
                }
                .swiper-wrapper {
                    height: fit-content;
                }
            }
            .sp-smart-post-thumbnail-two-thumb {
                position: absolute;
            }
        }
        &.thumbnail-slider-two-layout-one,
        &.thumbnail-slider-two-layout-two {
            .sp-smart-post-category {
                .post-categories li a {
                    background: #fff;
                }
            }
            .sp-smart-post-category {
                .post-categories li a:hover {
                    background: var( --smart-post-secondary );
                    color: #333;
                    border-style: none;
                }
            }
        }

        // Layout One
        &.thumbnail-slider-two-layout-one {
            .sp-smart-post-swiper-nav-arrow {
                // top: 83%;
                gap: 100%;
                .btn-prev {
                    left: 32px;
                }
                .btn-next {
                    left: unset;
                    right: 32px;
                }
            }
            .sp-smart-post-template-one-content {
                align-items: unset;
            }
            .sp-smart-post-thumbnail-two-thumb {
                width: 60%;
                bottom: 0;
                overflow: hidden;
                .sp-smart-post-swiper2 {
                    .swiper-wrapper {
                        align-items: flex-end;
                    }
                    .sp-smart-post-card {
                        padding: 18px 20px !important;
                        cursor: pointer;
                        &:hover {
                            .sp-smart-post-title {
                                color: #FFF;
                            }
                        }
                        .sp-smart-post-title {
                            display: flex;
                            flex-direction: column;
                            gap: 8px;
                            color: #333;
                            font-size: 18px;
                        }
                    }
                    .swiper-slide-thumb-active {
                        .sp-smart-post-card {
                            padding-top: 46px !important;
                            .sp-smart-post-title {
                                display: flex;
                                flex-direction: column;
                                gap: 8px;
                                color: #FFF;
                            }
                        }
                    }
                    .sp-smart-post-card {
                        .sp-smart-post-title-text {
                            display: flex;
                            flex-direction: column;
                            gap: 8px;
                        }
                    }
                }
            }
        }
        // Layout two
        &.thumbnail-slider-two-layout-two {
             .sp-smart-post-swiper-nav-arrow {
                // top: 83%;
                gap: 100%;
                .btn-prev {
                    left: 32px;
                }
                .btn-next {
                    left: unset;
                    right: 32px;
                }
            }
            .sp-smart-post-template-one-content {
                align-items: unset;
            }
            .sp-smart-post-thumbnail-two-thumb {
                .sp-smart-post-card {
                    position: relative;
                    padding: 0 !important;
                    background: transparent !important;
                    .sp-smart-post-title {
                        color: #FFF;
                        font-size: 16px;
                    }
                    .sp-smart-post-title-wrapper {
                        // position: relative;
                        width: 100%;
                        .sp-thumbnail-progress-bar {
                            position: absolute;
                            display: inline-block;
                            background: #fff;
                        }
                    }
                    .sp-smart-post-card-content {
                        height: 100%;
                        align-content: end;
                        padding-bottom: 8px;
                    }
                }
                &.thumbnails-bottom {
                    width: 80%;
                    bottom: 80px;
                    left: 50%;
                    transform: translateX(-50%);
                    z-index: 1;
                }
                &.thumbnails-left {
                    top: 0;
                    width: 20%;
                    left: 40px;
                    margin: 5% auto;
                }
                &.thumbnails-right {
                    top: 0;
                    width: 20%;
                    right: 40px;
                    margin: 5% auto;
                }
                .swiper-slide-thumb-active {
                    .sp-smart-post-card {
                        .sp-smart-post-title-wrapper {
                            .sp-thumbnail-progress-bar {
                                &::after {
                                    content: '';
                                    position: absolute;
                                    // animation: progress 2s linear forwards;
                                }
                            }
                        }
                    }
                }
                &.progress-bar-left .swiper-slide-thumb-active {
                    .sp-smart-post-card {
                        .sp-smart-post-title-wrapper {
                            .sp-thumbnail-progress-bar {
                                &::after {
                                    content: '';
                                    position: absolute;
                                    // animation: progress-left 2s linear forwards;
                                }
                            }
                        }
                    }
                }
                &.progress-bar-top {
                    .swiper-wrapper .sp-smart-post-template-one-content {
                        align-items: flex-start !important;
                        .sp-smart-post-title {
                            padding-top: 4px;
                        }
                        .sp-thumbnail-progress-bar {
                            top: 0;
                            left: 0;
                            // animation: 3s ease-in 1s infinite reverse both running progress;
                            &::after {
                                width: 0%;
                                height: 100%;
                                top: 0;
                                left: 0;
                            }
                        }
                    }
                }
                &.progress-bar-bottom {
                    .swiper-wrapper .sp-smart-post-template-one-content {
                        align-items: flex-end !important;
                        .sp-smart-post-title {
                            padding-bottom: 4px;
                        }
                        .sp-thumbnail-progress-bar{
                            bottom: 0;
                            left: 0;
                            &::after {
                                width: 0%;
                                height: 100%;
                                top: 0;
                                left: 0;
                            }
                        }
                    }
                }
                &.progress-bar-left {
                    .swiper-wrapper .sp-smart-post-template-one-content {
                        align-items: center !important;
                        .sp-smart-post-title {
                            padding-left: 8px;
                        }
                        .sp-thumbnail-progress-bar {
                            bottom: 0;
                            left: 0;
                            &::after {
                                width: 100%;
                                height: 0%;
                                bottom: 0;
                                left: 0;
                            }
                        }
                    }
                }
                
            }
        }

        // Layout three
        &.thumbnail-slider-two-layout-three {
            .sp-smart-post-thumbnail-two-thumb {
                .sp-smart-post-card-image {
                    border-style: none !important;
                    border-radius: 0 !important;
                }
            }
            .sp-smart-post-swiper-nav-arrow {
                top: 90%;
                .btn-prev {
                    left: 56%;
                }
                .btn-next {
                    left: calc(56% + 15px);
                }
            }
            .swiper {
                z-index: unset;
            }
            &.sp-thumbnail-left {
                .sp-smart-post-thumbnail-slide-two {
                    .sp-smart-post-template-one-content {
                        display: flex;
                        justify-content: flex-end;
                    }
                }
                .sp-smart-post-swiper-nav-arrow {
                    .btn-prev {
                        left: 15%;
                    }
                    .btn-next {
                        left: calc(15% + 15px);
                    }
                }
            }
            .sp-smart-post-card-content {
                width: 45%;
            }
            .sp-smart-post-thumbnail-two-thumb {
                bottom: 100px;
                width: 40%;
                &.thumbnails-right {
                    right: 12.5%;
                }
                &.thumbnails-left {
                    left: 12.5%;
                }
                .sp-smart-post-card-content {
                    width: 100%;
                }
                .sp-smart-post-card {
                    background: transparent !important;

                    .sp-background-image-wrapper {
                        .sp-background-image-styles {
                            background-repeat: no-repeat !important;
                            background-size: cover !important;
                        }
                        .image-overlay.overlay-custom {
                            background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.68) 100%) !important;
                            left: 0;
                            width: 100%;
                            opacity: 1;
                        }
                    }
                    .sp-smart-post-template-one-content {
                        align-items: flex-end;
                        padding-left:12px !important;
                        padding-right: 12px !important;
                        padding-bottom: 14px !important;
                        .sp-smart-post-category a {
                            font-weight: 300 !important;
                        }
                    }
                }
                .sp-slide-item-thumb {
                    border: 3px solid #ffffff33;
                }
            }
        }
        // Layout four
        &.thumbnail-slider-two-layout-four {
            .sp-smart-post-swiper-nav-arrow {
                top: 83%;
                .btn-prev {
                    left: 65%;
                }
                .btn-next {
                    left: calc(65% + 15px);
                }
            }
            .swiper {
                z-index: unset;
            }
            .sp-smart-post-thumbnail-slide-two{
                .sp-smart-post-card-content {
                    width: 50%;
                }
            }
            &.sp-thumbnail-left {
                .sp-smart-post-thumbnail-slide-two{
                    .sp-smart-post-card-content {
                        margin-left: auto;
                    }
                }
                .sp-smart-post-swiper-nav-arrow {
                    .btn-prev {
                        left: 24%;
                    }
                    .btn-next {
                        left: calc(24% + 15px);
                    }
                }
            }
            .sp-smart-post-thumbnail-two-thumb {
                width: 25%;
                max-height: 86%;
                top: 40%;
                transform: translateY(-40%);
                z-index: 1;

                .sp-smart-post-swiper2 {
                    height: 100%;
                }
                &.thumbnails-right {
                    right: 14%;
                }
                &.thumbnails-left {
                    left: 14%;
                }
                .sp-slide-item-thumb {
                    border: 1px solid #ffffff1a;
                    background: rgba(0, 0, 0, 0.10);
                    backdrop-filter: blur(2px);
                    min-height: 64px !important;

                    &.swiper-slide-thumb-active {
                        border-color: #ffffff66;
                    }
                    .sp-smart-post-card {
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        padding: 8px !important;
                        gap: 12px;
                        height: 100% !important;
                        background: rgba(0, 0, 0, 0.10) !important;
                        backdrop-filter: blur( 2px );

                        .sp-smart-post-card-image {
                            width: 26% !important;
                            height: 85%;
                            a img {
                                width: 100%;
                                height: 100% !important;
                            }
                        }
                        .sp-smart-post-template-one-content  {
                            width: 70%;
                            left: 30%;
                            .sp-smart-post-category a {
                                font-weight: 300 !important;
                            }
                        }
                    }
                }
            }
        }

        // Layout five
        &.thumbnail-slider-two-layout-five {
            .sp-smart-post-swiper-nav-arrow {
                top: 90%;
                i {
                   border-radius: 0; 
                }
                .btn-prev {
                    left: 84%;
                }
                .btn-next {
                    left: calc(84% + 15px);
                }
            }
            .swiper {
                z-index: unset;
            }
            .sp-smart-post-thumbnail-slide-two .sp-smart-post-card-content {
                width: 70%;
            }
            .sp-smart-post-thumbnail-two-thumb {
                width: 30%;
                height: 100%;
                top: 0;
                bottom: 0;
                right: 0;
                // transform: translateY(-40%);
                z-index: 1;
                backdrop-filter: blur(4px);
                .sp-smart-post-swiper2 {
                    height: 78%;
                    margin-top: 34px;
                    margin-right: 12%;
                    margin-bottom: 90px;
                    margin-left: 12%;
                }
                .sp-slide-item-thumb {
                    &.swiper-slide-thumb-active {
                        .sp-smart-post-card-image {
                            a img {
                                border: 2px solid #fff;
                                box-sizing: border-box;
                            }
                        }
                    }
                    .sp-smart-post-card {
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        // padding: 8px !important;
                        gap: 12px;
                        height: 100% !important;
                        background: transparent !important;

                        .sp-smart-post-card-image {
                            width: 26% !important;
                            height: 100%;
                            a img {
                                width: 100%;
                                height: 100% !important;
                            }
                        }
                        .sp-smart-post-template-one-content  {
                            width: 70%;
                            left: 30%;
                            align-items: center !important;
                            .sp-smart-post-category a {
                                font-weight: 300 !important;
                            }
                        }
                    }
                }
            }
        }

        &.thumbnail-slider-two-layout-three,
        &.thumbnail-slider-two-layout-four,
        &.thumbnail-slider-two-layout-five {
            .sp-smart-post-title {
                color: #FFF;
                font-size: 14px;
                font-style: normal;
                font-weight: 600;
                line-height: 125%;
            }
            .sp-smart-post-category {
                a {
                    margin: 0 !important;
                    padding: 0 !important;
                    background: transparent !important;
                    position: relative;
                    color: #fff
                }
                .post-categories li a {
                    margin: 0 !important;
                    padding: 0 !important;
                    background: transparent !important;
                    position: relative;
                    color: #fff;
                }
            }
        }
        &.thumbnail-slider-two-layout-three,
        &.thumbnail-slider-two-layout-four {
            .sp-smart-post-category {
                a {
                    padding-top: 8px !important;
                    &::before {
                        content: '';
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 80%;
                        height: 2px;
                    }
                }
                .post-categories li a {
                    padding-top: 8px !important;
                    &::before {
                        content: '';
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 80%;
                        height: 2px;
                    }
                }
            }
        }
        &.thumbnail-slider-two-layout-four {
            .sp-smart-post-thumbs-template {
                .sp-smart-post-template-one-content {
                    padding-left: 8px;
                }
            }
        }
        &.thumbnail-slider-two-layout-five {
            .sp-smart-post-category {
                a {
                    padding-bottom: 8px !important;
                    &::before {
                        content: '';
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        width: 80%;
                        height: 2px;
                    }
                }
                .post-categories li a {
                    padding-bottom: 8px !important;
                    &::before {
                        content: '';
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        width: 80%;
                        height: 2px;
                    }
                }
            }
        }
    }

    /* Hide content area's extra overlay */
    .sp-smart-thumbnail-slider-two {
        .sp-smart-post-template-one-content {
            // .overlay-warm-sunset
            &[class*="overlay-"] {
                background: transparent;
            }
        }
    }

    /* Hide scrollbar in WebKit browsers (Chrome, Safari) */
    .sp-smart-post-thumbnail-two-thumb.thumbnails-left::-webkit-scrollbar,
    .sp-smart-post-thumbnail-two-thumb.thumbnails-right::-webkit-scrollbar {
        width: 0;
    }

    /* Hide scrollbar in Firefox */
    .sp-smart-post-thumbnail-two-thumb.thumbnails-left,
    .sp-smart-post-thumbnail-two-thumb.thumbnails-right {
        scrollbar-width: none;
    }

    @keyframes progress-auto-off {
        0% {
            width: 0%;
        }
        40% {
            width: 50%;
        }
        80% {
            left: 0;
        }
        100% {
            width: 100%;
            left: 0;
        }
    }
    @keyframes progress-left-auto-off {
        0% {
            height: 0%;
        }
        40% {
            height: 50%;
        }
        80% {
        }
        100% {
            height: 100%;
            // bottom: 100%;
        }
    }
    @keyframes progress {
        0% {
            width: 0%;
        }
        40% {
            width: 50%;
        }
        80% {
            width: 100%;
            left: 0;
        }
        90% {
            width: 50%;
            left: 50%;
        }
        100% {
            width: 0%;
            left: 100%;
        }
    }
    @keyframes progress-left {
        0% {
            height: 0%;
            bottom: 0%;
        }
        40% {
            height: 50%;
            bottom: 0%;
        }
        80% {
            height: 100%;
            bottom: 0%;
        }
        100% {
            height: 0%;
            bottom: 100%;
        }
    }

    .sp-smart-post-thumbnail-two-thumb.thumbs-align-left {
        left: 0;
    }
    .sp-smart-post-thumbnail-two-thumb.thumbs-align-center {
        left: 20%;
    }
    .sp-smart-post-thumbnail-two-thumb.thumbs-align-right {
        left: 40%;
    }
    .sp-smart-post-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-template-one-content {
        margin-left: auto;
        margin-right: auto;
    }
    .sp-smart-post-background-layout .sp-smart-post-card {
        padding: 0px !important;
    }
}

@media screen and (max-width: 1023px) {
    .sp-smart-post-block-wrapper.thumbnail-slider-two-layout-four .sp-smart-post-thumbnail-two-thumb.thumbnails-right {
        right: 14px;
    }
    .sp-smart-post-block-wrapper.thumbnail-slider-two-layout-four .sp-smart-post-thumbnail-two-thumb.thumbnails-left {
        left: 14px;
    }
}
.sp-smart-post-thumbnail-two-thumb .sp-smart-post-card a {
  pointer-events: none;
}




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

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

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


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

.sp-smart-post-thumbnail-slide-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-thumbnail-slide-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-thumbnail-slide-two .sp-smart-post-card .sp-smart-post-title:hover .line:nth-of-type(1)::after {
  transition-delay: 0s;
}

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

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

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

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



