/* Stops all horizontal slide scroll-leak across the page layout */
.testi-section-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Fixes page level horizontal scrolling layouts */
    direction: rtl !important;
}

.testi-swiper-container {
    width: 100%;
    padding: 40px 0;
    position: relative;
}

.testi-section-wrapper .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
}

/* Layout structure rules referencing 'Screenshot 2026-06-18 at 5.17.03 PM.png' */
.testi-section-wrapper .swiper-slide {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    opacity: 0.5;
    width: 33.333% !important;
    box-sizing: border-box;
}

.testi-section-wrapper .swiper-slide-active {
    opacity: 1;
    z-index: 10;
}

/* Card Design Formatting Rules */
.testi-card {
    width: 100%;
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.04);
}

.testi-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row;
}

.testi-avatar img,
.testi-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testi-avatar-placeholder {
    background-color: #254796;
}

.testi-title {
    margin: 0;
    font-weight: bold;
}

.testi-text-content {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testi-text-content.is-expanded {
    -webkit-line-clamp: unset !important;
}

.testi-read-more {
    display: none;
    background: none;
    border: none;
    padding: 0;
    margin-top: 10px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

/* SVG Navigation Design Configuration */
.testi-nav-container {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    pointer-events: none;
    z-index: 99;
}

.testi-nav-btn {
    position: absolute;
    width: 45px;
    height: 45px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    pointer-events: auto;
}

.testi-nav-btn:hover {
    background: #f5f5f5;
}

.testi-nav-btn svg {
    width: 20px;
    height: 20px;
    fill: #333333;
}

.testi-nav-next {
    left: 15px;
}

.testi-nav-prev {
    right: 15px;
}


@media (max-width: 1024px) {
    .testi-section-wrapper .swiper-slide {
        width: 50% !important;
    }
}

@media (max-width: 767px) {
    .testi-section-wrapper .swiper-slide {
        width: 100% !important;
    }

    .testi-nav-container {
        top: 80%;
    }

    .testi-nav-prev {
        left: 65px;
        right: auto;
    }

}