/* Testimonials Slider for Elementor — v1.8.0 */

/* ── Reset ── */
.tse-section {
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
    position: relative;
    /* Full-width: no side padding by default — Elementor section padding controls it */
    overflow: hidden; /* clip slider */
}
.tse-section *, .tse-section *::before, .tse-section *::after { box-sizing: border-box; }

/* ──────────────────────────────────────────
   TOP BAR WRAPPER (has its own horizontal padding matching section)
────────────────────────────────────────── */
.tse-topbar-wrap {
    padding-left: var(--tse-side-pad, 0px);
    padding-right: var(--tse-side-pad, 0px);
    margin-bottom: 20px;
}

/* ── DESKTOP: 3-column layout ── */
.tse-top-bar {
    display: grid;
    /* left col fixed %, right cols fill remaining space */
    grid-template-columns: var(--tse-left-width, 38%) 1fr auto;
    align-items: center;
    gap: 0;
}

.tse-top-left {
    padding-right: 32px;
    /* vertical align middle by default */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tse-top-label {
    font-size: 13px;
    color: #888;
    font-weight: 400;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: block;
}

.tse-heading {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    color: #0a0a0a;
    letter-spacing: -0.02em;
    margin: 0;
    padding: 0;
}

/* middle column: description */
.tse-top-middle {
    padding-right: 32px;
}

.tse-description {
    font-size: 13px;
    color: #888;
    line-height: 1.65;
    margin: 0;
}

/* right column: CTA button */
.tse-top-right {
    flex-shrink: 0;
}

/* CTA Button */
.tse-cta-btn {
    display: inline-block;
    background-color: #e02020;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 24px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}
.tse-cta-btn:hover { background-color: #c01818; color: #fff; text-decoration: none; }

/* ── ARROWS ROW — right-aligned, between top bar and slider ── */
.tse-arrows-wrap {
    padding-left: var(--tse-side-pad, 0px);
    padding-right: var(--tse-side-pad, 0px);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 16px;
}

.tse-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    outline: none;
    color: #fff;
    background: #1a1a1a;
}
.tse-arrow-btn.tse-next-btn { background: #e02020; }
.tse-arrow-btn:hover { opacity: 0.82; }
.tse-arrow-btn.tse-disabled { opacity: 0.35 !important; cursor: default; }
.tse-arrow-btn > svg { width: 14px; height: 14px; flex-shrink: 0; pointer-events: none; color: inherit; display: block; }
.tse-arrow-btn > i { display: flex; align-items: center; justify-content: center; color: inherit; pointer-events: none; }
.tse-arrow-btn i::before { color: inherit; }

/* ──────────────────────────────────────────
   SLIDER — full-width, NO side padding (bleeds to edge)
────────────────────────────────────────── */
.tse-slider-outer {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
}
.tse-slider-outer:active { cursor: grabbing; }

/* Left-side "indent" so first card aligns with text */
.tse-slider-inner {
    overflow: visible;          /* allow peek on right */
    /* indent left by same amount as side-pad so cards start under text */
    padding-left: var(--tse-side-pad, 0px);
}

.tse-cards-track {
    display: flex;
    gap: 16px;
    align-items: stretch;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ──────────────────────────────────────────
   CARDS
────────────────────────────────────────── */
.tse-card {
    flex-shrink: 0;
    border-radius: 16px;
    position: relative;
    height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.tse-card--quote {
    background-color: #111;
    padding: 24px;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}
.tse-card--quote:hover { background-color: #161616; }

.tse-card--image { background-color: #1a1a1a; padding: 0; }

.tse-card-bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; z-index: 0;
}
.tse-card-img-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.tse-card--image .tse-card-top {
    position: absolute; top: 0; left: 0; right: 0;
    padding: 20px 24px; z-index: 2;
}
.tse-card--image .tse-card-bottom {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 24px 24px 28px; z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}

.tse-card-top {
    display: flex; align-items: center; justify-content: space-between;
    position: relative; z-index: 2; flex-shrink: 0;
}
.tse-card-tag { font-size: 13px; color: #fff; font-weight: 400; line-height: 1.3; }

.tse-card-icon-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background-color: #e02020; border: none;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff; flex-shrink: 0;
    padding: 0; line-height: 1; transition: background-color 0.2s ease;
}
.tse-card-icon-btn > i { font-size: 13px; color: inherit; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.tse-card-icon-btn > svg { width: 13px; height: 13px; flex-shrink: 0; pointer-events: none; color: inherit; }

.tse-card-bottom { position: relative; z-index: 2; margin-top: auto; }

.tse-card-quote { font-size: 18px; font-weight: 400; color: #fff; line-height: 1.5; margin: 0; }

/* ── Result Stat ── */
.tse-card-result {
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 14px;
}
.tse-card-result-title {
    font-size: 28px; font-weight: 700; color: #fff;
    line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 4px 0;
}
.tse-card-result-subtitle {
    font-size: 13px; font-weight: 400;
    color: rgba(255,255,255,0.72); margin: 0; line-height: 1.4;
}

/* ── Divider ── */
.tse-divider { width: 100%; height: 1px; background-color: #e5e5e5; margin-top: 24px; }

/* ── CTA Below Slider ── */
.tse-cta-below-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: var(--tse-side-pad, 0px);
    padding-right: var(--tse-side-pad, 0px);
    margin-top: 24px;
}
.tse-cta-below {
    display: block;
    text-align: center;
}
/* Mobile-only CTA (hidden on desktop, shown on mobile/tablet via media query) */
.tse-cta-below-mobile-only {
    display: none;
}

/* ──────────────────────────────────────────
   MOBILE TOP BAR — hidden on desktop
────────────────────────────────────────── */
.tse-mobile-topbar { display: none; }

/* ──────────────────────────────────────────
   TABLET: ≤ 1024px
────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* hide desktop top bar & arrows */
    .tse-top-bar, .tse-arrows-wrap { display: none !important; }

    /* show mobile topbar */
    .tse-mobile-topbar {
        display: block !important;
        padding-left: var(--tse-side-pad, 16px);
        padding-right: var(--tse-side-pad, 16px);
        margin-bottom: 20px;
    }

    .tse-mob-label {
        font-size: 13px; color: #888; font-weight: 400;
        margin: 0 0 10px 0; line-height: 1.4; display: block;
    }

    /* heading row: heading left, arrows right */
    .tse-mob-head-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }
    .tse-mob-heading {
        font-size: 26px; font-weight: 700;
        line-height: 1.2; color: #0a0a0a;
        letter-spacing: -0.02em; margin: 0;
        flex: 1 1 0; min-width: 0;
    }
    .tse-mob-arrows {
        display: flex; gap: 8px; flex-shrink: 0; align-self: center;
    }

    /* desc block (CTA is now below the slider on mobile) */
    .tse-mob-description {
        font-size: 13px; color: #888; line-height: 1.65;
        margin: 0 0 16px 0; width: 100%;
    }
    /* Show mobile-only CTA below slider on tablet */
    .tse-cta-below-mobile-only { display: flex; }

    /* cards */
    .tse-card { min-width: 0 !important; height: 380px; border-radius: 12px; }
    .tse-card-result-title { font-size: 22px; }
}

/* ──────────────────────────────────────────
   MOBILE: ≤ 600px
────────────────────────────────────────── */
@media (max-width: 600px) {
    .tse-mob-heading { font-size: 22px; }
    .tse-mob-desc-cta { flex-direction: column; gap: 12px; }
    .tse-mob-description { flex: none; width: 100%; }
    .tse-card { height: 340px; }
    .tse-card-quote { font-size: 16px; }
    .tse-card-result-title { font-size: 20px; }
    /* Hide nav arrows on mobile — swipe & mouse scroll still work */
    .tse-mob-arrows { display: none !important; }
    /* Ensure mobile-only CTA visible on small screens */
    .tse-cta-below-mobile-only { display: flex; }
}

/* ══════════════════════════════════════════════════
   QUOTE CARD — Background Image & Overlays
   (added v1.9.0)
══════════════════════════════════════════════════ */

/* When a quote card has a background image, it needs the same
   positioning context as the image card */
.tse-card--quote.tse-has-bg-img {
    /* handled via inline bg-img element already positioned absolute */
}

/* Down / bottom gradient overlay — absolutely positioned, bottom-anchored */
.tse-card-down-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    /* height and gradient set inline from widget settings */
}

/* Keep quote card content above overlays */
.tse-card--quote .tse-card-top,
.tse-card--quote .tse-card-bottom {
    position: relative;
    z-index: 2;
}

/* ══════════════════════════════════════════════════
   MULTIPLE STAT BLOCKS
   (added v1.9.0)
══════════════════════════════════════════════════ */

/* Stats area container */
.tse-stats-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

/* Layout variants */
.tse-stats-area.tse-stats-layout--row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
}

.tse-stats-area.tse-stats-layout--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Individual stat block */
.tse-stat-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Stat value (big number/text) */
.tse-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 2px 0;
}

/* Stat label (subtitle) */
.tse-stat-label {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.72);
    margin: 0;
    line-height: 1.4;
}

/* Responsive: in row layout on very small cards, stack back to column */
@media (max-width: 400px) {
    .tse-stats-area.tse-stats-layout--row {
        flex-direction: column;
    }
    .tse-stats-area.tse-stats-layout--grid {
        grid-template-columns: 1fr;
    }
}

/* ── legacy alias (old .tse-card-result-title used in older saves) ── */
.tse-card-result-title  { font-size: 28px; font-weight: 700; color: #fff; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 4px 0; }
.tse-card-result-subtitle { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.72); margin: 0; line-height: 1.4; }
.tse-card-result { margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 14px; }

/* ── Sub-Text (below quote) ── */
.tse-card-subtext {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    margin: 8px 0 0 0;
    padding: 0;
    display: block;
}
