* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.testimonial-slider {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 80px;
    background: transparent;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    width: 100%;
}

.testimonial-card {
    min-width: 100%;
    max-width: 100%;
    padding: 0 20px;
    transition: all 0.8s ease;
    opacity: 0.4;
    transform: scale(0.85);
    pointer-events: none;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    pointer-events: auto;
}

.testimonial-card.side {
    opacity: 0.6;
    transform: scale(0.9);
    pointer-events: none;
}

.testimonial-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a574, #c49660);
    border-radius: 15px 15px 0 0;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 3px;
}

.star {
    color: #ffd700;
    font-size: 1.4rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    font-size: 5rem;
    color: #DEC057;
    font-family: Georgia, serif;
    line-height: 0.8;
    font-weight: 300;
    transform: scaleX(0.8) scaleY(1.1);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    font-style: italic;
    text-align: center;
    margin-bottom: 30px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a574, #c49660);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

/* Styles for avatar images */
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* When avatar has image, remove background gradient */
.author-avatar.has-image {
    background: transparent;
}

.author-details h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.author-details .title {
    color: #d4a574;
    font-weight: 500;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.author-details .company {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
}

.control-btn {
    background: white;
    border: 2px solid #d4a574;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    background: #d4a574;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.control-btn:hover svg {
    fill: white;
}

.control-btn svg {
    width: 20px;
    height: 20px;
    fill: #d4a574;
    transition: fill 0.3s ease;
}

.dots-container {
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #d4a574;
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonial-slider {
        max-width: 700px;
    }
    
    .testimonial-content {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .testimonial-slider {
        max-width: 600px;
    }

    .testimonial-card {
        padding: 0 20px;
    }

    .testimonial-content {
        padding: 30px 15px;
        max-width: 500px;
    }

    .testimonial-header {
        flex-direction: column;
        gap: 15px;
    }

    .star-rating {
        align-self: center;
    }

    .quote-icon {
        align-self: center;
        font-size: 4rem;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-top: 20px;
        padding-top: 15px;
    }
    .author-avatar {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonial-slider {
        max-width: 100%;
        margin: 0 5px;
    }

    .testimonial-card {
        padding: 0 5px;
    }

    .testimonial-content {
        padding: 18px 5px;
        min-height: 250px;
        max-width: 100%;
    }

    .quote-icon {
        font-size: 2.2rem;
    }
    .author-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .author-details h4 {
        font-size: 1rem;
    }
    .author-details .title,
    .author-details .company {
        font-size: 0.85rem;
    }
    .testimonial-controls {
        gap: 12px;
        margin-top: 25px;
    }
    .control-btn {
        width: 36px;
        height: 36px;
    }
    .control-btn svg {
        width: 16px;
        height: 16px;
    }
    .dots-container {
        gap: 6px;
    }
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Force container boundaries */
.elementor-widget-testimonial-slider {
    overflow: hidden !important;
    max-width: 100%;
}

.elementor-widget-testimonial-slider .elementor-widget-container {
    overflow: hidden !important;
    max-width: 100%;
}