/* Testimonials Section */
.testimonials {
    width: 100%;
    padding: 100px 20px;
    background-color: #7ca1d8 !important;
    color: #F8FAFC !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

@media (max-width: 768px) {
    .testimonials .card1 {
        display: none;
    }
}

.testimonials::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.testimonials h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    position: relative;
    text-align: center;
    color: #ffffff !important;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #fbbf24;
    border-radius: 2px;
}

.testimonial-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.review-card {
    background: #ffffff !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: 'Lora', serif;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.review-card:hover {
    transform: translateY(-5px);
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.review-card.featured {
    grid-column: span 2;
    grid-row: span 2;
    background: #ffffff !important;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-icon.p1 {
    background: #6366f1 !important;
}

.profile-icon.p2 {
    background: #ec4899 !important;
}

.profile-icon.p3 {
    background: #10b981 !important;
}

.profile-icon.p4 {
    background: #f59e0b !important;
}

.profile-icon.p5 {
    background: #8b5cf6 !important;
}

.review-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: black !important;
}

.review-info .review-batch {
    font-size: 0.85rem;
    color: black !important;
    margin-top: 2px;
}

.review-rating {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #fbbf24 !important;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.review-time {
    font-size: 0.8rem;
    color: black !important;
}

.review-text {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgb(9, 9, 63) !important;
    margin: 0;
    font-style: italic;
}

.review-card.featured .review-text {
    font-size: 1.25rem;
}

.all-testimonials {
    margin-top: 50px;
    color: black !important;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.all-testimonials:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .testimonial-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .review-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .testimonial-container {
        grid-template-columns: 1fr;
    }

    .review-card.featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .testimonials h2 {
        font-size: 2rem;
    }
}