/*==================================================
                Testimonials Section
==================================================*/

.testimonials-section {
    padding: 90px 0;
    background: #f5f7fb;
}

/*=========================
        Title
=========================*/

.testimonials-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: #0d6efd;
    margin-bottom: 55px;
}

/*=========================
        Slider
=========================*/

.testimonial-carousel {
    margin: 0;
    overflow: visible !important;  /* ← تغییر اصلی */
    padding: 0 30px;  /* ← اضافه شد */
    position: relative;
}

.testimonial-carousel .slick-slide {
    margin: 0 12px;
}

.testimonial-carousel .slick-list {
    padding: 15px 0;
}

/*=========================
        Card
=========================*/

.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 22px;
    text-align: center;
    min-height: 300px;
    border: 1px solid #edf1f7;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: 0.35s;
    overflow: hidden;
    position: relative;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #39b6ff);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

/*=========================
      Avatar
=========================*/

.testimonial-avatar {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 34px;
    transition: 0.35s;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.08) rotate(-8deg);
}

/*=========================
      Avatar Colors
=========================*/

.avatar-blue {
    background: linear-gradient(135deg, #0d6efd, #39b6ff);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.25);
}

.avatar-green {
    background: linear-gradient(135deg, #00b894, #00d2a8);
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.25);
}

.avatar-orange {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.25);
}

.avatar-purple {
    background: linear-gradient(135deg, #7b61ff, #b388ff);
    box-shadow: 0 10px 25px rgba(123, 97, 255, 0.25);
}

.avatar-red {
    background: linear-gradient(135deg, #ef5350, #ff8a80);
    box-shadow: 0 10px 25px rgba(239, 83, 80, 0.25);
}

.avatar-cyan {
    background: linear-gradient(135deg, #00bcd4, #4dd0e1);
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.25);
}

/*=========================
        Name
=========================*/

.testimonial-name {
    font-size: 21px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 12px;
}

/*=========================
        Stars
=========================*/

.testimonial-stars {
    margin-bottom: 18px;
}

.testimonial-stars i {
    color: #FFC107;
    font-size: 17px;
    margin: 0 2px;
}

/*=========================
        Text
=========================*/

.testimonial-text {
    font-size: 15px;
    line-height: 2;
    color: #555;
}

/*=========================
     Slick Arrows - RTL Fix
=========================*/

/* ====== ریست کامل فلش‌ها ====== */
.testimonial-carousel .slick-prev,
.testimonial-carousel .slick-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15) !important;
    z-index: 9999 !important;
    border: 2px solid #0d6efd !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

/* ====== فلش چپ (رفتن به قبلی) ====== */
.testimonial-carousel .slick-prev {
    right: -25px !important;   /* ← راست برای RTL */
    left: auto !important;
}

/* ====== فلش راست (رفتن به بعدی) ====== */
.testimonial-carousel .slick-next {
    left: -25px !important;    /* ← چپ برای RTL */
    right: auto !important;
}

/* ====== هاور فلش‌ها ====== */
.testimonial-carousel .slick-prev:hover,
.testimonial-carousel .slick-next:hover {
    background: #0d6efd !important;
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.4) !important;
    transform: translateY(-50%) scale(1.08) !important;
}

/* ====== آیکون فلش‌ها ====== */
.testimonial-carousel .slick-prev:before,
.testimonial-carousel .slick-next:before {
    font-family: 'slick' !important;
    font-size: 24px !important;
    color: #0d6efd !important;
    opacity: 1 !important;
    transition: all 0.3s !important;
}

.testimonial-carousel .slick-prev:hover:before,
.testimonial-carousel .slick-next:hover:before {
    color: #ffffff !important;
}

/* ====== برای RTL فلش‌ها رو برعکس کن ====== */
.slick-slider[dir="rtl"] .testimonial-carousel .slick-prev {
    right: -25px !important;
    left: auto !important;
}

.slick-slider[dir="rtl"] .testimonial-carousel .slick-next {
    left: -25px !important;
    right: auto !important;
}

/*=========================
      Slick Dots
=========================*/

.testimonial-carousel .slick-dots {
    bottom: -45px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 !important;
    list-style: none !important;
    position: relative !important;
}

.testimonial-carousel .slick-dots li {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}

.testimonial-carousel .slick-dots li button {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: #d1d9e6 !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    font-size: 0 !important;
}

.testimonial-carousel .slick-dots li button:before {
    display: none !important;
}

.testimonial-carousel .slick-dots li.slick-active button {
    background: #0d6efd !important;
    border-color: #0d6efd !important;
    transform: scale(1.2) !important;
    box-shadow: 0 0 12px rgba(13, 110, 253, 0.4) !important;
}

.testimonial-carousel .slick-dots li button:hover {
    background: #0d6efd !important;
    transform: scale(1.1) !important;
}

/*=========================
      Responsive
=========================*/

@media (max-width: 768px) {
    .testimonial-card {
        min-height: auto;
        padding: 24px 18px;
    }

    .testimonial-avatar {
        width: 66px;
        height: 66px;
        font-size: 30px;
    }

    .testimonial-name {
        font-size: 18px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    /* ====== فلش‌ها در موبایل ====== */
    .testimonial-carousel {
        padding: 0 15px;
    }

    .testimonial-carousel .slick-prev {
        right: -12px !important;
        left: auto !important;
        width: 36px !important;
        height: 36px !important;
    }

    .testimonial-carousel .slick-next {
        left: -12px !important;
        right: auto !important;
        width: 36px !important;
        height: 36px !important;
    }

    .slick-slider[dir="rtl"] .testimonial-carousel .slick-prev {
        right: -12px !important;
        left: auto !important;
    }

    .slick-slider[dir="rtl"] .testimonial-carousel .slick-next {
        left: -12px !important;
        right: auto !important;
    }

    .testimonial-carousel .slick-prev:before,
    .testimonial-carousel .slick-next:before {
        font-size: 18px !important;
    }

    .testimonial-carousel .slick-dots {
        bottom: -35px !important;
        gap: 6px !important;
    }

    .testimonial-carousel .slick-dots li button {
        width: 10px !important;
        height: 10px !important;
    }
}