/* --- إعدادات عامة (يمكن نسخها من النموذج 1) --- */
.clients-page-wrapper { padding: 4rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.page-header { text-align: center; margin-bottom: 3rem; }
.page-header h1 { font-size: 2.8rem; color: #1d2632; margin-bottom: 0.5rem; font-weight: 800; }
.page-header p { font-size: 1.15rem; color: #555; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* --- تصميم الشبكة (Model 2) --- */
.clients-grid-container h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    color: #de852f; /* لون مميز من الهيدر */
    border-bottom: 2px solid #de852f33;
    padding-bottom: 0.5rem;
    display: flex;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.clients-grid {
    display: grid;
    gap: 1.5rem;
}

/* شبكة العملاء المميزين */
.clients-grid.featured-grid {
    /* 5 أعمدة في الشاشات الكبيرة، وعمود واحد في الصغيرة */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* شبكة باقي العملاء */
.clients-grid.general-grid {
    /* 7 أعمدة في الشاشات الكبيرة */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.client-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    /* ظل خفيف مأخوذ من ستايل الهيدر */
    box-shadow: 0 4px 18px #de852f17; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* للأنيميشن: نبدأ شفاف ومتحرك للأسفل */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

/* باقي العملاء نجعلهم باللون الرمادي */
.clients-grid.general-grid .client-card {
  
    opacity: 0.6; /* يبدأ شفاف أكثر */
}

.client-card img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.clients-grid.featured-grid .client-card img {
    max-height: 90px;
}

/* تأثير الـ Hover */
.client-card:hover {
    transform: translateY(-10px) scale(1.05) !important; /* !important لتجاوز ستايل GSAP */
    box-shadow: 0 10px 30px #de852f33;
    filter: grayscale(0%);
    opacity: 1 !important;
}