:root {
    --homepage-side-gap: clamp(30px, calc((100vw - 1024px) * 0.25 + 30px), 200px);
}

.team-intro {
    background: #fff;
    padding: 190px 0 70px;
}

.team-intro__heading {
    font-family: "brother-1816", sans-serif;
    font-size: 30px;
    color: #007161;
    text-transform: uppercase;
    margin: 0 0 28px;
}

.team-intro__text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 300;
}

.team-intro__text > :first-child {
    margin-top: 0;
}

.team-intro__text > :last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .team-intro {
        display: flex;
        flex-direction: column;
        padding-top: 95px;
    }

    .team-intro__content {
        padding: 0 var(--homepage-side-gap);
        box-sizing: border-box;
    }

.team-charity__footer-text {
    margin: 75px 0;
    font-family: "brother-1816", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

    .team-intro__media {
        margin-top: 35px;
        max-width: 100%;
    }

    .team-intro__media img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

@media (min-width: 1025px) {
    .team-intro {
        display: flex;
        align-items: stretch;
    }

    .team-intro__content {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 85px 0 var(--homepage-side-gap);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .team-intro__media {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .team-intro__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

@media (max-width: 800px) {
    .team-full-width-image__content h1 {
        font-size: 30px;
    }

    .team-full-width-image__content p {
        font-size: 20px;
    }

    .team-intro__heading {
        font-size: 24px;
    }

    .team-intro__text {
        font-size: 17px;
    }

    .team-principles__text {
        font-size: 17px;
    }

    .team-members__heading,
    .team-principles__heading,
    .team-charity__title,
    .team-awards__heading {
        font-size: 24px;
    }
}

.team-full-width-image {
    width: 100%;
    min-height: 450px;
    line-height: 0;
    position: relative;
    background-color: #101f3c;
    overflow: hidden;
}

.team-full-width-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    object-position: center;
}

.team-full-width-image__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .45) 100%);
    z-index: 1;
}

.team-full-width-image__content {
    position: absolute;
    left: var(--homepage-side-gap);
    bottom: 30px;
    color: #fff;
    max-width: 700px;
    line-height: normal;
}

.team-full-width-image__content h1 {
    font-size: 60px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #fff;
}

.team-full-width-image__content p {
    font-family: "brother-1816", sans-serif;
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 0;
    color: #fff;
}

.team-members {
    background: #fff;
    padding: 55px 0 70px;
}

.team-members__inner {
    width: calc(100% - (var(--homepage-side-gap) * 2));
    max-width: 1520px;
    margin: 0 auto;
}

.team-members__heading {
    margin: 0 0 28px;
    color: #007161;
    font-size: 30px;
    text-transform: uppercase;
}

.team-principles {
    background: #fff;
    padding: 30px 0 70px;
}

.team-principles__inner {
    width: calc(100% - (var(--homepage-side-gap) * 2));
    max-width: 1520px;
    margin: 0 auto;
}

.team-principles__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
}

.team-principles__heading {
    margin: 0 0 20px;
    color: #007161;
    font-family: "brother-1816", sans-serif;
    font-size: 30px;
    text-transform: uppercase;
}

.team-principles__text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #1a1a1a;
}

.team-principles__text > :first-child {
    margin-top: 0;
}

.team-principles__text > :last-child {
    margin-bottom: 0;
}

.team-principles__text ul,
.team-principles__text ol {
    margin: 0;
    padding-left: 22px;
}

.team-principles__text li + li {
    margin-top: 10px;
}

.team-charity {
    background-color: #067f73;
    padding: 60px 0 0;
}

.team-charity__inner {
    width: calc(100% - (var(--homepage-side-gap) * 2));
    max-width: 1520px;
    margin: 0 auto;
}

.team-charity__title {
    color: #fff;
    text-transform: uppercase;
    font-size: 30px;
    margin-bottom: 40px;
    font-family: "brother-1816", sans-serif;
}

.team-charity__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, calc((100vw - 1024px) * 0.12 + 20px), 130px);
}

.team-charity__viewport {
    overflow: hidden;
}

.team-charity__nav {
    display: none;
}

.team-charity__dot {
    border: 0;
    border-radius: 50%;
    background-color: #9f9f9f;
    width: 18px;
    height: 18px;
    padding: 0;
    cursor: pointer;
}

.team-charity__dot:focus,
.team-charity__dot:focus-visible {
    outline: none;
    box-shadow: none;
}

.team-charity__dot.is-active {
    background-color: #a1833f;
}

.team-charity-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
}

.team-charity-card:hover,
.team-charity-card:focus {
    text-decoration: none;
    color: inherit;
    transform: translateY(-4px);
}

.team-charity-card__image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.team-charity-card__meta {
    background-color: #000;
    color: #b08f4a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 22px;
    font-size: 20px;
    font-weight: 700;
    font-family: "brother-1816", sans-serif;
}

.team-charity-card__arrow {
    width: auto;
    height: 30px;
    display: block;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.team-charity-card:hover .team-charity-card__arrow,
.team-charity-card:focus .team-charity-card__arrow {
    transform: translateX(4px);
}

.team-charity-card__headline {
    margin: 0;
    padding: 18px 22px 22px;
    background-color: #a1833f;
    color: #fff;
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.3;
    min-height: calc((2 * 1.3em) + 40px);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.team-charity__footer-text {
    margin: 75px 0;
    color: #fff;
    font-family: "brother-1816", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.team-charity__footer-text:hover,
.team-charity__footer-text:focus {
    color: #fff;
    text-decoration: none;
}

.team-charity__footer-text::after {
    content: "";
    width: 25px;
    height: 25px;
    margin-left: 20px;
    background: url('/images/white-arrow-right-49h.png') center/contain no-repeat;
}

.team-awards {
    background: #fff;
    padding: 70px 0;
}

.team-awards__inner {
    width: calc(100% - (var(--homepage-side-gap) * 2));
    max-width: 1520px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.team-awards__heading {
    margin: 0 0 20px;
    color: #a1833f;
    font-family: "brother-1816", sans-serif;
    font-size: 30px;
    text-transform: uppercase;
}

.team-awards__text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 35px;
}

.team-awards__text > :first-child {
    margin-top: 0;
}

.team-awards__text > :last-child {
    margin-bottom: 0;
}

.team-awards__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    background: #a1833f;
    color: #fff;
    font-family: "brother-1816", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 20px;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.team-awards__cta:hover,
.team-awards__cta:focus {
    background-color: #9f813f;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.team-awards__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
}

.team-awards__item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-awards__image {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.team-awards__additional {
    margin: 10px 0 0;
    font-family: "brother-1816", sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #a1833f;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.team-members__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 38px 18px;
}

.team-members__card {
    display: flex;
    flex-direction: column;
}

.team-members__name {
    background: #007a6f;
    color: #fff;
    font-family: "brother-1816", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    padding: 16px 14px;
    text-align: center;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-members__title {
    background: #000;
    color: #a1833f;
    font-family: "brother-1816", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    padding: 10px 12px;
    min-height: calc((2 * 1.2em) + 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 1400px) {
    .team-members__heading {
        font-size: 24px;
    }

    .team-full-width-image__content h1 {
        font-size: 30px;
    }

    .team-full-width-image__content p {
        font-size: 20px;
    }

    .team-members__name {
        font-size: 18px;
    }

    .team-members__title {
        font-size: 13px;
    }

    .team-members__name {
        font-size: 20px;
    }

    .team-members__title {
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    .team-members {
        padding: 20px 0 35px;
    }

    .team-members__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .team-members__heading {
        font-size: 24px;
    }

    .team-principles {
        padding: 20px 0 15px;
    }

    .team-principles__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-principles__heading {
        font-size: 24px;
    }

    .team-charity__title,
    .team-awards__heading {
        font-size: 24px;
    }

    .team-awards__inner {
        grid-template-columns: 1fr;
    }

    .team-awards {
        padding: 30px 0;
    }

    .team-awards__grid {
        --team-awards-mobile-column-width: 300px;
    }

    .team-awards__item {
        width: var(--team-awards-mobile-column-width);
        max-width: 100%;
    }

    .team-awards__item:nth-child(odd) {
        justify-self: start;
    }

    .team-awards__item:nth-child(even) {
        justify-self: end;
    }

    .team-charity {
        padding-top: 30px;
    }

    .team-charity__grid {
        display: flex;
        gap: 0;
    }

    .team-charity-card {
        flex: 0 0 100%;
        min-width: 100%;
        transition: none;
    }

    .team-charity-card:hover,
    .team-charity-card:focus {
        transform: none;
    }

    .team-charity__nav {
        margin-top: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 35px;
    }

    .team-charity__footer-text {
        font-size: 20px;
        margin-top: 35px;
        margin-bottom: 35px;
    }
}

@media (max-width: 700px) {
    .team-members__name {
        font-size: 18px;
        padding: 12px 10px;
    }

    .team-members__title {
        font-size: 13px;
        padding: 8px 10px;
    }

    .team-principles__text {
        font-size: 17px;
    }
}

@media (max-width: 800px) {
    .team-principles__text,
    .team-awards__text {
        font-size: 17px;
    }
}

@media (max-width: 450px) {
    .team-members__grid {
        gap: 5px;
    }
}

@media (max-width: 1024px) {
    .team-full-width-image__content {
        left: var(--homepage-side-gap);
        right: var(--homepage-side-gap);
        max-width: 700px;
    }
}
