/* 엠스트학원 홈페이지 UI 개선 목업 — 공용 스타일 */
:root {
  --blue: #1d3a96;
  --blue-d: #14286b;
  --blue-l: #eef2fc;
  --red: #e2231a;
  --red-l: #fdeceb;
  --green: #1a7f37;
  --orange: #f05a1a;
  --ink: #1b1e2b;
  --ink2: #4a5064;
  --ink3: #7b8194;
  --line: #e3e6ee;
  --bg: #f5f7fb;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(20, 40, 107, .08);
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px; line-height: 1.6; word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* 아이콘: 자체 제작 SVG (24 그리드, currentColor 선, round cap/join) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-16 { width: 16px; height: 16px; }
.ic-28 { width: 28px; height: 28px; stroke-width: 1.75; }
.ic-40 { width: 40px; height: 40px; stroke-width: 1.75; }
.ic.fill { fill: currentColor; }

/* ---------- mock-bar (목업 화면 이동) ---------- */
.mock-bar {
  background: #111; color: #bbb; font-size: 12px; line-height: 1;
  display: flex; flex-wrap: wrap; gap: 4px 2px; padding: 7px 12px; align-items: center;
}
.mock-bar b { color: #ffd34d; margin-right: 8px; font-weight: 700; }
.mock-bar a { color: #ddd; padding: 4px 7px; border-radius: 4px; white-space: nowrap; }
.mock-bar a:hover { background: #333; }
.mock-bar a.on { background: #ffd34d; color: #111; font-weight: 700; }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.util { background: var(--blue-d); color: #cfd7f3; font-size: 13px; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.util-tag { color: #fff; opacity: .85; }
.util-links { display: flex; flex-wrap: wrap; gap: 2px 0; }
.util-links a { padding: 4px 10px; position: relative; }
.util-links a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 10px; margin-top: -5px; background: rgba(255,255,255,.25); }
.util-links a:hover { color: #fff; }
.hd-main .wrap { display: flex; align-items: center; height: 84px; gap: 24px; }
.logo img { width: 200px; height: auto; }
.gnb { margin-left: auto; height: 100%; }
.gnb > ul { display: flex; height: 100%; }
.gnb-item { position: relative; height: 100%; display: flex; align-items: center; }
.gnb-item > a { display: block; padding: 0 18px; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 84px; }
.gnb-item > a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.gnb-item:hover > a, .gnb-item.on > a { color: var(--blue); }
.gnb-item:hover > a::after, .gnb-item.on > a::after { transform: scaleX(1); }
.gnb-sub {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 200px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue);
  border-radius: 0 0 6px 6px; box-shadow: var(--shadow); padding: 10px 0;
}
.gnb-item:hover .gnb-sub, .gnb-item:focus-within .gnb-sub { display: block; }
.gnb-sub a { display: block; padding: 8px 20px; font-size: 15px; color: var(--ink2); white-space: nowrap; }
.gnb-sub a:hover { background: var(--blue-l); color: var(--blue); }
.hd-tel {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 6px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 16px; white-space: nowrap;
}
.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--white); cursor: pointer; padding: 0; color: var(--ink);
}

/* drawer (mobile 전체메뉴) */
.drawer { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(10, 18, 50, .5); }
.drawer.on { display: block; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--white); overflow-y: auto; padding: 18px 18px 40px; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-top img { width: 150px; }
.drawer-close { width: 40px; height: 40px; border: 0; background: var(--bg); border-radius: 6px; cursor: pointer; display: grid; place-items: center; padding: 0; color: var(--ink); }
.menu-btn .ic, .drawer-close .ic { width: 22px; height: 22px; }
.drawer-util { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 16px; }
.drawer-util a { font-size: 13px; text-align: center; padding: 8px 4px; background: var(--bg); border-radius: 8px; color: var(--ink2); }
.drawer details { border-top: 1px solid var(--line); }
.drawer summary { list-style: none; padding: 14px 4px; font-weight: 700; font-size: 17px; cursor: pointer; display: flex; justify-content: space-between; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: ""; width: 8px; height: 8px; margin: 6px 6px 0 0; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); transform: rotate(45deg); flex: none; }
.drawer details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.drawer details a { display: block; padding: 8px 12px; color: var(--ink2); font-size: 15px; }
.drawer details a.on { color: var(--blue); font-weight: 700; }
.drawer-tel { display: block; margin-top: 18px; text-align: center; background: var(--red); color: #fff; font-weight: 800; padding: 12px; border-radius: 6px; }

/* ---------- buttons / common ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 22px;
  border-radius: 6px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 700; font-size: 15px;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: #c01c14; color: #fff; border-color: #c01c14; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 6px; }
.btn-lg { min-height: 54px; padding: 0 32px; font-size: 17px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; background: var(--blue-l); color: var(--blue); }
.badge.red { background: var(--red-l); color: var(--red); }
.badge.gray { background: #eef0f4; color: var(--ink2); }
.muted { color: var(--ink3); }
.em-red { color: var(--red); }
.em-blue { color: var(--blue); }
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.note { background: var(--bg); border-radius: 6px; padding: 16px 18px; color: var(--ink2); font-size: 14px; }
.note li { position: relative; padding-left: 12px; }
.note li::before { content: "·"; position: absolute; left: 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); background: rgba(20, 24, 40, .92); color: #fff; padding: 12px 20px; border-radius: 6px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* modal (.dim > 첫 자식 = 팝업 상자) */
.dim { display: none; position: fixed; inset: 0; z-index: 120; background: rgba(10, 18, 50, .55); padding: 12px; align-items: center; justify-content: center; }
.dim.on { display: flex; }
.modal { width: 480px; max-width: 100%; max-height: calc(100vh - 24px); overflow-y: auto; background: var(--white); border-radius: 10px; box-shadow: 0 12px 32px rgba(10, 18, 50, .22); }
.modal-hd { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 800; }
.modal-x { border: 0; background: none; cursor: pointer; width: 40px; height: 40px; margin: -8px -10px -8px 0; padding: 0; display: grid; place-items: center; border-radius: 6px; color: var(--ink); flex: none; }
.modal-x:hover { background: var(--bg); }
.modal-x .ic { width: 22px; height: 22px; }
.modal-bd { padding: 20px; }
.modal-ft { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px; background: var(--bg); font-size: 14px; }
.modal-ft label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.modal.wide { width: 860px; }

/* ---------- main ---------- */
.hero { position: relative; background: #0d1a4d; overflow: hidden; }
.slides { position: relative; height: 520px; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s; display: flex; align-items: center; }
.slide.on { opacity: 1; visibility: visible; }
.slide .wrap { width: 100%; position: relative; }
.s1 { background: #eef2f9; color: var(--ink); }
.s1 .wrap { display: grid; grid-template-columns: 1fr 300px; align-items: end; gap: 24px; }
.s1-copy h2 { font-size: 72px; line-height: 1.1; font-weight: 900; letter-spacing: -2px; }
.s1-copy h2 .b { color: var(--blue); }
.s1-copy h2 .r { color: var(--red); }
.s1-search { margin-top: 22px; font-size: 22px; font-weight: 700; }
.s1-search .kw { display: inline-flex; align-items: center; gap: 4px; border: 3px solid #1bb24b; padding: 0 8px 0 10px; border-radius: 6px; margin: 0 4px; background: #fff; }
.s1-search .kw .ic { color: #1bb24b; stroke-width: 2; }
.tags { margin-top: 18px; font-size: 17px; font-weight: 700; color: var(--ink2); line-height: 1.8; }
.tags span { white-space: nowrap; }
.tags .tel { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 2px 10px; border-radius: 4px; background: var(--red); color: #fff; font-weight: 800; white-space: nowrap; line-height: 1.5; }
.s1-person { position: relative; align-self: end; margin-top: 0; margin-bottom: 0; }
.s1-person img { width: 280px; border-radius: 8px 8px 0 0; }
.s1-person .cap { position: absolute; left: -12px; bottom: 18px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 4px; padding: 10px 14px; font-size: 13px; line-height: 1.5; }
.s1-person .cap b { font-size: 16px; }
.s2 { background: var(--blue-d); color: #fff; }
.s2 h2 { display: inline-block; background: #1d4fb8; padding: 6px 26px; font-size: 56px; font-weight: 900; letter-spacing: -1px; }
.s2 h2 .y { color: #ffd400; }
.s2 p { font-size: 24px; margin-top: 20px; }
.s2 .y { color: #ffd400; font-weight: 800; }
.s3 { background: #1f2129; color: #fff; }
.s3 .pre { font-size: 20px; font-weight: 700; }
.s3 .pre span { color: #ff5aa5; }
.s3 .rank { display: inline-block; background: #fff; color: #111; font-weight: 800; padding: 4px 22px; margin-top: 12px; font-size: 24px; }
.s3 .rank b { color: var(--blue); }
.s3 h2 { font-size: 60px; line-height: 1.2; font-weight: 900; margin-top: 12px; }
.s3 .mo { display: inline-block; background: #9fd8ff; color: #0e2a73; font-weight: 800; padding: 4px 20px; margin-top: 14px; font-size: 20px; }
.s3 .mo span { color: var(--red); }
.s3 .tels { margin-top: 16px; display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 28px; font-size: 17px; color: #d9dce6; }
.s3 .tels li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.s3 .tels b { color: #fff; font-weight: 800; }
.s3 .tels .ic { color: #9fd8ff; }
.s4 { background: #f2f4f8; color: var(--ink); }
.s4 h2 { font-size: 56px; line-height: 1.2; font-weight: 900; color: #1a2fd6; }
.s4 p { font-size: 20px; margin-top: 12px; }
.s4 .benefit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.s4 .benefit span { background: #fff; border: 1px solid #1a2fd6; color: #1a2fd6; border-radius: 4px; padding: 4px 14px; font-weight: 800; }
.s4 .benefit span:first-child { background: #1a2fd6; color: #fff; }
.s4 .ask { margin-top: 18px; font-size: 22px; font-weight: 800; }
.s4 .ask .pu { color: #a020c8; } .s4 .ask .gr { color: #129b3b; }
.slide-link { display: inline-flex; margin-top: 22px; }
.dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; background: rgba(120,130,160,.5); cursor: pointer; padding: 0; }
.dots button.on { width: 28px; background: var(--red); }
/* 좌우 화살표: SVG 셰브론을 버튼 정중앙에. 데스크톱은 하단 인디케이터 줄을 뺀 콘텐츠 영역 중앙 높이 */
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 4px; border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.9); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.hero-arrow .ic { width: 24px; height: 24px; stroke-width: 2; }
.hero-arrow:hover { background: #fff; color: var(--blue); }
@media (min-width: 901px) { .slide { padding-bottom: 40px; } .hero-arrow { top: calc(50% - 20px); } }
.hero-arrow.prev { left: 20px; } .hero-arrow.next { right: 20px; }

.sec { padding: 64px 0; }
.sec.gray { background: var(--bg); }
.sec-hd { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-hd h2 { font-size: 30px; font-weight: 900; letter-spacing: -.5px; }
.more { font-size: 14px; color: var(--ink3); font-weight: 700; white-space: nowrap; }
.more::after { content: " +"; color: var(--red); }

.main-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; }
.recruit {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 230px; padding: 32px 36px;
  border-radius: var(--radius); background: var(--blue-d); color: #fff; overflow: hidden; border-bottom: 4px solid var(--red);
}
.recruit .htags { font-size: 15px; font-weight: 800; color: #ffd34d; }
.recruit h3 { font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.recruit p { color: #cfd7f3; }
.recruit .go { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 42px; padding: 0 18px; border-radius: 6px; background: #fff; color: var(--blue-d); font-weight: 800; font-size: 15px; }
.recruit:hover .go { background: #ffd34d; }
.board-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; background: var(--white); }
.board-box .tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 8px; align-items: center; }
.board-box .tabs a { padding: 8px 14px; font-weight: 800; color: var(--ink3); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.board-box .tabs a.on { color: var(--blue); border-bottom-color: var(--blue); }
.board-box .tabs .more { margin-left: auto; }
.pane { display: none; }
.pane.on { display: block; }
.mini-list li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed var(--line); }
.mini-list li:last-child a { border-bottom: 0; }
.mini-list .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mini-list .d { color: var(--ink3); font-size: 14px; flex: none; }
.empty { text-align: center; color: var(--ink3); padding: 40px 0; }

/* 교육과정: 카드 4개 반복 대신 좌(사진)·우(설명) 목록형 2열 */
.courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.course { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 6px; overflow: hidden; display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: stretch; }
.course.c-red { border-left-color: var(--red); } .course.c-green { border-left-color: #1d6b2a; } .course.c-orange { border-left-color: var(--orange); }
.course:hover { box-shadow: var(--shadow); }
.course img { width: 100%; height: 100%; min-height: 140px; object-fit: cover; }
.course-bd { padding: 18px 22px; align-self: center; }
.course h3 { font-size: 19px; font-weight: 900; letter-spacing: -.5px; }
.course p { margin-top: 8px; font-size: 14px; color: var(--ink2); }
.c-blue h3 { color: #1a35c9; } .c-red h3 { color: var(--red); } .c-green h3 { color: #1d6b2a; } .c-orange h3 { color: var(--orange); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.g-item { display: block; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.g-item .cap { padding: 12px 16px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.g-item .cap span { color: var(--ink3); font-weight: 400; font-size: 14px; }

/* ---------- footer ---------- */
.ft { background: #1a1d29; color: #a9aec0; font-size: 14px; margin-top: 0; }
.ft-links { border-bottom: 1px solid rgba(255,255,255,.08); }
.ft-links .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-top: 14px; padding-bottom: 14px; }
.ft-links a { color: #e4e7f0; font-weight: 600; }
.ft-links a:nth-child(2) { color: #ffd34d; }
.ft-body { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding-top: 32px; padding-bottom: 32px; }
.ft-brand img { width: 200px; border-radius: 8px; background: #fff; padding: 6px; }
.ft-brand p { margin-top: 14px; line-height: 1.8; }
.ft-centers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ft-centers li { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; padding: 14px 16px; }
.ft-centers b { color: #fff; display: block; }
.ft-centers .tel { color: #ffd34d; font-weight: 800; font-size: 16px; }
.ft-copy { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0 24px; font-size: 13px; }

/* ---------- sub layout ---------- */
.sub-hero { background: var(--blue-d); color: #fff; border-bottom: 4px solid var(--red); }
.sub-hero .wrap { padding-top: 40px; padding-bottom: 40px; }
.sub-hero h1 { font-size: 36px; font-weight: 900; letter-spacing: -1px; }
.sub-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 80px; }
.sub-wrap.full { grid-template-columns: minmax(0, 1fr); }
.lnb-tit { font-size: 22px; font-weight: 900; padding: 18px 20px; background: var(--blue); color: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.lnb-menu { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.lnb-menu a { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--ink2); font-weight: 600; }
.lnb-menu a:first-child { border-top: 0; }
.lnb-menu a::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 3px; border-top: 2px solid var(--ink3); border-right: 2px solid var(--ink3); transform: rotate(45deg); }
/* 외부 링크 표시: 자체 작성 SVG 를 CSS mask 로 (색은 background = 현재 글자색 계열) */
.lnb-menu a[target]::after { width: 14px; height: 14px; margin-right: 0; border: 0; transform: none; background: var(--ink3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat; }
.lnb-menu a:hover { background: var(--bg); }
.lnb-menu a.on { background: var(--blue-l); color: var(--blue); font-weight: 800; }
.lnb-menu a.on::after { border-color: var(--blue); }
.cs-box { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.cs-box h3 { font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.cs-box p { font-size: 14px; color: var(--ink2); margin-top: 8px; }
.cs-box p b { display: block; font-size: 20px; color: var(--blue); font-weight: 900; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--ink); margin-bottom: 32px; }
.page-head h2 { font-size: 30px; font-weight: 900; letter-spacing: -.5px; }
.crumb { font-size: 14px; color: var(--ink3); }
.crumb a:hover { color: var(--blue); }
.crumb b { color: var(--blue); font-weight: 700; }
/* 브레드크럼 구분자: CSS 셰브론 */
.crumb .sep { display: inline-block; width: 6px; height: 6px; margin: 0 9px 0 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); vertical-align: 2px; opacity: .7; }
.sub-content { min-width: 0; }
.h3 { font-size: 22px; font-weight: 900; margin: 40px 0 16px; letter-spacing: -.3px; }
.h3:first-child { margin-top: 0; }
.h3::before { content: ""; display: inline-block; width: 6px; height: 20px; background: var(--red); border-radius: 3px; margin-right: 10px; vertical-align: -2px; }

/* greeting */
.greet { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.greet-lead { font-size: 26px; font-weight: 800; line-height: 1.4; margin-bottom: 20px; }
.greet-lead b { color: var(--red); }
.greet-body p { margin-bottom: 16px; color: var(--ink2); }
.greet-sign { margin-top: 24px; font-weight: 800; font-size: 18px; }
.greet-sign .em-red { font-weight: 900; }
.greet-photo img { border-radius: var(--radius); background: #eef1fa; }
.greet-photo figcaption { text-align: center; margin-top: 10px; font-weight: 800; }
.career { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.career ul li { padding: 6px 0 6px 14px; position: relative; color: var(--ink2); }
.career ul li::before { content: ""; position: absolute; left: 0; top: 16px; width: 5px; height: 5px; border-radius: 99px; background: var(--blue); }
.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }
.photo-row img { border-radius: 6px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* curriculum */
.curri-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.curri-block h3 { font-size: 26px; font-weight: 900; }
.curri-block .lead { margin-top: 6px; color: var(--ink2); }
.curri-block .lead u { text-decoration-color: var(--red); text-underline-offset: 4px; }
.curri-block .hl { margin-top: 14px; font-weight: 800; color: #e08a00; }
.curri-block .hl span { background: #111; color: var(--red); padding: 0 8px; }
.steps { counter-reset: s; margin-top: 20px; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--bg); border-radius: 6px; font-weight: 600; }
.steps li::before { content: counter(s, decimal-leading-zero); flex: none; width: 44px; height: 44px; border-radius: 999px; background: #ffe733; display: grid; place-items: center; font-style: italic; font-weight: 900; font-size: 18px; color: #222; }

/* results */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stat .n { font-size: 26px; font-weight: 900; color: var(--red); white-space: nowrap; }
.stat .n small { font-size: 14px; color: var(--ink2); font-weight: 700; }
.stat .s { font-weight: 800; }
.stat .s small { display: block; font-weight: 500; color: var(--ink3); font-size: 13px; }
.result-hero { background: #7a1fa2; color: #fff; border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.result-hero h3 { font-size: 26px; font-weight: 900; }
.result-hero .total { font-size: 48px; font-weight: 900; color: #ffe733; line-height: 1; white-space: nowrap; }
.result-hero .total small { font-size: 18px; color: #fff; }

/* center */
.center-info { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.center-info img { border-radius: var(--radius); border: 1px solid var(--line); }
.info-list { border-top: 2px solid var(--ink); }
.info-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 800; color: var(--ink2); }
.info-list dd { min-width: 0; overflow-wrap: anywhere; }

/* board list */
.board-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.board-tools .cnt b { color: var(--blue); }
.sort a { color: var(--ink3); font-size: 14px; padding: 0 6px; }
.sort a.on { color: var(--ink); font-weight: 800; }
.blist { border-top: 2px solid var(--ink); }
.blist-hd, .blist-row { display: grid; grid-template-columns: 80px 1fr 110px 90px 110px; align-items: center; gap: 8px; padding: 14px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.blist-hd { font-weight: 800; color: var(--ink2); background: var(--bg); font-size: 15px; }
.blist-row .tit { text-align: left; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blist-row:hover { background: #fafbfe; }
.blist-row:hover .tit { color: var(--blue); }
.blist-row .num, .blist-row .meta { color: var(--ink3); font-size: 14px; }
.blist-row.cur { background: var(--blue-l); }
.paging { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 28px; }
.paging a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; color: var(--ink2); padding: 0 8px; }
.paging a.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 800; }
.bsearch { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 18px; background: var(--bg); border-radius: 8px; }
.bsearch .radios { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.bsearch .radios label { display: inline-flex; align-items: center; gap: 4px; }
.bsearch .inp { width: 260px; }

/* board view */
.bview-hd { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 22px 8px; }
.bview-hd h3 { font-size: 24px; font-weight: 800; line-height: 1.4; }
.bview-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--ink3); font-size: 14px; }
.bview-meta b { color: var(--ink2); font-weight: 600; margin-right: 4px; }
.bview-file { padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.bview-file a { color: var(--blue); text-decoration: underline; }
.bview-body { padding: 32px 8px; border-bottom: 1px solid var(--line); }
.bview-body img { margin: 0 auto 24px; border-radius: 6px; }
.bview-body .c { text-align: center; }
.bview-body .big-red { color: #e01010; font-size: 22px; font-weight: 800; line-height: 1.5; }
.bview-body .chip-blue { display: inline-block; background: #3333cc; color: #fff; padding: 4px 14px; margin: 14px 0 26px; }
.bview-body h4 { font-size: 19px; font-weight: 800; padding-bottom: 6px; border-bottom: 2px solid #3333cc; margin: 30px 0 12px; }
.bview-body ul { list-style: disc; padding-left: 22px; }
.bview-body ul ul { list-style: circle; }
.bview-body li { margin-bottom: 6px; }
.bview-body a { color: #0b66c3; text-decoration: underline; overflow-wrap: anywhere; }
.comment { padding: 16px 8px; border-bottom: 1px solid var(--line); color: var(--ink2); font-size: 14px; }
.prevnext { border-bottom: 1px solid var(--line); }
.prevnext a { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; padding: 14px 8px; font-size: 15px; }
.prevnext a + a { border-top: 1px solid var(--line); }
.prevnext .k { color: var(--ink3); font-weight: 700; }
.prevnext .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prevnext .d { color: var(--ink3); font-size: 14px; }

/* gallery board */
.gboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* forms */
.privacy-box { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 18px 20px; max-height: 240px; overflow-y: auto; font-size: 14px; color: var(--ink2); line-height: 1.7; }
.privacy-box p { margin-bottom: 4px; }
.privacy-box .k { font-weight: 800; color: var(--ink); margin-top: 10px; }
.agree { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 14px 16px; border: 2px solid var(--blue); border-radius: 8px; font-weight: 700; cursor: pointer; background: var(--blue-l); }
.agree input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.req { color: var(--red); font-weight: 900; margin-left: 2px; }
.fgroup-t { font-size: 15px; font-weight: 800; color: var(--blue); margin: 28px 0 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.form { border-top: 2px solid var(--ink); }
.frow { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--line); }
.frow > .fl { background: var(--bg); padding: 16px 18px; font-weight: 700; font-size: 15px; display: flex; align-items: center; }
.frow > .fc { padding: 12px 18px; min-width: 0; }
.help { font-size: 13px; color: var(--ink3); margin-top: 6px; }
.help.red { color: var(--red); }
.inp, .sel, .ta {
  height: 46px; width: 100%; max-width: 420px; padding: 0 14px; border: 1px solid #cfd4e0; border-radius: 6px; background: var(--white); font-size: 15px;
}
.ta { height: 140px; padding: 12px 14px; max-width: none; resize: vertical; }
.inp:focus, .sel:focus, .ta:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 58, 150, .15); }
.inp.short { max-width: 200px; }
.inp.tiny { max-width: 110px; }
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline .inp { flex: 1 1 90px; min-width: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #cfd4e0; border-radius: 6px; cursor: pointer; font-size: 14px; background: var(--white); }
.opt span::before { content: ""; width: 14px; height: 14px; border: 2px solid #b6bdcc; border-radius: 4px; flex: none; }
.opt input[type=radio] + span::before { border-radius: 99px; }
.opt input:checked + span { border-color: var(--blue); background: var(--blue-l); color: var(--blue); font-weight: 700; }
.opt input:checked + span::before { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 2px #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.check-grid { display: grid; gap: 10px; }
.check-grid .cg-row { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: center; }
.check-grid .cg-row > b { font-size: 14px; color: var(--ink2); }
.captcha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha .code { font-family: "Courier New", monospace; font-size: 22px; font-weight: 900; letter-spacing: 6px; padding: 6px 14px; background: repeating-linear-gradient(45deg, #eef1f8, #eef1f8 6px, #e3e8f4 6px, #e3e8f4 12px); border-radius: 8px; color: #23408e; user-select: none; cursor: pointer; font-style: italic; }

/* member */
.auth { max-width: 520px; margin: 0 auto; }
.auth .card { padding: 36px; }
.auth h3 { font-size: 26px; font-weight: 900; text-align: center; }
.auth .sub { text-align: center; color: var(--ink3); margin-top: 6px; margin-bottom: 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .inp { max-width: none; }
.auth .btn { width: 100%; }
.auth-links { display: flex; justify-content: center; gap: 18px; margin-top: 18px; font-size: 14px; color: var(--ink2); flex-wrap: wrap; }
.auth-links a:hover { color: var(--blue); }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 32px; counter-reset: st; }
.stepper li { counter-increment: st; text-align: center; font-size: 14px; color: var(--ink3); font-weight: 700; position: relative; padding-top: 44px; }
.stepper li::before { content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 99px; background: #e8ebf2; display: grid; place-items: center; font-weight: 900; color: var(--ink3); }
.stepper li.done::before { content: ""; background: var(--blue-l); }
.stepper li.done::after { content: ""; position: absolute; top: 12px; left: 50%; width: 12px; height: 6px; margin-left: -6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.stepper li.on { color: var(--blue); }
.stepper li.on::before { background: var(--blue); color: #fff; }
.join-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.join-type { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; transition: .2s; display: block; }
.join-type:hover { border-color: var(--blue); }
.join-type span.ic { width: 56px; height: 56px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; }
.join-type b { display: block; font-size: 18px; }
.join-type p { font-size: 14px; color: var(--ink3); margin-top: 6px; }
.terms-box { border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; height: 220px; overflow-y: auto; font-size: 14px; color: var(--ink2); background: var(--bg); line-height: 1.7; }
.terms-box p { margin-bottom: 4px; }
.done-box { text-align: center; padding: 48px 20px; }
.done-box div.ic { width: 80px; height: 80px; border-radius: 99px; background: var(--blue); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.done-box h3 { font-size: 26px; font-weight: 900; }

/* shop */
.goods { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.goods-img { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.goods-img img { margin: 0 auto; }
.goods-info h3 { font-size: 26px; font-weight: 900; line-height: 1.35; }
.goods-info dl { margin-top: 18px; border-top: 1px solid var(--line); }
.goods-info dl > div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.goods-info dt { color: var(--ink3); font-weight: 700; }
.goods-info .price { font-size: 24px; font-weight: 900; color: var(--red); }
.qty { display: inline-flex; border: 1px solid #cfd4e0; border-radius: 6px; overflow: hidden; }
.qty button { width: 40px; height: 42px; border: 0; background: var(--bg); cursor: pointer; font-size: 18px; }
.qty input { width: 56px; height: 42px; border: 0; text-align: center; border-left: 1px solid #cfd4e0; border-right: 1px solid #cfd4e0; }
.total-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 16px 18px; background: var(--blue-l); border-radius: 8px; font-weight: 700; gap: 10px; flex-wrap: wrap; }
.total-bar b { font-size: 26px; color: var(--red); font-weight: 900; }
.goods-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.goods-tabs { margin-top: 48px; }
.goods-tabs .tabs { display: flex; border-bottom: 2px solid var(--ink); position: sticky; top: 120px; background: var(--white); z-index: 5; }
.goods-tabs .tabs a { flex: 1; text-align: center; padding: 14px 6px; font-weight: 700; color: var(--ink3); white-space: nowrap; }
.goods-tabs .tabs a.on { background: var(--ink); color: #fff; border-radius: 6px 6px 0 0; }
.goods-tabs .pane { padding: 28px 4px; }
.desc-lines p { text-align: center; margin-bottom: 4px; }
.desc-lines .r { color: var(--red); font-weight: 800; }
.glist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gcard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; }
.gcard .im { background: var(--bg); padding: 20px; }
.gcard .im img { margin: 0 auto; max-height: 220px; width: auto; }
.gcard .bd { padding: 14px 16px; }
.gcard b { display: block; font-size: 15px; line-height: 1.4; }
.gcard .p { color: var(--red); font-weight: 900; margin-top: 6px; }
.cart-tbl, .tbl { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 15px; }
.cart-tbl th, .cart-tbl td, .tbl th, .tbl td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.cart-tbl th, .tbl th { background: var(--bg); font-weight: 800; color: var(--ink2); }
.tbl td.l, .cart-tbl td.l { text-align: left; }
.sum-box { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 20px; background: var(--bg); border-radius: 8px; margin-top: 20px; font-weight: 700; }
.sum-box b { font-size: 26px; color: var(--red); font-weight: 900; }

/* lecture */
.lec { display: grid; grid-template-columns: 420px 1fr; gap: 32px; align-items: start; }
.lec img { border-radius: var(--radius); }
.lec-info dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.lec-info dl { border-top: 2px solid var(--ink); }
.lec-info dt { color: var(--ink3); font-weight: 700; }
.lec-info dd { min-width: 0; overflow-wrap: anywhere; }
.lec-info .price { font-size: 22px; font-weight: 900; color: var(--red); }
.lec-info .btn { margin-top: 16px; width: 100%; }
.play { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 99px; background: var(--blue); color: #fff; }
.play .ic.fill { margin-left: 2px; }
.play.audio { background: #6b7487; }
.player { background: #0b0f1d; border-radius: var(--radius); overflow: hidden; }
.player-screen { aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; background: #1a2448; position: relative; }
.player-screen .big { width: 84px; height: 84px; border-radius: 99px; background: rgba(255,255,255,.15); display: grid; place-items: center; padding: 0 0 0 6px; border: 2px solid rgba(255,255,255,.6); }
.player-screen .ttl { position: absolute; left: 20px; top: 16px; font-weight: 700; }
.player-ctrl { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #cfd6ea; font-size: 14px; flex-wrap: wrap; }
.player-ctrl .bar { flex: 1 1 160px; height: 6px; background: #2a3150; border-radius: 9px; position: relative; }
.player-ctrl .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 28%; background: var(--red); border-radius: 9px; }
.player-ctrl button { background: none; border: 1px solid #3a4266; color: #fff; border-radius: 6px; padding: 4px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.player-side { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.ep-list a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; }
.ep-list a.on { border-color: var(--blue); background: var(--blue-l); }
.ep-list .no { font-weight: 900; color: var(--blue); flex: none; width: 34px; }

/* sitemap */
.smap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.smap-col { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.smap-col h3 { background: var(--blue); color: #fff; padding: 14px 18px; font-size: 18px; }
.smap-col a { display: block; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 15px; }
.smap-col a:first-of-type { border-top: 0; }
.smap-col a:hover { color: var(--blue); background: var(--bg); }

/* terms */
.terms-doc { font-size: 15px; color: var(--ink2); line-height: 1.85; }
.terms-doc .k { font-weight: 800; color: var(--ink); margin-top: 18px; }
.terms-doc .ch { font-size: 18px; font-weight: 900; color: var(--blue); margin-top: 28px; }

/* recruit */
.filters { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 8px; padding: 18px; background: var(--bg); border-radius: 8px; margin-bottom: 18px; }
.filters .sel, .filters .inp { max-width: none; }

/* mypage */
.my-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.my-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: block; }
.my-card b { display: block; font-size: 17px; }
.my-card span { font-size: 14px; color: var(--ink3); }
.my-card:hover { border-color: var(--blue); }
/* ID/PW 찾기 탭 */
.find-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.find-tabs a { flex: 1; text-align: center; padding: 12px; font-weight: 800; color: var(--ink3); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.find-tabs a.on { color: var(--blue); border-bottom-color: var(--blue); }
.guide-banner { margin-bottom: 18px; padding: 12px 16px; border-radius: 6px; background: #fff8e1; color: #8a5a00; font-size: 14px; border: 1px solid #ffe2a0; }

/* ================= responsive ================= */
@media (max-width: 1100px) {
  .gnb-item > a { padding: 0 11px; font-size: 16px; }
  .gnb-item > a::after { left: 11px; right: 11px; }
  .hd-tel { padding: 8px 12px; font-size: 15px; }
  .logo img { width: 170px; }
}
@media (max-width: 900px) {
  .mock-bar { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
  .wrap { padding: 0 16px; }
  .util { display: none; }
  .hd-main .wrap { height: 64px; gap: 10px; }
  .logo img { width: 150px; }
  .gnb { display: none; }
  .hd-tel { margin-left: auto; padding: 8px 12px; font-size: 14px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: 0; }
  .slides { height: 560px; }
  .s1 .wrap { grid-template-columns: 1fr; }
  .s1-copy h2 { font-size: 48px; }
  .s1-person { display: flex; align-items: flex-end; gap: 12px; margin: 0; }
  .s1-person img { width: 120px; border-radius: 8px; }
  .s1-person .cap { position: static; font-size: 13px; padding: 10px 12px; }
  .s2 h2, .s3 h2, .s4 h2 { font-size: 38px; }
  .s2 p { font-size: 18px; }
  .hero-arrow { display: none; }
  .main-row { grid-template-columns: minmax(0, 1fr); }
  .courses, .gallery, .glist { grid-template-columns: repeat(2, 1fr); }
  .ft-body { grid-template-columns: 1fr; }
  .sub-hero .wrap { padding-top: 28px; padding-bottom: 28px; }
  .sub-hero h1 { font-size: 26px; }
  .sub-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 0; padding-bottom: 56px; }
  .sub-wrap.full { padding-top: 28px; }
  .lnb { margin: 0 -16px; position: sticky; top: 64px; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
  .lnb-tit, .cs-box { display: none; }
  .lnb-menu { display: flex; overflow-x: auto; white-space: nowrap; border: 0; border-radius: 0; padding: 0 8px; -webkit-overflow-scrolling: touch; }
  .lnb-menu a { border-top: 0; padding: 14px 12px; flex: none; border-bottom: 3px solid transparent; }
  .lnb-menu a::after { display: none; }
  .lnb-menu a.on { background: none; border-bottom-color: var(--blue); }
  .greet { grid-template-columns: 1fr; }
  .greet-photo { order: -1; max-width: 240px; }
  .center-info, .goods, .lec, .player-side { grid-template-columns: minmax(0, 1fr); }
  .goods-img { max-width: 340px; }
  .smap { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .goods-tabs .tabs { top: 64px; overflow-x: auto; }
  .gboard { grid-template-columns: repeat(2, 1fr); }
  .tw .tbl, .tw .cart-tbl { min-width: 640px; }
  .tbl td, .tbl th, .cart-tbl td, .cart-tbl th { white-space: nowrap; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .hd-tel { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .hd-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hd-tel .ic { width: 20px; height: 20px; }
  .slides { height: 600px; }
  .slide { align-items: center; }
  .s1-copy h2 { font-size: 40px; letter-spacing: -1px; }
  .s1 .wrap { gap: 14px; }
  .s3 .tels { grid-template-columns: 1fr; gap: 2px; }
  .s1-search { font-size: 17px; }
  .tags { font-size: 14px; }
  .s2 h2, .s3 h2, .s4 h2 { font-size: 30px; padding-left: 10px; padding-right: 10px; }
  .s2 p, .s4 p { font-size: 16px; }
  .s3 .pre, .s3 .rank, .s3 .mo { font-size: 15px; }
  .s3 .tels { font-size: 14px; }
  .s4 .ask { font-size: 17px; }
  .sec { padding: 44px 0; }
  .sec-hd h2 { font-size: 24px; }
  .recruit { padding: 24px; min-height: 0; }
  .recruit h3 { font-size: 28px; }
  .course { grid-template-columns: 120px minmax(0, 1fr); }
  .course-bd { padding: 14px 16px; }
  .course h3 { font-size: 17px; }
  .courses, .gallery { grid-template-columns: 1fr; }
  .glist { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ft-centers { grid-template-columns: 1fr; }
  .page-head h2 { font-size: 24px; }
  .page-head { margin-bottom: 22px; }
  .greet-lead { font-size: 21px; }
  .career, .photo-row { grid-template-columns: repeat(2, 1fr); }
  .career { grid-template-columns: 1fr; }
  /* 게시판: 행을 카드형으로 */
  .blist-hd { display: none; }
  .blist-row { grid-template-columns: auto 1fr auto; text-align: left; gap: 2px 10px; padding: 14px 4px; }
  .blist-row .num { grid-row: 1; grid-column: 1; }
  .blist-row .tit { grid-row: 1; grid-column: 2 / 4; white-space: normal; }
  .blist-row .meta { grid-row: 2; font-size: 13px; }
  .blist-row .meta.m1 { grid-column: 2; }
  .blist-row .meta.m2 { grid-column: 3; }
  .blist-row .meta.m3 { grid-column: 2 / 4; grid-row: 3; }
  .bsearch .inp { width: 100%; }
  /* 폼: 라벨 위, 입력 아래 */
  .frow { grid-template-columns: 1fr; }
  .frow > .fl { padding: 12px 14px 4px; background: none; }
  .frow > .fc { padding: 4px 14px 14px; }
  .inp, .sel { max-width: none; }
  .inp.short { max-width: none; }
  .check-grid .cg-row { grid-template-columns: 1fr; gap: 6px; }
  .auth .card { padding: 24px 18px; }
  .join-types { grid-template-columns: 1fr; }
  .stepper li { font-size: 11px; padding-top: 40px; }
  .smap { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { flex-direction: column; align-items: flex-start; }
  .result-hero { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .goods-btns { grid-template-columns: 1fr; }
  .info-list > div { grid-template-columns: 84px 1fr; }
  .prevnext a { grid-template-columns: 56px 1fr; }
  .prevnext .d { display: none; }
  .curri-block { padding: 20px 16px; }
  .curri-block h3 { font-size: 21px; }
  .steps li { font-size: 14px; }
  .gboard { grid-template-columns: 1fr; }
  .bview-hd h3 { font-size: 20px; }
  .bview-body .big-red { font-size: 18px; }
  .modal-ft { flex-wrap: wrap; }
  .my-grid { grid-template-columns: 1fr; gap: 10px; }
  .my-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; }
  .my-card b { font-size: 16px; }
}

/* ================= 메인 팝업(레이어) — 발주사 이미지 + 정돈된 틀 ================= */
.lp-dim { background: rgba(10, 18, 50, .5); }
.lpop { position: relative; width: 440px; max-width: 100%; max-height: calc(100vh - 24px); overflow-y: auto; background: #fff; border-radius: 10px; border-top: 4px solid var(--red); box-shadow: 0 12px 32px rgba(10, 18, 50, .24); }
.lp-dim.on .lpop { animation: lpIn .26s ease-out both; }
@keyframes lpIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-dim.on .lpop { animation: none; } }
.lp-hd { position: relative; padding: 16px 56px 14px 20px; }
.lp-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--blue-d); color: #fff; font-size: 12px; font-weight: 700; }
.lp-hd h2 { margin-top: 8px; font-size: 19px; font-weight: 800; line-height: 1.4; letter-spacing: -.3px; color: var(--ink); }
.lp-x { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer; }
.lp-x:hover { background: var(--bg); }
.lp-x .ic { width: 22px; height: 22px; }
.lp-img { display: block; margin: 0 20px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #f4f6fa; }
.lp-img img { width: 100%; max-height: 46vh; object-fit: contain; }
.lp-body { padding: 14px 20px 12px; }
.lp-cta { display: flex; align-items: center; justify-content: center; gap: 6px; height: 50px; border-radius: 6px; background: var(--red); color: #fff; font-size: 16px; font-weight: 800; }
.lp-cta:hover { background: #c01c14; }
.lp-sub { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.lp-sub a { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 10px; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.lp-sub a + a { border-left: 1px solid var(--line); }
.lp-sub a:hover { color: var(--blue); }
.lp-sub .ic { color: var(--blue); }
.lp-foot { display: flex; align-items: center; justify-content: center; gap: 4px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.lp-foot label { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; cursor: pointer; }
.lp-foot input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.lp-foot .sep { width: 1px; height: 14px; background: #cfd5e1; }
.lp-foot button { min-height: 46px; padding: 0 16px; border: 0; background: none; color: var(--ink2); font-size: 14px; cursor: pointer; }
.lp-foot label:hover, .lp-foot button:hover { color: var(--blue); }
@media (max-width: 560px) {
  .lp-hd { padding: 14px 52px 12px 16px; }
  .lp-hd h2 { font-size: 17px; }
  .lp-img { margin: 0 16px; }
  .lp-img img { max-height: 36vh; }
  .lp-body { padding: 12px 16px 10px; }
  .lp-sub a { padding: 0 8px; font-size: 13px; }
}

/* 기타 아이콘 보조 */
.cur-mark { color: var(--blue); display: inline-flex; justify-content: center; }
.note .note-t { color: var(--ink); }
