/* Page Specific Styles */
.vision-section {
    max-width: 900px;
    margin: 0 0 120px 0;
    text-align: left;
    padding-left: 0;
}

.vision-section h2 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-main);
    margin-bottom: 40px;
    padding-bottom: 15px;
    display: block;
}

.team-section {
    margin-bottom: 100px;
}

.team-grid {
    --team-card-width: 320px;
    --team-image-height: 280px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 120px 30px;
    align-items: start;
}

@media (min-width: 1366px) {
    .team-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .team-member:nth-child(3n+1) {
        justify-self: start;
    }

    .team-member:nth-child(3n+2) {
        justify-self: center;
    }

    .team-member:nth-child(3n+3) {
        justify-self: end;
    }
}

.team-member {
    display: flex;
    flex-direction: column;
    max-width: var(--team-card-width);
    width: 100%;
    text-align: center;
}

.team-image {
    width: 100%;
    height: var(--team-image-height);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-color: transparent;
    margin-bottom: 10px;
    overflow: hidden;
}

.team-image img {
    width: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.8s ease;
}

/* .team-member:hover .team-image img {
    filter: grayscale(0%);
    transform: scale(1.03);
} */

.team-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-info p.role {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    font-weight: 500;
}

.team-info p.email {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.team-info p.email a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.team-info p.email a:hover {
    color: var(--text-main);
}

.team-bio {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    text-align: justify;
}

.team-bio.active {
    max-height: 800px;
    /* Large enough to fit content */
    opacity: 1;
    margin-top: 15px;
}

.team-bio p {
    margin-bottom: 0.5em;
}

.team-bio p:last-child {
    margin-bottom: 0;
}

.bio-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-main);
    padding: 5px 0;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin: 10px auto 0 auto;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.bio-toggle:hover {
    opacity: 0.7;
}

.bio-toggle .icon {
    font-size: 1.1em;
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}
