﻿/* ====== Clients & Testimonials (KSA-ready) ====== */
.sa-section {
    padding: 3.5rem 0;
}

.sa-title {
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 .4rem;
}

.sa-subtitle {
    color: #475569;
    margin: 0 auto 1rem;
    max-width: 760px;
    font-size: 1.05rem;
}

/* KSA badge */
.sa-badge-ksa {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: .25rem auto 0;
    padding: .35rem .7rem;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
}

    .sa-badge-ksa .fa-flag {
        font-size: .9rem
    }

/* ===== Logos strip ===== */
.sa-logos {
    display: grid;
    grid-template-columns: repeat(12, minmax(0,1fr));
    gap: 16px;
    margin-top: 1.25rem;
}

.sa-logo-card {
    grid-column: span 3; /* 4 شعارات بالسطر على الشاشات الكبيرة */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(2,6,23,.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .sa-logo-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(2,6,23,.10);
        border-color: #d1d5db;
    }

.sa-logo-img {
    max-width: 70%;
    max-height: 48px;
    object-fit: contain;
    filter: grayscale(15%); /* لمسة خفيفة */
}

/* ===== Testimonials ===== */
.sa-testimonials {
    margin-top: 2.25rem;
}

.sa-title-sm {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: .9rem;
}

.sa-t-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0,1fr));
    gap: 16px;
}

.sa-t-card {
    grid-column: span 4; /* 3 بطاقات في السطر على الكبير */
    display: flex;
    flex-direction: column;
    gap: .75rem;
    background: linear-gradient(180deg,#ffffff 0%, #fbfbff 100%);
    border: 1px solid #e6e8ef;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 28px rgba(2,6,23,.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .sa-t-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(2,6,23,.12);
        border-color: #d1d5db;
    }

.sa-t-card__head {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.sa-t-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #eef2ff;
}

.sa-t-name {
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.sa-t-role {
    color: #64748b;
    font-size: .9rem;
}

.sa-t-text {
    color: #334155;
    line-height: 1.7;
    margin: .25rem 0 .25rem;
}

.sa-t-rating {
    margin-top: auto;
    font-size: 1rem;
    letter-spacing: .05em;
}

.sa-star {
    color: #f59e0b;
}

.sa-star--off {
    color: #e5e7eb;
}

/* ===== RTL tweaks ===== */
html[dir="rtl"] .sa-logos,
html[dir="rtl"] .sa-t-grid {
    direction: rtl;
}

html[dir="rtl"] .sa-t-card__head {
    flex-direction: row-reverse;
    text-align: start;
}

    html[dir="rtl"] .sa-t-card__head > div {
        text-align: right;
    }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .sa-logo-card {
        grid-column: span 4;
    }
    /* 3 بالسطر */
    .sa-t-card {
        grid-column: span 6;
    }
    /* 2 بالسطر */
}

@media (max-width: 575.98px) {
    .sa-logo-card {
        grid-column: span 6;
    }
    /* 2 بالسطر */
    .sa-t-card {
        grid-column: span 12;
    }
    /* 1 بالسطر */
    .sa-logo-img {
        max-height: 42px;
    }
}
