/* Testimonial Craft for Elementor - Styles */

.testimonial-craft-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px 20px;
    position: relative;
    background-color: #f5f5f5;
}

.testimonial-craft-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-craft-item {
    display: none;
    background-color: #ffffff;
    padding: 60px 80px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-craft-item.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rating Stars */
.testimonial-craft-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.testimonial-craft-star {
    font-size: 28px;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.testimonial-craft-star.active {
    color: #FFD700;
}

/* Content */
.testimonial-craft-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.testimonial-craft-content p {
    margin: 0 0 15px 0;
}

.testimonial-craft-content p:last-child {
    margin-bottom: 0;
}

/* Separator */
.testimonial-craft-separator {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    margin-bottom: 40px;
    border-radius: 2px;
}

/* Author Section */
.testimonial-craft-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonial-craft-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #f0f0f0;
}

.testimonial-craft-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-craft-author-info {
    flex: 1;
}

.testimonial-craft-author-name {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.testimonial-craft-author-title {
    font-size: 14px;
    color: #666666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Pagination Dots */
.testimonial-craft-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    position: relative;
}

.testimonial-craft-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.testimonial-craft-dot:hover {
    background-color: #a0a0a0;
}

.testimonial-craft-dot.active {
    background-color: #FFD700;
    border-color: #FFA500;
    transform: scale(1.2);
}

/* Navigation Arrows */
.testimonial-craft-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.testimonial-craft-nav:hover {
    background-color: #FFD700;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.testimonial-craft-nav.prev {
    left: 20px;
}

.testimonial-craft-nav.next {
    right: 20px;
}

/* Elementor Editor Specific Styles */
.elementor-widget-testimonial-craft .testimonial-craft-container {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonial-craft-item {
        padding: 50px 60px;
    }
}

@media (max-width: 768px) {
    .testimonial-craft-container {
        padding: 30px 15px;
    }
    
    .testimonial-craft-item {
        padding: 40px 30px;
    }
    
    .testimonial-craft-content {
        font-size: 16px;
    }
    
    .testimonial-craft-avatar {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-craft-author-name {
        font-size: 18px;
    }
    
    .testimonial-craft-author-title {
        font-size: 12px;
    }
    
    .testimonial-craft-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .testimonial-craft-nav.prev {
        left: 10px;
    }
    
    .testimonial-craft-nav.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .testimonial-craft-container {
        padding: 20px 10px;
    }
    
    .testimonial-craft-item {
        padding: 30px 20px;
    }
    
    .testimonial-craft-content {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .testimonial-craft-rating {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .testimonial-craft-star {
        font-size: 22px;
    }
    
    .testimonial-craft-separator {
        margin-bottom: 30px;
    }
    
    .testimonial-craft-author {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .testimonial-craft-nav {
        display: none;
    }
    
    .testimonial-craft-dots {
        margin-top: 30px;
        gap: 8px;
    }
    
    .testimonial-craft-dot {
        width: 10px;
        height: 10px;
    }
}

/* RTL Support */
[dir="rtl"] .testimonial-craft-author {
    flex-direction: row-reverse;
}

[dir="rtl"] .testimonial-craft-nav.prev {
    left: auto;
    right: 20px;
}

[dir="rtl"] .testimonial-craft-nav.next {
    right: auto;
    left: 20px;
}

/* Print Styles */
@media print {
    .testimonial-craft-nav,
    .testimonial-craft-dots {
        display: none;
    }
    
    .testimonial-craft-item {
        display: block !important;
        page-break-inside: avoid;
    }
}
