/* ==========================================
   TESTIMONIALS COMPONENT - Premium Design
   Connected to Dashboard fields:
   name, title, content, image, review_image, rating
========================================== */

/* SECTION */
.testimonials-section {
    padding: 5rem 0;
    background: #f8f9fb;
    overflow: hidden;
}

/* HEADER */
.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.2;
}

/* ==========================================
   CAROUSEL STRUCTURE
========================================== */
.testimonials-carousel-wrapper {
    position: relative;
}

.testimonials-viewport {
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonials-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    min-width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.25rem 1.5rem;
}

/* ==========================================
   CARD - Premium Design
========================================== */
.testimonial-card-new {
    background: #ffffff;
    border-radius: 24px;
    border: 1.5px solid #eef0f5;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    cursor: default;
}

.testimonial-card-new:hover {
    transform: translateY(-6px);
    border-color: #1A3263;
    box-shadow: 0 16px 40px rgba(26, 50, 99, 0.12);
}

.t-stars {
    color: #FEC303;
}
.t-customer {
    font-weight: 600;
    color: #1B2E55;
    display: flex;
    gap: 20px;
}



/* Review Image (from dashboard: review_image) */
.t-review-img {
    width: 30%;
    height: 50px;
    border-radius: 14px;
    overflow: hidden;

    /* background: #f1f3f8;
}

.t-review-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.testimonial-card-new:hover .t-review-img img {
    transform: scale(1.04);
}

/* Placeholder when no review_image */
    .t-review-placeholder {
        width: 100%;
        height: 80px;
        border-radius: 14px;
        background: linear-gradient(135deg, #f0f3f9 0%, #e8edf5 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .t-quote-icon {
        font-size: 2rem;
        color: #1A3263;
        opacity: 0.2;
    }

    /* Stars */
    .t-stars {
        display: flex;
        gap: 4px;
        align-items: center;
    }

    .t-stars .fa-star {
        color: #d4a017;
        font-size: 16px;
    }

    .t-star-empty {
        color: #d1d5db;
        font-size: 16px;
    }

    /* Content Text */
    .t-content {
        font-size: 14px;
        line-height: 1.85;
        color: #4B5563;
        flex: 1;
        min-height: 60px;
    }

    /* Divider */
    .t-divider {
        height: 1px;
        background: #f0f2f6;
        margin: 0.25rem 0;
    }

    /* Customer Info */
    .t-customer {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    /* Avatar: صورة من الداش بورد أو أول حرف */
    .t-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #1A3263;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        overflow: hidden;
        border: 2px solid #eef0f5;
    }

    .t-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .t-avatar span {
        color: #ffffff;
        font-size: 20px;
        font-weight: 800;
    }

    .t-customer-info {
        flex: 1;
        min-width: 0;
    }

    /* الاسم (من الداش بورد: name) */
    .t-name {
        font-size: 15px;
        font-weight: 800;
        color: #1A3263;
        margin: 0 0 2px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* المسمى الوظيفي (من الداش بورد: title) */
    .t-title {
        font-size: 12px;
        color: #6B7280;
        margin: 0;
        font-weight: 500;
    }

    /* ==========================================
   NAVIGATION
========================================== */
    .testimonials-nav-area {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .testimonials-nav-btn {
        width: 46px;
        height: 46px;
        background: #ffffff;
        border: 2px solid #E5E7EB;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: #1A3263;
        font-size: 16px;
        flex-shrink: 0;
    }

    .testimonials-nav-btn:hover {
        background: #1A3263;
        color: #ffffff;
        border-color: #1A3263;
        box-shadow: 0 6px 15px rgba(26, 50, 99, 0.25);
        transform: scale(1.05);
    }

    .testimonials-pagination {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .testimonials-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #D1D5DB;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        padding: 0;
    }

    .testimonials-dot.active {
        background: #1A3263;
        width: 24px;
        border-radius: 4px;
    }

    /* ==========================================
   RESPONSIVE
========================================== */
    @media (max-width: 1024px) {
        .testimonials-page {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .testimonials-section {
            padding: 3rem 0;
        }

        .testimonials-page {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .testimonial-card-new {
            padding: 1.25rem;
        }

        .t-review-img {
            height: 100px;
        }

        .t-content {
            font-size: 13px;
        }

        .t-name {
            font-size: 14px;
        }

        .testimonials-nav-btn {
            width: 40px;
            height: 40px;
            font-size: 14px;
        }
    }

    @media (max-width: 480px) {
        .testimonials-header {
            margin-bottom: 2rem;
        }

        .testimonials-page {
            padding: 0.25rem 0 1rem;
        }
    }