/* ألوان متناسقة مع الموقع الرئيسي */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #667eea;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
}

/* تصميم قائمة المؤسسات */
.modern-organization-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
}

.organization-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.organization-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.organization-item:hover {
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.12);
    border-color: var(--accent-color);
}

.organization-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.organization-icon:hover {
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

/* تصميم بطاقات الخدمات */
.modern-service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.modern-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.modern-service-card:hover {
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.2);
    border-color: var(--accent-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-service-card:hover .service-icon::before {
    opacity: 0.1;
}

.service-icon i {
    position: relative;
    z-index: 2;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.modern-service-card:hover .service-icon i {
    color: var(--accent-color);
}

/* تحسين الاستجابة */
@media (max-width: 768px) {
    .modern-service-card {
        margin-bottom: 25px;
    }

    .organization-item {
        margin-bottom: 15px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }
}

/* تأثيرات إضافية للبطاقات */
.modern-service-card .service-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.modern-service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: var(--accent-color);
}

/* تحسين النصوص */
.modern-service-card h5 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.4;
}

.modern-service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* تحسين الأزرار */
.modern-service-card a {
    color: var(--accent-color);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.modern-service-card a:hover {
    color: var(--accent-color);
}

.modern-service-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.modern-service-card a:hover::after {
    width: 100%;
}