/* 2025 team page only */

#team {
    --team-red: #d20000;
    --team-surface: #191919;
    --team-border: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    padding: 72px clamp(20px, 6vw, 96px) 96px;
    background: #101010;
    text-align: center;
}

#team > h2 {
    margin: 60px 0 30px;
    color: var(--team-red);
    font-size: clamp(42px, 7vw, 70px);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.team-intro-paragraph {
    width: min(760px, 100%);
    margin: 0 auto 48px;
    color: #d6d6d6;
    font-size: 18px;
    line-height: 1.7;
    text-align: center;
}

#team > section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 500px));
    justify-content: space-between;
    gap: clamp(44px, 6vw, 80px) clamp(30px, 6vw, 80px);
    width: min(1160px, 100%);
    margin: 72px auto 0;
    padding-top: 56px;
    border-top: 1px solid var(--team-border);
}

#team > section > h3 {
    grid-column: 1 / -1;
    justify-self: center;
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

#team > section > h3::before {
    display: block;
    width: 56px;
    height: 5px;
    margin: 0 auto 18px;
    background: var(--team-red);
    content: "";
}

.team-member {
    display: grid;
    grid-template-columns: minmax(150px, 42%) minmax(0, 1fr);
    align-items: start;
    width: 100%;
    max-width: 520px;
    margin: 0;
    overflow: hidden;
    background: var(--team-surface);
    border: 1px solid var(--team-border);
    border-top: 4px solid var(--team-red);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.team-member:nth-of-type(odd) {
    justify-self: start;
}

.team-member:nth-of-type(even) {
    justify-self: end;
}

.team-member img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center 25%;
}

.team-member .span {
    width: 100%;
    padding: 26px 24px 28px;
    box-sizing: border-box;
}

.team-member h4 {
    margin: 0 0 14px;
    padding: 0;
    color: #fff;
    font-size: 25px;
    line-height: 1.1;
}

.team-member p {
    margin: 0;
    padding: 0;
    color: #c9c9c9;
    font-size: 16px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    #team {
        padding-inline: 18px;
    }

    #team > section {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .team-member,
    .team-member:nth-of-type(odd),
    .team-member:nth-of-type(even) {
        justify-self: center;
    }
}

@media (max-width: 560px) {
    .team-member {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .team-member img {
        width: 100%;
        height: 320px;
    }

    .team-member .span {
        width: 100%;
        padding: 24px 22px 26px;
    }
}
