.team-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-section {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-dark, #0056b3));
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.team-stats .stat-item {
    text-align: center;
}

.section-title {
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
}

/* Featured Members */
.featured-member-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.featured-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.member-image-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.member-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-member-card:hover .member-overlay {
    opacity: 1;
}

.featured-member-card:hover .member-image {
    transform: scale(1.1);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
    color: var(--bs-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.member-info {
    padding: 2rem;
    text-align: center;
}

.member-name {
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
}

.member-position {
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: #6c757d;
    line-height: 1.6;
}

.member-experience {
    margin-top: 1rem;
    color: var(--bs-success);
    font-weight: 500;
}

/* Regular Team Members */
.team-member-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.team-member-card:hover {
    transform: translateY(-5px);
    border-color: var(--bs-primary);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.member-image-wrapper {
    margin-bottom: 1rem;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bs-primary);
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border: 3px solid #dee2e6;
}

.member-title {
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.member-role {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.member-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.member-skills {
    margin-bottom: 1rem;
}

.skill-badge {
    display: inline-block;
    background: var(--bs-light);
    color: var(--bs-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.1rem;
}

.member-contact {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.contact-link {
    width: 32px;
    height: 32px;
    background: var(--bs-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.contact-link:hover {
    background: var(--bs-primary);
    color: white;
    transform: scale(1.1);
}

.experience-badge {
    background: var(--bs-success);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

/* Qualifications */
.qualification-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--bs-primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.qualification-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.qualification-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bs-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* Empty State */
.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

/* CTA Section */
.team-cta {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-dark, #0056b3));
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .team-stats {
        justify-content: center;
        margin-top: 2rem;
    }
    
    .member-contact {
        flex-wrap: wrap;
    }
    
    .featured-member-card {
        margin-bottom: 2rem;
    }
}