main{
    margin-top: 20px;
}

.team-hero{
    background: linear-gradient(135deg, #35446a 0%, #4a5f95 100%);
    color: white;
    border-radius: 14px;
    padding: 24px 24px 20px;
    margin: 14px 0 22px;
    box-shadow: 0 12px 28px rgba(53, 68, 106, 0.2);
}

.team-hero .eyebrow{
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 8px;
}

.team-hero h1{
    font-size: clamp(1.8rem, 4.2vw, 2.7rem);
    margin-bottom: 10px;
}

.team-hero .lead-text{
    font-size: 18px;
    margin-bottom: 0;
}

.team-grid{
    margin-top: 8px;
}

.card{
    height: 100%;
    width: 336px;
    max-width: 100%;
    margin-top: 12px;
    border: 1px solid #d9dfef;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(53, 68, 106, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover{
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(53, 68, 106, 0.16);
}

.card-img-top{
    height: 320px;
    object-fit: cover;
    object-position: center top;
    background-color: #f5f5f5;
}

.card-img-top[src*="wkallmann.jpg"]{
    object-fit: contain;
    object-position: center;
    padding: 0 14px;
    background-color: #aba295;
}

.card-body{
    padding: 1.1rem 1.1rem 1.2rem;
}

.card-body h6{
    color: #35446a;
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
}

.card-body ul{
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.card-body a{
    word-break: break-word;
}

@media screen and (max-width: 768px) {
    .team-hero{
        padding: 22px 18px 18px;
        margin-bottom: 20px;
    }

    .card{
        margin-top: 8px;
    }

    .card-img-top{
        height: 300px;
    }
}

@media screen and (max-width: 600px) {
    .team-hero h1{
        font-size: 24px;
    }

    .team-hero .eyebrow{
        font-size: 12px;
    }

    .team-hero .lead-text,
    .card-body p,
    .card-body li{
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card{
        transition: none;
    }

    .card:hover{
        transform: none;
    }
}