.afc-team-page {
    --afc-team-green: #006600;
    --afc-team-green-dark: #004d00;
    --afc-team-orange: #DC5D01;
    --afc-team-gold: #F5CA4A;
    --afc-team-light-green: #effdf3;
    --afc-team-border: #e0e1dd;
    --afc-team-white: #ffffff;
    --afc-team-text: #1a1a1a;
    --afc-team-muted: #5f665f;
}

.afc-team-page {
    background: var(--afc-team-white);
    color: var(--afc-team-text);
    font-family: "Noto Sans", sans-serif;
    overflow-x: hidden;
}

.afc-team-container {
    width: min(100% - 48px, 1440px);
    margin: 0 auto;
}

.afc-team-hero {
    background:
        radial-gradient(circle at 10% 15%, rgba(245, 202, 74, 0.08), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 78%, rgba(239, 253, 243, 0.75) 100%);
    border-bottom: 1px solid rgba(224, 225, 221, 0.8);
    padding: 32px 0 0;
}

.afc-team-hero__inner {
    display: grid;
    grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1fr);
    align-items: center;
    gap: 42px;
    min-width: 0;
}

.afc-team-hero__copy {
    padding: 28px 0 34px;
    min-width: 0;
    margin-top: 50px;
}

.afc-team-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--afc-team-orange);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.34em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.afc-team-eyebrow::after {
    content: "";
    width: 64px;
    height: 2px;
    background: var(--afc-team-orange);
}

.afc-team-hero h1,
.afc-team-section-heading h2,
.afc-team-cta h2 {
    color: var(--afc-team-green-dark);
    font-family: "Spectral SC", sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

.afc-team-hero h1 {
    max-width: 670px;
    margin: 0 0 20px;
    font-size: clamp(2.4rem, 4.7vw, 4.7rem);
    line-height: 0.98;
    overflow-wrap: break-word;
}

.afc-team-hero p {
    max-width: 650px;
    color: var(--afc-team-text);
    font-size: 1.05rem;
    line-height: 1.68;
    margin: 0;
    overflow-wrap: break-word;
}

.afc-team-hero__media {
    position: relative;
    align-self: end;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 360px;
    overflow: hidden;
    border-radius: 999px 0 0 999px;
}

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

.afc-team-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 77, 0, 0.2), transparent 36%);
    pointer-events: none;
}

.afc-team-hero__line {
    position: absolute;
    right: -7%;
    bottom: 2%;
    width: 82%;
    height: 58%;
    border: 5px solid var(--afc-team-gold);
    border-left-color: transparent;
    border-top-color: transparent;
    border-radius: 50%;
    transform: rotate(-8deg);
    pointer-events: none;
}

.afc-team-leaf {
    display: inline-block;
    width: 42px;
    height: 28px;
    border: 2px solid var(--afc-team-green);
    border-right: 0;
    border-bottom: 0;
    border-radius: 100% 0 0 0;
    opacity: 0.78;
    transform: rotate(-22deg);
}

.afc-team-leaf::before,
.afc-team-leaf::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 14px;
    border: 2px solid currentColor;
    border-right: 0;
    border-bottom: 0;
    border-radius: 100% 0 0 0;
}

.afc-team-leaf::before {
    left: 6px;
    top: -12px;
    transform: rotate(42deg);
}

.afc-team-leaf::after {
    right: -14px;
    bottom: 0;
    transform: rotate(88deg);
}

.afc-team-leaf--hero {
    position: absolute;
    right: 28px;
    bottom: 28px;
    color: var(--afc-team-gold);
    border-color: var(--afc-team-gold);
    z-index: 2;
}

.afc-team-members {
    background: var(--afc-team-white);
    padding: 34px 0 26px;
}

.afc-team-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.afc-team-section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
}

.afc-team-leaf--heading {
    position: relative;
    color: var(--afc-team-green);
}

.afc-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.afc-team-card {
    position: relative;
    min-height: 365px;
    overflow: hidden;
    border: 1px solid rgba(0, 102, 0, 0.08);
    border-radius: 10px;
    background: var(--afc-team-light-green);
    box-shadow: 0 16px 32px rgba(0, 77, 0, 0.08);
}

.afc-team-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 365px;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.84) contrast(1.03);
    transition: transform 260ms ease, filter 260ms ease;
}

.afc-team-card:hover img {
    transform: scale(1.035);
    filter: saturate(1) contrast(1.05);
}

.afc-team-card__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02) 18%, rgba(0, 77, 0, 0.22) 54%, rgba(0, 45, 0, 0.95) 100%),
        radial-gradient(circle at 20% 12%, rgba(245, 202, 74, 0.22), transparent 26%);
}

.afc-team-card__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 24px;
    color: var(--afc-team-white);
}

.afc-team-card h3 {
    margin: 0 0 4px;
    color: var(--afc-team-white);
    font-family: "Spectral SC", sans-serif;
    font-size: 1.42rem;
    line-height: 1.15;
}

.afc-team-card__role {
    color: var(--afc-team-gold);
    font-size: 0.88rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.afc-team-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.afc-team-card__bio,
.afc-team-card__linkedin,
.afc-team-modal__close,
.afc-team-modal__connect,
.afc-team-cta__button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    font-family: "Noto Sans", sans-serif;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.afc-team-card__bio {
    padding: 10px 18px;
    border: 0;
    background: var(--afc-team-white);
    color: var(--afc-team-text);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.afc-team-card__bio:hover,
.afc-team-card__bio:focus {
    background: var(--afc-team-gold);
    color: var(--afc-team-green-dark);
    outline: 0;
}

.afc-team-card__linkedin {
    width: 44px;
    flex: 0 0 44px;
    background: var(--afc-team-green);
    color: var(--afc-team-white) !important;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
}

.afc-team-card__linkedin span {
    display: block;
    color: var(--afc-team-white);
    font-family: "Noto Sans", sans-serif;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.afc-team-card__linkedin:hover,
.afc-team-card__linkedin:focus {
    background: var(--afc-team-orange);
    color: var(--afc-team-white) !important;
    transform: translateY(-2px);
    outline: 0;
}

.afc-team-card__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    max-width: calc(100% - 32px);
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--afc-team-green-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.afc-team-empty {
    max-width: 680px;
    margin: 0 auto;
    padding: 46px 28px;
    border: 1px solid var(--afc-team-border);
    border-top: 4px solid var(--afc-team-green);
    border-radius: 10px;
    text-align: center;
}

.afc-team-empty h3 {
    color: var(--afc-team-green-dark);
    font-weight: 800;
}

.afc-team-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0, 45, 0, 0.24);
}

.afc-team-modal .modal-content::before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, var(--afc-team-green), var(--afc-team-orange));
}

.afc-team-modal .modal-header,
.afc-team-modal .modal-footer {
    border-color: var(--afc-team-border);
}

.afc-team-modal__identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.afc-team-modal__identity img {
    width: 92px;
    height: 92px;
    aspect-ratio: 1 / 1;
    flex: 0 0 92px;
    display: block;
    object-fit: cover;
    object-position: center top;
    border: 4px solid var(--afc-team-light-green);
    border-radius: 50%;
}

.afc-team-modal__identity h3 {
    margin: 0 0 4px;
    color: var(--afc-team-green-dark);
    font-family: "Spectral SC", sans-serif;
    font-size: 1.7rem;
}

.afc-team-modal__identity p {
    margin: 0;
    color: var(--afc-team-orange);
    font-weight: 800;
}

.afc-team-modal .modal-body {
    padding: 26px 30px;
}

.afc-team-modal .modal-body h4 {
    color: var(--afc-team-green);
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.afc-team-modal__bio,
.afc-team-modal__bio p {
    color: var(--afc-team-text);
    font-size: 1rem;
    line-height: 1.72;
}

.afc-team-modal__close {
    padding: 10px 22px;
    border: 1px solid var(--afc-team-green);
    background: var(--afc-team-white);
    color: var(--afc-team-green);
}

.afc-team-modal__connect {
    padding: 10px 22px;
    background: var(--afc-team-orange);
    color: var(--afc-team-white) !important;
}

.afc-team-modal__close:hover,
.afc-team-modal__close:focus,
.afc-team-modal__connect:hover,
.afc-team-modal__connect:focus {
    transform: translateY(-2px);
    outline: 0;
}

.afc-team-cta {
    position: relative;
    background:
        linear-gradient(90deg, rgba(239, 253, 243, 0.92), rgba(255, 255, 255, 0.98), rgba(239, 253, 243, 0.92));
    border-top: 3px solid var(--afc-team-orange);
    padding: 22px 0;
}

.afc-team-cta::before,
.afc-team-cta::after {
    content: "";
    position: absolute;
    bottom: 10px;
    width: 120px;
    height: 70px;
    border: 2px solid rgba(0, 102, 0, 0.32);
    border-right: 0;
    border-bottom: 0;
    border-radius: 100% 0 0 0;
}

.afc-team-cta::before {
    left: 64px;
    transform: rotate(-28deg);
}

.afc-team-cta::after {
    right: 64px;
    transform: scaleX(-1) rotate(-28deg);
}

.afc-team-cta__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.afc-team-cta__icon {
    width: 64px;
    height: 64px;
    border: 1px solid var(--afc-team-gold);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 58%, var(--afc-team-green) 0 4px, transparent 5px),
        radial-gradient(circle at 42% 35%, transparent 0 8px, var(--afc-team-light-green) 9px 100%);
}

.afc-team-cta h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2.4vw, 2.6rem);
}

.afc-team-cta p {
    margin: 6px 0 0;
    color: var(--afc-team-text);
    line-height: 1.55;
}

.afc-team-cta__button {
    min-width: 178px;
    padding: 12px 24px;
    background: var(--afc-team-green);
    color: var(--afc-team-white) !important;
    gap: 12px;
}

.afc-team-cta__button:hover,
.afc-team-cta__button:focus {
    background: var(--afc-team-orange);
    color: var(--afc-team-white) !important;
    transform: translateY(-2px);
    outline: 0;
}

@media (max-width: 1199px) {
    .afc-team-hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .afc-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .afc-team-hero .afc-team-container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-left: clamp(48px, 6vw, 128px);
        padding-right: 0;
    }

    .afc-team-hero__copy {
        max-width: 680px;
    }
}

@media (max-width: 991px) {
    .afc-team-container {
        width: min(100% - 36px, 940px);
    }

    .afc-team-hero__inner {
        grid-template-columns: 1fr;
    }

    .afc-team-hero__copy {
        text-align: center;
        max-width: 100%;
    }

    .afc-team-eyebrow {
        justify-content: center;
    }

    .afc-team-hero p,
    .afc-team-hero__copy {
        margin-left: auto;
        margin-right: auto;
    }

    .afc-team-hero h1 {
        max-width: 100%;
        font-size: clamp(2rem, 8.6vw, 3.3rem);
        line-height: 1.05;
    }

    .afc-team-hero p {
        max-width: 100%;
    }

    .afc-team-hero__media {
        min-height: 300px;
        border-radius: 42px 42px 0 0;
    }

    .afc-team-hero__media img {
        height: 320px;
    }

    .afc-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .afc-team-cta__inner {
        grid-template-columns: auto 1fr;
    }

    .afc-team-cta__button {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 575px) {
    .afc-team-container {
        width: min(100% - 28px, 520px);
    }

    .afc-team-hero {
        padding-top: 18px;
    }

    .afc-team-hero h1 {
        font-size: clamp(1.75rem, 9.5vw, 2.45rem);
        line-height: 1.12;
    }

    .afc-team-hero p {
        font-size: 0.94rem;
        line-height: 1.58;
    }

    .afc-team-eyebrow {
        letter-spacing: 0.22em;
    }

    .afc-team-eyebrow::after {
        width: 42px;
    }

    .afc-team-hero__media {
        min-height: 240px;
        border-radius: 28px 28px 0 0;
    }

    .afc-team-hero__media img {
        height: 250px;
    }

    .afc-team-members {
        padding-top: 24px;
    }

    .afc-team-section-heading {
        flex-direction: column;
        gap: 8px;
    }

    .afc-team-grid {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .afc-team-card,
    .afc-team-card img {
        min-height: 410px;
    }

    .afc-team-card__content {
        padding: 22px;
    }

    .afc-team-modal .modal-dialog {
        margin: 16px;
    }

    .afc-team-modal .modal-header {
        align-items: flex-start;
    }

    .afc-team-modal__identity {
        align-items: flex-start;
        gap: 12px;
    }

    .afc-team-modal__identity img {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .afc-team-modal__identity h3 {
        font-size: 1.25rem;
    }

    .afc-team-modal .modal-body {
        padding: 22px;
    }

    .afc-team-modal .modal-footer {
        justify-content: stretch;
    }

    .afc-team-modal__close,
    .afc-team-modal__connect {
        flex: 1 1 100%;
    }

    .afc-team-cta::before,
    .afc-team-cta::after {
        display: none;
    }

    .afc-team-cta__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .afc-team-cta__button {
        grid-column: auto;
        justify-self: center;
        width: 100%;
        max-width: 260px;
    }
}
