/* ============================================================
   Testimonials Slider Plugin — testimonials-slider.css
   ============================================================ */

/* ---------- Wrapper ---------- */
.tsp-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    box-sizing: border-box;
    font-family: inherit;
}

/* ---------- Section Heading ---------- */
.tsp-heading {
    text-align: center;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 40px;
    padding: 0;
}

/* ---------- Slider outer shell — arrows live here, outside the card ---------- */
.tsp-slider-container {
    position: relative;
    /* Horizontal room for the arrows so they sit outside the card */
    padding: 0 64px;
    box-sizing: border-box;
}

/* ---------- The clipping viewport ---------- */
.tsp-viewport {
    overflow: hidden;
    border-radius: 12px;
    /* Subtle border like the Elementor card */
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
}

/* ---------- Track ---------- */
.tsp-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

/* ---------- Single Slide ---------- */
.tsp-slide {
    min-width: 100%;
    box-sizing: border-box;
}

/* ---------- Card ---------- */
.tsp-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    /* Generous internal padding — content never touches the edges */
    padding: 52px 56px 48px;
    min-height: 240px;
    box-sizing: border-box;
    overflow: hidden;
}

/* ---------- Decorative Quote Mark (top-right) ---------- */
.tsp-quote-mark {
    position: absolute;
    top: 10px;
    right: 28px;
    font-size: 110px;
    line-height: 1;
    color: #c8e6c8;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    pointer-events: none;
    user-select: none;
}

/* ---------- Quote Text ---------- */
.tsp-quote-text {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.8;
    color: #2d2d2d;
    /* Clear gap between quote text and author block */
    margin: 0 0 36px;
    /* Keep text away from the decorative quote mark */
    max-width: 90%;
}

/* ---------- Author Block ---------- */
.tsp-author {
    display: flex;
    flex-direction: column;
    gap: 3px;
    /* Extra top breathing room between quote and name */
    padding-top: 4px;
    border-top: 1px solid #f0f0f0;
    /* Space between the divider line and the name */
    margin-top: 4px;
}

.tsp-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    /* Space above the name */
    margin-top: 12px;
}

.tsp-role,
.tsp-company {
    font-size: 14px;
    color: #555555;
    display: block;
}

/* ---------- Navigation Arrows — outside the card ---------- */
.tsp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
    z-index: 10;
    padding: 0;
    /* Arrows are inside .tsp-slider-container padding area, not over the card */
}

.tsp-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
}

.tsp-arrow:hover {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* Centred within the 64px padding zones */
.tsp-prev { left: 11px; }
.tsp-next { right: 11px; }

/* ---------- Dot Navigation ---------- */
.tsp-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 2px;
}

.tsp-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cccccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.tsp-dot.active {
    background: #1a1a1a;
    transform: scale(1.3);
}

/* ---------- No-posts message ---------- */
.tsp-no-posts {
    text-align: center;
    color: #888;
    padding: 40px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .tsp-slider-container {
        padding: 0 50px;
    }

    .tsp-card {
        padding: 36px 28px 32px;
        min-height: auto;
    }

    .tsp-quote-mark {
        font-size: 72px;
        right: 14px;
        top: 8px;
    }

    .tsp-quote-text {
        max-width: 100%;
        margin-bottom: 28px;
    }

    .tsp-prev { left: 4px; }
    .tsp-next { right: 4px; }
}

@media (max-width: 480px) {
    .tsp-slider-container {
        padding: 0 42px;
    }

    .tsp-card {
        padding: 28px 20px 26px;
    }

    .tsp-arrow {
        width: 34px;
        height: 34px;
    }

    .tsp-arrow svg {
        width: 14px;
        height: 14px;
    }
}
