.ects-slider {
    --ects-accent: #1EA37D;
    --ects-muted: #B9C8C4;
    --ects-text: #343939;
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-height: 300px;
    direction: ltr;
}

.ects-stage-wrap {
    position: relative;
    min-width: 0;
    direction: rtl;
}

.ects-stage {
    position: relative;
    width: 100%;
    max-width: 600px;
    min-height: 176px;
    margin: 0 auto;
    perspective: 1000px;
}

.ects-card,
.ects-ghost {
    box-sizing: border-box;
    border-radius: 10px;
}

.ects-card {
    position: relative;
    z-index: 3;
    min-height: 158px;
    padding: 20px 24px 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #B6C7C2;
    box-shadow: 0 12px 30px rgba(37, 70, 61, .05);
    direction: rtl;
    transition: opacity .28s ease, transform .28s ease;
}

.ects-card.is-changing {
    opacity: .25;
    transform: translateY(4px) scale(.99);
}

.ects-review {
    position: relative;
    z-index: 2;
    color: var(--ects-text);
    font-size: 15px;
    line-height: 2;
    text-align: right;
    min-height: 76px;
}

.ects-card::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: 12px;
    z-index: 1;
    width: 121px;
    height: 84px;
    background: url('../images/quote.svg') center / contain no-repeat;
    opacity: .92;
    pointer-events: none;
}

.ects-card-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 10px;
}

.ects-person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ects-card-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(30, 163, 125, .28);
}

.ects-person-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ects-name {
    color: var(--ects-text);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.ects-job {
    margin-top: 6px;
    color: #7D8785;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ects-stars {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    color: #FFC250;
    direction: ltr;
    line-height: 1;
    white-space: nowrap;
}

.ects-star {
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    background-color: currentColor;
    -webkit-mask: url('../images/star.svg') center / contain no-repeat;
    mask: url('../images/star.svg') center / contain no-repeat;
}

.ects-star.is-empty {
    opacity: .22;
}

.ects-ghost {
    position: absolute;
    left: 5%;
    right: 5%;
    z-index: 1;
    height: 150px;
    padding: 16px 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, .90);
    border: 1px solid rgba(182, 199, 194, .62);
    box-shadow: 0 10px 26px rgba(37, 70, 61, .06);
    color: #7C8986;
    font-size: 12px;
    line-height: 1.8;
    filter: blur(1.2px);
    opacity: .72;
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}

.ects-ghost::after {
    content: "";
    position: absolute;
    left: 14px;
    bottom: 10px;
    width: 98px;
    height: 68px;
    background: url('../images/quote.svg') center / contain no-repeat;
    opacity: .45;
}

.ects-ghost-prev {
    top: -54px;
    transform: scale(.95);
}

.ects-ghost-next {
    top: 88px;
    transform: translateY(42px) scale(.95);
}

.ects-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    direction: ltr;
}

.ects-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(30, 163, 125, .18);
    cursor: pointer;
    transition: transform .25s ease, background-color .25s ease, opacity .25s ease;
}

.ects-dot:hover {
    transform: scale(1.15);
}

.ects-dot.is-active {
    background: var(--ects-accent);
    transform: scale(1.08);
}

.ects-avatars {
    position: relative;
    width: 64px;
    height: 224px;
    overflow: hidden;
    direction: ltr;
}

.ects-avatars-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 91px 0;
    will-change: transform;
    transition: transform .48s cubic-bezier(.22, .61, .36, 1);
}

.ects-avatar-btn {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    opacity: .28;
    transform: scale(.76);
    transition: opacity .35s ease, transform .35s ease, border-color .35s ease, filter .35s ease, box-shadow .35s ease;
}

.ects-avatar-btn img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.ects-avatar-btn:hover {
    opacity: .82;
    transform: scale(.92);
}

.ects-avatar-btn.is-near {
    opacity: .52;
    transform: scale(.84);
}

.ects-avatar-btn.is-active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--ects-accent);
    box-shadow: 0 4px 14px rgba(30, 163, 125, .18);
}

.ects-avatar-btn:not(.is-active) img {
    filter: saturate(.72);
}

/* موبایل: همان چیدمان دسکتاپ (نقطه‌ها | کارت | آواتارهای عمودی) در ابعاد کوچک‌تر */
@media (max-width: 767px) {
    .ects-slider {
        grid-template-columns: 12px minmax(0, 1fr) 46px;
        align-items: center;
        gap: 10px;
        min-height: 250px;
    }

    .ects-dots {
        gap: 5px;
    }

    .ects-dot {
        width: 7px;
        height: 7px;
    }

    .ects-stage {
        min-height: 150px;
    }

    .ects-card {
        min-height: 138px;
        padding: 14px 14px 12px;
    }

    .ects-review {
        font-size: 12.5px;
        line-height: 1.9;
        min-height: 64px;
    }

    .ects-card::after {
        left: 10px;
        bottom: 8px;
        width: 78px;
        height: 54px;
    }

    .ects-card-footer {
        margin-top: 8px;
    }

    .ects-card-avatar {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .ects-name {
        font-size: 13px;
    }

    .ects-stars {
        gap: 3px;
        margin-top: 5px;
    }

    .ects-star {
        width: 13px;
        height: 13px;
        flex: 0 0 13px;
    }

    .ects-ghost {
        left: 5%;
        right: 5%;
        height: 120px;
        padding: 12px 14px;
        font-size: 11px;
        opacity: .6;
        filter: blur(1.2px);
    }

    .ects-ghost::after {
        width: 66px;
        height: 46px;
    }

    .ects-ghost-prev {
        top: -38px;
        transform: scale(.95);
    }

    .ects-ghost-next {
        top: 70px;
        transform: translateY(34px) scale(.95);
    }

    .ects-avatars {
        width: 46px;
        height: 190px;
        overflow: hidden;
    }

    .ects-avatars-track {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 78px 0;
    }

    .ects-avatar-btn {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ects-card,
    .ects-ghost,
    .ects-dot,
    .ects-avatar-btn {
        transition: none !important;
    }
}
