/* =====================================
   TESTIMONIALS – ADVANCED DESIGN
===================================== */

.testimonials-detailed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

/* ===============================
   TESTIMONIAL CARD
================================ */

.testimonial-detailed {
    position: relative;
    padding: 40px 34px 36px;
    border-radius: 26px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.96),
        rgba(248, 250, 252, 0.92)
    );
    border: 1px solid rgba(59, 130, 246, 0.14);
    box-shadow:
        0 22px 44px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: all 0.45s ease;
    animation: testimonialFadeUp 0.8s ease forwards;
    opacity: 0;
}

/* Hover lift */
.testimonial-detailed:hover {
    transform: translateY(-14px);
    box-shadow:
        0 40px 80px rgba(59, 130, 246, 0.22);
}

/* Soft glow overlay */
.testimonial-detailed::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top left,
        rgba(59, 130, 246, 0.18),
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.45s ease;
}

.testimonial-detailed:hover::before {
    opacity: 1;
}

/* ===============================
   RATING
================================ */

.rating {
    font-size: 18px;
    letter-spacing: 2px;
    color: #f59e0b;
    margin-bottom: 16px;
    animation: starPulse 2.5s infinite;
}

/* ===============================
   TESTIMONIAL TEXT
================================ */

.testimonial-detailed p {
    font-size: 15.5px;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 26px;
    position: relative;
}

/* Quotation accent */
.testimonial-detailed p::before {
    content: "“";
    position: absolute;
    top: -22px;
    left: -6px;
    font-size: 64px;
    font-weight: 700;
    color: rgba(59, 130, 246, 0.12);
    line-height: 1;
}

/* ===============================
   AUTHOR
================================ */

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow:
        0 10px 20px rgba(59, 130, 246, 0.35);
    transition: transform 0.4s ease;
}

/* Avatar float */
.testimonial-detailed:hover .author-avatar {
    transform: scale(1.08);
}

/* Name */
.testimonial-author strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

/* Role / company */
.testimonial-author span {
    font-size: 13.5px;
    color: #64748b;
}

/* ===============================
   ANIMATIONS
================================ */

@keyframes testimonialFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes starPulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

/* Stagger entrance */
.testimonial-detailed:nth-child(1) { animation-delay: 0.1s; }
.testimonial-detailed:nth-child(2) { animation-delay: 0.2s; }
.testimonial-detailed:nth-child(3) { animation-delay: 0.3s; }
.testimonial-detailed:nth-child(4) { animation-delay: 0.4s; }
.testimonial-detailed:nth-child(5) { animation-delay: 0.5s; }
.testimonial-detailed:nth-child(6) { animation-delay: 0.6s; }
.testimonial-detailed:nth-child(7) { animation-delay: 0.7s; }
.testimonial-detailed:nth-child(8) { animation-delay: 0.8s; }

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1200px) {
    .testimonials-detailed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .testimonials-detailed {
        grid-template-columns: 1fr;
    }

    .testimonial-detailed {
        padding: 34px 26px;
    }
}
/* =====================================
   VIDEO TESTIMONIAL INFO – ADVANCED
===================================== */

.video-info {
    position: relative;
    padding: 16px 18px;
    margin-top: 14px;
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.95),
        rgba(248, 250, 252, 0.9)
    );
    border: 1px solid rgba(59, 130, 246, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Subtle glow bar */
.video-info::before {
    content: "";
    position: absolute;
    left: -40%;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(59, 130, 246, 0.25),
        transparent
    );
    transition: transform 0.6s ease;
}

/* Hover interaction */
.video-testimonial:hover .video-info {
    transform: translateY(-6px);
    box-shadow:
        0 18px 36px rgba(59, 130, 246, 0.22);
}

.video-testimonial:hover .video-info::before {
    transform: translateX(220%);
}

/* ===============================
   TITLE
================================ */

.video-info strong {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    max-width: 75%;
    transition: color 0.3s ease;
}

/* Hover highlight */
.video-testimonial:hover .video-info strong {
    color: #2563eb;
}

/* ===============================
   DURATION BADGE
================================ */

.video-info span {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    white-space: nowrap;
    transition: all 0.35s ease;
}

/* Pulse on hover */
.video-testimonial:hover .video-info span {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    transform: scale(1.08);
}

/* ===============================
   OPTIONAL ENTRANCE ANIMATION
================================ */

.video-info {
    animation: videoInfoFade 0.7s ease forwards;
    opacity: 0;
}

@keyframes videoInfoFade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger appearance */
.video-testimonial:nth-child(1) .video-info { animation-delay: 0.1s; }
.video-testimonial:nth-child(2) .video-info { animation-delay: 0.25s; }
.video-testimonial:nth-child(3) .video-info { animation-delay: 0.4s; }

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 640px) {
    .video-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .video-info strong {
        max-width: 100%;
    }
}
