/* Testimonial Slider Block Styles */
.wpfsc-testimonial-slider {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Color Scheme Variations */
.wpfsc-testimonial-slider.dark-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
}

.wpfsc-testimonial-slider.gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wpfsc-testimonial-slider.coral {
    background: linear-gradient(135deg, #ff7875 0%, #ff6b6b 100%);
    color: white;
}

.wpfsc-testimonial-slider.dark-blue .testimonial-title,
.wpfsc-testimonial-slider.gradient .testimonial-title,
.wpfsc-testimonial-slider.coral .testimonial-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wpfsc-testimonial-slider.dark-blue .testimonial-subtitle,
.wpfsc-testimonial-slider.gradient .testimonial-subtitle,
.wpfsc-testimonial-slider.coral .testimonial-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* Header Section */
.testimonial-header {
    margin-bottom: 3rem;
}

.testimonial-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 1rem 0;
    letter-spacing: -0.025em;
}

.testimonial-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Marquee Container */
.testimonial-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.testimonial-slider {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.testimonial-slider:hover {
    animation-play-state: paused;
}

.testimonial-slide {
    min-width: 400px;
    max-width: 400px;
    flex-shrink: 0;
    opacity: 1;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.testimonial-slide:hover {
    transform: scale(1.05);
    z-index: 2;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Smooth fade edges for better visual effect */
.testimonial-slider-wrapper::before,
.testimonial-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 3;
    pointer-events: none;
}

.testimonial-slider-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, 
        rgba(248, 250, 255, 1) 0%, 
        rgba(248, 250, 255, 0.8) 50%, 
        rgba(248, 250, 255, 0) 100%);
}

.testimonial-slider-wrapper::after {
    right: 0;
    background: linear-gradient(90deg, 
        rgba(248, 250, 255, 0) 0%, 
        rgba(248, 250, 255, 0.8) 50%, 
        rgba(248, 250, 255, 1) 100%);
}

/* Color scheme fade edges */
.wpfsc-testimonial-slider.dark-blue .testimonial-slider-wrapper::before {
    background: linear-gradient(90deg, 
        rgba(30, 58, 138, 1) 0%, 
        rgba(30, 58, 138, 0.8) 50%, 
        rgba(30, 58, 138, 0) 100%);
}

.wpfsc-testimonial-slider.dark-blue .testimonial-slider-wrapper::after {
    background: linear-gradient(90deg, 
        rgba(30, 58, 138, 0) 0%, 
        rgba(30, 58, 138, 0.8) 50%, 
        rgba(30, 58, 138, 1) 100%);
}

.wpfsc-testimonial-slider.gradient .testimonial-slider-wrapper::before {
    background: linear-gradient(90deg, 
        rgba(102, 126, 234, 1) 0%, 
        rgba(102, 126, 234, 0.8) 50%, 
        rgba(102, 126, 234, 0) 100%);
}

.wpfsc-testimonial-slider.gradient .testimonial-slider-wrapper::after {
    background: linear-gradient(90deg, 
        rgba(102, 126, 234, 0) 0%, 
        rgba(102, 126, 234, 0.8) 50%, 
        rgba(102, 126, 234, 1) 100%);
}

.wpfsc-testimonial-slider.coral .testimonial-slider-wrapper::before {
    background: linear-gradient(90deg, 
        rgba(255, 120, 117, 1) 0%, 
        rgba(255, 120, 117, 0.8) 50%, 
        rgba(255, 120, 117, 0) 100%);
}

.wpfsc-testimonial-slider.coral .testimonial-slider-wrapper::after {
    background: linear-gradient(90deg, 
        rgba(255, 120, 117, 0) 0%, 
        rgba(255, 120, 117, 0.8) 50%, 
        rgba(255, 120, 117, 1) 100%);
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    margin: 0 1rem;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    border-radius: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: #2188FB;
    font-family: Georgia, serif;
    background: white;
    padding: 0 1rem;
}

/* Stars */
.testimonial-stars {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fbbf24;
}

/* Testimonial Text */
.testimonial-text {
    font-size: 1.2rem;
    color: #374151;
    line-height: 1.7;
    margin: 0 0 2rem 0;
    font-style: italic;
}

/* Author Section */
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2188FB, #1a6dd5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.author-info {
    text-align: left;
}

.author-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.author-info span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Navigation elements hidden for marquee */
.testimonial-dots,
.testimonial-nav {
    display: none;
}

/* Editor Styles */
.wpfsc-testimonial-slider-editor {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    background: #f9fafb;
}

.testimonial-preview {
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-preview .testimonial-card {
    margin: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
}

.dot.active {
    background: #2188FB;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonial-slide {
        min-width: 350px;
        max-width: 350px;
    }
    
    .testimonial-slider {
        animation-duration: 25s;
    }
}

@media (max-width: 768px) {
    .wpfsc-testimonial-slider {
        padding: 3rem 0;
    }
    
    .testimonial-container {
        padding: 0 1rem;
    }
    
    .testimonial-title {
        font-size: 2rem;
    }
    
    .testimonial-subtitle {
        font-size: 1rem;
    }
    
    .testimonial-slide {
        min-width: 300px;
        max-width: 300px;
    }
    
    .testimonial-slider {
        animation-duration: 20s;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
        margin: 0;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
    }
    
}

@media (max-width: 480px) {
    .testimonial-title {
        font-size: 1.8rem;
    }
    
    .testimonial-slide {
        min-width: 280px;
        max-width: 280px;
    }
    
    .testimonial-card {
        padding: 1.5rem 1rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .testimonial-slider-wrapper::before,
    .testimonial-slider-wrapper::after {
        width: 50px;
    }
}

