:root {
    --primary: #0f172a;
    --accent: #3b82f6;
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --container: 1280px;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Vazirmatn', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.6; 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}

img { 
    max-width: 100%; 
    display: block; 
}

.container { 
    max-width: var(--container); 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* هیرو */
.team-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    margin-bottom: 50px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.team-hero h1 { 
    font-size: 2.8rem; 
    margin-bottom: 15px; 
}

.team-hero p { 
    color: #cbd5e1; 
    font-size: 1.2rem; 
    max-width: 700px; 
    margin: 0 auto; 
}

/* کارت‌های تیم */
.team-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* مهم! */
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

/* بخش عکس */
.team-avatar-wrapper {
    width: 130px;
    height: 130px;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 4px solid var(--bg-body);
    overflow: hidden;
    flex-shrink: 0; /* جلوگیری از کوچک شدن */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover; /* عکس رو کامل و یکدست میکنه */
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
}

/* محتوای کارت */
.team-name { 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: var(--primary); 
    margin-bottom: 5px;
}

.team-role { 
    color: var(--accent); 
    font-weight: 600; 
    font-size: 0.95rem; 
    margin-bottom: 20px;
}

/* دکمه */
.btn-card { 
    width: 100%; 
    padding: 12px; 
    background: var(--bg-body); 
    border: 1px solid var(--border);
    border-radius: 8px; 
    font-weight: 600; 
    transition: all 0.3s ease;
    margin-top: auto;
    text-align: center;
}

.btn-card:hover { 
    background: var(--primary); 
    color: white;
    border-color: var(--primary);
}

/* واکنش‌گرایی */
@media (max-width: 992px) {
    .team-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .team-hero {
        padding: 60px 0 40px;
    }
    
    .team-hero h1 {
        font-size: 1.8rem;
    }
    
    .team-hero p {
        font-size: 1rem;
    }
    
    .team-avatar-wrapper {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 576px) {
    .team-hero {
        padding: 40px 0 30px;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
    
    .team-hero h1 {
        font-size: 1.5rem;
    }
    
    .team-card {
        padding: 20px 15px;
    }
    
    .team-avatar-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .team-name {
        font-size: 1.1rem;
    }
}