/* ═══ Testimonial slider — new (tm-block__*) — independent de app.js ═══ */
.tm-block { position: relative; margin-top: 8px; }

.tm-block__viewport {
    position: relative;
    min-height: 320px;
    padding: 8px 0;
}

.tm-block__slide {
    opacity: 0; visibility: hidden;
    position: absolute; top: 0; left: 0; right: 0;
    text-align: center;
    transition: opacity 0.5s ease;
    padding: 0 32px;
}
.tm-block__slide.is-active {
    opacity: 1; visibility: visible;
    position: relative;
}

.tm-block__photo {
    width: 88px; height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
    display: block;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(200, 169, 81, 0.2);
}
.tm-block__photo--placeholder {
    background: linear-gradient(135deg, #1a1a2e, #2c2c54);
    color: #c8a951;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.tm-block__photo--placeholder svg {
    margin-top: 4px;
}
/* Marker subtil pentru poza default (opțional vizual — doar nuanță border auriu mai vizibilă) */
.tm-block__photo--default {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(200, 169, 81, 0.35);
}

.tm-block__quote {
    font-size: 64px; line-height: 0.5;
    color: var(--gold, #c8a951); opacity: 0.3;
    font-family: var(--font-heading, Georgia, serif);
    margin-bottom: 16px;
}
.tm-block__text {
    font-size: 16px; line-height: 1.8;
    color: var(--gray-700, #475569);
    font-style: italic;
    margin: 0 auto 18px;
    max-width: 680px;
}
.tm-block__rating {
    display: flex; justify-content: center; gap: 3px;
    margin-bottom: 12px;
    font-size: 16px;
    letter-spacing: 1px;
}
.tm-block__rating .is-on  { color: var(--gold, #c8a951); }
.tm-block__rating .is-off { color: #ddd; }
.tm-block__author {
    font-weight: 700;
    color: var(--navy, #1a1a2e);
    font-size: 14px;
}
.tm-block__role {
    color: var(--gray-500, #94a3b8);
    font-size: 13px;
    margin-top: 2px;
}

/* ── Săgeți prev/next ── */
.tm-block__nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    color: var(--navy, #1a1a2e);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    padding: 0;
    z-index: 2;
}
.tm-block__nav:hover {
    background: var(--navy, #1a1a2e);
    color: var(--gold, #c8a951);
    border-color: var(--navy, #1a1a2e);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.05);
}
.tm-block__nav--prev { left: -8px; }
.tm-block__nav--next { right: -8px; }

/* ── Counter + dots ── */
.tm-block__pager {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    margin-top: 24px;
}
.tm-block__counter {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: inherit;
    font-size: 12px;
    color: var(--gray-500, #94a3b8);
    font-variant-numeric: tabular-nums;
    background: #f8fafc;
    border: 1px solid #eef0f4;
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 600;
}
.tm-block__counter-current {
    color: var(--navy, #1a1a2e);
    font-weight: 800;
    font-size: 13px;
}
.tm-block__counter-sep { opacity: 0.5; }

.tm-block__dots {
    display: flex; gap: 7px; justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}
.tm-block__dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #ddd; border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}
.tm-block__dot:hover { background: #c8a95180; transform: scale(1.2); }
.tm-block__dot.is-active {
    background: var(--gold, #c8a951);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.2);
}
/* Dots ascunse când sunt prea multe (paginare cu fereastră) */
.tm-block__dot.is-hidden { display: none; }

@media (max-width: 768px) {
    .tm-block__viewport { min-height: 360px; }
    .tm-block__slide { padding: 0 8px; }
    .tm-block__photo { width: 72px; height: 72px; }
    .tm-block__photo--placeholder { font-size: 28px; }
    .tm-block__nav { width: 36px; height: 36px; }
    .tm-block__nav--prev { left: -4px; }
    .tm-block__nav--next { right: -4px; }
    .tm-block__text { font-size: 14.5px; line-height: 1.7; }
    .tm-block__quote { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .tm-block__slide { transition: none; }
    .tm-block__nav, .tm-block__dot { transition: none; }
}
