/* =========================================================================
   고등부 공개 홈페이지 — 레거시 _high/assets/style.css(highsample.html 디자인 토큰) 정리본
   · 외부 리소스 없음 (시스템 글꼴), 모바일 우선
   · 글자 크기는 12 / 14 / 16px (히어로만 clamp 확대)
   · 뺀 것: 배너(banner.css) · 설명회 · 관리자 바 · 모바일 카드 시간표(레거시에서 이미 폐지)
   · 바뀐 것: 모바일에서도 시간표를 보여 준다(가로 스크롤), 인라인 <style> 들을 여기로 모음
   ========================================================================= */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f7;
    --text-primary: #333333;
    --text-secondary: #7b838c;
    --accent-blue: #d4efff;
    --accent-blue-strong: #3aa6e8;
    --accent-dark: #2b2b2b;
    --smp-green: #7ac143;
    --smp-blue: #1a7a8c;
    --divider: #f0f0f0;
    --line: #e9ecef;
    --danger: #d93a3a;
    --ok: #198754;
    --radius: 14px;
    --radius-sm: 8px;
    --header-h: 76px;
    --fs-lg: 16px;
    --fs-base: 14px;
    --fs-sm: 12px;
    --shadow: 0 4px 18px rgba(0, 0, 0, .06);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, .18);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg-primary); color: var(--text-primary); font-family: var(--font-main); font-size: var(--fs-base); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: var(--fs-base); color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-blue-strong); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #000; color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ============================ Header / Nav ============================ */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--divider); }
.header-inner { max-width: 1040px; margin: 0 auto; padding: 0 16px; height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; }
.brand-logo { display: block; width: auto; }
.brand-logo-pc { height: 63px; }
.brand-logo-mo { height: 37px; display: none; }
.brand-mark { width: 32px; height: 32px; flex: 0 0 32px; background: linear-gradient(135deg, var(--smp-green), var(--smp-blue)); color: #fff; border-radius: 9px; display: grid; place-items: center; font-size: var(--fs-lg); font-weight: 800; }
.brand-text { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.5px; display: flex; flex-direction: column; line-height: 1.15; }
.brand-text em { font-style: normal; font-size: var(--fs-sm); font-weight: 600; color: var(--text-secondary); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: 999px; font-weight: 500; transition: background .15s, color .15s; white-space: nowrap; }
.nav-link:hover { background: var(--bg-secondary); }
.nav-link.is-active { background: var(--accent-dark); color: #fff; font-weight: 700; }
.nav-auth { border: 1px solid var(--line); color: var(--text-secondary); margin-left: 6px; }

.nav-toggle { margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--divider); background: #fff; border-radius: 10px; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ Main / Sections ============================ */
.site-main { min-height: 60vh; }
.page-head { padding: 36px 0 12px; }
.page-head .container { display: flex; flex-direction: column; gap: 6px; }
.page-title { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.3px; }
.page-title-sub { margin-left: 4px; font-size: var(--fs-base); font-weight: 400; color: var(--text-secondary); }
.page-desc { color: var(--text-secondary); }
.page-desc a { color: var(--text-primary); font-weight: 600; }
.section { padding: 14px 0 40px; }
.container.section { padding-left: 16px; padding-right: 16px; }
.section-title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 14px; }
.section-title-mt { margin-top: 36px; }

/* ============================ Buttons ============================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--text-primary); padding: 10px 18px; border-radius: 999px; font-weight: 600; transition: all .18s; line-height: 1.1; }
.btn:hover { background: var(--bg-secondary); }
.btn-dark { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: none; }
.btn-sm { padding: 7px 14px; font-size: var(--fs-sm); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-block { width: 100%; }
.btn-link { border: 0; background: none; padding: 4px 2px; color: var(--smp-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; background: var(--bg-secondary); color: var(--text-secondary); line-height: 1.6; }
.pill-y { background: #e7f6ee; color: var(--ok); }
.pill-n { background: #eef0f2; color: #5f6770; }
.pill-drop { background: #fdeaea; color: #c0392b; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.empty-state { padding: 44px 20px; text-align: center; color: var(--text-secondary); background: var(--bg-secondary); border-radius: var(--radius); }

/* ============================ Home ============================ */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--divider);
    background:
        radial-gradient(120% 85% at 86% -25%, rgba(122, 193, 67, .18) 0%, rgba(122, 193, 67, 0) 55%),
        radial-gradient(120% 95% at -8% 120%, rgba(26, 122, 140, .15) 0%, rgba(26, 122, 140, 0) 55%),
        linear-gradient(160deg, #eef7ff 0%, #f5faff 48%, #ffffff 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background-image: linear-gradient(to right, rgba(26, 122, 140, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(26, 122, 140, .05) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(130% 110% at 18% -5%, #000 30%, transparent 82%); mask-image: radial-gradient(130% 110% at 18% -5%, #000 30%, transparent 82%);
    animation: heroGridPan 8s linear infinite; }
@keyframes heroGridPan { to { background-position: 34px 34px; } }
.hero::after { content: ""; position: absolute; inset: -25%; z-index: -3; pointer-events: none; filter: blur(26px);
    background:
        radial-gradient(38% 48% at 22% 30%, rgba(122, 193, 67, .34), transparent 72%),
        radial-gradient(42% 52% at 78% 22%, rgba(143, 212, 255, .36), transparent 72%),
        radial-gradient(46% 56% at 62% 88%, rgba(26, 122, 140, .30), transparent 72%);
    background-size: 200% 200%;
    animation: heroAurora 5s ease-in-out infinite alternate; }
@keyframes heroAurora { 0% { background-position: 0% 50%; } 50% { background-position: 100% 20%; } 100% { background-position: 35% 100%; } }
.hero-deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(22px); }
.hero-orb-1 { width: 280px; height: 280px; top: -80px; right: 5%; background: radial-gradient(circle at 32% 30%, rgba(122, 193, 67, .55), rgba(122, 193, 67, 0) 70%); animation: heroFloat 3s ease-in-out infinite alternate; }
.hero-orb-2 { width: 220px; height: 220px; bottom: -90px; left: 3%; background: radial-gradient(circle at 32% 30%, rgba(26, 122, 140, .42), rgba(26, 122, 140, 0) 70%); animation: heroFloat 4s ease-in-out -5s infinite alternate; }
.hero-orb-3 { width: 160px; height: 160px; top: 24%; left: 46%; background: radial-gradient(circle at 32% 30%, rgba(143, 212, 255, .5), rgba(143, 212, 255, 0) 70%); animation: heroFloat 3s ease-in-out -3s infinite alternate; }
@keyframes heroFloat { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(44px, -36px, 0) scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .hero-orb, .hero::before, .hero::after { animation: none; } }
.hero-inner { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: clamp(40px, 9vw, 66px) 16px clamp(36px, 8vw, 58px); }
.hero-slogan { display: flex; flex-direction: column; gap: clamp(8px, 1.4vw, 14px); max-width: 760px; }
.hero-slogan::before { content: ""; width: 40px; height: 4px; margin-bottom: 18px; border-radius: 4px; background: linear-gradient(90deg, var(--smp-green), var(--smp-blue)); }
.hero-lead { font-size: clamp(16px, 2.1vw, 22px); font-weight: 700; line-height: 1.5; letter-spacing: -.02em; color: #4a5560; }
.hero-emph { font-size: clamp(22px, 3.7vw, 40px); font-weight: 800; line-height: 1.32; letter-spacing: -.035em; color: var(--accent-dark); white-space: nowrap; }
.hero-emph-ci { display: inline-block; height: 1.5em; width: auto; vertical-align: -.3em; margin-left: .08em; }

.home-cols { display: grid; grid-template-columns: 1fr; gap: 28px; }
.home-col { min-width: 0; }
.home-board + .home-board { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head .section-title { margin-bottom: 0; }
.more-link { font-size: var(--fs-sm); font-weight: 700; color: var(--text-secondary); white-space: nowrap; }
.more-link:hover { color: var(--text-primary); }
.grade-shortcuts { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; height: 100%; }
.grade-card { --gc: #2563eb; --gcbg: #edf3ff; position: relative; display: flex; flex-direction: column; gap: 7px; padding: 15px 16px 14px; border-radius: 16px; border: 1px solid #e6eaf0; background: #fff; min-height: 104px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.grade-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gc); }
.grade-card::after { content: ""; position: absolute; right: -26px; top: -26px; width: 70px; height: 70px; border-radius: 50%; background: var(--gcbg); }
.grade-card .gc-head { position: relative; display: flex; align-items: center; gap: 7px; }
.grade-card .gc-grade { font-size: 13px; font-weight: 800; color: #fff; background: var(--gc); border-radius: 7px; padding: 2px 8px; }
.grade-card .gc-label { font-size: 12px; font-weight: 700; color: #475569; }
.grade-card .gc-count { position: relative; font-size: 14px; font-weight: 800; color: var(--gc); }
.grade-card .gc-go { position: relative; margin-top: auto; font-size: 12px; font-weight: 700; color: var(--gc); display: flex; align-items: center; gap: 3px; }
.grade-card .gc-go i { font-style: normal; transition: transform .15s ease; }
.grade-card:nth-child(1) { --gc: #2563eb; --gcbg: #edf3ff; }
.grade-card:nth-child(2) { --gc: #0d9488; --gcbg: #e7f6f3; }
.grade-card:nth-child(3) { --gc: #c26a04; --gcbg: #fdf3e3; }
.grade-card:nth-child(4) { --gc: #7c3aed; --gcbg: #f3edfe; }
.grade-card:not(.is-off):hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 23, 42, .10); border-color: var(--gc); }
.grade-card:not(.is-off):hover .gc-go i { transform: translateX(3px); }
.grade-card.is-off { --gc: #8f96a1; --gcbg: #f0f1f4; background: #f4f5f8; border-color: #e8eaef; }
.grade-card.is-off .gc-grade { background: #aab1bc; }
.grade-card.is-off .gc-label, .grade-card.is-off .gc-count { color: #8f96a1; }
@media (min-width: 861px) { .home-cols { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ============================ 게시판 ============================ */
.ntc-search { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-bottom: 14px; flex-wrap: wrap; }
.ntc-search input[type=search] { flex: 1 1 180px; max-width: 280px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.notice-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--accent-dark); }   /* 구분선은 끝에서 끝까지, 글은 a 의 좌우 여백으로 */
.notice-item { border-bottom: 1px solid var(--line); }
.notice-item a { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px 10px; padding: 12px 14px; transition: background .15s; }
.notice-item a:hover { background: var(--bg-secondary); }
.notice-item.is-pinned { background: #fbfdff; }
.notice-item.is-current { background: #f2f8ff; }
.notice-badge { flex: 0 0 auto; display: flex; gap: 6px; }
.notice-subject { flex: 1 1 60%; min-width: 0; font-weight: 500; }
.notice-item.is-pinned .notice-subject { font-weight: 700; }
.notice-date { flex: 0 0 100%; font-size: var(--fs-sm); color: var(--text-secondary); }
@media (min-width: 721px) {
    .notice-item a { flex-wrap: nowrap; align-items: center; gap: 14px; padding: 16px 14px; }
    .notice-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .notice-date { flex: 0 0 auto; }
}
.notice-view-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 22px; }
.notice-view-title { margin-top: 8px; font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.3px; }
.notice-view-meta { margin-top: 10px; display: flex; gap: 14px; font-size: var(--fs-sm); color: var(--text-secondary); }
.notice-view-body { line-height: 1.85; }
.notice-view-body img { height: auto; }
.notice-view-body table { max-width: 100%; border-collapse: collapse; }
.ntc-files { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.ntc-files .lab { font-weight: 700; color: #444; flex: 0 0 100%; }
.ntc-files a { color: #0b5ed7; font-size: 13px; }
.ntc-files a::before { content: "↓ "; }
.ntc-files a:hover { text-decoration: underline; }
.ntc-apply { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.ntc-apply-title { font-weight: 700; font-size: var(--fs-lg); margin-bottom: 4px; }
.list-below { margin-top: 32px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; }
.pager a:hover { background: var(--bg-secondary); }
.pager .on { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
.pager-edge { color: var(--text-secondary); }
@media (max-width: 575px) { .pager { flex-wrap: nowrap; gap: 4px; } .pager .pg-far { display: none; } }   /* 휴대폰: 묶음 안 5쪽만 — 한 줄 (HighSite::pager) */

/* ============================ 개설강좌 ============================ */
.subject-tabs, .grade-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.subject-tabs { margin-bottom: 18px; }
.grade-tabs { margin-bottom: 12px; }
.subject-tab, .grade-tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 600; line-height: 1; transition: all .18s; }
.subject-tab.is-active { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); font-weight: 700; }
.grade-tab:hover { border-color: var(--accent-blue-strong); }
.grade-tab.is-active { background: var(--accent-blue); border-color: var(--accent-blue-strong); font-weight: 700; }
.filter-area { display: none; }
.filter-left { flex: 1 1 auto; min-width: 0; }
.filter-right { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; }
.teacher-filter { font-weight: 600; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; min-width: 170px; max-width: 260px; }
.mobile-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.mobile-filters .mf-row { display: flex; gap: 8px; }
.mobile-filters .mf-sel { font-weight: 600; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; width: 100%; }
.mobile-filters .mf-row .mf-sel { flex: 1 1 0; }
@media (min-width: 1001px) {
    .filter-area { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
    .mobile-filters { display: none; }
}

.schedule-wrap { background: var(--bg-secondary); border-radius: var(--radius); padding: 12px; margin-bottom: 30px; }
.schedule-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.schedule-table { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: auto; }
.schedule-table thead th { font-size: var(--fs-sm); font-weight: 700; color: var(--text-secondary); padding: 6px 0 8px; }
.schedule-table td { background: #fff; border-radius: var(--radius-sm); vertical-align: top; padding: 6px; height: 64px; min-width: 150px; }
.schedule-table .time-col, .schedule-table .time-cell { display: none; }
.schedule-table .sch-empty-day { display: none; }
.time-cell { background: transparent; text-align: center; padding: 4px 2px; font-size: 12px; color: var(--text-secondary); font-weight: 600; vertical-align: top; }
.time-cell .tc-s, .time-cell .tc-e { display: block; white-space: nowrap; }
.time-cell .tc-sep { display: block; color: #c0c6cf; line-height: 1; }
.sch-item { border-radius: 8px; padding: 8px 9px; margin-bottom: 5px; line-height: 1.4; border: 1px solid rgba(0, 0, 0, .05); cursor: pointer; }
.sch-item:last-child { margin-bottom: 0; }
.sch-time { font-size: 11px; font-weight: 700; color: #5d6670; margin-bottom: 3px; }
.sch-subj { display: none; font-size: 12px; color: #4b5563; font-weight: 700; }
.is-all-subject .sch-subj { display: block; }
.sch-cname { font-size: 12px; font-weight: 600; margin-top: 1px; word-break: break-all; }
.sch-status { display: inline-block; font-size: 11px; font-weight: 700; margin-top: 4px; padding: 1px 8px; border-radius: 999px; }
.sch-st-y { background: #e8f5e9; color: #1b7f4d; } .sch-st-n { background: #eeeeee; color: #5f6770; } .sch-st-drop { background: #fdecea; color: #c0392b; }
.sch-teacher { display: block; margin-top: 4px; background: none; border: 0; padding: 0; font-size: 12px; color: #4b5563; text-decoration: underline; text-underline-offset: 2px; }
.sch-apply { display: block; width: 100%; margin-top: 8px; padding: 7px 6px; border: 0; border-radius: 8px; background: var(--accent-dark); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; }
.sch-empty { color: #cfd4da; font-size: var(--fs-sm); }
.sch-hint { margin-top: 6px; font-size: var(--fs-sm); color: var(--text-secondary); }
@media (min-width: 861px) {
    .schedule-wrap { padding: 18px; }
    .schedule-table { min-width: 860px; table-layout: fixed; }
    .schedule-table td { min-width: 0; }
    .schedule-table .time-col { display: table-cell; width: 84px; }
    .schedule-table .time-cell { display: table-cell; }
    .schedule-table .sch-empty-day { display: table-cell; }
    .sch-time, .sch-apply, .sch-hint { display: none; }
}
.pastel-1{background:#fff3f3}.pastel-2{background:#fff7e6}.pastel-3{background:#fffbe6}
.pastel-4{background:#f3fae8}.pastel-5{background:#eaf8f1}.pastel-6{background:#eaf7fb}
.pastel-7{background:#edf4ff}.pastel-8{background:#f3f0ff}.pastel-9{background:#fff0f6}
.pastel-10{background:#f5f5f5}.pastel-11{background:#f0f7ff}.pastel-12{background:#f6f1ea}

.course-group { margin-top: 22px; }
.course-group:first-child { margin-top: 0; }
.course-group-title { font-size: var(--fs-base); font-weight: 800; color: var(--smp-blue); padding: 4px 4px 8px; border-bottom: 2px solid var(--accent-dark); scroll-margin-top: 80px; }
.course-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 8px; }
.course-row-info { flex: 1; min-width: 0; }
.course-row-info h3 { font-size: var(--fs-base); font-weight: 700; }
.course-row-info p { margin-top: 4px; font-size: var(--fs-sm); color: var(--text-secondary); }
.course-row-act { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.btn-apply { border: 1px solid var(--accent-dark); background: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 600; transition: all .15s; white-space: nowrap; }
.btn-apply:hover:not([disabled]) { background: var(--accent-dark); color: #fff; }
.btn-apply[disabled] { border-color: var(--line); color: var(--text-secondary); cursor: default; font-size: var(--fs-sm); }
.course-status { font-size: var(--fs-sm); color: var(--text-secondary); white-space: nowrap; }
.crs-grade { display: inline-block; font-size: 11px; font-weight: 800; color: #1d4ed8; background: #eef4ff; border-radius: 5px; padding: 1px 6px; margin-right: 2px; vertical-align: middle; line-height: 1.7; }
.crs-intro-title, .pcr-intro-title { margin-top: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--text-primary) !important; }
.crs-textbook, .pcr-textbook { display: block; margin-top: 6px; font-size: var(--fs-sm); color: var(--text-secondary); }
.crs-tb-lab, .pcr-tb-lab, .req-tb-lab { display: inline-block; font-size: 11px; font-weight: 800; color: #0d47a1; background: #e3f2fd; border-radius: 5px; padding: 1px 6px; margin-right: 4px; vertical-align: middle; }
@media (max-width: 420px) {
    .course-row { flex-direction: column; align-items: stretch; }
    .course-row-act { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* 강의 검색 */
.csearch-btn { flex: 0 0 auto; border: 1px solid var(--accent-dark); background: var(--accent-dark); color: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 700; line-height: 1; white-space: nowrap; }
.csearch-btn-ghost { background: #fff; color: var(--text-primary); }
.csearch-btn-m { width: 100%; padding: 11px; }
.search-head { margin-bottom: 14px; }
.search-head .section-title { margin: 0; }
.search-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.search-head-btns { display: flex; gap: 8px; }
.search-count { color: var(--smp-blue); }
.search-crit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.search-chip { font-size: var(--fs-sm); font-weight: 600; color: var(--text-secondary); background: var(--bg-secondary); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.csearch-overlay { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .45); }
.csearch-box { width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.csearch-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.csearch-x { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--text-secondary); padding: 0 4px; }
.csearch-body { padding: 16px 18px; }
.csearch-lab { display: block; font-size: var(--fs-sm); font-weight: 700; margin: 12px 0 6px; }
.csearch-lab:first-of-type { margin-top: 0; }
.csearch-sel, .csearch-inp { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.csearch-hint { margin-top: 8px; font-size: var(--fs-sm); color: var(--text-secondary); }
.csearch-foot { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.csearch-foot .btn { flex: 1; }

/* ============================ 선생님 ============================ */
.teacher-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.teacher-card { display: flex; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; text-align: left; padding: 0; transition: transform .2s, box-shadow .2s, border-color .2s; }
.teacher-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-dark); }
.teacher-thumb { display: block; flex: 0 0 100px; width: 100px; aspect-ratio: 2/3; background: var(--bg-secondary); }
.teacher-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.teacher-body { display: flex; flex-direction: column; justify-content: center; padding: 14px 16px; }
.teacher-name { display: block; font-size: var(--fs-lg); font-weight: 700; }
.teacher-subject { display: -webkit-box; margin-top: 3px; font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.teacher-avatar { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eef6ff, #f4f0ff); }
.teacher-avatar svg { width: 42%; height: 42%; fill: #c2d1de; }
@media (min-width: 421px) {
    .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .teacher-card { display: block; }
    .teacher-thumb { width: 100%; }
    .teacher-body { display: block; }
    .teacher-subject { min-height: 2.7em; }
}
@media (min-width: 768px) { .teacher-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .teacher-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

/* ============================ 모달 ============================ */
.hi-layer { position: fixed; inset: 0; z-index: 1100; }   /* 지점 사이트 머리(.st-header 1030) · 서랍(1045) · 떠 있는 메뉴(1020) 위로 */
.hi-layer-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.hi-layer-box { position: relative; width: 100%; height: 100%; background: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.hi-layer-body { height: 100%; overflow-y: auto; padding: 24px 18px 32px; overscroll-behavior: contain; }
.hi-layer-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg-secondary); font-size: 20px; line-height: 1; }
@media (min-width: 721px) {
    .hi-layer-box { width: min(680px, calc(100% - 28px)); height: auto; max-height: calc(100vh - 64px); margin: 32px auto; border-radius: var(--radius); }
    .hi-layer-body { height: auto; max-height: calc(100vh - 64px); padding: 30px; }
}
.popup-title { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.3px; padding-right: 40px; }
.popup-subject { font-size: var(--fs-sm); font-weight: 600; color: var(--text-secondary); }
.popup-subtitle { margin-top: 6px; color: var(--text-secondary); font-size: var(--fs-sm); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.popup-section { margin-top: 18px; line-height: 1.8; }
.popup-section-title { margin-top: 22px; margin-bottom: 8px; font-weight: 700; }
.popup-info { margin-top: 16px; background: var(--bg-secondary); border-radius: var(--radius-sm); padding: 14px 16px; line-height: 1.9; }
.popup-info b { display: inline-block; min-width: 64px; color: var(--text-secondary); font-weight: 600; }
.popup-actions { margin-top: 20px; display: flex; gap: 10px; }
.popup-html p { margin: 0 0 10px; }
.popup-html ul, .popup-html ol { padding-left: 20px; }
.popup-html img { margin: 8px 0; border-radius: 8px; height: auto; }
.popup-html h1, .popup-html h2, .popup-html h3, .popup-html h4 { font-size: var(--fs-lg); font-weight: 700; margin: 14px 0 8px; line-height: 1.5; }
.popup-html a { color: #0b5ed7; text-decoration: underline; }

.popup-teacher-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.popup-teacher-meta { width: 100%; }
.popup-teacher-photo-lg { position: relative; width: 190px; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--bg-secondary); border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(15, 23, 42, .14); }
.popup-teacher-photo-lg img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.popup-teacher-photo-lg .tps-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.popup-teacher-photo-lg .tps-slide.on { opacity: 1; }
.popup-teacher-meta .popup-title { padding-right: 0; }
.popup-teacher-career { text-align: left; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--divider); }
.popup-teacher-career .popup-section-title { margin-top: 0; }
@media (min-width: 561px) {
    .popup-teacher-head { flex-direction: row; align-items: flex-start; gap: 22px; text-align: left; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
    .popup-teacher-photo-lg { flex: 0 0 220px; width: 220px; }
    .popup-teacher-meta .popup-title { padding-right: 40px; }
    .popup-teacher-career { margin-top: 14px; padding-top: 0; border-top: 0; }
}
.popup-slogan { position: relative; margin-top: 22px; padding: 20px 22px; min-height: 108px; display: flex; flex-direction: column; gap: 18px; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 4px 16px rgba(26, 122, 140, .10);
    background:
        radial-gradient(120% 85% at 86% -25%, rgba(122,193,67,.18) 0%, rgba(122,193,67,0) 55%) padding-box,
        radial-gradient(120% 95% at -8% 120%, rgba(26,122,140,.15) 0%, rgba(26,122,140,0) 55%) padding-box,
        linear-gradient(160deg, #eef7ff 0%, #f5faff 48%, #ffffff 100%) padding-box,
        linear-gradient(120deg, var(--smp-green), var(--smp-blue)) border-box; }
.popup-slogan::after { content: ""; position: absolute; right: 16px; bottom: 12px; width: 58px; height: 74px; background: url('img/bg_CI1.webp') right bottom / contain no-repeat; pointer-events: none; }
.ps-lead { position: relative; z-index: 1; font-weight: 700; line-height: 1.5; color: #4a5560; }
.ps-emph { position: relative; z-index: 1; font-size: var(--fs-lg); font-weight: 800; line-height: 1.35; color: var(--accent-dark); white-space: nowrap; }
.ps-emph-ci { display: inline-block; height: 1.6em; width: auto; vertical-align: -.34em; margin-left: .08em; }
.popup-course-list { display: grid; gap: 8px; }
.popup-course-row { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pcr-top { display: flex; align-items: center; gap: 10px; }
.pcr-info { flex: 1; min-width: 0; }
.pcr-apply { flex: 0 0 auto; }
.pcr-extra { display: flex; flex-direction: column; gap: 4px; }
.pcr-extra > * { margin-top: 0; }
.pcr-title { display: block; font-weight: 700; }
.pcr-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: var(--fs-sm); color: var(--text-secondary); align-items: center; }
.req-class-card { margin: 14px 0 12px; }
.req-intro { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-secondary); }
.req-intro-title { font-weight: 700; }
.req-intro-textbook { margin-bottom: 4px; font-size: var(--fs-sm); font-weight: 600; }

/* ============================ 신청서 ============================ */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
@media (min-width: 561px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row > span { font-size: var(--fs-sm); font-weight: 700; }
.form-control { width: 100%; border: 1px solid #d5dae0; border-radius: 10px; padding: 11px 14px; font-size: 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.form-control:focus { outline: 0; border-color: var(--accent-blue-strong); box-shadow: 0 0 0 3px rgba(58, 166, 232, .2); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239299a2' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.form-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.form-check input { width: 20px; height: 20px; flex: 0 0 20px; }
.agree-detail { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.agree-detail summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.agree-detail summary::-webkit-details-marker { display: none; }
.agree-detail summary::after { content: "내용 보기 ▾"; font-size: var(--fs-sm); color: var(--text-secondary); white-space: nowrap; }
.agree-detail[open] summary::after { content: "닫기 ▴"; }
.agree-text { margin-top: 8px; font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; }
.form-msg { margin-top: 12px; font-weight: 600; font-size: var(--fs-base); }
.form-msg:empty { display: none; }
.form-msg.is-err { color: var(--danger); background: #fdecec; border-radius: 8px; padding: 10px 12px; }
.form-msg.is-ok { color: var(--ok); background: #e7f6ee; border-radius: 8px; padding: 12px 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================ FAQ ============================ */
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 16px 14px; text-align: left; font-weight: 700; }   /* 구분선은 끝에서 끝까지, 글은 좌우 같은 여백 */
.faq-q .q-mark { color: var(--smp-blue); font-weight: 800; }
.faq-q .chev { margin-left: auto; transition: transform .2s; color: var(--text-secondary); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 4px 14px 20px 40px; color: #555; line-height: 1.8; }
.faq-item.open .faq-a { display: block; }

/* ============================ 지점안내 · 찾아오시는길 ============================ */
.branch-grid { display: grid; gap: 18px; }
.branch-card { display: grid; grid-template-columns: 1fr; overflow: hidden; }
.branch-card.is-current { border-color: var(--smp-blue); }
.branch-photo { background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 120px; }
.branch-photo img { width: 100%; height: auto; transition: transform .3s ease; }
.branch-photo:hover img { transform: scale(1.04); }
.branch-noimg { font-weight: 800; color: var(--text-secondary); }
.branch-info { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.branch-info h3 { font-size: var(--fs-lg); font-weight: 800; }
.branch-meta { margin-top: 12px; list-style: none; }
.branch-meta li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--divider); }
.branch-meta li:first-child { border-top: 0; }
.branch-meta .label, .map-meta .label { flex: 0 0 70px; color: var(--text-secondary); font-weight: 600; font-size: var(--fs-sm); padding-top: 2px; }
.map-link { color: #0b5ed7; font-weight: 600; margin-left: 4px; }
.branch-go { margin-top: 12px; align-self: flex-start; }
@media (min-width: 861px) { .branch-card { grid-template-columns: 435px 1fr; } .branch-info { padding: 24px; } }
.map-card .card-body { display: grid; gap: 18px; }
.map-meta { list-style: none; }
.map-meta li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--divider); }
.map-meta li:last-child { border-bottom: 0; }
.map-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.map-image { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-image img { width: 100%; height: auto; }

/* ============================ 표 (교습비) ============================ */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 10px; text-align: center; vertical-align: middle; line-height: 1.6; }
.data-table thead th { background: var(--bg-secondary); color: #5d6670; font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.data-table td { color: #444; }
.data-table .tl { text-align: left; }
.data-table .w { min-width: 110px; }
.data-table .note { background: var(--bg-secondary); color: #5d6670; font-size: var(--fs-sm); line-height: 1.8; }
.data-table.refund { min-width: 620px; }
.table-note { margin-bottom: 12px; }

/* ============================ 정책 ============================ */
.legal { line-height: 1.85; color: #444; }
.legal h2 { font-size: var(--fs-lg); font-weight: 700; color: var(--text-primary); margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-primary); margin: 14px 0 4px; }
.legal ul { padding-left: 20px; margin: 0 0 10px; }
.legal ul.plain { list-style: none; padding-left: 0; }
.legal li { padding: 3px 0; }
.legal li.note { list-style: none; margin-left: -20px; color: var(--text-secondary); }
.legal a { color: #0b5ed7; text-decoration: underline; }

/* ============================ Footer ============================ */
.site-footer { margin-top: 48px; background: #0A2A1B; color: #cdd8d1; }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 30px 16px 40px; }
.footer-policy { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-policy a { color: #e6ede9; }
.footer-policy a:hover { color: #fff; text-decoration: underline; }
.footer-policy a.strong { font-weight: 700; color: #fff; }
.footer-info { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-info li { font-size: var(--fs-sm); color: #a9bcb1; position: relative; }
.footer-info li + li::before { content: ''; position: absolute; left: -10px; top: 50%; width: 1px; height: 11px; background: rgba(255, 255, 255, .18); transform: translateY(-50%); }

/* ============================ 모바일 헤더 ============================ */
@media (max-width: 860px) {
    :root { --header-h: 60px; }
    .brand-logo-pc { display: none; }
    .brand-logo-mo { display: block; }
    .nav-toggle { display: flex; }
    .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--divider); padding: 8px 16px 16px; box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
    .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-link { padding: 13px 12px; border-radius: 10px; }
    .nav-auth { margin: 6px 0 0; text-align: center; }
    .hero-orb-1 { width: 190px; height: 190px; top: -60px; right: -16px; }
    .hero-orb-2 { width: 150px; height: 150px; bottom: -70px; left: -24px; }
    .hero-orb-3 { display: none; }
    .popup-actions .btn { width: 100%; }
}
