/* ==========================================================================
   Our Team — listing grid + individual bio layout
   Colors pulled from the theme palette:
     $basePrimary   #28AAE1
     $baseSecondary #066A94
     $baseBlackLight #212121
   ========================================================================== */

/* ----- Intro copy on the Our Team listing page ----- */
body .our-team-intro {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

/* ----- Team listing grid ----- */
body .team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    margin: 0 auto;
    max-width: 980px;
}

@media (max-width: 767px) {
    body .team-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }
}

body .team-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dadada;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 8px 0 rgba(34, 60, 80, 0.12);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

body .team-card:hover {
    box-shadow: 0 6px 20px 0 rgba(34, 60, 80, 0.2);
    transform: translateY(-4px);
}

body .team-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #efefef;
}

body .team-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body .team-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px 28px 30px;
}

body .team-card__name {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 12px;
}

body .team-card__name a {
    color: #066a94;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

body .team-card__name a:hover {
    color: #28aae1;
}

body .team-card__excerpt {
    margin: 0 0 22px;
    flex: 1;
}

body .team-card__link {
    align-self: flex-start;
}

/* ----- Individual bio page ----- */
body .team-member {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
}

body .team-member__photo {
    flex: 0 0 260px;
    max-width: 260px;
}

body .team-member__photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 0 8px 0 rgba(34, 60, 80, 0.2);
}

body .team-member__bio {
    flex: 1;
    min-width: 0;
}

body .team-member__bio > *:first-child {
    margin-top: 0;
}

@media (max-width: 767px) {
    body .team-member {
        gap: 26px;
    }

    body .team-member__photo {
        flex-basis: 100%;
        max-width: 100%;
    }
}
