.testimony-carousel-col {
    overflow-x: hidden;
}

.et_pb_code,
.et_pb_code_inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.testimony-carousel-mod {
    border-radius: 30px !important;
}

.ba-testimonial-carousel-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: #f9f9f9;
    border-radius:10px;
}

.ba-testimonial-carousel {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ba-testimonial-carousel::-webkit-scrollbar {
    display: none;
}

.ba-carousel-item {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
}

.ba-carousel-image-wrapper,
.ba-carousel-image-wrapper a {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.ba-carousel-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-carousel-nav {
    /* 1. Wir machen den Text (n/o) unsichtbar */
    font-size: 0 !important;

    /* Der Rest bleibt für die Positionierung des Kreises */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #3A8290;
    color: #3A8290;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

/* 2. Wir fügen den Pfeil per CSS ein (Pseudo-Element) */
.ba-carousel-nav::before {
    font-size: 20px;
    /* Hier geben wir dem Pfeil die Größe zurück */
    font-family: sans-serif;
    font-weight: bold;
    line-height: 1;
    display: block;
}

/* 3. Definieren, welcher Button welchen Pfeil bekommt */
.ba-prev::before {
    content: '\276E';
    /* Unicode für Pfeil LINKS (❮) */
    margin-right: 2px;
    /* Optische Korrektur */
}

.ba-next::before {
    content: '\276F';
    /* Unicode für Pfeil RECHTS (❯) */
    margin-left: 2px;
    /* Optische Korrektur */
}

/* Positionierung der Buttons selbst */
.ba-prev {
    left: 10px;
}

.ba-next {
    right: 10px;
}

/* Hover Effekt */
.ba-carousel-nav:hover {
    background-color: #3A8290;
    color: #fff;
    transition: all 0.3s ease;
}

.ba-carousel-text {
    font-size: clamp(1.1rem, 1.0rem + 0.5vw, 1.35rem);
    line-height: 1.3;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin: 15px 0 15px;
    line-height: 1.4;
    }

.ba-carousel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4em;
    padding: .7em 2.1em;
    font-weight: 700;
    border-radius: 5px;
    font-size: 16px;
    text-transform: uppercase;
    background-color: #3A8290;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 300ms ease 0ms;
}

.ba-carousel-button:hover {
    transform: scale(1.015);
}

@media (max-width: 980px) {
    .ba-carousel-button {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .ba-carousel-item {
        padding: 0;
    }

    .ba-carousel-image-wrapper,
    .ba-carousel-text,
    .ba-carousel-button {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ba-carousel-button {
        font-size: 14px;
    }
}