/* Masonry Layout for Testimonials */
.student-reviews {
    padding: 80px 0;
    background: #f8fafc;
    position: relative;
}

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

.student-reviews h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.student-reviews h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 2px;
}

.testimonials-grid {
    columns: 3;
    column-gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    break-inside: avoid;
    margin-bottom: 15px;
    display: inline-block;
    width: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.reviewer-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.reviewer-info div {
    flex: 1;
}

.reviewer-info h4 {
    margin: 0 0 5px 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}

.reviewer-info > div > p {
    margin: 0 0 8px 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.company-names {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
}

.company-names strong {
    font-weight: 700;
    color: #1f2937;
}

.testimonial-card > p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    text-align: left;
}

@media (max-width: 768px) {
    .student-reviews {
        padding: 60px 0;
    }

    .student-reviews h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .testimonials-grid {
        columns: 2;
        column-gap: 15px;
        padding: 0 15px;
    }

    .testimonial-card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .reviewer-info {
        gap: 12px;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }

    .reviewer-info h4 {
        font-size: 1rem;
    }

    .testimonial-card > p {
        font-size: 0.9rem;
    }

    .company-names {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .testimonials-grid {
        columns: 1;
        column-gap: 0;
        padding: 0 10px;
    }

    .testimonial-card {
        padding: 18px;
        margin-bottom: 15px;
    }

    .student-reviews h2 {
        font-size: 1.8rem;
    }
}