.custom-text-carousel-wrapper {
    position: relative;
    padding: 20px 60px 50px; /* Space for arrows and dots */
}

.text-carousel-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.text-carousel-slide {
    border-radius: 15px;
    padding: 30px;
    box-sizing: border-box;
    color: #222;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Subtle shadow like premium design */
}

.text-carousel-slide h3,
.text-carousel-slide h2 {
    margin-top: 0;
    font-weight: 700;
	color: #000;
	font-family: inherit;
}

.text-carousel-slide p,
.text-carousel-slide ul,
.text-carousel-slide li {
    font-size: 15px;
    line-height: 1.6;
    color: #111;
}

.text-carousel-slide p {
    margin-bottom: 15px;
}

.text-carousel-slide ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.text-carousel-slide li {
    margin-bottom: 5px;
}

.text-carousel-slide b,
.text-carousel-slide strong {
    font-weight: 800;
}

/* Custom Navigation Arrows outside the cards */
.custom-text-carousel-wrapper .custom-carousel-next,
.custom-text-carousel-wrapper .custom-carousel-prev {
    color: #000; /* Black arrows */
    font-weight: 900;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    margin-top: -20px;
    position: absolute;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-text-carousel-wrapper .custom-carousel-prev {
    left: 0;
}

.custom-text-carousel-wrapper .custom-carousel-next {
    right: 0;
}

.custom-text-carousel-wrapper .custom-carousel-next:after,
.custom-text-carousel-wrapper .custom-carousel-prev:after {
    font-family: swiper-icons;
    font-size: 35px;
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1;
    font-weight: 900;
}

.custom-text-carousel-wrapper .custom-carousel-prev:after {
    content: 'prev';
}

.custom-text-carousel-wrapper .custom-carousel-next:after {
    content: 'next';
}

/* Custom Pagination */
.custom-text-carousel-wrapper .swiper-pagination {
    bottom: 0px;
    position: absolute;
    text-align: center;
    width: 100%;
}

.custom-text-carousel-wrapper .swiper-pagination-bullet {
    background: #000;
    opacity: 0.3;
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    margin: 0 6px !important;
    cursor: pointer;
}

.custom-text-carousel-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .custom-text-carousel-wrapper {
        padding: 10px 35px 40px; /* Reduce left/right padding so text shows more, leave some space for arrows */
    }

    .text-carousel-slide {
        background-color: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    /* Make arrows slightly smaller or reposition them to fit */
    .custom-text-carousel-wrapper .custom-carousel-next,
    .custom-text-carousel-wrapper .custom-carousel-prev {
        width: 30px;
    }

    .custom-text-carousel-wrapper .custom-carousel-next:after,
    .custom-text-carousel-wrapper .custom-carousel-prev:after {
        font-size: 25px; /* Smaller arrow size */
    }
}
