:root {
    --primary: #4a6bff;
    --secondary: #3a56d4;
    --accent: #5d8aff;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7ff;
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

header h1::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.testimonials-container {
    position: relative;
}

.testimonial {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.testimonial.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial:nth-child(even) {
    flex-direction: row-reverse;
}

.testimonial-content {
    flex: 1;
    padding: 30px;
    position: relative;
    z-index: 2;
}

.testimonial-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--accent);
}

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

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--accent);
    margin: 0;
}

.testimonial-image {
    flex: 1;
    height: 350px;
    position: relative;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testimonial:hover .testimonial-image img {
    transform: scale(1.05);
}

.rating {
    margin-bottom: 15px;
    color: #ffc107;
}

.rating i {
    margin-right: 3px;
}

.course-badge {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.quote-icon {
    position: absolute;
    font-size: 80px;
    color: rgba(74, 107, 255, 0.1);
    top: 15px;
    right: 15px;
    z-index: -1;
}

.testimonial-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 107, 255, 0.3), rgba(74, 107, 255, 0.1));
    z-index: 1;
}

/* Background shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
}

.shape-1 {
    width: 250px;
    height: 250px;
    background: var(--primary);
    top: 100px;
    left: -150px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 180px;
    height: 180px;
    background: var(--accent);
    bottom: 100px;
    right: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .testimonial, .testimonial:nth-child(even) {
        flex-direction: column;
    }
    
    .testimonial-image {
        width: 100%;
        height: 250px;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .testimonial-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }
    
    header {
        margin-bottom: 40px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .testimonial {
        margin-bottom: 50px;
    }
    
    .testimonial-content h3 {
        font-size: 1.3rem;
    }
    
    .testimonial-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .testimonial-content {
        padding: 20px;
    }
    
    .testimonial-content h3 {
        font-size: 1.2rem;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
    }
    
    .author-img {
        width: 45px;
        height: 45px;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .quote-icon {
        font-size: 60px;
    }
    
    .shape-1, .shape-2 {
        display: none;
    }
}