#index22 {
    text-align: center;
}

#index22 > * {
    box-sizing: border-box;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}


/* index22 - teacher team fixed layout, mobile first */
#index22.i22-team {
    margin: 0;
    padding-top: 36px;
    padding-bottom: 40px;
    background:
        linear-gradient(180deg, rgba(255, 248, 244, .96), rgba(255, 255, 255, .98) 46%, #fff),
        radial-gradient(circle at 8% 0, rgba(var(--clr-primary-rgb), .12), transparent 36%),
        #fff;
}

#index22 .i22-shell {
    width: min(1200px, 100%);
    max-width: 1200px;
    margin: 0 auto;
}

#index22 .i22-head h2 {
    margin: 0;
    color: #1f1b18;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: 0;
}

#index22 .i22-teacher-board {
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 719px) {
    #index22 .teacher-cards {
        grid-template-columns: none;
        grid-template-rows: repeat(2, minmax(0, auto));
        grid-auto-flow: column;
        grid-auto-columns: minmax(150px, 44vw);
        gap: 12px;
        padding: 4px 0 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #index22 .teacher-cards::-webkit-scrollbar {
        display: none;
    }
}

#index22 .teacher-card {
    display: block;
    width: auto;
    min-width: 0;
    max-width: none;
    scroll-snap-align: start;
    border: 1px solid #f0ded2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(90, 48, 25, .07);
    overflow: hidden;
    transform: translateZ(0);
    transition: transform .2s ease, box-shadow .2s ease, opacity .18s ease;
}

#index22 .teacher-card:hover {
    box-shadow: 0 14px 32px rgba(90, 48, 25, .12);
}

#index22 .teacher-card .thumb {
    aspect-ratio: 1 / 1.06;
    background: #f3eee9;
}

#index22 .teacher-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

#index22 .teacher-card .info {
    padding: 8px 8px 10px;
}

#index22 .teacher-card .info h3 {
    margin: 0 0 4px;
    color: #211b17;
    font-size: var(--font-size-14);
    font-weight: 800;
    line-height: 1.25;
}

#index22 .teacher-card .info .title-tag {
    max-width: 100%;
    margin: 0 0 6px;
    padding: 3px 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(var(--clr-primary-rgb), .08);
    color: var(--clr-primary);
    font-size: var(--font-size-14);
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#index22 .teacher-card .info p {
    color: #776b63;
    font-size: var(--font-size-14);
    line-height: 1.45;
    -webkit-line-clamp: 2;
}

#index22 .i22-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    color: #9a6a54;
    font-size: var(--font-size-14);
    font-weight: 800;
    line-height: 1.3;
}

#index22 .i22-scroll-hint::before,
#index22 .i22-scroll-hint::after {
    display: block;
    width: 18px;
    height: 1px;
    background: rgba(var(--clr-primary-rgb), .26);
    content: "";
}

#index22 .teacher-card.is-filter-hidden {
    display: none;
}

#index22 .i22-more {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

#index22 .i22-more [data-action-button] {
    width: min(100%, 320px);
    min-height: 46px;
    padding: 0 24px;
    font-size: var(--font-size-14);
    font-weight: 700;
}

@media (min-width: 720px) {
    #index22.i22-team {
        padding: 56px 28px 64px;
    }

    #index22 .i22-head h2 {
        font-size: 38px;
        line-height: 1.18;
    }

    #index22 .i22-teacher-board {
        overflow: visible;
    }

    #index22 .teacher-card {
        border-radius: 16px;
    }

    #index22 .teacher-card .info {
        padding: 13px 14px 16px;
    }

    #index22 .teacher-card .info p {
        -webkit-line-clamp: 3;
    }

    #index22 .teacher-card {
        flex: initial;
        width: auto;
        min-width: 0;
        max-width: none;
        scroll-snap-align: unset;
    }

    #index22 .i22-more {
        margin-top: 24px;
    }

    #index22 .i22-scroll-hint {
        display: none;
    }
}

@media (min-width: 1025px) {
    #index22 .i22-more [data-action-button] {
        width: auto;
        min-height: 0;
        padding: 14px 36px;
        font-size: var(--font-size-16);
    }
}

@media (min-width: 1180px) {
}
