/* =========================================================
   Testimonial Slider Widget — Frontend Styles v1.1
   ========================================================= */

.tsw-wrapper {
    position: relative;
    max-width: 100%;
    font-family: inherit;
    box-sizing: border-box;
}

/* Extra bottom room only when dots are rendered below */
.tsw-wrapper:has(.tsw-dots-below) {
    padding-bottom: 52px;
}

/* ── Track ───────────────────────────────────────────────── */
.tsw-track-outer {
    overflow: hidden;
    position: relative;
}

.tsw-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: stretch;
}

.tsw-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 4px 2px 8px;
}

/* ── Card ────────────────────────────────────────────────── */
.tsw-slide-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.10);
    box-sizing: border-box;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.tsw-slide-card:hover {
    box-shadow: 0 20px 56px rgba(0,0,0,0.14);
}

/* ── Layout: Minimal ─────────────────────────────────────── */
.tsw-layout-minimal .tsw-slide-card {
    background: transparent !important;
    box-shadow: none !important;
    border-top: 3px solid currentColor;
    border-radius: 0 !important;
    padding: 32px 0 !important;
}

/* ── Layout: Bubble ──────────────────────────────────────── */
.tsw-bubble-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    position: relative;
    margin-bottom: 24px;
}

.tsw-bubble-card::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 48px;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 0 solid transparent;
    border-top: 14px solid #ffffff;
}

.tsw-layout-bubble .tsw-slide-card {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ── Quote mark ──────────────────────────────────────────── */
.tsw-quote-mark {
    display: block;
    font-size: 90px;
    line-height: 0.7;
    color: #E5E7EB;
    font-family: Georgia, serif;
    margin-bottom: 8px;
    user-select: none;
    pointer-events: none;
}

/* ── Stars ───────────────────────────────────────────────── */
.tsw-stars {
    font-size: 18px;
    color: #F59E0B;
    letter-spacing: 2px;
    margin-bottom: 14px;
    margin-top: 0;
    display: block;
    width: 100%;
    /* text-align overridden per-instance by Elementor selector */
    text-align: left;
}

/* ── Quote text ──────────────────────────────────────────── */
.tsw-quote-text {
    font-size: 17px;
    line-height: 1.75;
    color: #374151;
    margin: 0 0 28px 0;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════
   AUTHOR / AVATAR BLOCK
   ══════════════════════════════════════════ */

.tsw-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ── Alignment helpers ───────────────────── */
.tsw-av-align-left   { justify-content: flex-start; }
.tsw-av-align-center { justify-content: center; text-align: center; }
.tsw-av-align-right  { justify-content: flex-end; text-align: right; }

/* When centered, stack avatar above info */
.tsw-av-align-center {
    flex-direction: column;
    align-items: center;
}

/* When right-aligned, reverse order so avatar is on the right */
.tsw-av-align-right {
    flex-direction: row-reverse;
}

.tsw-av-top {
    margin-bottom: 20px;
}

.tsw-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tsw-author-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    display: block;
}

.tsw-author-role {
    font-size: 13px;
    color: #6B7280;
    display: block;
    letter-spacing: 0.02em;
}

/* ── Avatar image ────────────────────────── */
.tsw-avatar-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 2px solid #ffffff;
    flex-shrink: 0;
    display: block;
}

/* ── Avatar initials fallback ────────────── */
.tsw-avatar-initials {
    width: 52px;
    height: 52px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tsw-avatar-initials span {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

/* ── Avatar shapes ───────────────────────── */
.tsw-shape-circle {
    border-radius: 50% !important;
}

.tsw-shape-rounded {
    border-radius: 10px !important;
}

.tsw-shape-square {
    border-radius: 0 !important;
}

/* ══════════════════════════════════════════
   NAVIGATION ARROWS
   ══════════════════════════════════════════ */

.tsw-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 26px));
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #111827;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    outline: none;
    padding: 0;
}

.tsw-arrow:hover {
    opacity: 0.85;
    transform: translateY(calc(-50% - 26px)) scale(1.08);
}

.tsw-arrow:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.tsw-prev { left: 0; }
.tsw-next { right: 0; }

.tsw-arrow svg {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ══════════════════════════════════════════
   PAGINATION DOTS
   ══════════════════════════════════════════ */

/* Shared base */
.tsw-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    /* alignment controlled by Elementor selector */
    justify-content: center;
    padding: 4px 0;
}

/* ── Below variant (outside card) ────────── */
.tsw-dots-below {
    position: relative;
    margin-top: 16px;
    left: auto;
    right: auto;
    bottom: auto;
    /* horizontal padding so dots never clash with arrows */
    padding-left: 52px;
    padding-right: 52px;
}

/* ── Inside / overlay variant ────────────── */
.tsw-dots-inside {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    z-index: 5;
    pointer-events: auto;
    /* horizontal padding so dots don't overflow the card edge */
    padding-left: 16px;
    padding-right: 16px;
}

/* ── Individual dot ──────────────────────── */
.tsw-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.25s, width 0.3s cubic-bezier(0.4,0,0.2,1);
    outline: none;
    /* height stays constant — only width grows for pill effect */
}

.tsw-dot.active {
    background: #111827;
    width: 24px; /* overridden by Elementor slider */
}

.tsw-dot:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 600px) {
    .tsw-slide-card {
        padding: 28px 20px !important;
    }

    .tsw-arrow {
        display: none;
    }

    .tsw-dots-below {
        padding-left: 8px;
        padding-right: 8px;
    }

    .tsw-quote-text {
        font-size: 15px;
    }
}
