/* AiNex Edu design — course list (09) and course detail (10). Ported from the React course pages. */

/* ===== courses/CourseCatalogPage.module.css (prefix .cl-) ===== */
.cl-page {
  background: var(--bg);
}

.cl-head {
  padding: 44px 32px 34px;
  background: #f3f6fa;
  border-bottom: 1px solid #e4e7ec;
}

.cl-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cl-crumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  word-break: keep-all;
}

.cl-crumb li + li::before {
  content: '›';
  color: #c5c9d1;
  font-weight: 500;
}

.cl-crumb a {
  color: var(--muted);
  text-decoration: none;
}

.cl-crumb a:hover,
.cl-crumb a:focus-visible {
  color: var(--accent);
}

.cl-crumb [aria-current='page'] {
  color: var(--text);
}

.cl-title {
  max-width: 1200px;
  margin: 12px auto 0;
  color: var(--text);
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.25;
  word-break: keep-all;
}

.cl-list,
.cl-empty {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px 72px;
}

.cl-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  padding: 21px 0;
  border-bottom: 1px solid #e9ecf1;
  color: inherit;
  text-decoration: none;
}

.cl-row:hover .cl-courseTitle {
  color: var(--accent);
}

.cl-num {
  flex-shrink: 0;
  margin-top: 4px;
  min-width: 24px;
  color: #4873b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cl-body {
  flex: 1;
  min-width: 0;
}

.cl-courseTitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.4;
  word-break: keep-all;
}

.cl-summary {
  margin: 0;
  color: #667085;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.6;
  word-break: keep-all;
}

.cl-meta {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  color: #667085;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.cl-go {
  color: #4873b8;
  font-weight: 800;
}

.cl-badge {
  display: inline-flex;
  padding: 3px 9px;
  border: 1px solid #d4e2f4;
  border-radius: 4px;
  background: #eef4fb;
  color: #123f73;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.cl-badgeRefund {
  background: #e9f7f6;
  border-color: #c4e8e5;
  color: #0c5a55;
}

.cl-badgeAi,
.cl-badgePractice,
.cl-badgeTalk,
.cl-badgeLive {
  background: #eef4fb;
  border-color: #d4e2f4;
  color: #123f73;
}

.cl-empty {
  padding-top: 48px;
}

.cl-empty p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.7;
  word-break: keep-all;
}

.cl-emptyLink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 18px;
  border-radius: 4px;
  background: #56bdb6;
  color: #071521;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.cl-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.cl-pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cl-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}

.cl-pagination button.cl-pageActive {
  color: var(--text);
  box-shadow: inset 0 -2px var(--accent);
}

@media (max-width: 1023px) {
  .cl-head {
    padding: 32px 20px 24px;
  }

  .cl-list,
  .cl-empty {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cl-row {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .cl-meta {
    width: 100%;
    justify-content: flex-end;
    padding-left: 24px;
  }
}

.cl-head {
  background: var(--bg);
  border-bottom: 0;
  padding-top: 56px;
}

.cl-title {
  letter-spacing: var(--heading-tracking);
}

.cl-row {
  margin-top: 12px;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid #e6ebf3;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(18, 36, 74, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cl-row:hover {
  border-color: #c9d6f0;
  transform: translateY(-2px);
}

.cl-num,
.cl-go {
  color: var(--accent);
}

.cl-badge,
.cl-badgeAi,
.cl-badgePractice,
.cl-badgeTalk,
.cl-badgeLive,
.cl-badgeRefund {
  color: #1b3ec8;
  background: #eef3f9;
  border-color: #d5def8;
}

.cl-emptyLink {
  border-radius: var(--radius-button);
  min-height: 50px;
  color: var(--bg);
  background: var(--accent);
  border: 0;
  box-shadow: 0 12px 28px rgb(from var(--accent) r g b / 0.28);
}

.cl-emptyLink:hover,
.cl-emptyLink:focus-visible {
  background: var(--hover-blue);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ===== courses/CourseDetailPage.module.css (prefix .cd-) ===== */
.cd-page {
  background: var(--bg);
}

.cd-crumbWrap {
  padding: 22px 32px 0;
  background: #f3f6fa;
}

.cd-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cd-crumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  word-break: keep-all;
}

.cd-crumb li + li::before {
  content: '›';
  color: #c5c9d1;
  font-weight: 500;
}

.cd-crumb a {
  color: var(--muted);
  text-decoration: none;
}

.cd-crumb a:hover,
.cd-crumb a:focus-visible {
  color: var(--accent);
}

.cd-crumb li:last-child a {
  color: var(--text);
  font-weight: 800;
}

.cd-hero {
  overflow: hidden;
  background: #f3f6fa;
  border-bottom: 1px solid #e4e7ec;
}

.cd-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 46px;
}

.cd-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.3;
  word-break: keep-all;
}

.cd-line {
  display: block;
}

.cd-cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 14px 0;
  background: #fff;
  border: 1px solid #dfe4ec;
}

.cd-cell,
.cd-tab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 18px;
  border: 0;
  background: #fff;
}

.cd-cell:nth-child(odd),
.cd-tab:nth-child(odd) {
  border-right: 1px solid #dfe4ec;
}

.cd-cell:nth-child(-n+4),
.cd-tab:nth-child(-n+4) {
  border-bottom: 1px solid #dfe4ec;
}

.cd-cell span {
  color: #667085;
  font-size: 11.5px;
  font-weight: 700;
}

.cd-cell b {
  color: #101828;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cd-tab {
  align-items: center;
  justify-content: center;
  color: #667085;
  font: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
}

.cd-tabOn {
  background: #eef4fb;
  box-shadow: inset 0 -3px 0 #4873b8;
  color: #4873b8;
}

.cd-price {
  padding: 14px 18px;
  margin: 0 0 18px;
  background: #e9f7f6;
  border: 1px solid #c4e8e5;
}

.cd-prow {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.cd-prow b {
  letter-spacing: -0.03em;
}

.cd-priceEmpty,
.cd-priceNote {
  margin: 8px 0 0;
  color: #475467;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.55;
  word-break: keep-all;
}

.cd-priceEmpty {
  margin: 0;
}

.cd-cohortPrices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.cd-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  background: #e8eef7;
  color: #34598f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cd-cohortPick {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.cd-cohortPick select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.cd-applyHint {
  margin: 0 0 10px;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}

.cd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.cd-apply,
.cd-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.cd-apply {
  background: #4873b8;
  color: #fff;
}

.cd-applyDisabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cd-consult {
  background: #fff;
  color: var(--text);
  border: 1px solid #d0d5dd;
}

.cd-page {
  background: var(--bg);
}

.cd-title {
  letter-spacing: var(--heading-tracking);
}

.cd-tabOn {
  color: var(--text);
  box-shadow: inset 0 -2px var(--accent);
}

.cd-apply,
.cd-consult {
  border-radius: var(--radius-button);
  min-height: 50px;
  box-shadow: none;
}

.cd-apply {
  color: var(--bg);
  background: var(--accent);
  border: 0;
  box-shadow: 0 12px 28px rgb(from var(--accent) r g b / 0.28);
}

.cd-apply:hover,
.cd-apply:focus-visible {
  background: var(--hover-blue);
  color: var(--bg);
  transform: translateY(-2px);
}

.cd-consult {
  color: var(--text);
  background: var(--bg);
  border: 1px solid #d5dbe6;
}

.cd-consult:hover,
.cd-consult:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg);
  transform: translateY(-2px);
}

.cd-reviews {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 32px;
}

.cd-sectionName {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cd-hnum {
  margin-right: 10px;
  color: #4873b8;
  font-weight: 800;
}

.cd-sectionTitle {
  margin: 0 0 26px;
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.3;
  word-break: keep-all;
}

.cd-revHead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  color: #344054;
  font-size: 13.5px;
  font-weight: 800;
}

.cd-star {
  color: #101828;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cd-modules {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cd-moduleHead {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cd-moduleCode {
  flex-shrink: 0;
  min-width: 30px;
  color: #4873b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.cd-moduleTitle {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cd-moduleSub {
  margin: 3px 0 0;
  color: #667085;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.55;
  word-break: keep-all;
}

.cd-lessons {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.cd-lessons li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-top: 1px solid #e9ecf1;
}

.cd-lessonNo {
  min-width: 24px;
  color: #4873b8;
  font-size: 12px;
  font-weight: 800;
}

.cd-lessons strong {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.cd-preview {
  color: #4873b8;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.cd-emptyLessons {
  margin: 12px 0 0;
  color: #667085;
  font-size: 14px;
}

.cd-missing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 88px;
}

.cd-missingTitle {
  margin: 24px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cd-missingDesc {
  margin: 12px 0 0;
  color: #667085;
}

.cd-missingLink {
  display: inline-flex;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1023px) {
  .cd-crumbWrap {
    padding: 18px 20px 0;
  }

  .cd-info {
    padding: 28px 20px 36px;
  }

  .cd-reviews,
  .cd-missing {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ===== PHP port additions ===== */
.cd-modules li{list-style:none}
.cl-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 8px;border-radius:6px;color:var(--text);text-decoration:none}
.cl-pagination a[aria-current="page"]{background:var(--accent);color:#fff}
.cl-pagination a[aria-disabled="true"]{opacity:.35;pointer-events:none}
