/* --- Team Page Styles --- */
.team-section {
    padding-top: 120px;
    background-color: var(--white);
    min-height: 80vh;
}

.team-header {
    text-align: center;
    margin-bottom: 50px;
}

.rank-section {
    margin-bottom: 60px;
}

.rank-section h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--dark-bg);
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
    padding-bottom: 5px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.staff-card {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.staff-card.empty {
    border: 2px dashed #e2e8f0;
    background: #f8fafc;
}

.staff-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #94a3b8;
    margin-bottom: 15px;
}

.staff-card strong {
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.staff-card span {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-blue);
    background: #eff6ff;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.staff-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.staff-social {
    font-size: 0.8rem;
    color: var(--text-main);
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 6px;
    margin-top: 10px;
}

.btn-apply {
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-apply:hover {
    background: var(--primary-blue-hover);
}

@media (max-width: 700px) {
    .team-section {
        padding-top: 100px;
        padding-bottom: 48px;
    }

    .team-header {
        margin-bottom: 30px;
    }

    .rank-section {
        margin-bottom: 36px;
    }

    .rank-section h3 {
        font-size: 1.3rem;
    }

    .staff-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .staff-card {
        padding: 18px;
        border-radius: 14px;
    }

    .staff-avatar,
    .avatar-placeholder {
        width: 68px;
        height: 68px;
    }
}