/**
 * Reyler (testimonials) — görünüş
 * Ekranda 1 kart; hərəkət: inc/reyler.php (mentifyReylerInit)
 */

#reyler .testimonials-container {
    position: relative;
    max-width: 920px;
    width: 100%;
    margin: 0 auto 2.5rem;
    padding: 0 0.5rem;
}

#reyler .testimonials-wrapper {
    container-type: inline-size;
    container-name: rey-viewport;
    overflow: hidden !important;
    position: relative;
    width: 100%;
    border-radius: 20px;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

#reyler .testimonials-wrapper::before,
#reyler .testimonials-wrapper::after {
    display: none !important;
    content: none !important;
}

#reyler #testimonials-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    width: max-content;
    max-width: none;
    gap: 1.5rem;
    padding: 1rem 0 1.25rem;
    margin: 0;
    overflow: visible !important;
    animation: none !important;
    -webkit-animation: none !important;
    transition: none !important;
    -webkit-transition: none !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 1 kart — tam viewport eni */
@container rey-viewport (min-width: 1px) {
    #reyler .testimonial-card {
        flex: 0 0 100cqw;
        width: 100cqw;
        min-width: 100cqw;
        max-width: 100cqw;
    }
}

#reyler .testimonial-card {
    flex: 0 0 var(--rey-card-w, 100%);
    width: var(--rey-card-w, 100%);
    min-width: var(--rey-card-w, 100%);
    max-width: var(--rey-card-w, 100%);
    flex-shrink: 0;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 1.75rem 1.5rem 1.35rem;
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: visible;
    min-height: auto;
    height: auto;
    transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

#reyler .testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.04) 100%);
    z-index: 0;
    pointer-events: none;
}

#reyler .testimonial-card > * {
    position: relative;
    z-index: 1;
}

#reyler .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

#reyler .testimonial-rating {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 0.85rem;
    color: #f59e0b;
    font-size: 0.8rem;
}

#reyler .testimonial-content {
    flex: 1 1 auto;
    margin-bottom: 1.25rem;
    position: relative;
    padding: 1.25rem 1.5rem 1.35rem 1.35rem;
    background-color: #fffbea;
    border-radius: 25px;
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.06),
        0 -2px 10px rgba(15, 23, 42, 0.04),
        4px 0 12px rgba(15, 23, 42, 0.05),
        -4px 0 12px rgba(15, 23, 42, 0.05);
}

#reyler .testimonial-content::before {
    content: '\201C';
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    line-height: 1;
    color: rgba(102, 126, 234, 0.18);
    position: absolute;
    top: 0.65rem;
    left: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

#reyler .testimonial-content p,
#reyler .testimonial-content div,
#reyler .testimonial-content span,
#reyler .testimonial-content li {
    margin: 0;
    padding-left: 1.35rem;
    position: relative;
    z-index: 2;
    background: transparent;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #475569;
    font-style: italic;
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    text-overflow: unset !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

#reyler .testimonial-content p + p {
    margin-top: 0.75rem;
}

#reyler .testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    text-align: left;
}

#reyler .author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e7ff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

#reyler .author-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.2rem;
}

#reyler .author-title {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

#reyler .author-mentor {
    font-size: 0.78rem;
    color: #6366f1;
    margin: 0.25rem 0 0;
    font-weight: 500;
}

#reyler .testimonial-nav-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

#reyler .testimonial-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: #334155;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

#reyler .testimonial-nav-btn:hover {
    transform: scale(1.06);
    color: #4f46e5;
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.2);
}

#reyler .testimonial-cta {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    #reyler .testimonials-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    #reyler #testimonials-track {
        gap: 1rem;
    }

    #reyler .testimonial-card {
        min-height: auto;
        padding: 1.5rem 1.25rem 1.15rem;
    }

    #reyler .testimonial-content p,
    #reyler .testimonial-content div {
        font-size: 0.9rem;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        overflow: visible !important;
    }
}
