/* SA Testimonials — Sabbir Ahmed */

.sa-tm-outer { display: block; width: 100%; }

/* ── Viewport ── */
.sa-tm-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Fade top/bottom */
.sa-tm-has-fade::before,
.sa-tm-has-fade::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    z-index: 2;
    pointer-events: none;
}
.sa-tm-has-fade::before { top: 0; }
.sa-tm-has-fade::after  { bottom: 0; }

/* ── Grid ── */
.sa-tm-grid {
    display: grid;
    height: 100%;
    align-items: start;
}

/* ── Column ── */
.sa-tm-col {
    overflow: hidden;
    height: 100%;
}

/* ── Track — scrolls vertically ── */
.sa-tm-track {
    display: flex;
    flex-direction: column;
    animation: sa-tm-scroll-up linear infinite;
}

.sa-tm-reverse {
    animation-name: sa-tm-scroll-down;
}

@keyframes sa-tm-scroll-up {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes sa-tm-scroll-down {
    0%   { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* ── Card — glassmorphism ── */
.sa-tm-card {
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.08) 0%,
        rgba(255,255,255,0.03) 100%
    );
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    box-sizing: border-box;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 4px 24px rgba(0,0,0,0.20);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sa-tm-card:before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.8) 20%, rgba(255, 255, 255, 0.2) 35%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
	height: 100%;
    z-index: -1;
}

.sa-tm-card:hover {
    border-color: rgba(255,255,255,0.22);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 8px 32px rgba(0,0,0,0.28);
}

/* ── Stars ── */
.sa-tm-stars { display: flex; gap: 2px; }
.sa-tm-star  { font-size: 14px; line-height: 1; }
.sa-tm-star.filled { color: #f59e0b; }
.sa-tm-star.empty  { color: rgba(255,255,255,0.20); }

/* ── Quote ── */
.sa-tm-quote {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.80);
}

/* ── Author ── */
.sa-tm-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

/* ── Avatar ── */
.sa-tm-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sa-tm-avatar img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
}

.sa-tm-initials {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    user-select: none;
}

/* ── Meta ── */
.sa-tm-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sa-tm-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sa-tm-role {
    font-size: 13px;
    color: rgba(255,255,255,0.50);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Responsive base (overridden by scoped CSS from widget settings) ── */
@media (max-width: 767px) {
    .sa-tm-card    { padding: 18px; }
    .sa-tm-quote   { font-size: 13px; }
    .sa-tm-name    { font-size: 14px; }
    .sa-tm-role    { font-size: 12px; }
    .sa-tm-initials{ font-size: 12px; }
    .sa-tm-avatar,
    .sa-tm-avatar img {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
}
