@charset "UTF-8";
/* ═══════════════════════════════════════════
   강의목록 (edu_1.html / edu_2.html / edu_3.html)
   원본: prototype/design/index.html <style> 블록에서 분리
═══════════════════════════════════════════ */

.sec-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--gray-mid);
  transition: color var(--t);
}

.sec-more:hover { color: var(--tr-orange); }

/* listGrid — 슬라이더 아닌 일반 그리드로 고정 */

#listGrid { display: grid !important; grid-template-columns: repeat(4,1fr) !important; gap: 20px !important; transform: none !important; }

@media(max-width:1100px) {
#listGrid { grid-template-columns: repeat(3,1fr) !important; }
}

@media(max-width:860px) {
#listGrid { grid-template-columns: repeat(2,1fr) !important; }
}

@media(max-width:540px) {
#listGrid { grid-template-columns: 1fr !important; }
}

/* 타입탭 + 정렬 드롭다운 행 */

.type-tabs-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  border-bottom: 2px solid var(--gray-line);
}

.offline-sort-sel {
  height: 34px; padding: 0 12px; border: 1.5px solid var(--gray-line); border-radius: 7px;
  font-size: 12.5px; font-family: var(--sans); color: var(--tr-graphite);
  background: #fff; cursor: pointer; outline: none; transition: border-color .18s;
  flex-shrink: 0; margin-bottom: 10px;
}

.offline-sort-sel:focus { border-color: var(--tr-orange); }

.thumb-green { background: var(--tr-green); }

.thumb-green > i { color: var(--tr-dark-gold); }

.open-date { font-size: 11.5px; color: var(--tr-dark-sky); font-weight: 500; }

/* ═══════════════════════════════════════════
   [2026-08-18] curriculum_list.jsp 인라인 CSS 이관분

   기준(20260818_로그인_신규디자인_전환_작업내역.md 4장)
     - 같은 스타일이 두 번 이상 / hover·focus 필요  → 클래스
     - JS·서버가 값을 바꾸는 것                     → 인라인 유지
   그래서 #page-list · #listEmpty · #listMoreWrap 의 display 는 JSP 에 인라인으로 남겼다.
   (common.js 의 hideAll/goPage 와 curriculum.js 가 런타임에 토글한다.
    CSS 로 빼면 인라인 우선순위 때문에 토글이 어긋난다)
   #listGrid 의 인라인은 위 #listGrid 규칙과 값이 같아 중복이라 걷어냈다.
═══════════════════════════════════════════ */

/* ── breadcrumb ── (원본은 전 페이지가 같은 값을 인라인으로 갖고 있었다) */

.breadcrumb-list { background: var(--gray-bg); border-bottom: 1px solid var(--gray-line); }

.breadcrumb-inner {
  max-width: 1280px; margin: 0 auto; padding: 12px 32px;
  font-size: 12.5px; color: var(--gray-mid);
  display: flex; align-items: center; gap: 8px;
}

.breadcrumb-inner a { transition: color var(--t); }

/* 원본 인라인에는 transition 만 있고 hover 규칙이 없어 아무 변화가 없었다.
   .sec-more:hover 와 같은 색으로 맞춘다. */

.breadcrumb-inner a:hover { color: var(--tr-orange); }

.breadcrumb-inner > i { font-size: 9px; }

.breadcrumb-current { color: var(--tr-graphite); font-weight: 500; }

/* ── 섹션 헤더 아이콘 ── */

.sec-num > i { font-size: 13px; }

/* ── 총 N개 과정 ── */

.list-count-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}

.list-count-text { font-size: 13px; color: var(--gray-mid); }

.list-count-text b { color: var(--tr-orange); }

/* ── 빈 상태 ── (display 는 JS 가 토글하므로 여기서 다루지 않는다) */

.list-empty {
  text-align: center; padding: 70px 0;
  border: 1px dashed var(--gray-line); border-radius: 10px;
}

.list-empty > i { font-size: 40px; color: var(--gray-line); }

.list-empty-title { margin-top: 14px; font-size: 15px; font-weight: 700; }

.list-empty-desc { margin-top: 4px; font-size: 12.5px; color: var(--gray-mid); }

/* ── 더보기 ── (원본은 onmouseover/onmouseout 으로 hover 를 흉내냈다 → :hover 로 대체) */

.list-more-wrap { text-align: center; margin-top: 44px; }

.list-more-btn {
  border: 1px solid var(--gray-line); border-radius: 100px;
  padding: 12px 36px; font-size: 13.5px; font-weight: 500;
  color: var(--tr-graphite);
  transition: border-color var(--t), color var(--t);
}

.list-more-btn:hover { border-color: var(--tr-orange); color: var(--tr-orange); }

.list-more-btn > i { font-size: 11px; }

.list-more-cnt { color: var(--tr-orange); font-weight: 700; }

/* ═══════════════════════════════════════════
   [2026-08-20] 카테고리 탭 가로 스크롤 (모바일)

   component.css:111 의 .filter-tabs 는 flex-wrap:wrap 이라 좁은 화면에서
   탭이 2~3줄로 떨어진다. GNB 대메뉴(component.css:422 .gnb-menu-inner)와
   같은 방식으로 한 줄 유지 + 가로 스크롤로 바꾼다.

   .filter-tabs 는 메인(#newCateTabs)과 공유하는 클래스라 건드리지 않고
   이 페이지의 #listTabs 에만 건다.
   좌우 음수 마진은 .section-inner 의 패딩을 상쇄해 화면 끝까지 흐르게 하는 것으로,
   패딩값이 바뀌면 여기 숫자도 같이 맞춰야 한다
   (860px 이하 16px / 540px 이하 12px — component.css:431, 466).
═══════════════════════════════════════════ */

@media (max-width: 860px) {
#listTabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* 구 Edge */
  margin-left: -16px; margin-right: -16px;
  padding-left: 16px; padding-right: 16px;
}
#listTabs::-webkit-scrollbar { display: none; }
/* .ftab 은 button 이라 flex 축소가 걸리면 글자가 줄바꿈된다 */
#listTabs .ftab { flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 540px) {
#listTabs { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
}

/* ═══════════════════════════════════════════
   모바일 개선  [2026-09-08]
   시안 : 작업내역/시안/20260908_교육신청목록_모바일_시안.html
   .sec-* / .type-tab / .ftab 은 메인과 공유하는 클래스지만 이 파일은 교육신청 목록에서만
   로드되므로(pageCss=list) 여기 두면 이 화면에만 걸린다.
═══════════════════════════════════════════ */

@media (max-width: 860px) {
.section { padding: 20px 0 40px; }
.breadcrumb-inner { padding: 9px 16px; font-size: 11.5px; }

/* 제목 줄 — 「메인으로」는 브레드크럼의 「홈」과 겹쳐 폰에서는 뺀다 */
.sec-head { flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.sec-title-group { gap: 9px; }
.sec-num { width: 28px; height: 28px; }
.sec-title { font-size: 19px; }
.sec-desc { font-size: 12.5px; margin: 4px 0 0 37px; }
.sec-more { display: none; }

/* 타입탭 + 정렬 — 한 줄에 두면 정렬 select 가 탭을 밀어 글자가 잘린다 */
.type-tabs-row { flex-direction: column; align-items: stretch; gap: 0; }
.type-tabs-row .type-tabs { margin: 12px 0 0; overflow-x: auto; scrollbar-width: none; }
.type-tabs-row .type-tabs::-webkit-scrollbar { display: none; }
.type-tab { flex: 0 0 auto; padding: 10px 16px; font-size: 13.5px; white-space: nowrap; }
.offline-sort-sel { align-self: flex-end; margin: 8px 0; height: 32px; }

.filter-tabs { margin: 14px 0 16px; }
.ftab { padding: 6px 14px; font-size: 12px; }
.list-count-row { margin-bottom: 12px; }
.list-count-text { font-size: 12px; }
.list-more-wrap { margin-top: 24px; }
.list-more-btn { width: 100%; padding: 13px 0; }
}

@media (max-width: 540px) {
/* 폰 1열 — 세로 카드는 한 장이 화면을 다 먹어 12장 보려면 스크롤이 너무 길다.
   목록은 훑어보는 화면이라 가로형(썸네일 왼쪽)으로 바꾼다.
   hover 오버레이(.hover-detail)는 터치에서 뜰 수 없어 자리만 차지하므로 뺀다.
   [2026-09-11] 썸네일을 카드 높이에 맞춰 늘리면 박스가 세로로 길어져 16:9 원본 좌우가 절반 넘게 잘렸다.
   썸네일은 16:9 고정(120×67.5), 가격줄은 카드 전폭으로 내린다. .cbody 를 풀어 자식을 카드 그리드에 직접 둔다. */
#listGrid { gap: 10px !important; }
#listGrid .ccard { display: grid; position: relative; grid-template-columns: 120px 1fr;
                   column-gap: 10px; padding: 10px; align-items: start; }
#listGrid .cthumb { grid-column: 1; grid-row: 1 / 4; width: 120px; height: 67.5px;
                    min-height: 0; border-radius: 6px; position: static; }
#listGrid .cthumb > i { font-size: 22px; }
/* 썸네일이 static 이라 오버레이 기준이 카드 전체가 된다 — 이 줄을 지우면 카드가 덮인다 */
#listGrid .hover-detail { display: none; }
/* 칩은 썸네일 좌상단(아래끝 27% — 제작가이드 상단 30% 이내).
   하트는 썸네일 밖 가격줄 오른쪽 끝 — 상시접수 과정은 D-day 칩이 없어 그 자리가 비므로 하트가 채운다.
   bottom 7px 은 아래 정렬된 D-day 칩과 세로 중심을 맞춘 값 */
/* [2026-09-25] 이 분기만 .cthumb 가 static 이라 배지 행의 기준이 썸네일이 아니라 카드 전체다.
   right 를 두면 두 번째 배지가 120px 썸네일을 넘어 제목 위로 튀어나온다 — 폭을 썸네일에 묶는다.
   9px 기준으로 「분류 2개 + +N」이 112px 에 딱 들어가서 PC 와 같은 구성을 그대로 쓴다.
   더 긴 분류명은 .days-badge 의 말줄임으로 줄어든다(+N 은 flex:0 0 auto 라 안 줄어든다). */
#listGrid .days-badge-row { top: 14px; left: 14px; right: auto; width: 112px; }
#listGrid .days-badge { font-size: 9px; padding: 1px 5px; max-width: 112px; }
#listGrid .card-icons { top: auto; bottom: 7px; right: 10px; }
#listGrid .icon-toggle { width: 24px; height: 24px; font-size: 11px; }
#listGrid .cbody { display: contents; }
#listGrid .badge-row { grid-column: 2; grid-row: 1; gap: 4px; margin-bottom: 6px; }
#listGrid .badge { font-size: 9.5px; padding: 2px 6px; }
#listGrid .ctitle { grid-column: 2; grid-row: 2; font-size: 13px; min-height: 0; margin-bottom: 5px; }
#listGrid .cmeta { grid-column: 2; grid-row: 3; font-size: 10.5px; }
#listGrid .cfoot { grid-column: 1 / -1; grid-row: 4; margin-top: 10px; padding-top: 8px;
                   align-items: flex-end; padding-right: 32px; }
/* 가격 한 줄 — 「할인율 판매가 정가(취소선)」. 마크업은 정가가 위라 아래 .cprice-original 의 order 로 뒤로 보낸다.
   폭이 모자라면(좁은 폰 + 7자리 가격 + 긴 칩) 정가만 다음 줄로 내려간다 */
#listGrid .cprice-wrap { flex-direction: row; align-items: baseline; flex-wrap: wrap; column-gap: 6px; row-gap: 0; }
#listGrid .cprice { font-size: 14.5px; }
#listGrid .cprice-original { font-size: 11px; order: 2; }
#listGrid .cprice-rate { font-size: 12px; }
#listGrid .cprice-vat-free { display: none; }
#listGrid .dday { font-size: 10px; padding: 2px 6px; }
.sec-title { font-size: 18px; }
}
