/* AiNex 사이버연수원 — 과정 목록 (hrdedu/educourse/course_list.html), redesigned in design step 3.
   Flat 연수원 look: page head like .yw-ph, category tabs like .yw-sn, text cards with a navy top rule.
   Class names are unchanged (prefix .clx-) so the page markup and logic stay as they were. Tokens only, radius 4/6. */

.clx { background: #fff; color: var(--text); }
.clx-in { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.clx-srOnly { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- page head ---------- */
.clx-hero { background: var(--surface) !important; border-bottom: 1px solid var(--line); color: var(--ink); }
.clx-hero::after { content: none; }
.clx-hero .clx-in { padding-top: 28px; padding-bottom: 32px; }
.clx-crumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; color: var(--mute); }
.clx-crumb li + li::before { content: "›"; margin-right: 6px; }
.clx-crumb a { color: var(--mute); text-decoration: none; }
.clx-crumb a:hover { color: var(--p); }
.clx-heroGrid { display: grid; grid-template-columns: 1fr minmax(320px, 420px); gap: 32px; align-items: end; }
.clx-eyebrow { display: none; }
.clx-title { margin: 0 0 6px; font-size: 32px; font-weight: 800; letter-spacing: -0.6px; color: var(--ink); }
.clx-desc { margin: 0; font-size: 15px; color: var(--mute); }
.clx-search { position: relative; display: flex; gap: 6px; }
.clx-search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--mute); stroke-width: 1.5; stroke-linecap: round; }
.clx-search input { flex: 1; min-width: 0; height: 44px; padding: 0 12px 0 38px; border: 1px solid #c9d0d9; border-radius: 4px; background: #fff; font: inherit; font-size: 15px; color: var(--text); }
.clx-search input::placeholder { color: var(--mute); }
.clx-search input:focus { border-color: var(--p); outline: 2px solid var(--a); outline-offset: 1px; }
.clx-search button { height: 44px; padding: 0 18px; border: 0; border-radius: 4px; background: var(--p); color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.clx-search button:hover { background: var(--p-dark); }

/* ---------- category tabs (sticky under the header, like .yw-sn) ---------- */
.clx-tabs { position: sticky; top: var(--hd-h); z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.clx-tabs .clx-in { display: flex; gap: 26px; overflow-x: auto; }
.clx-tabs a { padding: 13px 0; border-bottom: 3px solid transparent; font-size: 15px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.clx-tabs a:hover, .clx-tabs a[aria-current] { color: var(--p); border-color: var(--p); }
.clx-tabs a[aria-current]::after { content: none; }

/* ---------- body ---------- */
.clx-body { padding-top: 28px; padding-bottom: 64px; }
.clx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.clx-chips a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; }
.clx-chips a em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--mute); }
.clx-chips a:hover { border-color: var(--p); color: var(--p); }
.clx-chips a[aria-current] { background: var(--p); border-color: var(--p); color: #fff; }
.clx-chips a[aria-current] em { color: #fff; }
.clx-chips a.is-zero { color: var(--mute); }
.clx-resultBar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.clx-resultBar p { margin: 0; font-size: 14px; color: var(--mute); }
.clx-resultBar b { color: var(--ink); font-weight: 800; }
.clx-clear { font-size: 14px; font-weight: 700; color: var(--a); text-decoration: none; }

/* ---------- course cards ---------- */
.clx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.clx-grid > li { display: flex; }
.clx-card { display: flex; flex-direction: column; width: 100%; border: 1px solid var(--line); border-top: 3px solid var(--p); border-radius: 6px; background: #fff; color: inherit; text-decoration: none; overflow: hidden; }
.clx-card:hover { border-color: var(--p); }
.clx-card:hover .clx-cardTitle { color: var(--p); text-decoration: underline; }
.clx-card:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
.clx-cover { position: relative; display: flex; align-items: center; gap: 10px; min-height: 0; padding: 14px 20px 0; background: none !important; }
.clx-cover::before { content: none; }
.clx-cover.has-img { display: block; padding: 0; aspect-ratio: 16 / 9; background: var(--surface) !important; }
.clx-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.clx-coverNum { font-size: 13px; font-weight: 900; color: var(--p); }
.clx-coverLabel { font-size: 13px; font-weight: 700; color: var(--mute); }
.clx-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.clx-cover.has-img .clx-badges { position: absolute; top: 10px; left: 10px; margin: 0; }
.clx-badge { display: inline-block; padding: 0 6px; border: 1px solid var(--a); border-radius: 3px; background: #fff; font-size: 11px; font-weight: 800; line-height: 1.6; color: var(--a); white-space: nowrap; }
.clx-badge.cl-badgeRefund { border-color: var(--ok); color: var(--ok); }
.clx-badge.cl-badgeAi, .clx-badge.cl-badgeLive { border-color: var(--p); color: var(--p); }
.clx-badge.cl-badgePractice, .clx-badge.cl-badgeTalk { border-color: var(--line); color: var(--text); }
.clx-cardBody { display: flex; flex: 1; flex-direction: column; padding: 10px 20px 18px; }
.clx-cardTitle { margin: 0 0 6px; font-size: 17px; font-weight: 800; line-height: 1.45; color: var(--ink); }
.clx-summary { flex: 1; margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--text); }
.clx-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.clx-metaFacts { display: flex; gap: 10px; font-size: 13px; color: var(--mute); }
.clx-price { font-size: 15px; font-weight: 800; color: var(--ink); }
.clx-price small { margin-left: 1px; font-size: 13px; font-weight: 700; }

/* ---------- empty state ---------- */
.clx-empty { padding: 40px 20px; border: 1px dashed var(--line); border-radius: 6px; text-align: center; color: var(--mute); }
.clx-emptyIcon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 50%; background: var(--surface); color: var(--p); }
.clx-emptyIcon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.clx-empty strong { display: block; margin-bottom: 4px; font-size: 16px; color: var(--ink); }
.clx-empty p { margin: 0 0 16px; font-size: 14px; }
.clx-emptyActions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- buttons (same as .yw-btn) ---------- */
.clx-btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border: 1.5px solid var(--p); border-radius: 4px; background: #fff; color: var(--p); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.clx-btnLine:hover { background: var(--surface); }
.clx-btnPrimary { background: var(--p); color: #fff; }
.clx-btnPrimary:hover { background: var(--p-dark); color: #fff; }

/* ---------- pagination (same as .yw-pager) ---------- */
.clx-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 32px 0 0; }
.clx-pagination a, .clx-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; }
.clx-pagination span { border-color: transparent; color: var(--mute); }
.clx-pagination a:hover { border-color: var(--p); color: var(--p); }
.clx-pagination a[aria-current] { background: var(--p); border-color: var(--p); color: #fff; }
.clx-pagination a[aria-disabled] { opacity: .4; pointer-events: none; }

/* ---------- help box ---------- */
.clx-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 48px 0 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.clx-help strong { display: block; font-size: 17px; font-weight: 800; color: var(--ink); }
.clx-help p { margin: 4px 0 0; font-size: 14px; color: var(--mute); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .clx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clx-heroGrid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 599px) {
  .clx-title { font-size: 24px; }
  .clx-grid { grid-template-columns: 1fr; }
  .clx-chips a, .clx-btn, .clx-pagination a, .clx-pagination span { height: 44px; min-width: 44px; }
  .clx-help { flex-direction: column; align-items: stretch; padding: 20px; }
}
