/* Team Page Styles */
.team-page {
    padding: 40px 0;
}

/* Section Styles */
.team-section {
    margin-bottom: 80px;
}

.custom-section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Team Container */
.team-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* Team Member Card */
.team-member {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* Member Image */
.member-image {
    position: relative;
    overflow: hidden;
    height: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.team-member:hover .member-image img {
    transform: scale(1.1);
}

/* Social Links */
.custom-teams-social-links {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 10px;
    z-index: 2;
}

.custom-teams-social-link {
    color: white;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.custom-teams-social-link:hover {
    transform: translateY(-3px);
}

.custom-teams-social-link.facebook:hover {
    background: #1877f2;
}

.custom-teams-social-link.twitter:hover {
    background: #1da1f2;
}

.custom-teams-social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
}

.custom-teams-social-link.whatsapp:hover {
    background: #25d366;
}

/* Member Info */
.member-info {
    padding: 25px;
    text-align: center;
    background: white;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-bio {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Badge */
.member-badge {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .team-page {
        padding: 20px 0;
    }

    .team-section {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-top: 15px;
    }

    .team-grid {
        gap: 20px;
    }

    .member-image {
        height: 220px;
    }

    .custom-teams-social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .member-info {
        padding: 15px;
    }

    .member-name {
        font-size: 1.2rem;
    }

    .member-role {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .member-bio {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .member-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
        margin-top: 8px;
    }

    .custom-teams-social-links {
        gap: 8px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .member-image {
        height: 200px;
    }

    .custom-teams-social-link {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .member-info {
        padding: 12px;
    }

    .member-name {
        font-size: 1.1rem;
    }

    .member-role {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .member-bio {
        font-size: 0.75rem;
    }

    .member-badge {
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    .custom-teams-social-links {
        gap: 6px;
        bottom: 8px;
    }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 360px) {
    .member-image {
        height: 180px;
    }

    .custom-teams-social-link {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }

    .member-name {
        font-size: 1rem;
    }
}