/* testimonials.css — أنماط خاصة بهذه الصفحة وحدها.
   المرحلة 3: كانت مكتوبة داخل <style> فى الـ View، تنزل مع كل
   طلب ولا يستطيع المتصفح تخزينها. الآن ملف مستقل قابل للتخزين. */

.testimonials-page {
    --t-primary: #0a0a0a;
    --t-dark: #1a1a1a;
    --t-accent: #d4a017;
    --t-accent-bright: #f0c75e;
    --t-soft: #faf6ec;
    --t-border: #e8dfc4;
    direction: rtl;
}

/* ============ HERO ============ */
.testimonials-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(212,160,23,.22), transparent 30%),
        linear-gradient(135deg, #0a0a0a 0%, #000000 58%, #1a1a1a 100%);
    color: #fff;
    padding: 92px 0 74px;
    text-align: center;
}

    .testimonials-hero::after {
        content: "";
        position: absolute;
        left: -120px;
        bottom: -180px;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(255,255,255,.07);
    }

    .testimonials-hero .container {
        position: relative;
        z-index: 2;
    }

.testimonials-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    color: #f0c75e;
    font-weight: 800;
    margin-bottom: 18px;
}

.testimonials-hero h1 {
    font-size: clamp(2.2rem, 4vw, 4.25rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 18px;
}

.testimonials-hero p {
    max-width: 820px;
    margin: 0 auto;
    color: rgba(255,255,255,.84);
    font-size: 1.15rem;
    line-height: 1.9;
}

/* ============ STATS STRIP ============ */
.testimonials-stats {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: 22px;
    padding: 22px 28px;
    margin-top: -40px;
    position: relative;
    z-index: 3;
    box-shadow: 0 24px 50px rgba(26,26,26,.10);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
}

.t-stat {
    text-align: center;
    border-inline-end: 1px solid var(--t-border);
    padding: 4px 12px;
}

    .t-stat:last-child { border-inline-end: none; }

    .t-stat .t-stat-num {
        font-size: 2rem;
        font-weight: 900;
        color: var(--t-accent);
        line-height: 1;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

        .t-stat .t-stat-num i {
            font-size: 1.4rem;
            color: var(--t-accent-bright);
        }

    .t-stat .t-stat-label {
        font-size: .88rem;
        color: var(--t-dark);
        font-weight: 700;
    }

/* ============ SECTION ============ */
.testimonials-section {
    padding: 60px 0 72px;
    background: linear-gradient(180deg, #fff 0%, #fffaf3 100%);
}

.testimonials-title {
    text-align: center;
    margin-bottom: 40px;
}

    .testimonials-title span {
        color: var(--t-accent);
        font-weight: 900;
    }

    .testimonials-title h2 {
        margin-top: 8px;
        color: var(--t-dark);
        font-weight: 900;
    }

/* ============ FEATURED CARD (first) ============ */
.testimonial-featured {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(26,26,26,.10);
    margin-bottom: 32px;
}

.testimonial-featured-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 0;
}

.testimonial-featured-video {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 9;
    min-height: 100%;
}

    .testimonial-featured-video iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

.testimonial-featured-body {
    padding: 36px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .testimonial-featured-body .t-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: linear-gradient(135deg, var(--t-accent), var(--t-accent-bright));
        color: #111;
        font-weight: 900;
        font-size: .8rem;
        padding: 5px 12px;
        border-radius: 999px;
        margin-bottom: 14px;
        width: fit-content;
    }

        .testimonial-featured-body .t-badge i { font-size: .72rem; }

    .testimonial-featured-body h3 {
        color: var(--t-primary);
        font-weight: 900;
        font-size: 1.55rem;
        margin-bottom: 14px;
        line-height: 1.35;
    }

    .testimonial-featured-body .t-customer {
        color: var(--t-accent);
        font-weight: 800;
        font-size: 1rem;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .testimonial-featured-body .t-customer i { font-size: .9rem; }

    .testimonial-featured-body p {
        color: #5b5f6a;
        line-height: 1.85;
        margin-bottom: 18px;
    }

.t-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.t-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--t-soft);
    border: 1px solid var(--t-border);
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--t-dark);
}

    .t-chip i {
        color: var(--t-accent);
        font-size: .74rem;
    }

/* ============ TESTIMONIAL CARDS GRID ============ */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: 22px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 32px rgba(26,26,26,.07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .testimonial-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 48px rgba(26,26,26,.13);
        border-color: rgba(212,160,23,.45);
    }

.testimonial-card-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

    .testimonial-card-video iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

    /* poster / thumbnail لتحميل YouTube بشكل lazy عند الـ click فقط */
    .testimonial-card-video .t-poster {
        position: absolute;
        inset: 0;
        cursor: pointer;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: filter .25s ease;
    }

        .testimonial-card-video .t-poster::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 100%);
        }

        .testimonial-card-video .t-poster:hover {
            filter: brightness(1.05);
        }

        .testimonial-card-video .t-poster .t-play-btn {
            position: relative;
            z-index: 1;
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: rgba(212,160,23,.92);
            color: #0a0a0a;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            box-shadow: 0 12px 28px rgba(0,0,0,.35), 0 0 0 8px rgba(255,255,255,.18);
            transition: transform .25s ease, background .25s ease;
        }

            .testimonial-card-video .t-poster:hover .t-play-btn {
                transform: scale(1.08);
                background: var(--t-accent-bright);
            }

.testimonial-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

    .testimonial-card-body .t-customer {
        color: var(--t-accent);
        font-weight: 800;
        font-size: .92rem;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .testimonial-card-body .t-customer i { font-size: .8rem; }

    .testimonial-card-body h3 {
        color: var(--t-primary);
        font-weight: 900;
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .testimonial-card-body p {
        color: #5b5f6a;
        line-height: 1.75;
        font-size: .92rem;
        margin-bottom: 14px;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

/* ============ CTA ============ */
.testimonials-cta {
    margin-top: 56px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 26px;
    padding: 38px 32px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .testimonials-cta::before {
        content: "";
        position: absolute;
        top: -80px;
        right: -80px;
        width: 240px;
        height: 240px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(212,160,23,.25), transparent 70%);
    }

    .testimonials-cta h3 {
        font-weight: 900;
        font-size: 1.5rem;
        margin-bottom: 8px;
        position: relative;
    }

    .testimonials-cta p {
        color: rgba(255,255,255,.82);
        margin-bottom: 22px;
        position: relative;
    }

    .testimonials-cta .btn-group-cta {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
        position: relative;
    }

    .testimonials-cta .btn-cta {
        background: var(--t-accent);
        border: none;
        color: #111;
        font-weight: 900;
        padding: 12px 26px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
        text-decoration: none;
    }

        .testimonials-cta .btn-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 28px rgba(212,160,23,.4);
            background: var(--t-accent-bright);
            color: #111;
        }

    .testimonials-cta .btn-cta-outline {
        background: transparent;
        border: 2px solid rgba(255,255,255,.32);
        color: #fff;
    }

        .testimonials-cta .btn-cta-outline:hover {
            background: rgba(255,255,255,.10);
            color: #fff;
            box-shadow: none;
        }

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .testimonial-featured-grid { grid-template-columns: 1fr; }
    .testimonial-featured-body { padding: 28px 26px; }
}

@media (max-width: 767px) {
    .testimonials-hero { padding: 70px 0 54px; }
    .testimonials-stats { padding: 18px; gap: 14px; margin-top: -20px; }
    .t-stat { border-inline-end: none; border-bottom: 1px solid var(--t-border); padding-bottom: 12px; }
    .t-stat:last-child { border-bottom: none; padding-bottom: 4px; }
    .t-stat .t-stat-num { font-size: 1.6rem; }
    .testimonial-featured-body h3 { font-size: 1.25rem; }
    .testimonial-card-video .t-poster .t-play-btn { width: 56px; height: 56px; font-size: 1.3rem; }
}
