/* SA Testimonial Card — Sabbir Ahmed */
.sa-tc {
    position: relative;
    background: #12172a;
    border-radius: 22px;
    padding: 36px;
    box-sizing: border-box;
    isolation: isolate;
    width: 100%;
    color: #ffffff;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient border via ::before */
.sa-tc--border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.55) 0%,
        rgba(255,255,255,0.18) 30%,
        rgba(255,255,255,0.05) 70%,
        rgba(255,255,255,0.20) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

/* ── Quote mark ── */
.sa-tc__mark {
    font-size: 96px;
    line-height: 0.6;
    color: rgba(255,255,255,0.12);
    font-family: Georgia, serif;
    margin-bottom: 8px;
    user-select: none;
    position: relative;
    z-index: 1;
}

/* ── Quote text ── */
.sa-tc__quote-wrap {
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.sa-tc__quote {
    margin: 0;
    color: rgba(255,255,255,0.90);
    font-size: 17px;
    line-height: 1.65;
    font-style: normal;
}

/* ── Footer row ── */
.sa-tc__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.sa-tc__author-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

/* ── Avatar ── */
.sa-tc__avatar-link {
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 50%;
    text-decoration: none;
}

.sa-tc__avatar {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.15);
    box-sizing: border-box;
    background: #1e2540;
}

/* ── Author info ── */
.sa-tc__author-info {
    min-width: 0;
    flex: 1;
}

.sa-tc__name {
    margin: 0 0 3px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.sa-tc__name a {
    color: inherit;
    text-decoration: none;
}
.sa-tc__name a:hover { text-decoration: underline; }

.sa-tc__role {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Stars ── */
.sa-tc__stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.sa-tc__stars--top {
    display: flex;
    margin-bottom: 16px;
}

.sa-tc__stars--bottom {
    display: flex;
    margin-top: 18px;
}

.sa-tc__star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sa-tc__star svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
}

.sa-tc__star--filled { color: #ffffff; }
.sa-tc__star--half   { color: #ffffff; }
.sa-tc__star--empty  { color: rgba(255,255,255,0.22); }

/* Mobile */
@media (max-width: 767px) {
    .sa-tc { padding: 22px; }
    .sa-tc__quote { font-size: 15px; }
    .sa-tc__footer { flex-wrap: wrap; gap: 12px; }
    .sa-tc__stars--right { width: 100%; }
    .sa-tc__avatar { width: 44px; height: 44px; }
    .sa-tc__name { font-size: 15px; }
    .sa-tc__role { font-size: 12px; white-space: normal; }
    .sa-tc__star svg { width: 20px; height: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .sa-tc { transition: none; }
}
