/* ============================================
   Courses Catalog — track-stripe colors
   ============================================ */
:root {
  --track-base: #2563eb;
  --track-applied: #f59e0b;
  --track-nko: #10b981;
}

.cc-track-base { --track: var(--track-base); }
.cc-track-applied { --track: var(--track-applied); }
.cc-track-nko { --track: var(--track-nko); }

/* ============================================
   Course card (new format)
   ============================================ */
.cc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cc-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--track, #d1d5db);
}
.cc-card:hover { border-color: var(--track); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.cc-card.cc-highlighted { border-color: var(--track); box-shadow: 0 0 0 2px var(--track); }

.cc-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.cc-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(0,0,0,.04); color: var(--track); }
.cc-track-badge { padding: 2px 8px; border-radius: 4px; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: rgba(0,0,0,.04); color: var(--track); }

.cc-card h3.cc-title { font-size: 17px; font-weight: 700; color: #111827; margin: 0 0 8px 0; line-height: 1.3; }
.cc-audience { font-size: 12px; color: #4b5563; padding: 8px 10px; background: #f9fafb; border-radius: 6px; margin-bottom: 12px; line-height: 1.4; }
.cc-audience-label { color: #9ca3af; text-transform: uppercase; font-size: 9px; font-weight: 600; letter-spacing: .04em; display: block; margin-bottom: 2px; }

.cc-deliverables { list-style: none; padding: 0; margin: 0 0 14px 0; font-size: 12px; color: #374151; }
.cc-deliverables li { padding: 3px 0 3px 18px; position: relative; line-height: 1.4; }
.cc-deliverables li::before { content: '✓'; position: absolute; left: 0; color: #10b981; font-weight: 700; }

.cc-price { font-size: 18px; font-weight: 700; color: #111827; margin: auto 0 12px 0; }
.cc-actions { display: flex; gap: 8px; }
.cc-actions .btn { flex: 1; }

/* ============================================
   Learning path roadmap
   ============================================ */
.cc-roadmap { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px 24px; }
.cc-roadmap-row { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.cc-step { flex: 1; min-width: 200px; padding: 16px; background: #fafafa; border-radius: 10px; text-align: center; }
.cc-step-num { font-size: 22px; font-weight: 700; color: #2563eb; margin-bottom: 4px; }
.cc-step-label { font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.cc-step-courses { display: flex; flex-direction: column; gap: 6px; }
.cc-step-course { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; padding: 8px 10px; font-size: 12px; line-height: 1.3; text-align: left; text-decoration: none; color: #111827; transition: border-color .15s; }
.cc-step-course:hover { border-color: #2563eb; }
.cc-step-course-applied { background: #fef3c7; border-color: #fde68a; }
.cc-arrow { display: flex; align-items: center; color: #9ca3af; font-size: 22px; }
.cc-roadmap-nko { margin-top: 16px; padding: 12px 18px; background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1px solid #6ee7b7; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cc-roadmap-nko-tag { display: inline-block; padding: 2px 8px; background: #10b981; color: #fff; border-radius: 999px; font-size: 10px; font-weight: 600; text-transform: uppercase; }

@media (max-width: 768px) {
  .cc-roadmap-row { flex-direction: column; }
  .cc-arrow { transform: rotate(90deg); justify-content: center; padding: 4px 0; }
}

/* ============================================
   Events promo banner
   ============================================ */
.cc-promo { background: linear-gradient(90deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; border-radius: 8px; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: #78350f; }
.cc-promo a { color: #b45309; font-weight: 600; text-decoration: underline; white-space: nowrap; }

/* ============================================
   Track section role-selector chips
   ============================================ */
.cc-role-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.cc-role-chip { padding: 6px 14px; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; font-size: 12px; color: #4b5563; cursor: pointer; transition: all .15s; }
.cc-role-chip:hover { border-color: var(--track-applied); }
.cc-role-chip.active { background: var(--track-applied); color: #fff; border-color: var(--track-applied); }

/* ============================================
   NKO split banner
   ============================================ */
.cc-nko { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid #6ee7b7; border-radius: 16px; overflow: hidden; }
.cc-nko-left { background: linear-gradient(135deg, #064e3b, #065f46); color: #fff; padding: 28px; }
.cc-nko-right { padding: 24px; background: #fff; }
.cc-nko-tag { display: inline-block; padding: 4px 10px; background: rgba(255,255,255,.15); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.cc-nko-left h3 { font-size: 22px; font-weight: 700; margin: 0 0 8px 0; }
.cc-nko-left p { color: #d1fae5; font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.cc-nko-right h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin: 0 0 10px 0; }
.cc-nko-deliv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.cc-nko-deliv-item { background: #f0fdf4; padding: 8px 10px; border-radius: 6px; font-size: 11px; color: #166534; line-height: 1.3; }
.cc-nko-deliv-item strong { display: block; font-size: 12px; color: #064e3b; }

@media (max-width: 768px) {
  .cc-nko { grid-template-columns: 1fr; }
}

/* ============================================
   Demo carousel — spotlight
   ============================================ */
.cc-demo { background: #f9fafb; border-radius: 16px; padding: 24px; }
.cc-demo-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.cc-demo-spotlight { background: #fff; border-radius: 12px; padding: 16px; }
.cc-demo-video { aspect-ratio: 16/9; width: 100%; border-radius: 8px; background: #111827; object-fit: cover; }
.cc-demo-video-fallback { aspect-ratio: 16/9; width: 100%; border-radius: 8px; background: linear-gradient(135deg, #064e3b, #065f46); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #d1fae5; font-size: 14px; gap: 6px; }
.cc-demo-slides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cc-demo-slide { aspect-ratio: 4/3; background: #f3f4f6; border-radius: 6px; overflow: hidden; }
.cc-demo-slide img { width: 100%; height: 100%; object-fit: cover; }
.cc-demo-outcomes { margin-top: 12px; padding: 18px; border-radius: 10px; border: 1px solid; }
.cc-demo-outcomes.cc-track-base { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #bfdbfe; }
.cc-demo-outcomes.cc-track-applied { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; }
.cc-demo-outcomes.cc-track-nko { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border-color: #a7f3d0; }
.cc-demo-outcomes-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cc-demo-outcomes-icon { width: 44px; height: 44px; background: var(--track, #6b7280); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.cc-demo-outcomes-head h4 { margin: 0 0 4px 0; font-size: 14px; font-weight: 700; color: #111827; line-height: 1.3; }
.cc-demo-outcomes-meta { display: block; font-size: 11px; color: #6b7280; font-weight: 500; }
.cc-demo-outcomes-bullets { list-style: none; padding: 0; margin: 0; font-size: 13px; color: #374151; }
.cc-demo-outcomes-bullets li { padding: 5px 0 5px 22px; position: relative; line-height: 1.4; }
.cc-demo-outcomes-bullets li::before { content: '→'; position: absolute; left: 0; color: var(--track, #6b7280); font-weight: 700; }
.cc-demo-rail { display: flex; flex-direction: column; gap: 6px; }
.cc-demo-rail-item { padding: 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; transition: all .15s; }
.cc-demo-rail-item:hover { border-color: #2563eb; }
.cc-demo-rail-item.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.cc-demo-rail-item .cc-demo-rail-title { font-weight: 600; font-size: 13px; }
.cc-demo-rail-item .cc-demo-rail-meta { font-size: 11px; color: #6b7280; margin-top: 2px; }
.cc-demo-rail-item.active .cc-demo-rail-meta { color: #bfdbfe; }

@media (max-width: 768px) {
  .cc-demo-grid { grid-template-columns: 1fr; }
  .cc-demo-rail { flex-direction: row; overflow-x: auto; flex-wrap: nowrap; }
  .cc-demo-rail-item { flex: 0 0 200px; }
}

/* ============================================
   Quiz wizard (course_quiz_page.html)
   ============================================ */
.cq-card { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 14px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.cq-progress { display: flex; gap: 4px; margin-bottom: 24px; }
.cq-dot { flex: 1; height: 4px; background: #e5e7eb; border-radius: 2px; transition: background .15s; }
.cq-dot.done, .cq-dot.active { background: #2563eb; }
.cq-step-label { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.cq-question { font-size: 22px; font-weight: 700; color: #111827; margin: 0 0 20px 0; line-height: 1.3; }
.cq-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.cq-option { padding: 14px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; font-size: 14px; color: #111827; text-align: left; transition: all .15s; }
.cq-option:hover { border-color: #93c5fd; }
.cq-option.selected { background: #eff6ff; border-color: #2563eb; color: #1e40af; }
.cq-nav { display: flex; justify-content: space-between; align-items: center; }
.cq-back { background: none; border: none; color: #6b7280; font-size: 13px; cursor: pointer; }
.cq-back[disabled] { visibility: hidden; }

.cq-result { display: none; }
.cq-result.active { display: block; }
.cq-result-card { background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 1px solid #bfdbfe; border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.cq-result-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #2563eb; font-weight: 600; margin-bottom: 8px; }
.cq-result-name { font-size: 20px; font-weight: 700; color: #1e3a8a; margin: 0 0 4px 0; }
.cq-result-meta { font-size: 12px; color: #4b5563; margin-bottom: 12px; }
.cq-result-why { font-size: 12px; color: #1e40af; line-height: 1.5; padding: 10px; background: rgba(255,255,255,.6); border-radius: 6px; }
