@charset "utf-8";

/* 메인 강사소개의 왼쪽 탭 폭을 유지하고 오른쪽 슬라이더만 이동 */
#sec14 > .wrap > .flex {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    column-gap: 5rem !important;
    align-items: flex-start;
}

#sec14 .sec14_tab {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
}

#sec14 .sec14_tab ul li {
    white-space: nowrap;
}

#sec14 .sec14_con {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

#sec14 .sec14_box,
#sec14 .sec14_box_wrap,
#sec14 .teacher-carousel {
    min-width: 0;
    max-width: 100%;
}

#sec14 .teacher-carousel-track {
    width: max-content;
}

/* PC 강사 슬라이드 이동 버튼: 카드 하단 중앙에 선명하게 표시 */
@media screen and (min-width: 1001px) {
    #sec14 .teacher-carousel {
        position: relative;
        padding-bottom: 5rem;
    }

    #sec14 .teacher-carousel-controls {
        display: flex !important;
        position: absolute !important;
        bottom: 0;
        left: 50%;
        z-index: 2;
        gap: 0.8rem;
        transform: translateX(-50%);
    }

    #sec14 .teacher-carousel-controls button {
        width: 3.35rem;
        height: 3.35rem;
        border: 2px solid #223f99;
        background: #223f99;
        color: #fff;
        box-shadow: 0 5px 14px rgba(34, 63, 153, 0.24);
        font-weight: 700;
    }

    #sec14 .teacher-carousel-controls button:hover:not(:disabled),
    #sec14 .teacher-carousel-controls button:focus-visible {
        border-color: #ffd200;
        background: #ffd200;
        color: #172b67;
    }

    #sec14 .teacher-carousel-controls button:disabled {
        border-color: #cbd5ed;
        background: #e5eaf6;
        color: #7e8fb9;
        box-shadow: none;
        opacity: 1;
    }
}

/*
 * 메인 페이지는 첫 화면의 배경 이미지 때문에 헤더가 투명합니다.
 * 강사 상세페이지에는 #sec01이 없어 기존 스크롤 스크립트가
 * 헤더 배경을 변경하지 못하므로, 이 페이지에서만 고정 색상을 적용합니다.
 */
.teacher-page-body > header {
    background: #223f99 !important;
}

.teacher-preview-page {
    --tp-blue: #28479f;
    --tp-navy: #10244d;
    --tp-gold: #e7b63d;
    --tp-line: #e7eaf0;
    --tp-muted: #6e7583;
    padding: 150px 0 100px;
    background: #f6f8fc;
    color: #202632;
    font-family: "Pretendard Variable", Pretendard, Arial, sans-serif;
}

.teacher-preview-page * {
    box-sizing: border-box;
}

.teacher-preview-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.teacher-preview-notice {
    margin-bottom: 24px;
    padding: 14px 18px;
    border: 1px solid #dbe3f5;
    border-radius: 12px;
    background: #eef3ff;
    color: #375184;
    font-size: 14px;
}

.teacher-preview-hero {
    margin-bottom: 42px;
    text-align: center;
}

.teacher-preview-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--tp-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .15em;
}

.teacher-preview-hero h2 {
    margin: 0 0 14px;
    color: var(--tp-navy);
    font-family: GmarketSans, sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.25;
}

.teacher-preview-hero p {
    margin: 0;
    color: var(--tp-muted);
    font-size: 17px;
}

.teacher-preview-carousel {
    position: relative;
}

.teacher-preview-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 28px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.teacher-preview-viewport::-webkit-scrollbar {
    display: none;
}

.teacher-preview-track {
    display: flex;
    gap: 20px;
}

.teacher-preview-card {
    flex: 0 0 calc((100% - 60px) / 4);
    overflow: hidden;
    border: 1px solid var(--tp-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 49, 96, .07);
    scroll-snap-align: start;
    transition: transform .2s ease, box-shadow .2s ease;
}

.teacher-preview-card:hover {
    box-shadow: 0 18px 40px rgba(24, 49, 96, .14);
    transform: translateY(-5px);
}

.teacher-preview-card a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.teacher-preview-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #e9edf5;
}

.teacher-preview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.teacher-preview-photo-empty {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #8c94a3;
    font-size: 14px;
}

.teacher-preview-card-body {
    min-height: 132px;
    padding: 20px 18px 22px;
}

.teacher-preview-branch {
    display: block;
    margin-bottom: 7px;
    color: var(--tp-blue);
    font-size: 12px;
    font-weight: 800;
}

.teacher-preview-card h3 {
    margin: 0 0 8px;
    color: #1e2634;
    font-size: 20px;
}

.teacher-preview-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--tp-muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.teacher-preview-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.teacher-preview-controls button {
    width: 46px;
    height: 46px;
    border: 1px solid #d9deea;
    border-radius: 50%;
    background: #fff;
    color: var(--tp-navy);
    cursor: pointer;
    font-size: 22px;
}

.teacher-preview-controls button:hover {
    border-color: var(--tp-blue);
    background: var(--tp-blue);
    color: #fff;
}

.teacher-detail-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
    color: var(--tp-blue);
    font-weight: 700;
    text-decoration: none;
}

.teacher-detail-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(24, 49, 96, .11);
}

.teacher-detail-top {
    display: grid;
    grid-template-columns: minmax(300px, 42%) 1fr;
}

.teacher-detail-image {
    min-height: 560px;
    background: #e9edf5;
}

.teacher-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.teacher-detail-summary {
    padding: 58px 54px;
}

.teacher-detail-summary h2 {
    margin: 8px 0 12px;
    color: var(--tp-navy);
    font-family: GmarketSans, sans-serif;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.25;
}

.teacher-detail-tag {
    margin: 0 0 34px;
    color: var(--tp-muted);
    font-size: 17px;
}

.teacher-detail-facts {
    display: grid;
    gap: 18px;
    margin: 0;
}

.teacher-detail-facts div {
    padding-bottom: 17px;
    border-bottom: 1px solid var(--tp-line);
}

.teacher-detail-facts dt {
    margin-bottom: 7px;
    color: var(--tp-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.teacher-detail-facts dd {
    margin: 0;
    color: #343b48;
    font-size: 15px;
    line-height: 1.65;
}


/* EC_FIX_20260701_TEACHER_SCHEDULE_PRODUCTION_01: 강사 수업시간 메트릭스 도식화 */
.teacher-detail-schedule-fact dd {
    overflow-x: auto;
}

.teacher-schedule-visual {
    width: 100%;
    max-width: 430px;
    padding: 10px;
    border: 1px solid #dce3f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.teacher-schedule-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #dce3f0;
    border-radius: 10px;
    color: #1e2634;
    font-size: 14px;
    line-height: 1.4;
}

.teacher-schedule-table th,
.teacher-schedule-table td {
    height: 42px;
    border-right: 1px solid #dce3f0;
    border-bottom: 1px solid #dce3f0;
    background: #fff;
    text-align: center;
    vertical-align: middle;
}

.teacher-schedule-table tr > *:last-child {
    border-right: 0;
}

.teacher-schedule-table tbody tr:last-child > * {
    border-bottom: 0;
}

.teacher-schedule-table thead th {
    height: 36px;
    background: #f4f6fb;
    color: #223f99;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}

.teacher-schedule-table .teacher-schedule-corner,
.teacher-schedule-table tbody th {
    width: 44px;
}

.teacher-schedule-table tbody th {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
}

.teacher-schedule-row-morning th,
.teacher-schedule-row-morning td.is-on {
    background: #dff3ff;
}

.teacher-schedule-row-afternoon th,
.teacher-schedule-row-afternoon td.is-on {
    background: #fff2b9;
}

.teacher-schedule-row-evening th,
.teacher-schedule-row-evening td.is-on {
    background: #ffd6c9;
}

.teacher-schedule-table td.is-on {
    position: relative;
}

.teacher-schedule-table td.is-on span {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 1;
    width: calc(var(--time-span, 1) * 100%);
    padding: 2px 2px;
    color: #17244d;
    font-size: clamp(12px, 3.15vw, 14px);
    font-weight: 900;
    letter-spacing: .025em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transform: translateY(-50%);
}

.teacher-schedule-sat-note {
    margin: 8px 2px 0;
    color: #17244d;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1.45;
}

@media screen and (max-width: 480px) {
    .teacher-schedule-visual {
        padding: 9px;
    }

    .teacher-schedule-table {
        font-size: 13px;
    }

    .teacher-schedule-table th,
    .teacher-schedule-table td {
        height: 40px;
    }

    .teacher-schedule-table thead th {
        height: 34px;
        font-size: 12px;
    }

    .teacher-schedule-table .teacher-schedule-corner,
    .teacher-schedule-table tbody th {
        width: 42px;
    }

    .teacher-schedule-table tbody th,
    .teacher-schedule-sat-note {
        font-size: 12px;
    }

    .teacher-schedule-table td.is-on span {
        font-size: 12px;
        letter-spacing: .02em;
    }
}

.teacher-detail-intro {
    padding: 48px 54px 54px;
    border-top: 1px solid var(--tp-line);
    font-size: 16px;
    line-height: 1.85;
}

.teacher-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.teacher-detail-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--tp-blue);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
}

.teacher-detail-button.secondary {
    border: 1px solid #d9deea;
    background: #fff;
    color: var(--tp-navy) !important;
}

.teacher-detail-button.disabled {
    background: #d9dde6;
    color: #8b919c !important;
    cursor: default;
}

.teacher-reviews {
    margin-top: 42px;
    padding: 44px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(24, 49, 96, .08);
}

.teacher-reviews-head h3 {
    margin: 0 0 8px;
    color: var(--tp-navy);
    font-size: 28px;
}

.teacher-reviews-head p {
    margin: 0;
    color: var(--tp-muted);
}

.teacher-review-list {
    display: grid;
    gap: 14px;
    margin: 28px 0 34px;
}

.teacher-review-item {
    overflow: hidden;
    padding: 0 24px;
    border: 1px solid var(--tp-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(24, 49, 96, .035);
}

.teacher-review-item.pending {
    border-color: #ead7a2;
    background: #fffaf0;
}

.teacher-review-item p {
    min-height: 82px;
    margin: 0;
    padding: 24px 0 20px;
    color: #272d37;
    font-size: 16px;
    line-height: 1.75;
}

.teacher-review-meta {
    display: flex;
    min-height: 55px;
    align-items: center;
    border-top: 1px solid #e6e8ed;
}

.teacher-review-name {
    color: #7b818c;
    font-size: 14px;
    font-weight: 600;
}

.teacher-review-name::before {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 9px 2px 1px;
    border-radius: 50%;
    background: var(--tp-blue);
    content: "";
}

.teacher-review-status {
    margin-left: 8px;
    color: #a47700;
    font-size: 12px;
    font-weight: 700;
}

.teacher-review-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.teacher-review-admin form {
    margin: 0;
}

.teacher-review-admin button,
.teacher-review-edit button {
    padding: 7px 12px;
    border: 0;
    border-radius: 8px;
    background: #e9edf7;
    color: #324a80;
    cursor: pointer;
    font-weight: 700;
}

.teacher-review-admin button.danger {
    background: #fff0f0;
    color: #b23b3b;
}

.teacher-review-edit {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.teacher-review-edit input,
.teacher-review-edit textarea,
.teacher-review-form input,
.teacher-review-form textarea {
    width: 100%;
    border: 1px solid #d9deea;
    border-radius: 10px;
    background: #fff;
    color: #252b36;
    font: inherit;
}

.teacher-review-edit input,
.teacher-review-form input {
    height: 46px;
    padding: 0 14px;
}

.teacher-review-edit textarea,
.teacher-review-form textarea {
    min-height: 110px;
    padding: 13px 14px;
    resize: vertical;
}

.teacher-review-form {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 10px;
    align-items: start;
}

.teacher-review-form button {
    min-width: 110px;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: var(--tp-blue);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.teacher-review-form .teacher-review-message {
    grid-column: 2 / 3;
}

.teacher-review-form .teacher-review-submit {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    height: 100%;
    min-height: 110px;
}

.teacher-review-help {
    margin-top: 10px;
    color: #8a909c;
    font-size: 12px;
}

.teacher-review-empty {
    padding: 26px;
    border: 1px dashed #d6dce8;
    border-radius: 14px;
    color: #818895;
    text-align: center;
}

.teacher-preview-empty {
    padding: 80px 20px;
    border-radius: 20px;
    background: #fff;
    color: #737b89;
    text-align: center;
}

@media screen and (max-width: 1000px) {
    #sec14 > .wrap > .flex {
        display: block !important;
    }

    #sec14 .sec14_tab {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    #sec14 .sec14_tab ul li {
        white-space: normal;
    }

    .teacher-preview-card {
        flex-basis: calc((100% - 40px) / 3);
    }

    .teacher-detail-summary {
        padding: 44px 36px;
    }
}

@media screen and (max-width: 760px) {
    /*
     * 모바일 메인 상단은 흰색 여백과 겹칠 때 흰 로고와 메뉴 버튼이
     * 보이지 않으므로 모바일에서만 헤더 배경색을 고정합니다.
     */
    body > header {
        background: #223f99 !important;
    }

    .teacher-preview-page {
        padding: 105px 0 72px;
    }

    .teacher-preview-inner {
        width: min(100% - 28px, 1180px);
    }

    .teacher-preview-hero {
        margin-bottom: 26px;
        text-align: left;
    }

    .teacher-preview-hero p {
        font-size: 14px;
        line-height: 1.6;
    }

    .teacher-preview-track {
        gap: 12px;
    }

    .teacher-preview-card {
        flex-basis: 44%;
        border-radius: 14px;
    }

    .teacher-preview-card-body {
        min-height: 112px;
        padding: 15px 13px 17px;
    }

    .teacher-preview-card h3 {
        font-size: 16px;
    }

    .teacher-preview-card p {
        font-size: 12px;
    }

    .teacher-preview-controls {
        display: none;
    }

    .teacher-detail-top {
        display: block;
    }

    .teacher-detail-image {
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    .teacher-detail-summary,
    .teacher-detail-intro,
    .teacher-reviews {
        padding: 28px 22px;
    }


    .teacher-schedule-visual {
        max-width: none;
        padding: 8px;
    }

    .teacher-schedule-table {
        font-size: 12px;
    }

    .teacher-schedule-table th,
    .teacher-schedule-table td {
        height: 34px;
    }

    .teacher-schedule-table tbody th,
    .teacher-schedule-sat-note {
        font-size: 12px;
    }

    .teacher-schedule-table td.is-on span {
        font-size: 12px;
    }

    .teacher-detail-actions {
        display: grid;
    }

    .teacher-review-item {
        padding: 0 18px;
    }

    .teacher-review-item p {
        min-height: 70px;
        padding: 20px 0 17px;
        font-size: 14px;
    }

    .teacher-review-meta {
        min-height: 48px;
    }

    .teacher-review-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .teacher-review-form .teacher-review-message,
    .teacher-review-form .teacher-review-submit {
        grid-column: auto;
        grid-row: auto;
    }

    .teacher-review-form .teacher-review-submit {
        min-height: 48px;
    }
}

/* 메인 홈페이지 강사소개 슬라이더 모바일 표시 - 50% 축소 */
@media screen and (max-width: 640px) {
    #sec14 .teacher-card {
        flex: 0 0 38% !important;
        min-width: 130px !important;
        max-width: 160px !important;
    }

    #sec14 .teacher-card-photo {
        aspect-ratio: 1 / 1.15 !important;
    }

    #sec14 .teacher-card-info {
        min-height: 82px !important;
        padding: 0.65rem 0.6rem 0.75rem !important;
    }

    #sec14 .teacher-card-info h4 {
        font-size: 0.9rem !important;
        line-height: 1.25 !important;
    }

    #sec14 .teacher-card-info p {
        font-size: 0.72rem !important;
        line-height: 1.35 !important;
        -webkit-line-clamp: 2 !important;
    }
}
