.testimonials-section {
    position: relative;
    padding: var(--spacing-24) 0;
    background-color: var(--off-white);
    overflow: hidden;
}

/* Background elements */
.testimonials-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.testimonials-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.testimonials-shape {
    position: absolute;
    opacity: 0.05;
}

.shape-1 {
    top: 10%;
    right: 15%;
    width: 250px;
    height: 250px;
    border: 2px solid var(--primary-color);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: floatShape 20s ease-in-out infinite alternate;
}

.shape-2 {
    bottom: 15%;
    left: 10%;
    width: 200px;
    height: 200px;
    background-color: var(--secondary-color);
    border-radius: 60% 40% 50% 70% / 60% 40% 60% 40%;
    animation: floatShape 15s ease-in-out infinite alternate-reverse;
}

.shape-3 {
    top: 40%;
    left: 50%;
    width: 150px;
    height: 150px;
    border: 2px solid var(--secondary-light);
    border-radius: 50%;
    animation: rotateRing 30s linear infinite;
}

/* Section header */
.testimonials-header {
    position: relative;
    text-align: center;
    margin-bottom: var(--spacing-16);
    z-index: 2;
}

.testimonials-subtitle {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-2);
    position: relative;
    display: inline-block;
}

.testimonials-subtitle::before,
.testimonials-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--secondary-color);
}

.testimonials-subtitle::before {
    left: -40px;
}

.testimonials-subtitle::after {
    right: -40px;
}

.testimonials-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-4);
}

.testimonials-title span {
    color: var(--primary-color);
    position: relative;
}

.testimonials-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--secondary-light);
    opacity: 0.3;
    z-index: -1;
}

.testimonials-description {
    font-size: var(--text-lg);
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Testimonials container */
.testimonials-container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Testimonial card */
.testimonial-card {
    flex: 0 0 100%;
    padding: var(--spacing-6);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-inner {
    position: relative;
    padding: var(--spacing-8);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card.active .testimonial-inner:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Quote styling */
.testimonial-quote {
    position: relative;
    z-index: 2;
    margin-bottom: var(--spacing-6);
}

.testimonial-quote::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -20px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: var(--primary-color);
    opacity: 0.1;
    z-index: -1;
}

.testimonial-quote p {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--dark-gray);
    font-style: italic;
}

/* Author info */
.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--light-gray);
    padding-top: var(--spacing-4);
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    margin-right: var(--spacing-4);
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: var(--text-lg);
    color: var(--primary-color);
    margin-bottom: var(--spacing-1);
}

.author-info p {
    font-size: var(--text-sm);
    color: var(--medium-gray);
}

/* Decorative elements */
.testimonial-decoration {
    position: absolute;
    z-index: 1;
}

.decoration-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    bottom: -60px;
    right: -60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    opacity: 0.1;
}

.decoration-dots {
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(var(--secondary-color) 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.2;
}

/* Navigation */
.testimonials-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-8);
    position: relative;
    z-index: 2;
}

.nav-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonials-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 var(--spacing-4);
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    border: none;
    margin: 0 var(--spacing-1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}