.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    justify-content: center;
    justify-items: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto 52px;
    padding: 20px;
    gap: 24px;
}

.team-card {
    background: var(--ui-card-surface);
    border: 1px solid var(--ui-card-border);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-card-shadow);
    text-align: center;
    padding: 24px;
    width: 100%;
    max-width: 360px;
    min-width: 0;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ui-card-shadow-hover);
    border-color: var(--ui-card-border-hover);
}

.team-image {
    width: min(230px, 100%);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 3px solid rgba(0, 123, 255, 0.25);
    margin: 0 auto 16px;
    border-radius: 50%;
    box-shadow: 0 14px 26px rgba(0, 123, 255, 0.18);
}

.team-name {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.team-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.job-title {
    color: #2980b9;
    font-size: 16px;
    font-weight: 750;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.glow {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8), 0 0 40px rgba(0, 123, 255, 0.8), 0 0 60px rgba(0, 123, 255, 0.8) !important;
}

@media (max-width: 768px) {
    .team-container {
        max-width: 560px;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 14px;
    }

    .team-card {
        max-width: none;
        margin-bottom: 0;
        padding: 20px 18px;
    }
}

@media (prefers-color-scheme: dark) {
    .team-card {
        background: var(--ui-card-surface-dark);
        border: 1px solid var(--ui-card-dark-border);
        box-shadow: var(--ui-card-dark-shadow);
    }

    .team-card:hover {
        box-shadow: var(--ui-card-dark-shadow-hover);
    }

    .team-image {
        border-color: rgba(102, 170, 255, 0.45);
        box-shadow: 0 16px 28px rgba(0, 0, 0, 0.38);
    }

    .team-name {
        color: #f2f6ff;
    }

    .team-description {
        color: #d1def6;
    }

    .job-title {
        color: #7fb9ff !important;
    }
}
