/* ===== Card Components ===== */

/* Team Cards */
.team-card {
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--color-light);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

    .team-card:hover,
    .team-card:focus-visible {
        transform: translateY(-3px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.10);
    }

.team-card__media {
    aspect-ratio: 4 / 3;
    background: #eef5f8;
    overflow: hidden; /* the photo must never paint outside its own box */
}

    .team-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.team-card__body {
    padding: 1.1rem 1.1rem 1.25rem;
    display: grid;
    gap: 0.35rem;
    background: var(--color-light); /* opaque panel: name/role always sit on white, never on the photo */
    position: relative;
    z-index: 1;
}

.team-card__name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 1.15rem;
    line-height: 1.25;
}

.team-card__role {
    color: #52616f;
    font-weight: 600;
    font-size: 0.95rem;
}

.team-card__cta {
    margin-top: 0.55rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
}
