.ft_category_slider_widget.swiper-container {
    width: 100%;
    max-width: 1440px;
    margin: auto;
    background-color: #025550; /* Green background */
    height: 600px; /* Fixed height for desktop */
    padding: 40px; /* Padding for slides */
    position: relative; /* Positioning for the progress bar */
    overflow: hidden;
    margin-bottom: 40px;
}

.ft_category_slider_widget .swiper-wrapper {
    display: flex;
    align-items: center;
    height: 100%; /* Ensure the slides take the full height of the container */
}

.ft_category_slider_widget .swiper-slide {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: white; /* White text */
    height: 100%; /* Ensure the slides take the full height of the container */
}

.ft_category_slider_widget .slide-content {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%; /* Ensure the slides take the full width of the container */
}

.ft_category_slider_widget .left-content {
    flex: 1;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ft_category_slider_widget .left-content .featured-post {
    color: #FFF;
    font-family: Archivo;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ft_category_slider_widget .left-content .post-title {
    color: #FFF;
    font-family: Archivo;
    font-size: clamp(26px, 3vw, 36px); /* Use clamp for responsive font size */
    font-style: normal;
    font-weight: 700;
    line-height: clamp(30px, 4vw, 48px); /* Use clamp for responsive line height */
    letter-spacing: -1px;
    margin: 10px 0;
    min-height: 144px; /* Ensures consistent spacing regardless of title length */
}

.ft_category_slider_widget .left-content .post-meta {
    color: rgba(255, 255, 255, 0.50);
    font-family: Archivo;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 10px;
    display: none;
}

@media (min-width: 768px) {
    .ft_category_slider_widget .left-content .post-meta {
    display:block
    }

}


.ft_category_slider_widget .left-content .post-meta .post-author a {
    color: #FFF;
    font-family: Archivo;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
}

.ft_category_slider_widget .left-content .post-excerpt {
    color: #FFF;
    font-family: Archivo;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
.ft_category_slider_widget .left-content .post-excerpt {
    color: #FFF;
    font-family: Archivo;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    margin-bottom: 20px;
}}



.ft_category_slider_widget .left-content .read-more {
    width: 133px;
    height: 40px;
    padding: 8px 18px;
    background: white;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    color: #1C1C1C;
    font-size: 16px;
    font-family: Archivo;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    margin-bottom: 60px; /* Margin below the button for pagination */
    text-wrap: nowrap;
}

.ft_category_slider_widget .left-content .read-more svg {
    height: 20px;
}

.ft_category_slider_widget .swiper-pagination {
    position: relative;
    bottom: 0; /* Align pagination below the button */
    text-align: left;
    padding-left: 20px; /* Padding left for pagination */
}

.ft_category_slider_widget .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.50);
    opacity: 1;
}

.ft_category_slider_widget .swiper-pagination-bullet-active {
    background: white; /* Highlight the active pagination bullet */
}

.ft_category_slider_widget .right-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 100%; /* Ensure the image doesn't exceed the container's height */
    display:none;
}

@media (min-width: 768px) {

    .ft_category_slider_widget .right-image {
        display:flex;
    }
    .ft_category_slider_widget .right-image img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}
}
@media (max-width: 768px) {
    .ft_category_slider_widget .swiper-container {
        height: 600px; /* Fixed height for mobile */
    }

    .ft_category_slider_widget .swiper-slide {
        flex-direction: column; /* Stack content vertically on mobile */
    }

    .ft_category_slider_widget .right-image {
        width: 100%;
        order: -1; /* Move the image above the text */
        margin-bottom: 20px;
    }

    .ft_category_slider_widget .right-image img {
        max-height: 200px; /* Max height for image on mobile */
    }

    .ft_category_slider_widget .left-content {
        align-items: center;
        text-align: center;
    }

    .ft_category_slider_widget .left-content .post-title {
        font-size: 20px; /* Fixed font size for mobile */
        line-height: 30px; /* Fixed line height for mobile */
        letter-spacing: 0; /* No letter spacing on mobile */
        min-height: unset; /* Reset min-height for mobile */
    }

    .ft_category_slider_widget .left-content .read-more {
        margin-bottom: 30px; /* Less margin for mobile */
    }

    .ft_category_slider_widget .swiper-pagination {
        margin-bottom: 30px; /* Less margin for mobile */
    }
}

/* Progress Bar CSS */
.ft_category_slider_widget .swiper-progress {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 10;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.ft_category_slider_widget .swiper-progress svg {
    --progress: 0;
    position: absolute;
    left: 0;
    top: 0px;
    z-index: 10;
    width: 100%;
    height: 100%;
    stroke-width: 3px;
    stroke: white;
    fill: none;
    stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
    stroke-dasharray: 125.6;
    transform: rotate(-90deg);
}

/* Styles for Widget with and without title */
.ft_category_slider_widget .widget-with-title {
    margin-top: 3rem;
}

.ft_category_slider_widget .widget-no-title {
    margin-top: 0;
}
