/* testimonials */

.testimonials-section {
    padding: 5rem 0;
    background: #ffffff;
}

/* Head */
.testimonials-head h2 {
    color: var(--main);
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.testimonials-head p {
    color: var(--main);
    max-width: 621px;
    font-size: 1.25rem;
    line-height: 1.8;
}

/* Cards layout */
.testimonials-cards {
    margin-top: 3rem;
}

/* Card */
.testimonial-card {
    background: var(--main);
    color: #ffffff;
    border-radius: 33px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 6.25rem;
}

.card-head img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    flex-shrink: 0;
}

.user-info h5 {
    font-size: 1.1875rem;
    margin: 5px;
}

.user-info span {
    font-size: 1.1rem;
    opacity: 0.85;
    display: block;
}

/* Text */
.card-text {
    font-size: 1.125;
}

/* Responsive */
@media (max-width: 62rem) {
    .card-head img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 991px) {
    html:lang(en) .testimonials-head h2 {
        font-size: 3rem; /* تصغير الخط للتابلت */
        max-width: 90%; /* زيادة العرض ليناسب الشاشة */
    }
}

/* الهواتف الصغيرة جداً (أقل من 480px) */
@media (max-width: 479px) {
    html:lang(en) .testimonials-head h2 {
        font-size: 2.5rem; /* أصغر حجم خط ليتناسب مع عرض الموبايل الصغير */
    }
}
