@charset "utf-8";

/*
 * 강사소개/수강후기 별도 페이지용 보정입니다.
 * 761px 이상은 현재 PC 홈페이지 디자인을 사용하고,
 * 760px 이하는 현재 모바일 홈페이지 디자인으로 전환합니다.
 */
.ec-exact-test-body {
    margin: 0;
    background: #fff;
}

.ec-exact-test-body > .ec-exact-header {
    background: #223f99 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
}

.ec-exact-header .site-title img {
    display: block;
}

.ec-exact-header nav a[aria-current="page"] {
    color: #ffd200;
}

.ec-exact-page-main {
    padding-top: 100px;
}

.ec-mobile-standalone {
    display: none;
}

/* 현재 홈페이지의 강사소개 우측 콘텐츠를 별도 페이지 전체 폭으로 표시 */
.ec-standalone-teacher-section {
    padding: 1.6rem 0 7.5rem !important;
    overflow: hidden;
    background: #fff;
}

.ec-standalone-teacher-section .teacher-carousel {
    position: relative;
    padding-bottom: 5rem;
}

.ec-standalone-teacher-section .teacher-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 1.35rem 0 0;
}

.ec-standalone-teacher-section .teacher-filter-tabs button {
    display: inline-flex;
    min-width: 7.4rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0 1.1rem;
    border: 1px solid #223f99;
    border-radius: 999px;
    background: #fff;
    color: #223f99;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 800;
    transition: .18s ease;
}

.ec-standalone-teacher-section .teacher-filter-tabs button.on {
    border-color: #223f99;
    background: #223f99;
    color: #fff;
    box-shadow: 0 8px 18px rgba(34, 63, 153, .16);
}

.ec-standalone-teacher-section .teacher-carousel-controls {
    display: flex !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    z-index: 5;
    gap: .8rem !important;
    transform: translateX(-50%) !important;
}

.ec-standalone-teacher-section .teacher-carousel-controls button {
    display: inline-flex !important;
    width: 3.35rem !important;
    height: 3.35rem !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #223f99 !important;
    border-radius: 50% !important;
    background: #223f99 !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(34, 63, 153, .24) !important;
    cursor: pointer;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

.ec-standalone-teacher-section .teacher-carousel-controls button:hover,
.ec-standalone-teacher-section .teacher-carousel-controls button:focus-visible {
    border-color: #ffd200 !important;
    background: #ffd200 !important;
    color: #172b67 !important;
}

.ec-standalone-teacher-section .teacher-filter-empty {
    display: none;
    padding: 2.5rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 1rem;
    color: #777;
    text-align: center;
    font-weight: 700;
}

.ec-standalone-teacher-section .teacher-carousel-viewport {
    overflow-x: auto;
}

.ec-standalone-review-section {
    min-height: calc(100vh - 100px);
}

@media screen and (max-width: 760px) {
    html,
    body.ec-exact-test-body {
        margin: 0;
        padding: 0;
        background: #000 !important;
        color: #fff;
        font-family: 'Noto Sans KR', 'GmarketSans', Apple SD Gothic Neo, sans-serif;
        letter-spacing: -.055em;
        overflow-x: hidden;
    }

    body.ec-exact-test-body.ec-mobile-menu-open {
        overflow: hidden;
    }

    .ec-desktop-only,
    .ec-exact-test-body > header:not(.ec-mobile-header),
    .ec-exact-test-body > .ec-exact-page-main {
        display: none !important;
    }

    .ec-mobile-standalone {
        --ec-blue: #24449a;
        --ec-yellow: #ffd400;
        display: block;
        position: relative;
        width: 100%;
        max-width: 430px;
        min-height: 100vh;
        margin: 0 auto;
        overflow: hidden;
        background: #000;
        color: #fff;
        box-shadow: 0 0 0 1px rgba(255,255,255,.08);
    }

    /*
     * PC 공통 style.css의 전역 * 선택자가 모바일 콘텐츠에 Pretendard를 강제하므로,
     * 실제 모바일 홈페이지(index_mobile_a.php)와 동일한 글꼴 스택을 이 영역에 다시 적용합니다.
     */
    .ec-mobile-standalone,
    .ec-mobile-standalone * {
        font-family: 'Noto Sans KR', 'GmarketSans', Apple SD Gothic Neo, sans-serif !important;
    }

    .ec-mobile-standalone *,
    .ec-mobile-standalone *::before,
    .ec-mobile-standalone *::after {
        box-sizing: border-box;
    }

    .ec-mobile-standalone a {
        color: inherit;
        text-decoration: none;
    }

    .ec-mobile-standalone img {
        display: block;
        max-width: 100%;
    }

    .ec-mobile-header {
        position: fixed;
        z-index: 3000;
        top: 0;
        left: 50%;
        width: 100%;
        max-width: 430px;
        height: 66px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 20px;
        transform: translateX(-50%);
        background: linear-gradient(180deg, rgba(36,68,154,.98), rgba(36,68,154,.92));
        box-shadow: 0 1px 0 rgba(255,255,255,.08);
    }

    .ec-mobile-header.is-black {
        background: rgba(0,0,0,.94);
        box-shadow: 0 1px 0 rgba(255,255,255,.12);
        backdrop-filter: blur(8px);
    }

    .ec-mobile-logo {
        width: 116px;
        height: auto;
    }

    .ec-mobile-menu-btn {
        width: 42px;
        height: 42px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .ec-mobile-menu-btn span,
    .ec-mobile-menu-btn::before,
    .ec-mobile-menu-btn::after {
        content: "";
        display: block;
        width: 26px;
        height: 3px;
        border-radius: 3px;
        background: #fff;
        transition: transform .22s ease, opacity .22s ease;
    }

    .ec-mobile-menu-open .ec-mobile-menu-btn span {
        opacity: 0;
    }

    .ec-mobile-menu-open .ec-mobile-menu-btn::before {
        transform: translateY(9px) rotate(45deg);
    }

    .ec-mobile-menu-open .ec-mobile-menu-btn::after {
        transform: translateY(-9px) rotate(-45deg);
    }

    .ec-mobile-nav {
        position: fixed;
        z-index: 2900;
        top: 0;
        left: 50%;
        width: 100%;
        max-width: 430px;
        height: 100vh;
        padding: 90px 24px 32px;
        transform: translateX(-50%) translateY(-100%);
        background: rgba(0,0,0,.97);
        opacity: 0;
        transition: .25s;
    }

    .ec-mobile-menu-open .ec-mobile-nav {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    .ec-mobile-nav a {
        display: flex;
        width: 100%;
        height: 54px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255,255,255,.12);
        color: #fff;
        font-size: 17px;
        font-weight: 900;
        text-align: left;
    }

    .ec-mobile-nav a::after {
        content: '›';
        color: var(--ec-yellow);
        font-size: 28px;
    }

    .ec-mobile-nav a[aria-current="page"] {
        color: var(--ec-yellow);
    }

    .ec-mobile-floating {
        position: fixed;
        z-index: 3500;
        right: 10px;
        bottom: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .ec-mobile-menu-open .ec-mobile-floating {
        display: none;
    }

    .ec-mobile-floating a {
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 50%;
        box-shadow: 0 8px 25px rgba(0,0,0,.34);
        font-size: 0;
        line-height: 0;
    }

    .ec-mobile-floating a:nth-child(1) { background: #ffd400; }
    .ec-mobile-floating a:nth-child(2) { background: #2f5bb7; }
    .ec-mobile-floating a:nth-child(3) { background: #fee500; }
    .ec-mobile-floating a:nth-child(4) { background: #03c75a; }

    .ec-mobile-floating img {
        width: 23px;
        height: 23px;
        object-fit: contain;
    }

    .ec-mobile-floating .float-consult-text {
        flex-direction: column;
        color: #111;
        font-size: 11px;
        line-height: 1.02;
        font-weight: 900;
        text-indent: 0;
    }

    .ec-mobile-content {
        width: 100%;
        min-height: 100vh;
        background: #000;
    }

    .ec-mobile-section {
        position: relative;
        min-height: 100svh;
        padding: 96px 22px 36px;
    }

    .ec-mobile-title {
        margin: 0;
        color: #fff;
        text-align: center;
        font-size: 34px;
        line-height: 1.22;
        font-weight: 900;
    }

    .ec-mobile-sub {
        margin: 12px 0 0;
        color: #d8d8d8;
        text-align: center;
        font-size: 15px;
        line-height: 1.55;
        font-weight: 600;
    }

    .ec-mobile-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 22px 0 0;
    }

    .ec-mobile-dots i {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #aaa;
        opacity: .75;
        cursor: pointer;
    }

    .ec-mobile-dots i.on {
        background: var(--ec-yellow);
        opacity: 1;
    }

    /* 모바일 강사소개: 현재 index_mobile_a.php의 카드/필터/4명 페이지 구성을 적용 */
    .ec-mobile-teachers-section {
        min-height: 100svh;
        padding-top: 106px;
        background: #000;
    }

    .ec-mobile-teacher-tabs {
        display: flex;
        gap: 12px;
        margin: 28px 0 24px;
    }

    .ec-mobile-teacher-tabs button {
        flex: 1;
        height: 46px;
        padding: 0 7px;
        border: 1px solid rgba(255,255,255,.35);
        border-radius: 999px;
        background: transparent;
        color: #d8d8d8;
        font-size: 15px;
        font-weight: 900;
        white-space: nowrap;
        cursor: pointer;
    }

    .ec-mobile-teacher-tabs button.on {
        border-color: var(--ec-yellow);
        background: var(--ec-yellow);
        color: #111;
    }

    .ec-mobile-teacher-grid {
        display: block;
        margin-right: -14px;
        padding-right: 14px;
        overflow: hidden;
        touch-action: pan-y;
    }

    .ec-mobile-teacher-track {
        display: flex;
        gap: 14px;
        transition: transform .34s cubic-bezier(.22,.61,.36,1);
        will-change: transform;
    }

    .ec-mobile-teacher-page {
        flex: 0 0 92%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        align-content: start;
    }

    .ec-mobile-teacher-card {
        position: relative;
        min-width: 0;
        overflow: hidden;
        border: 1px solid rgba(60,138,255,.72);
        border-radius: 24px;
        background: linear-gradient(180deg, rgba(9,18,34,.98) 0%, rgba(3,8,16,.99) 100%);
        box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset,
                    0 0 14px rgba(46,130,255,.34),
                    0 13px 30px rgba(0,0,0,.38);
    }

    .ec-mobile-teacher-card::before {
        content: "";
        position: absolute;
        z-index: 2;
        inset: 0;
        border-radius: 24px;
        box-shadow: 0 0 0 1px rgba(134,187,255,.42) inset,
                    0 0 0 2px rgba(17,93,210,.18) inset;
        pointer-events: none;
    }

    .ec-mobile-teacher-card a {
        display: block;
        position: relative;
        z-index: 1;
        height: 100%;
    }

    .ec-mobile-teacher-photo {
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: #fff;
        color: #777;
        font-size: 13px;
    }

    .ec-mobile-teacher-photo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        box-shadow: none;
        filter: none;
    }

    .ec-mobile-teacher-body {
        min-height: 126px;
        padding: 15px 13px 16px;
        background: radial-gradient(circle at 50% 0%, rgba(0,126,255,.12) 0%, rgba(0,126,255,0) 42%),
                    linear-gradient(180deg, rgba(6,20,38,.96), rgba(3,9,18,.98));
    }

    .ec-mobile-teacher-center {
        display: block;
        color: #12a8ff;
        font-size: 13px;
        font-weight: 900;
        text-shadow: 0 0 9px rgba(18,168,255,.18);
    }

    .ec-mobile-teacher-card h2 {
        width: 100%;
        max-width: 100%;
        margin: 8px 0 0;
        overflow: visible;
        color: #fff;
        font-size: 20px;
        line-height: 1.15;
        font-weight: 900;
        white-space: nowrap;
        transform-origin: left center;
        text-shadow: 0 2px 10px rgba(0,0,0,.26);
    }

    .ec-mobile-teacher-card p {
        margin: 14px 0 0;
        color: rgba(255,255,255,.70);
        font-size: 14px;
        line-height: 1.55;
        font-weight: 700;
        word-break: keep-all;
    }

    .ec-mobile-empty {
        grid-column: 1 / -1;
        width: 100%;
        padding: 40px 0;
        color: #ccc;
        text-align: center;
        font-weight: 700;
    }

    /* 모바일 수강후기: 현재 index_mobile_a.php의 말풍선 카드 구성을 적용 */
    .ec-mobile-review-standalone,
    .ec-mobile-review-standalone .ec-mobile-content {
        background: var(--ec-blue);
    }

    .ec-mobile-reviews-section {
        min-height: 100svh;
        padding-top: 94px;
        padding-bottom: 94px;
        background: var(--ec-blue);
    }

    .ec-mobile-review-title {
        margin: 0 0 10px;
        color: #fff;
        font-size: 28px;
        line-height: 1.2;
        font-weight: 900;
    }

    .ec-mobile-review-title::after {
        content: "";
        display: block;
        width: 46px;
        height: 4px;
        margin-top: 10px;
        background: var(--ec-yellow);
    }

    .ec-mobile-review-desc {
        margin: 0 0 16px;
        color: rgba(255,255,255,.78);
        font-size: 14px;
        line-height: 1.55;
        font-weight: 600;
    }

    .ec-mobile-review-card {
        margin: 14px 0;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,.35);
        border-radius: 22px;
        background: var(--ec-blue);
        box-shadow: 0 12px 28px rgba(0,0,0,.12);
    }

    .ec-mobile-review-bubble {
        position: relative;
        padding: 22px 16px 26px;
        background: #fff;
        color: #111;
        text-align: center;
        font-size: 17px;
        line-height: 1.45;
        font-weight: 900;
        word-break: keep-all;
    }

    .ec-mobile-review-bubble::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -18px;
        border-width: 18px 16px 0;
        border-style: solid;
        border-color: #fff transparent transparent;
        transform: translateX(-50%);
    }

    .ec-mobile-review-name {
        display: block;
        margin-top: 8px;
        color: #777;
        text-align: right;
        font-size: 12px;
        font-weight: 700;
    }

    .ec-mobile-review-text {
        padding: 32px 22px 22px;
        color: #fff;
        font-size: 13px;
        line-height: 1.62;
        font-weight: 600;
        word-break: keep-all;
    }

    .ec-mobile-review-text p {
        margin: 0;
    }

    .ec-mobile-review-more {
        display: flex;
        justify-content: center;
        margin-top: 18px;
    }

    .ec-mobile-btn {
        min-width: 230px;
        min-height: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 0 26px;
        border-radius: 999px;
        background: linear-gradient(180deg,#ffe76a 0,#ffd400 58%,#ffbf00 100%);
        color: #111 !important;
        font-size: 17px;
        font-weight: 900;
        box-shadow: 0 12px 30px rgba(255,212,0,.22);
    }

    .ec-mobile-btn::after {
        content: '→';
        font-size: 22px;
    }
}

@media screen and (max-width: 390px) {
    .ec-mobile-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ec-mobile-teacher-tabs {
        gap: 8px;
    }

    .ec-mobile-teacher-tabs button {
        padding: 0 4px;
        font-size: 13px;
    }

    .ec-mobile-teacher-grid {
        margin-right: -12px;
        padding-right: 12px;
    }

    .ec-mobile-teacher-track {
        gap: 12px;
    }

    .ec-mobile-teacher-page {
        gap: 16px;
    }

    .ec-mobile-teacher-card,
    .ec-mobile-teacher-card::before {
        border-radius: 22px;
    }

    .ec-mobile-teacher-photo {
        height: 142px;
    }

    .ec-mobile-teacher-body {
        min-height: 122px;
        padding: 14px 11px 15px;
    }

    .ec-mobile-teacher-card p {
        font-size: 13px;
    }

    .ec-mobile-review-bubble {
        padding: 18px 14px 22px;
        font-size: 16px;
    }

    .ec-mobile-review-text {
        padding: 28px 18px 20px;
        font-size: 12.5px;
    }
}
