﻿
/* الحاوية الرئيسية للسكشن */
#testimonials {
    padding: 80px 0;
    background: transparent;
    direction: rtl;
}

    /* العنوان */
    #testimonials .section-title {
        text-align: center;
        font-size: 28px;
        margin-bottom: 50px;
        color: #333;
    }

/* حاوية السلايدر الرئيسية */
.testimonials-slider-container {
    position: relative;
    margin: 50px 0;
    background: transparent;
    padding: 20px 0;
}

/* الحاوية المخفية للكاردات */
.testimonials-viewport {
    overflow: hidden;
    position: relative;
}

/* المسار الذي تتحرك عليه الكاردات */
.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* تصميم الكارد */
.testimonial-card {
    flex: 0 0 380px;
    height: 300px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    transform: scale(1);
}

    .testimonial-card:hover {
        transform: scale(1.05) translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        border-color: #facc15;
        z-index: 10;
    }

    /* خط ذهبي في الأعلى */
    .testimonial-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #facc15, #ffd12d, #facc15);
        border-radius: 20px 20px 0 0;
    }

/* محتوى الكارد */
.testimonial-content {
    padding: 30px 25px 25px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* أيقونة الاقتباس */
.quote-icon {
    position: absolute;
    top: -12px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #facc15, #ffd12d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(254, 200, 0, 0.3);
    border: 3px solid #ffffff;
}

    .quote-icon i {
        font-size: 2.2rem;
        color: #ffffff;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }

/* نص الشهادة */
.testimonial-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #333;
    margin: 25px 0 20px 0;
    text-align: right;
    direction: rtl;
    flex-grow: 1;
    height: 130px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* المعلومات السفلية */
.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.author-info {
    flex: 1;
    text-align: right;
}

.author-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.author-title {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.4;
    display: block;
}

/* النجوم */
.rating {
    display: flex;
    gap: 3px;
    margin-left: 15px;
    align-items: center;
}

    .rating i {
        font-size: 1.6rem;
        color: #facc15;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }

/* أزرار التنقل */
.testimonials-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #facc15;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(254, 200, 0, 0.3);
}

    .testimonials-nav:hover {
        transform: translateY(-50%) scale(1.1);
        background: #e6b800;
        box-shadow: 0 6px 20px rgba(254, 200, 0, 0.5);
    }

    .testimonials-nav:active {
        transform: translateY(-50%) scale(0.95);
    }

    .testimonials-nav.prev {
        left: -25px;
    }

    .testimonials-nav.next {
        right: -25px;
    }

    .testimonials-nav:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: translateY(-50%) scale(1);
    }

        .testimonials-nav:disabled:hover {
            background: #ccc;
            box-shadow: 0 4px 15px rgba(204, 204, 204, 0.3);
        }

/* مؤشرات */
.testimonials-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(250, 204, 21, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .testimonial-indicator.active {
        background: #facc15;
        transform: scale(1.2);
    }

    .testimonial-indicator:hover {
        background: #facc15;
    }

/* استجابة الشاشات */

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 320px;
        height: 280px;
    }

    .testimonials-track {
        gap: 20px;
    }

    .testimonial-content {
        padding: 25px 20px 20px;
    }

    .testimonial-text {
        font-size: 1.3rem;
        height: 110px;
        -webkit-line-clamp: 4;
    }

    .author-name {
        font-size: 1.4rem;
    }

    .author-title {
        font-size: 1.1rem;
    }

    .quote-icon {
        width: 45px;
        height: 45px;
        right: 15px;
        top: -10px;
    }

        .quote-icon i {
            font-size: 1.8rem;
        }

    .rating i {
        font-size: 1.4rem;
    }

    .testimonials-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

        .testimonials-nav.prev {
            left: -22px;
        }

        .testimonials-nav.next {
            right: -22px;
        }
}

@media (max-width: 480px) {
    .testimonial-card {
        flex: 0 0 280px;
        height: 260px;
    }

    .testimonials-track {
        gap: 15px;
    }

    .testimonial-content {
        padding: 20px 15px 15px;
    }

    .testimonial-text {
        font-size: 1.2rem;
        height: 100px;
        -webkit-line-clamp: 4;
    }

    .testimonial-footer {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .rating {
        margin-left: 0;
    }

    .testimonials-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

        .testimonials-nav.prev {
            left: -20px;
        }

        .testimonials-nav.next {
            right: -20px;
        }
}
