/* Premium Reviews Styling */
:root {
    --review-card-bg: #ffffff;
    --review-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --review-card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --review-text-color: #5e6d82;
    --review-title-color: #1a2542;
}

.testimonials-area {
    position: relative;
}

/* Background Shapes */
.review-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
}
.review-shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(26, 182, 157, 0.1); /* Primary color */
    top: -100px;
    left: -100px;
}
.review-shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(241, 77, 93, 0.05); /* Secondary color */
    bottom: -150px;
    right: -100px;
}

.reviews-scroll-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 40px 0;
}

.reviews-track {
    display: flex;
    width: max-content;
    animation: scrollReviews var(--reviews-duration, 50s) linear infinite;
}

.reviews-track:hover {
    animation-play-state: paused !important;
}

.review-item {
    width: 420px;
    margin: 0 20px;
    flex-shrink: 0;
}

.premium-review-card {
    background: var(--review-card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--review-card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}

.premium-review-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--review-card-hover-shadow);
    border-color: rgba(26, 182, 157, 0.2);
}

.review-header {
    border-color: rgba(0,0,0,0.05) !important;
}

.quote-icon-wrap {
    font-size: 30px;
    color: rgba(26, 182, 157, 0.15);
    line-height: 1;
}

.review-content-wrapper {
    max-height: 150px;
    overflow-y: auto;
    padding-inline-end: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--site-primary, #1ab69d) #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.review-content-wrapper::-webkit-scrollbar {
    width: 4px;
}

.review-content-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.review-content-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--site-primary, #1ab69d);
    border-radius: 10px;
}

.comment-text {
    color: var(--review-text-color);
    font-size: 16px;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 0;
}

.comment-text.text-rtl {
    text-align: justify;
    direction: rtl;
    font-style: normal; /* Often looks better for Arabic */
}

.user-avatar-wrap .avatar, 
.user-avatar-wrap .avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    background: var(--site-primary, #1ab69d);
    box-shadow: 0 5px 15px rgba(26, 182, 157, 0.2);
}

.user-name {
    color: var(--review-title-color);
    font-weight: 700;
    font-size: 18px;
}

.user-designation {
    color: var(--site-secondary, #f14d5d);
    font-size: 14px;
    font-weight: 500;
}

.star-active {
    color: #ffb800;
}

.star-inactive {
    color: #e2e8f0;
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-460px * var(--reviews-count, 10)));
    }
}

/* RTL Support for Animation */
[dir="rtl"] .reviews-track {
    animation-name: scrollReviewsRTL;
}

@keyframes scrollReviewsRTL {
    0% {
        transform: translateX(0);
    }
    100% {
        /* In RTL, translating negatively still moves content to the left relative to its starting right position */
        transform: translateX(calc(-460px * var(--reviews-count, 10)));
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .review-item {
        width: 320px;
    }
    .premium-review-card {
        padding: 25px;
    }
    @keyframes scrollReviews {
        100% { transform: translateX(calc(-360px * var(--reviews-count, 10))); }
    }
    @keyframes scrollReviewsRTL {
        100% { transform: translateX(calc(360px * var(--reviews-count, 10))); }
    }
}