/* Testimonials Section Styles */
.testimonials-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    position: relative;
}

.testimonials-section .main-title {
    color: #2d3748;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Testimonials Slider */
.testimonials-slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    direction: ltr;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.testimonials-slider-wrapper.is-dragging {
    cursor: grabbing;
}

.testimonials-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    height: auto;
    direction: ltr;
    will-change: transform;
}

.testimonials-track.is-dragging {
    transition: none;
}

.testimonial-slide {
    flex-shrink: 0;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

.testimonial-slide .testimonial-card {
    width: 100%;
    margin: 0 auto;
}

/* Mobile: Show 1 slide at a time */
@media (max-width: 768px) {
    .testimonial-slide {
        flex: 0 0 100%;
        padding: 0;
    }
    
    .testimonial-slide .testimonial-card {
        max-width: 500px;
    }
}

/* Tablet: Show 2 slides at once */
@media (min-width: 769px) and (max-width: 1199px) {
    .testimonial-slide {
        flex: 0 0 50%;
    }
}

/* Desktop: Show 3 slides at once */
@media (min-width: 1200px) {
    .testimonial-slide {
        flex: 0 0 33.333333%;
    }
    
    .testimonial-slide .testimonial-card {
        max-width: 100%;
    }
}

/* Force proper display for testimonial cards */
.testimonial-card {
    width: 100%;
    min-height: 200px;
}

.testimonial-slide {
    min-height: 200px;
}

.testimonial-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); */
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible; /* Allow quote images to extend outside */
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.testimonial-card:hover {
    transform: translateY(-5px) !important;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); */
}

/* .testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 4rem;
    color: #667eea;
    font-family: serif;
    line-height: 1;
} */

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.testimonial-stars i {
    color: #fbbf24;
    font-size: 1.2rem;
}

/* .testimonial-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
} */

.testimonial-text {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    font-style: italic;
    width: 88%;
    margin: auto;
}

.testimonial-author {
    margin-top: auto;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-right: 12%;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.author-details {
    text-align: right;
}

.author-name {
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.author-title {
    color: #718096;
    font-size: 0.9rem;
}

/* Testimonials Dots */
.testimonials-dots {
    margin-top: 2rem;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e0;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #667eea;
    transform: scale(1.2);
}

.dot:hover {
    background-color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .testimonial-prev {
        left: -15px;
    }
    
    .testimonial-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-section .main-title {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-card::before {
        font-size: 3rem;
        top: -5px;
        right: 15px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
    
    .author-info {
        flex-direction: row;
        text-align: center;
        gap: 0.75rem;
        justify-content: flex-start;
        margin-right: 10%;
    }
    
    .author-details {
        text-align: right;
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonial-prev {
        left: 10px;
    }
    
    .testimonial-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonials-section .main-title {
        font-size: 1.8rem;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
    
    .author-name {
        font-size: 14px;
    }
    
    .author-title {
        font-size: 0.85rem;
    }
    
    .author-info {
        flex-direction: row;
        justify-content: flex-start;
        margin-right: 10%;
    }
    
    .author-details {
        text-align: right;
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
    }
}

/* Hover effects */
.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-stars i {
    color: #f59e0b;
    transition: color 0.3s ease;
}

.testimonial-content {
    position: relative;
    /* flex-grow: 1;
    margin-bottom: 1.5rem; */
}

/* Quote Images Styling */
.qoute1 {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 25px;
    height: 25px;
    opacity: 0.4;
    z-index: 1;
}

.qoute2 {
    display: inline-block;
    width: 20px;
    height: 20px;
    opacity: 0.6;
    margin: 0; /* إزالة جميع المسافات */
    vertical-align: text-bottom;
}

.testimonial-text {
    position: relative;
    z-index: 2;
    padding: 10px 15px;
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    font-style: italic;
    display: flex;
}

.qoute1 {
    position: absolute;
    top: 0;
    right: 0;
}

.qoute2 {
    position: absolute;
    bottom:0;
    left:0
}
