:root {
    --tp-navy: #082746;
    --tp-ivory: #fbf7ef;
    --tp-white: #fff;
    --tp-gold: #e79a12;
    --tp-coral: #f25b37;
    --tp-muted: #647084;
    --tp-line: #e7ddce
}

.teachers-page {
    color: var(--tp-navy);
    background: #fff;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif
}

.teachers-page * {
    box-sizing: border-box
}

.teachers-container {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto
}

.teachers-hero {
    position: relative;
    padding: 88px 0 76px;
    background: var(--tp-ivory);
    overflow: hidden
}

.teachers-hero__inner {
    position: relative;
    text-align: center
}

.teachers-eyebrow {
    margin: 0 0 14px;
    color: var(--tp-gold);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase
}

.teachers-hero h1 {
    position: relative;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 6vw, 5.8rem);
    line-height: 1;
    letter-spacing: -.035em
}

.teachers-hero__description {
    position: relative;
    max-width: 600px;
    margin: 22px auto 0;
    color: var(--tp-muted);
    font-size: 1.08rem;
    line-height: 1.65
}

.teachers-hero__description p {
    margin: 0
}

.teachers-hero__line-art {
    position: absolute;
    right: -60px;
    top: -85px;
    width: 330px;
    height: 330px;
    border: 2px solid rgba(231, 154, 18, .16);
    border-radius: 50%
}

.teachers-hero__line-art::before,
.teachers-hero__line-art::after {
    position: absolute;
    content: "";
    inset: 45px;
    border: 2px solid rgba(231, 154, 18, .13);
    border-radius: 50%
}

.teachers-hero__line-art::after {
    inset: 100px
}

.teachers-listing {
    padding: 52px 0 86px
}

.teachers-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 42px
}

.teachers-filters__label {
    margin-right: 10px;
    color: var(--tp-muted);
    font-size: .94rem
}

.teachers-filter {
    min-height: 44px;
    padding: 9px 25px;
    border: 1px solid #9aa7b5;
    border-radius: 999px;
    color: var(--tp-navy);
    background: #fff;
    font: inherit;
    font-size: .92rem;
    cursor: pointer;
    transition: .2s
}

.teachers-filter:hover,
.teachers-filter:focus-visible {
    border-color: var(--tp-navy);
    outline: none;
    transform: translateY(-1px)
}

.teachers-filter.is-active {
    color: #fff;
    border-color: var(--tp-navy);
    background: var(--tp-navy)
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px
}

.teacher-card {
    border: 1px solid var(--tp-line);
    border-radius: 13px;
    background: var(--tp-ivory);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(8, 39, 70, .12)
}

.teacher-card[hidden] {
    display: none
}

.teacher-card__link {
    display: flex;
    height: 100%;
    color: inherit;
    text-decoration: none;
    flex-direction: column
}

.teacher-card__media {
    aspect-ratio: 1.28/1;
    background: #c9c9c4;
    overflow: hidden
}

.teacher-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s
}

.teacher-card:hover .teacher-card__image {
    transform: scale(1.025)
}

.teacher-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #d7c7b4, #aab5be);
    font-family: Georgia, serif;
    font-size: 3.1rem
}

.teacher-card__body {
    display: flex;
    min-height: 210px;
    padding: 25px 25px 23px;
    flex-direction: column
}

.teacher-card__role {
    margin: 0 0 11px;
    color: var(--tp-gold);
    font-size: .71rem;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase
}

.teacher-card h3 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    line-height: 1.05
}

.teacher-card__description {
    margin: 0;
    color: var(--tp-muted);
    font-size: .94rem;
    line-height: 1.55
}

.teacher-card__more {
    margin-top: auto;
    padding-top: 18px;
    color: var(--tp-gold);
    font-size: .88rem;
    font-weight: 800
}

.teachers-empty,
.teachers-notice {
    padding: 35px;
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    background: var(--tp-ivory);
    text-align: center
}

.teachers-notice p {
    margin-bottom: 0
}

.teachers-cta {
    position: relative;
    padding: 58px 0;
    color: #fff;
    background: var(--tp-navy);
    overflow: hidden
}

.teachers-cta::after {
    position: absolute;
    right: -70px;
    top: -140px;
    width: 350px;
    height: 350px;
    border: 2px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: ""
}

.teachers-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 75px;
    text-align: left
}

.teachers-cta h2 {
    margin: 0 0 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1
}

.teachers-cta p {
    margin: 0;
    color: #d5dfeb
}

.teachers-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 51px;
    padding: 12px 25px;
    border: 2px solid var(--tp-gold);
    border-radius: 6px;
    color: #fff;
    background: var(--tp-gold);
    font-weight: 800;
    text-decoration: none;
    transition: .2s
}

.teachers-button:hover {
    color: var(--tp-gold);
    background: #fff;
    transform: translateY(-2px)
}

.teacher-card__flags {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    margin: 0 0 12px;
}

.teacher-card__flags img {
    display: block;
    width: 38px;
    height: 25px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 7px rgba(8, 39, 70, 0.15);
}

@media(max-width:900px) {
    .teachers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .teachers-hero__line-art {
        right: -180px
    }

    .teachers-cta__inner {
        gap: 35px
    }
}

@media(max-width:620px) {
    .teachers-container {
        width: min(calc(100% - 24px), 1180px)
    }

    .teachers-hero {
        padding: 64px 0 57px
    }

    .teachers-hero h1 {
        font-size: 3.15rem
    }

    .teachers-hero__description {
        font-size: .98rem
    }

    .teachers-listing {
        padding: 37px 0 72px
    }

    .teachers-filters {
        align-items: stretch;
        margin-bottom: 30px
    }

    .teachers-filters__label {
        width: 100%;
        margin: 0 0 4px;
        text-align: center
    }

    .teachers-filter {
        flex: 1 1 calc(50% - 8px);
        padding-inline: 12px
    }

    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .teacher-card__body {
        min-height: 195px
    }

    .teachers-cta {
        padding: 48px 0 95px
    }

    .teachers-cta__inner {
        align-items: stretch;
        flex-direction: column;
        gap: 24px;
        text-align: center
    }

    .teachers-button {
        width: 100%
    }
}