/* CE Testimonials — Frontend */

.ts-wrapper {
    width: 100%;
    padding: 40px 0 60px;
    box-sizing: border-box;
    /* Gradient overlay sits on top of the admin-chosen background-color */
    background-image: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0)    45%,
        rgba(0,   0,   0,   0.06) 100%
    );
}

/* ── Layout: inner content container ── */
.ts-inner {
    width: 100%;
    box-sizing: border-box;
}

/* Contained: centered with max-width */
.ts-layout-contained .ts-inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

/* Full width: edge-to-edge with breathing room */
.ts-layout-full .ts-inner {
    padding: 0 60px;
}

/* Horizontal padding inside swiper makes room for nav arrows */
.ts-swiper {
    padding: 0 48px 56px !important;
    box-sizing: border-box;
}

/* When nav arrows are hidden, remove the side padding */
.ts-no-nav .ts-swiper {
    padding: 0 0 48px !important;
}

/* Single testimonial: constrain width and center */
.ts-wrapper[data-count="1"] .ts-swiper {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Equal-height slides */
.ts-swiper .swiper-slide {
    height: auto;
}

/* ── Card ── */
.ts-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 36px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    height: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

.ts-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}

/* ── Opening quote ── */
.ts-quote-icon {
    font-size: 72px;
    line-height: 0.8;
    color: #e0e0e0;
    font-family: Georgia, serif;
}

/* ── Testimonial text ── */
.ts-content {
    font-size: 0.97rem;
    line-height: 1.75;
    color: #555;
    flex: 1;
}

.ts-content p {
    margin: 0 0 0.6em;
}

.ts-content p:last-child {
    margin-bottom: 0;
}

/* ── Divider ── */
.ts-divider {
    width: 40px;
    height: 2px;
    background: #e0e0e0;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Author block — stacked & centered ── */
.ts-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Avatar */
.ts-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
    flex-shrink: 0;
}

.ts-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Name & role */
.ts-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.ts-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
}

.ts-role {
    font-size: 0.82rem;
    color: #999;
    display: block;
    letter-spacing: 0.02em;
}

/* Hide arrows when count ≤ 3 */
.ts-no-nav .swiper-button-prev,
.ts-no-nav .swiper-button-next {
    display: none !important;
}

/* ── Swiper navigation ── */
.ts-swiper .swiper-button-prev,
.ts-swiper .swiper-button-next {
    color: #444;
    background: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    top: 40%;
}

.ts-swiper .swiper-button-prev::after,
.ts-swiper .swiper-button-next::after {
    font-size: 13px;
    font-weight: 800;
}

.ts-swiper .swiper-button-prev:hover,
.ts-swiper .swiper-button-next:hover {
    background: #f5f5f5;
    color: #000;
}

/* Position arrows just inside the padding zone */
.ts-swiper .swiper-button-prev {
    left: 6px;
}

.ts-swiper .swiper-button-next {
    right: 6px;
}

/* ── Pagination dots ── */
.ts-swiper .swiper-pagination {
    bottom: 12px;
}

.ts-swiper .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    width: 8px;
    height: 8px;
}

.ts-swiper .swiper-pagination-bullet-active {
    background: #444;
    width: 24px;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ── Responsive ── */
@media ( max-width: 768px ) {
    .ts-layout-contained .ts-inner,
    .ts-layout-full .ts-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media ( max-width: 640px ) {
    .ts-swiper {
        padding: 0 40px 52px !important;
    }

    .ts-card {
        padding: 28px 20px 24px;
    }

    .ts-content {
        font-size: 0.92rem;
    }
}
