.testimonials-container {
    max-width: 1200px;
    width: 90%;
    padding: 40px 20px;
    text-align: center;
    margin: 0 auto;
    background-color: #fff;
}

.section-title {
    font-size: 38px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.divider {
    position: relative;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.divider::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 1px;
    background-color: #ff5100;
}

.divider-icon {
    position: relative;
    font-size: 24px;
    color: #ff5100;
    padding: 0 10px;
    background-color: #fffaf5;
}

.section-subtitle {
    font-size: 16px;
    color: #777;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.testimonials-grid {
    display: flex;
    width: 100%;
    position: relative;
    min-height: 400px;
    flex-direction: column;
}

.client-bubbles {
    position: relative;
    width: 100%;
    min-height: 150px;
    margin-bottom: 30px;
}

.client-bubble {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 2;
}

.client-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-bubble:hover {
    transform: scale(1.15) !important;
    z-index: 3;
}

.client-bubble.active {
    border-color: #ff5100;
    transform: scale(1.1);
    z-index: 3;
}

.testimonial-box {
    position: relative;
    background: linear-gradient(135deg, #ff8a53, #ff5100);
    color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(248, 166, 87, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 250px;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.rotating-decoration {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    z-index: 0;
}

.rotating-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: spin 15s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.testimonial-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 10px;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

.quote {
    position: relative;
    z-index: 2;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.stars {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.stars i {
    color: #FFD700;
    font-size: 18px;
    margin: 0 2px;
}

.client-name {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 1px;
}

.client-title {
    position: relative;
    z-index: 2;
    font-size: 14px;
    opacity: 0.8;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tablet and Desktop styles */
@media (min-width: 768px) {
    .testimonials-grid {
        flex-direction: row;
        align-items: center;
    }
    
    .client-bubbles {
        min-height: 300px;
        margin-bottom: 0;
        flex: 1;
    }

    .client-bubble {
        width: 80px;
        height: 80px;
        border-width: 4px;
    }

    .testimonial-box {
        min-height: 330px;
        max-width: 600px;
        padding: 30px;
        flex: 1;
    }

    .rotating-decoration {
        width: 350px;
        height: 350px;
    }

    .quote {
        font-size: 18px;
        line-height: 1.8;
    }

    .stars i {
        font-size: 24px;
    }

    .client-name {
        font-size: 20px;
    }

    .client-title {
        font-size: 16px;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    .testimonials-container {
        padding: 30px 15px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .client-bubbles {
        min-height: 120px;
    }

    .client-bubble {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }

    .testimonial-box {
        min-height: 220px;
        padding: 15px;
        border-radius: 15px;
    }

    .quote {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .rotating-decoration {
        width: 180px;
        height: 180px;
        left: 70%;
    }

    .stars i {
        font-size: 16px;
    }

    .client-name {
        font-size: 16px;
    }
}