/* ==========================================
   Team Members - Alternating Card Layout
   ========================================== */

.team-members-alt {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0;
}

.team-member-alt {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-member-alt:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Alternating: even members get reversed direction (image on right) */
.team-member-alt:nth-child(even) {
    flex-direction: row-reverse;
}

.team-member-alt .team-member-image {
    flex: 0 0 320px;
    max-width: 320px;
}

.team-member-alt .team-member-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.team-member-alt .team-member-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
}

.team-member-alt .member-name-alt {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.team-member-alt .member-title-alt {
    display: inline-block;
    width: fit-content;
    background: #f5ecd9;
    color: #8b7140;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
}

.team-member-alt .member-bio-alt {
    color: #475569;
    line-height: 1.7;
    font-size: 15px;
    margin: 0;
}

.team-member-alt .member-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.team-member-alt .stat-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
}

.team-member-alt .stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #b8924d;
    line-height: 1.2;
}

.team-member-alt .stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.team-member-alt .social-links-alt {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.team-member-alt .social-links-alt a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.team-member-alt .social-links-alt a:hover {
    background: #b8924d;
    color: #fff;
}

/* Mobile: stack vertically, no alternation */
@media (max-width: 768px) {
    .team-member-alt,
    .team-member-alt:nth-child(even) {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .team-member-alt .team-member-image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .team-member-alt .team-member-image img {
        max-width: 280px;
        margin: 0 auto;
    }

    .team-member-alt .member-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .team-member-alt .stat-item {
        padding: 12px 8px;
    }

    .team-member-alt .stat-number {
        font-size: 18px;
    }

    .team-member-alt .stat-label {
        font-size: 11px;
    }
}
