.testimonials-premium {
    background: transparent;
    padding: 80px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.testimonials-premium::before {
    content: none;
}

.testimonials-premium::after {
    content: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
}

.testimonials-container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-testimonials {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(14, 165, 233, 0.3);
}

.section-subtitle-testimonials {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #cbd5e1;
    line-height: 1.6;
}

.testimonials-grid-wrapper {
    position: relative;
    padding: 0 10px;
}

.testimonials-grid {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.testimonial-card-premium {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 400px;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 38px 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    transition: all 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.5),
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(14, 165, 233, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.testimonial-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1);
    pointer-events: none;
}

.testimonial-card-premium:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(50px);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 
        0 35px 100px rgba(0, 0, 0, 0.6),
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 10px 25px rgba(14, 165, 233, 0.2),
        0 0 60px rgba(14, 165, 233, 0.3),
        0 0 20px rgba(251, 191, 36, 0.15);
}

.testimonial-card-premium:hover::before {
    opacity: 1;
}

.quote-icon-premium {
    font-size: 2.5rem;
    color: #0ea5e9;
    margin-bottom: 20px;
    opacity: 0.3;
    filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.4));
}

.testimonial-text-premium {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e2e8f0;
    font-weight: 300;
    font-style: italic;
    flex: 1;
    margin-bottom: 22px;
    text-align: left;
    border: none;
    padding: 0;
}

/* Video testimonial styles */
.testimonial-video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-video-container {
    aspect-ratio: 16 / 9;
}

@supports not (aspect-ratio: 16 / 9) {
    .testimonial-video-container::before {
        content: "";
        display: block;
        padding-top: 56.25%; /* 9/16 = 0.5625 → 56.25% */
    }
    .testimonial-video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.testimonial-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    border-radius: 28px 28px 0 0;
}

.testimonial-card-premium[data-type="video"] {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.testimonial-card-premium[data-type="video"] .testimonial-video-container iframe {
    border-radius: 28px 28px 0 0;
    object-fit: contain;
    height: 100%;
    width: 100%;
    object-position: center center;
}

.testimonial-card-premium[data-type="video"] .testimonial-author-premium {
    padding: 22px 32px 30px 32px;
    margin: 0;
    border-radius: 0 0 28px 28px;
}

.testimonial-card-premium[data-type="video"] .quote-icon-premium {
    display: none;
}

.testimonial-author-premium {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.author-avatar-premium {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 2px solid rgba(14, 165, 233, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
    overflow: hidden;
}

.author-avatar-premium .author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-card-premium:hover .author-avatar-premium {
    border-color: rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(14, 165, 233, 0.2) 100%);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.author-info-premium {
    flex: 1;
}

.author-name-premium {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
    letter-spacing: 0.02em;
}

.author-title-premium {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #94a3b8;
    margin: 0;
}

.testimonials-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.testimonial-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(96, 213, 248, 0.3);
    color: #60d5f8;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    cursor: pointer;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
}

.testimonial-nav-btn:hover:not(:disabled) {
    background: rgba(96, 213, 248, 0.15);
    border-color: rgba(96, 213, 248, 0.5);
    color: #60d5f8;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(96, 213, 248, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.testimonial-nav-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(1.02);
}

.testimonial-nav-btn:disabled {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(96, 213, 248, 0.1);
    color: rgba(96, 213, 248, 0.3);
    cursor: not-allowed;
    opacity: 0.4;
    box-shadow: none;
}

@media (min-width: 1600px) {
    .testimonial-card-premium {
        flex: 0 0 calc(32% - 20px);
        min-width: 450px;
        max-width: 600px;
    }
}

@media (min-width: 1400px) and (max-width: 1599px) {
    .testimonial-card-premium {
        flex: 0 0 calc(33.333% - 20px);
        min-width: 420px;
        max-width: 550px;
    }
}

@media (max-width: 1399px) and (min-width: 1201px) {
    .testimonial-card-premium {
        flex: 0 0 calc(33.333% - 20px);
        min-width: 400px;
        max-width: 520px;
    }
}

@media (max-width: 1200px) {
    .section-title-testimonials {
        font-size: 2.5rem;
    }
    
    .section-subtitle-testimonials {
        font-size: 1rem;
    }
    
    .testimonial-card-premium {
        flex: 0 0 calc(50% - 15px);
        min-width: 340px;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .testimonials-premium {
        padding: 60px 25px;
    }
    
    .section-title-testimonials {
        font-size: 2rem;
        letter-spacing: 0.06em;
        margin-bottom: 12px;
    }
    
    .section-subtitle-testimonials {
        font-size: 0.95rem;
    }
    
    .testimonials-header {
        margin-bottom: 40px;
    }
    
    .testimonials-grid-wrapper {
        padding: 0 5px;
    }
    
    .testimonials-grid {
        gap: 20px;
    }
    
    .testimonial-card-premium {
        flex: 0 0 100%;
        min-width: calc(100vw - 90px);
        max-width: 450px;
        min-height: 360px;
        padding: 32px 28px;
    }
    
    .testimonial-card-premium[data-type="video"] {
        min-height: 360px;
        max-height: 420px;
    }
    
    .testimonial-card-premium[data-type="video"] .testimonial-author-premium {
        padding: 18px 28px 24px 28px;
    }
    
    .quote-icon-premium {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .testimonial-text-premium {
        font-size: 1rem;
        margin-bottom: 18px;
    }
    
    .author-avatar-premium {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .author-name-premium {
        font-size: 1rem;
    }
    
    .author-title-premium {
        font-size: 0.85rem;
    }
    
    .testimonials-controls {
        margin-top: 40px;
    }
    
    .testimonial-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .testimonials-premium {
        padding: 50px 15px;
    }
    
    .section-title-testimonials {
        font-size: 1.6rem;
        letter-spacing: 0.05em;
    }
    
    .section-subtitle-testimonials {
        font-size: 0.9rem;
    }
    
    .testimonials-grid-wrapper {
        padding: 0 5px;
    }
    
    .testimonial-card-premium {
        min-width: calc(100vw - 70px);
        max-width: 400px;
        min-height: 340px;
        padding: 28px 24px;
    }
    
    .testimonial-card-premium[data-type="video"] {
        min-height: 340px;
        max-height: 400px;
    }
    
    .testimonial-card-premium[data-type="video"] .testimonial-author-premium {
        padding: 16px 24px 20px 24px;
    }
    
    .quote-icon-premium {
        font-size: 1.8rem;
    }
    
    .testimonial-text-premium {
        font-size: 0.95rem;
    }
    
    .testimonial-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

