/* Testimonial Marquee Slider v2 - Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap');

/* =========================================================
   WRAPPER
   ========================================================= */
.tms-wrapper {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

/* =========================================================
   ROW — edge fade mask
   ========================================================= */
.tms-row {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.3) 5%,
        rgba(0,0,0,1) 15%,
        rgba(0,0,0,1) 85%,
        rgba(0,0,0,0.3) 95%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.3) 5%,
        rgba(0,0,0,1) 15%,
        rgba(0,0,0,1) 85%,
        rgba(0,0,0,0.3) 95%,
        transparent 100%
    );
}

.tms-row:last-child { margin-bottom: 0; }

/* =========================================================
   TRACK — holds 3× duplicated cards, animates
   ========================================================= */
.tms-track {
    display: flex;
    gap: 16px;
    width: max-content;
    will-change: transform;
    padding-bottom:1px;
    /* JS sets animation-duration and initial translateX */
}

/* =========================================================
   KEYFRAMES
   Scroll-left  starts at 0, ends at -33.333% (1 of 3 copies)
   Scroll-right starts at -33.333%, ends at 0
   ========================================================= */
@keyframes tms-scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.3333%); }
}

@keyframes tms-scroll-right {
    0%   { transform: translateX(-33.3333%); }
    100% { transform: translateX(0); }
}

.tms-row[data-direction="left"]  .tms-track {
    animation: tms-scroll-left linear infinite;
    /* start in the middle copy so cards are visible on both sides */
    transform: translateX(-33.3333%);
}

.tms-row[data-direction="right"] .tms-track {
    animation: tms-scroll-right linear infinite;
    transform: translateX(-33.3333%);
}

/* Pause on hover */
.tms-wrapper:hover .tms-track {
    animation-play-state: paused;
}

/* =========================================================
   CARD
   ========================================================= */
.tms-card {
    background: #0D0D0D;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0px;
    padding: 25px;
    min-width: 260px;
    max-width: 300px;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;   /* needed for shimmer overlay */
    overflow: hidden;     /* clip the shimmer to card bounds */
}

/* =========================================================
   SHIMMER / GLOSS OVERLAY
   Sits on top of the card content via pointer-events:none
   ========================================================= */
.tms-card-shimmer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    border-top: 1px solid;
    border-image: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.30) 50%, rgba(255, 255, 255, 0.00) 100%) 1;
}

/* =========================================================
   CARD CONTENT (must be above shimmer)
   ========================================================= */
.tms-card-header,
.tms-card-body {
    position: relative;
    z-index: 2;
}

/* Card Header: avatar + name + quote icon */
.tms-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

/* Avatar */
.tms-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.tms-avatar-placeholder {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Name */
.tms-name {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Unbounded', sans-serif !important;
    line-height: 1.3;
}

/* Quote icon */
.tms-quote-icon {
    font-size: 28px;
    line-height: 1;
    color: #d4a017;
    font-family: Georgia, serif;
    font-weight: 700;
    margin-left: auto;
    flex-shrink: 0;
}

/* Body text — clamped to 4 lines until expanded */
.tms-card-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #999;
    font-family: 'Public Sans', sans-serif !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.tms-card-body.is-expanded .tms-card-text {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.tms-read-more {
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    color: #787878;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Public Sans', sans-serif !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    position: relative;
    z-index: 2;
}

.tms-read-more:hover,
.tms-read-more:focus-visible {
    color: #ffffff;
    outline: none;
}

.tms-read-more[hidden] {
    display: none;
}
