/* Testimonials Page Styling */

/* Ensure page-hero has proper full-width styling */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    width: 100%;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Testimonials section spacing */
.testimonials-section {
    padding: 2rem 0;
}

/* Testimonial grid enhancements */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Testimonial card styling */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-card.featured {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #f8faff 0%, #f1f5ff 100%);
    color: #374151;
}

.testimonial-card.featured h4,
.testimonial-card.featured p,
.testimonial-card.featured .student-details h4,
.testimonial-card.featured .testimonial-content p,
.testimonial-card.featured .student-info h4 {
    color: #374151 !important;
}

.testimonial-card.featured .student-level {
    background: #e74c3c;
    color: white;
}

.testimonial-card.featured .testimonial-content::before {
    color: #d1d5db !important;
}

/* Star rating styling */
.star-display {
    margin: 1rem 0;
}

.star {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-right: 2px;
    transition: transform 0.2s ease;
}

/* Student info styling */
.student-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.student-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 0;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.student-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.student-details h4 {
    margin: 0;
    font-size: 1rem;
    color: #374151;
    font-weight: 600;
}

.student-level {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    align-self: flex-start;
}

.author-location {
    color: #7f8c8d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-location i {
    color: #e74c3c;
}

/* CTA section styling */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 3rem;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Alert styling */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 2rem 0;
    }
    
    .testimonials-section {
        padding: 1.5rem 0;
    }
}