/* ==========================================================================
   Testimonials Slider — split card: static title (light) + navy slider panel.
   ========================================================================== */

.section.testimonialsslider {
    padding-top: 24px;
    padding-bottom: 24px;
}

.tslider-card {
    display: flex;
    align-items: stretch;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-neutral-100);
    min-height: 419px;
}

/* ---- Left intro (static title) ----------------------------------------- */
.tslider-intro {
    flex: 1 1 38%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 56px 48px 56px 64px;
}
.tslider-eyebrow {
    font-family: var(--font-heading);
    font-size: var(--text-label-xs);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-foreground);
}
.tslider-heading {
    margin: 0;
    font-size: var(--text-display-sm);
    color: var(--color-foreground);
}

/* ---- Right navy slider panel ------------------------------------------- */
/* Straight-edged rectangle with the pre-composed navy/duotone artwork as its
   background (no CSS angle or gradient overlay — the image bakes those in). */
.tslider-panel {
    position: relative;
    flex: 0 0 62%;
    background: var(--color-card-navy) url('featured-bg.png') center / cover no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 56px 64px 64px;
}

/* ---- Track / slides ----------------------------------------------------- */
.tslider-track {
    position: relative;
    z-index: 2;
    width: 100%;
}
.tslider-track:not(.slick-initialized) .tslider-slide + .tslider-slide { display: none; }

/* The slide stays as Slick expects it (Slick floats/positions it for fade);
   the flex column layout lives on an inner wrapper so fade offsets aren't
   broken by display:flex on the slide itself. */
.tslider-slide-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 680px;
}
.tslider-quoteicon {
    display: block;
    line-height: 1;
}
.tslider-quoteicon svg {
    display: block;
    width: 40px;
    height: 30px;
}
.tslider-quote {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--text-heading-md);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-background);
    font-style: normal;
}
.tslider-author {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tslider-author-name {
    font-family: var(--font-body);
    font-size: var(--text-paragraph-xs);
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0.02em;
    color: var(--color-background);
}
.tslider-author-company {
    font-family: var(--font-heading);
    font-size: var(--text-label-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-background);
}

/* ---- Progress bar ------------------------------------------------------- */
.tslider-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    z-index: 10;
    background: var(--color-secondary);
    overflow: hidden;
}
.tslider-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--color-brand-orange);
}
.tslider-panel.is-animating .tslider-progress-fill {
    width: 100%;
    transition: width linear var(--tslider-speed, 6000ms);
}

/* ---- Arrows + pause toggle --------------------------------------------- */
/* Light pill flush to the bottom-right with an angled left edge (matches Hero Slider) */
.tslider-arrows {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 25px 8px 50px;
    background: var(--color-secondary);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.tslider-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--color-foreground);
    font-size: 16px;
    cursor: pointer;
    transition: background var(--ease-default), transform var(--ease-fast);
}
.tslider-arrow:hover { background: var(--color-muted); }
.tslider-arrow:focus-visible { outline: 2px solid var(--color-foreground); outline-offset: 2px; }
.tslider-arrow:active { transform: scale(0.94); }
.tslider-arrow-sep {
    display: block;
    width: 1px;
    height: 28px;
    background: var(--color-foreground);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .tslider-card { flex-direction: column; background: transparent; border-radius: 0; }
    .tslider-intro {
        flex: none;
        padding: 0 0 24px;
        background: transparent;
    }
    .tslider-panel {
        flex: none;
        padding: 48px 32px 56px;
        min-height: 380px;
    }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .tslider-arrow { transition: none; }
    .tslider-panel.is-animating .tslider-progress-fill { transition: none; }
}
