/* --- Testimonials Section Styles --- */
.testimonials-section {
    padding: clamp(80px, 12vw, 150px) 0;
    position: relative;
    background: #ffffff; 
    overflow: hidden;
    z-index: 1;
}

.testimonials-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.testimonials-svg-bg {
    width: 100%;
    height: 100%;
    opacity: 0.39; 
    position: absolute; 
    top: 0;
    left: 0;
}

.testimonials-svg-bg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials-fade-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle, transparent 40%, #ffffff 95%);
    box-shadow: inset 0 0 100px 50px #ffffff;
}

.testimonials-content {
    position: relative;
    z-index: 5;
}

.testimonials-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.testimonials-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background-color: rgba(20, 229, 209, 0.05);
    border: 1px solid rgba(20, 229, 209, 0.2);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-teal);
    margin-bottom: 20px;
}

.testimonials-badge i {
    color: var(--primary-cyan);
    font-size: 0.8rem;
}

.testimonials-main-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 20px;
    white-space: nowrap;
}

.testimonials-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-sec);
    line-height: 1.7;
    max-width: 650px;
}

/* Responsive adjustment for title */
@media (max-width: 768px) {
    .testimonials-main-title {
        white-space: normal;
    }
    .testimonials-section {
        padding: 60px 0;
    }
}

/* --- Testimonials Slider --- */
.testimonials-slider-main {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    position: relative;
    direction: ltr; 
}

.testimonials-card-container {
    display: flex;
    gap: 25px;
    will-change: transform;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 20px; 
    padding: 40px 0;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 40%,
        black 60%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 40%,
        black 60%,
        transparent 100%
    );
}

.row-ltr { direction: ltr; }
.row-rtl { direction: rtl; }

.testimonial-item-card {
    min-width: 350px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(20, 229, 209, 0.3);
    border-radius: 24px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    direction: rtl; 
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-meta img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-cyan);
}

.user-name-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.user-name-info span {
    font-size: 0.8rem;
    color: var(--text-sec);
}

.testimonial-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.testimonial-item-card:hover {
    box-shadow: 0 20px 40px rgba(7, 60, 59, 0.12), 
                0 0 15px rgba(20, 229, 209, 0.2);
    
    border-color: var(--primary-cyan);
    transform: translateY(-5px) scale(1.02);
    z-index: 10;
}

.testimonial-item-card:hover .user-meta img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .testimonial-item-card {
        min-width: 290px;
        padding: 20px;
    }
}