/* ── PPros Testimonials Carousel v2 – White/Green Brand ── */
.ppros-carousel-section {
    --pp-bg:      #ffffff;
    --pp-card:    #ffffff;
    --pp-border:  #e2e8f0;
    --pp-green:   #3d7a4f;
    --pp-green2:  #4e9a64;
    --pp-greenlt: #f0f7f2;
    --pp-text:    #1a2332;
    --pp-muted:   #64748b;
    --pp-gold:    #d4a017;
    --pp-grad:    linear-gradient(135deg, #3d7a4f 0%, #4e9a64 60%, #6abf7e 100%);
    --pp-shadow:  0 4px 20px rgba(61,122,79,.10);
    --pp-gap:     24px;

    background: var(--pp-bg);
    padding: 0;
    overflow: hidden;
    width: 100%;
    direction: rtl;
    position: relative;
}

/* Edge fade masks */
.ppros-carousel-section::before,
.ppros-carousel-section::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 140px;
    z-index: 10;
    pointer-events: none;
}
.ppros-carousel-section::before {
    right: 0;
    background: linear-gradient(to left, var(--pp-bg) 0%, transparent 100%);
}
.ppros-carousel-section::after {
    left: 0;
    background: linear-gradient(to right, var(--pp-bg) 0%, transparent 100%);
}

/* Track wrapper */
.ppros-track-wrap {
    overflow: hidden;
    padding: 12px 0;
    direction: ltr; /* force LTR so translateX works correctly regardless of page direction */
}

/* Row gap */
.ppros-row + .ppros-row { margin-top: 0; }

/* The scrolling track */
.ppros-track {
    display: flex;
    gap: var(--pp-gap);
    width: max-content;
    will-change: transform;
    direction: ltr; /* keep LTR on track — cards handle their own text direction */
}

/* ── Card ── */
.ppros-card {
    background: var(--pp-card);
    border: 1.5px solid var(--pp-border);
    border-radius: 16px;
    padding: 22px 24px 18px;
    width: var(--ppros-card-width, 320px);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: border-color .3s, transform .3s, box-shadow .3s;
    cursor: default;
    box-shadow: var(--pp-shadow);
    direction: rtl; /* re-apply RTL inside each card */
    text-align: right;
}

/* Top accent bar */
.ppros-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--pp-grad);
    opacity: 0;
    transition: opacity .3s;
    border-radius: 16px 16px 0 0;
}

.ppros-card:hover {
    border-color: rgba(61,122,79,.35);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(61,122,79,.14), 0 4px 16px rgba(0,0,0,.06);
}
.ppros-card:hover::before { opacity: 1; }

/* Background quote decorative */
.ppros-quote-bg {
    position: absolute;
    bottom: -10px; left: 10px;
    font-size: 80px; line-height: 1;
    color: rgba(61,122,79,.06);
    font-family: Georgia, serif;
    pointer-events: none;
    user-select: none;
    font-weight: 700;
}

/* Stars */
.ppros-stars {
    display: flex;
    flex-direction: row-reverse; /* RTL: stars go right to left */
    justify-content: flex-end;
    gap: 2px;
    margin-bottom: 10px;
}
.ppros-star { color: var(--pp-gold); font-size: 13px; }

/* Content text */
.ppros-card-content {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--pp-muted);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    /* Limit lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.ppros-card-footer {
    display: flex;
    align-items: center;
    gap: 11px;
    border-top: 1px solid var(--pp-border);
    padding-top: 14px;
    position: relative;
    z-index: 1;
}

.ppros-card-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--pp-grad);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(61,122,79,.2);
}

.ppros-card-name {
    font-size: 13px; font-weight: 700;
    color: var(--pp-text); line-height: 1.3;
}
.ppros-card-job {
    font-size: 11.5px; color: var(--pp-green);
    margin-top: 2px; font-weight: 500;
}

/* ── Keyframes ──
   .ppros-to-left  → Row 1: drifts LEFT    (0 → -50%)  seamless loop
   .ppros-to-right → Row 2: drifts RIGHT   starts at -50% so first visible cards
                              are the FIRST set, then moves toward 0 = loop point
*/
@keyframes pprosToLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes pprosToRight {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.ppros-to-left  { animation: pprosToLeft  linear infinite; }
.ppros-to-right { animation: pprosToRight linear infinite; }

/* Legacy class names kept for backward compat */
.ppros-scroll-right { animation: pprosToLeft  linear infinite; }
.ppros-scroll-left  { animation: pprosToRight linear infinite; }

/* Responsive */
@media (max-width: 768px) {
    .ppros-carousel-section::before,
    .ppros-carousel-section::after { width: 50px; }
    .ppros-card { width: 270px !important; padding: 16px 18px 14px; }
    .ppros-card-content { font-size: 12.5px; }
}
