/**
 * Team Members - Frontend Styles
 * تصميم عرض فريق العمل
 */

/* استيراد خط عربي */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');

/* القسم الرئيسي */
.tm-team-section {
    font-family: 'Cairo', sans-serif;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    direction: rtl;
}

/* العنوان */
.tm-team-header {
    text-align: center;
    margin-bottom: 50px;
}

.tm-team-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a5f7a;
    margin: 0 0 15px 0;
    position: relative;
    display: inline-block;
}

.tm-team-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c9a227, #e8c547);
    border-radius: 2px;
}

.tm-team-subtitle {
    font-size: 18px;
    color: #5a6a7a;
    margin: 20px 0 0 0;
    font-weight: 400;
}

/* شبكة الأعضاء */
.tm-team-grid {
    display: grid;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.tm-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tm-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tm-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* بطاقة العضو */
.tm-member-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tm-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1a5f7a, #2d8aaa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tm-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(26, 95, 122, 0.15);
}

.tm-member-card:hover::before {
    opacity: 1;
}

/* صورة العضو */
.tm-member-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 20px;
    overflow: hidden;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.tm-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tm-member-card:hover .tm-member-image img {
    transform: scale(1.05);
}

.tm-placeholder-image {
    width: 80px;
    height: 80px;
    color: #b0bec5;
}

.tm-placeholder-image svg {
    width: 100%;
    height: 100%;
}

/* معلومات العضو */
.tm-member-info {
    padding-top: 5px;
}

.tm-member-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.tm-member-specialization {
    font-size: 14px;
    color: #5a7a8a;
    margin: 0 0 18px 0;
    font-weight: 500;
}

/* الشهادات */
.tm-member-certificates {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tm-certificate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.tm-certificate:hover {
    transform: scale(1.05);
}

/* ألوان الشهادات */
.tm-cert-green {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.tm-cert-blue {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.tm-cert-orange {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

.tm-cert-purple {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

/* الخبرة */
.tm-member-experience {
    font-size: 13px;
    color: #6a7a8a;
    margin: 0;
    line-height: 1.7;
    padding: 0 10px;
}

/* التجاوب مع الشاشات */
@media (max-width: 1200px) {
    .tm-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .tm-columns-4,
    .tm-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tm-team-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .tm-team-section {
        padding: 40px 15px;
    }
    
    .tm-columns-4,
    .tm-columns-3,
    .tm-columns-2 {
        grid-template-columns: 1fr;
    }
    
    .tm-team-title {
        font-size: 30px;
    }
    
    .tm-team-subtitle {
        font-size: 16px;
    }
    
    .tm-member-card {
        padding: 25px 20px;
    }
    
    .tm-member-image {
        width: 120px;
        height: 120px;
    }
}

/* تأثيرات حركية */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tm-member-card {
    animation: fadeInUp 0.6s ease forwards;
}

.tm-member-card:nth-child(1) { animation-delay: 0.1s; }
.tm-member-card:nth-child(2) { animation-delay: 0.2s; }
.tm-member-card:nth-child(3) { animation-delay: 0.3s; }
.tm-member-card:nth-child(4) { animation-delay: 0.4s; }
.tm-member-card:nth-child(5) { animation-delay: 0.5s; }
.tm-member-card:nth-child(6) { animation-delay: 0.6s; }
.tm-member-card:nth-child(7) { animation-delay: 0.7s; }
.tm-member-card:nth-child(8) { animation-delay: 0.8s; }
