/* 선생님 리스트 */
#section01 ._teacherList {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 타이틀/필터 섹션 */
#section01 ._teacherList .title-section {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 38px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#section01 ._teacherList .title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#section01 ._teacherList .main-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    color: #191919;
}

#section01 ._teacherList .sub-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5em;
    letter-spacing: -0.02em;
    color: #595959;
}

/* BEST 선생님 섹션 */
#section01 ._teacherList .best-section {
    /* background: linear-gradient(172deg, rgba(0, 0, 0, 1) 0%, rgba(49, 49, 49, 1) 100%); */
    border-radius: 16px;
    /* padding: 18px 22px 22px; */
    display: flex;
    flex-direction: row;
    gap: 14px;
    margin-bottom: 42px;
}

#section01 ._teacherList .best-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #07133C;
    padding: 22px;
    min-width: 96px;
}

#section01 ._teacherList .best-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#section01 ._teacherList .best-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    color: #FFFFFF;
}

#section01 ._teacherList .best-desc {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5em;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

#section01 ._teacherList .best-cards {
    display: flex;
    gap: 16px;
    position: relative;
    width: 946px;
}

#section01 ._teacherList .best-card {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    max-width: 226px;
    min-width: 226px;
}

#section01 ._teacherList .best-card-header {
    /* background: #EFF2F6; */
    padding: 16px 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
}

#section01 ._teacherList .best-card.dark .best-card-header {
    background: #000000;
}

#section01 ._teacherList .best-badge {
    /* background: #FFCC00; */
    /* padding: 2px 3px; */
    /* border-radius: 2px; */
}

#section01 ._teacherList .best-badge-text {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 11px;
    line-height: 1em;
    color: white;
    background: #07133C;
    padding: 1px 3px;
    display: flex;
}

#section01 ._teacherList .best-category {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1em;
    color: #171717;
}

#section01 ._teacherList .best-card.dark .best-category {
    color: #EBEBEB;
}

#section01 ._teacherList .best-card-image {
    height: 280px;
    /* background: linear-gradient(180deg, rgba(239, 242, 246, 0) 26%, rgba(239, 242, 246, 0.69) 36%, rgba(239, 242, 246, 1) 46%), #EFF2F6; */
    position: relative;
    overflow: hidden;
}

#section01 ._teacherList .best-card.dark .best-card-image {
    /* background: linear-gradient(180deg, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.69) 36%, rgba(0, 0, 0, 1) 46%), #1a1a1a; */
}

#section01 ._teacherList .best-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#section01 ._teacherList .best-card-info {
    position: absolute;
    left: 16px;
    bottom: 16px;
    /* right: 18px; */
}

#section01 ._teacherList .teacher-name {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    color: #040404;
    margin-bottom: 2px;
}

#section01 ._teacherList .best-card.dark .teacher-name {
    color: #FFFFFF;
}

#section01 ._teacherList .teacher-desc {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    color: #040404;
    white-space: pre-line;
}

#section01 ._teacherList .best-card.dark .teacher-desc {
    color: #FFFFFF;
}

/* 필터 섹션 */
#section01 ._teacherList .content-wrapper {
    width: 100%;
}

#section01 ._teacherList .filter-section {
    /* background: #DEE4ED; */
    border-radius: 10px;
    /* padding: 12px; */
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

#section01 ._teacherList .filter-btn {
    background: #EFF2F6;
    border: none;
    border-radius: 80px;
    /* padding: 9px 16px; */
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#section01 ._teacherList .filter-btn.active {
    background: #2754E7;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.37);
}

#section01 ._teacherList .filter-btn-text {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    color: #191E24;
}

#section01 ._teacherList .filter-btn.active .filter-btn-text {
    color: #FFFFFF;
}

#section01 ._teacherList .filter-count {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    color: #191E24;
}

#section01 ._teacherList .filter-btn.active .filter-count {
    color: #FFFFFF;
}

/* 선생님 카드 그리드 */
#section01 ._teacherList .teachers-grid {
    display: flex;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

#section01 ._teacherList .teacher-card {
    border-radius: 8px;
    /* overflow: hidden; */
    cursor: pointer;
    transition: transform 0.3s ease;
    /* position: relative; */
    border-radius: 16px;
    border: 1px solid #DEE4ED;
    padding: 20px 20px;
    width: 210px;
}

.teacher-card a {
    display: flex;
    flex-direction: column;

}

#section01 ._teacherList .teacher-card:hover {
    transform: translateY(-4px);
}

#section01 ._teacherList .teacher-card.hidden {
    display: none;
}

#section01 ._teacherList .teacher-card-header {
    /* background: #EFF2F6; */
    /* padding: 8px 0 0 8px; */
    display: flex;
}

#section01 ._teacherList .teacher-card.gray .teacher-card-header {
    background: #D9D9D9;
}

#section01 ._teacherList .teacher-category {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1em;
    color: #8898AF;
}

#section01 ._teacherList .teacher-card-image {
    /* height: 196px; */
    /* background: linear-gradient(180deg, rgba(239, 242, 246, 0) 26%, rgba(239, 242, 246, 0.69) 36%, rgba(239, 242, 246, 1) 46%), #EFF2F6; */
    /* position: relative; */
    overflow: hidden;
}

#section01 ._teacherList .teacher-card.gray .teacher-card-image {
    background: linear-gradient(180deg, rgba(217, 217, 217, 0) 26%, rgba(217, 217, 217, 0.69) 36%, rgba(217, 217, 217, 1) 46%), #D9D9D9;
}

#section01 ._teacherList .teacher-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#section01 ._teacherList .teacher-card-info {
    /* position: absolute; */
    /* left: 14px;
    bottom: 14px;
    right: 14px; */
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 5px;
}

#section01 ._teacherList .teacher-card .teacher-name {
    font-size: 16px;
    color: #191919;
    /* margin-bottom: 2px; */
}

#section01 ._teacherList .teacher-card .teacher-desc {
    font-size: 12px;
    letter-spacing: -0.01em;
    color: #191919;
}


.rowOneSlick {
    position: relative;
}

.rowOneSlick .slick-slide {
    margin: 0 7px;
    /* opacity: 0.5; */
}

.rowOneSlick .slick-slide.slick-center {
    opacity: 1;
}

.rowOneSlick .slick-next {
    width: 28px;
    height: 28px;
    background: url('/assets/teacher/list/r_btn2.svg') no-repeat !important;
    position: absolute;
    top: 121px;
    left: -103px;
    z-index: 1;
    font-size: 0;
}

.rowOneSlick .slick-prev {
    width: 28px;
    height: 28px;
    background: url('/assets/teacher/list/l_btn2.svg') no-repeat !important;
    position: absolute;
    top: 121px;
    left: -135px;
    z-index: 1;
    font-size: 0;
}

.moToogleBtn {
    display: none;
}

.filter-wrap {
    background: #fff;
    /* border: 1px solid #e2e6ea; */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

/* ── 태그 공통 ── */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 14px;
    border-radius: 100px;
    border: 1px solid #EFF2F6;
    background: #EFF2F6;
    font-size: 13px;
    color: #191E24;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
}

.tag:hover {
    border-color: #EFF2F6;
    background: #EFF2F6;
}

.tag.active {
    background: #2754E7;
    border-color: #2754E7;
    color: #fff;
    font-weight: 500;
}

.tag .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    /* padding: 0 5px; */
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    /* background: rgba(255, 255, 255, 0.25); */
    color: #fff;
}

.tag:not(.active) .badge {
    /* background: #f2f4f7; */
    color: #191E24;
}

/* ── 토글 버튼 ── */
.toggle-btn {
    flex-shrink: 0;
    /* width: 32px; */
    /* height: 32px; */
    border-radius: 50%;
    /* border: 1px solid #d0d5dd; */
    /* background: #fff; */
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.toggle-btn:hover {
    /* border-color: #98a2b3; */
    /* background: #f9fafb; */
}

.toggle-btn svg {
    transition: transform .3s ease;
}

.toggle-btn.open svg {
    transform: rotate(180deg);
}

/* ── 1줄 row ── */
.filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    /* padding: 14px 16px; */
    flex-wrap: wrap;
    /* PC기본 */
}

/* ── 구분선 ── */
.divider {
    height: 1px;
    /* background: #f2f4f7; */
    margin: 0 16px;
    opacity: 0;
    transition: opacity .3s;
}

.divider.show {
    opacity: 1;
}

/* ── 펼쳐지는 영역 ── */
.filter-expand {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.filter-expand.open {
    max-height: 500px;
    padding: 0 16px 14px;
}

.toggle-btn {
    display: none !important;
}

/* 모바일 반응형 */
@media screen and (max-width: 768px) {

    .rowOneSlick .slick-next {
        width: 28px;
        height: 28px;
        background: url('/assets/teacher/list/r_btn2.svg') no-repeat !important;
        position: absolute;
        top: -57px;
        right: 16px;
        z-index: 1;
        font-size: 0;
    }

    .rowOneSlick .slick-prev {
        width: 28px;
        height: 28px;
        background: url('/assets/teacher/list/l_btn2.svg') no-repeat !important;
        position: absolute;
        top: -57px;
        right: 50px;
        z-index: 1;
        font-size: 0;
    }

    .toggle-btn {
        display: flex !important;
    }

    .csmCon {
        width: 100%;
        min-height: -webkit-fill-available;
        border-radius: 0px;
        width: calc(100% - 40px);
        padding: 20px;
    }

    #top_btn2,
    #top_btn {
        display: none;
    }

    #header {
        display: none;
    }

    #footer {
        display: none;
    }

    ._leftMenu {
        display: none;
    }

    #section01 ._teacherList {
        padding: 0px;
    }

    #section01 ._teacherList .title-section {
        padding: 24px 16px;
    }

    #section01 ._teacherList .best-header {
        padding: 20px 16px;
    }

    #section01 ._teacherList .main-title {
        font-size: 20px;
    }

    #section01 ._teacherList .sub-title {
        font-size: 12px;
    }

    #section01 ._teacherList .best-section {
        padding: 0px;
        margin-bottom: 32px;
        flex-direction: column;
    }

    #section01 ._teacherList .best-title {
        font-size: 16px;
    }

    #section01 ._teacherList .best-desc {
        font-size: 12px;
    }

    #section01 ._teacherList .best-cards {
        flex-direction: column;
        width: 100%;
    }

    #section01 ._teacherList .best-card-image {
        height: 240px;
    }

    #section01 ._teacherList .teacher-name {
        font-size: 20px;
    }

    #section01 ._teacherList .teacher-desc {
        font-size: 13px;
    }

    #section01 ._teacherList .filter-section {
        padding: 10px;
        gap: 8px;
    }

    #section01 ._teacherList .filter-btn {
        padding: 8px 14px;
    }

    #section01 ._teacherList .filter-btn-text,
    #section01 ._teacherList .filter-count {
        font-size: 13px;
    }

    #section01 ._teacherList .teachers-grid {
        gap: 16px;
        width: calc(100% - 32px);
        margin-left: 16px;
        margin-right: 16px;
    }

    #section01 ._teacherList .teacher-card {
        width: calc(50% - 42px);
        padding: 16px;
    }

    #section01 ._teacherList .teacher-card-image {
        /* height: 280px; */
    }

    #section01 ._teacherList .teacher-card .teacher-name {
        font-size: 18px;
    }

    #section01 ._teacherList .teacher-card .teacher-desc {
        font-size: 13px;
    }

    .filter-row {
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .toggle-btn {
        display: flex;
        margin-left: auto;
    }

    .tag.is-hidden {
        display: none;
    }

    .filter-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .filter-expand.open {
        padding: 0px;
        margin-top: 8px;
    }
}