.leader-card {
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
}
.leader-card:hover {
    transform: none;
    border-color: transparent;
}
.leader-card .role-desc {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}
.leader-card img:hover ~ .role-desc {
    opacity: 1;
    max-height: 320px;
}
.leader-role-arrow {
    display: none;
}
.linkedin-icon {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    margin-top: 8px;
    transition: transform 0.2s ease;
}
.linkedin-icon:hover {
    transform: scale(1.15);
}
.member-card {
    background: #111;
    border: 1px solid #222;
    padding: 30px;
    text-align: center;
    transition: 0.3s;
}
.member-card:hover {
    transform: translateY(-10px);
    border-color: var(--white);
}
.member-card .role-desc {
    color: var(--gray);
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 10px;
}
.member-card h3 {
    margin-bottom: 5px;
}
.member-card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    cursor: pointer;
}
.member-card p {
    color: var(--white);
}
.members-card {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.782), rgba(0, 0, 0, 0.355), #00aba2);
    color: #fff;
    padding: 20px;
    width: 270px;
    text-align: center;
    border-radius: 10px;
}
.members-card img {
    width: 170px;
    object-fit: cover;
    margin-bottom: 10px;
}
.team-contacts {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.team-contacts .member-card {
    background: #111;
    color: #fff;
    padding: 20px;
    width: 270px;
    text-align: center;
    border-radius: 10px;
}
.team-contacts .member-card .member-role {
    display: inline-block;
    margin: 0 0 12px;
    padding: 5px 10px;
    border: 1px solid rgba(0, 171, 162, 0.45);
    border-radius: 999px;
    color: var(--accent);
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}
.team-contacts .member-card h3 {
    margin-bottom: 5px;
    font-size: 21px;
}
.team-contacts .member-card img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}
.team-contacts .member-card p {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-bottom: 5px;
    font-size: 21px;
}
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}
.team-page h1 {
    text-align: center;
    margin-bottom: 60px;
}
.team-page h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 20px;
    padding-top: 40px;
    text-shadow: #aaaaa9 5px 5px 5px;
    cursor: pointer;
}
.team-page h2:after {
    box-sizing: border-box;
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.team-page h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    padding-top: 25px;
}
.team-page p {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-align: center;
    margin-bottom: 30px;
}
.vaz-members,
.aero-members,
.futomu-members,
.motor-members,
.elektro-members,
.hybrid-members,
.marketing-members,
.penzugy-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
/* Team Page Styles */

.linkedin-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1);
}

.linkedin-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.3);
}

.team-page {
    padding: 120px 8%;
    align-content: center;
    margin: auto;
}
