/* =====================================================================
   THE COURSE CARDS ON A PHONE (js/course-cards.js) - the Courses page and the home page's slides
   ===================================================================== */
.cm { color: #f5f5f5; text-align: left; font-family: Inter, -apple-system, "Segoe UI", sans-serif; box-sizing: border-box; position: relative; overflow: hidden; margin: 0 0 18px; padding: 20px 16px 16px; border-radius: 26px;
  background: radial-gradient(120% 70% at 85% 22%, color-mix(in srgb, var(--c) 26%, transparent), transparent 60%), linear-gradient(180deg, #141018, #0b0a0d);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
.cm-top { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 6px; align-items: center; }
.cm-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; font: 600 12px Inter, -apple-system, "Segoe UI", sans-serif; color: #fff;
  background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.cm-badge svg { width: 16px; height: 16px; fill: none; stroke: var(--c); stroke-width: 2; }
.cm h2 { margin: 12px 0 0; font: 700 27px/1.08 Sora, Inter, -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.03em; }
.cm h2 em { font-style: normal; color: var(--c); display: block; }
.cm p { margin: 9px 0 0; color: #a6a6b0; font-size: 13.5px; line-height: 1.45; }
.cm-art { position: relative; height: 150px; display: grid; place-items: center; }
.cm-glow { position: absolute; width: 132px; height: 132px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--c) 80%, #fff), var(--cl)); opacity: 0.9;
  box-shadow: 0 0 50px color-mix(in srgb, var(--c) 55%, transparent); }
.cm-seal { position: relative; width: 104px; height: 104px; border-radius: 50%; background: #0b0a0d; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.8); }
.cm-seal svg { width: 92px; height: 92px; }
.cm-seal .ring, .cm-seal .ring2 { fill: none; stroke: var(--c); stroke-width: 1.6; }
.cm-seal .ring2 { stroke-dasharray: 2 3; opacity: 0.6; }
.cm-seal g.art { display: inline; height: auto; fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cm-seal text { fill: var(--c); font: 800 6px Inter, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.08em; }
.cm-feats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.cm-feats > div { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; padding: 0 4px; }
.cm-feats > div + div { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.cm-feats span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.cm-feats svg { width: 21px; height: 21px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cm-feats b { font: 500 12.5px/1.25 Inter, -apple-system, "Segoe UI", sans-serif; color: #e7e7ea; }
.cm-pills { display: flex; gap: 7px; margin-top: 16px; padding: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.cm-pills i { flex: 1; min-width: 0; font-style: normal; text-align: center; padding: 9px 4px; border-radius: 999px; font: 600 12.5px Inter, -apple-system, "Segoe UI", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.cm-go { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; padding: 15px; border-radius: 999px; background: linear-gradient(180deg, var(--c), var(--cl)); color: #0b0a0d; font: 700 16px Inter, -apple-system, "Segoe UI", sans-serif; }
.cm-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.cm-two a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 6px; border-radius: 999px; font: 600 13.5px Inter, -apple-system, "Segoe UI", sans-serif; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.cm-two svg { width: 19px; height: 19px; fill: none; stroke: #cbd5e1; stroke-width: 1.8; stroke-linejoin: round; }
.cm-two .cm-wa { stroke: #22c55e; }
.cm a { color: inherit; text-decoration: none; }
.cm-two a { color: #f5f5f5; }
.cm-go { color: #0b0a0d !important; }
.cm-two .cm-wa { fill: #22c55e; stroke: none; }
/* light mode */
html[data-theme="light"] .cm { color: #111418; background: radial-gradient(120% 70% at 85% 22%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%), #ffffff;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cl) 25%, transparent), 0 14px 34px -24px rgba(15, 23, 42, 0.35); }
html[data-theme="light"] .cm-badge { color: var(--cl); }
html[data-theme="light"] .cm h2 em { color: var(--cl); }
html[data-theme="light"] .cm p { color: #5b6472; }
html[data-theme="light"] .cm-feats b { color: #1f2937; }
html[data-theme="light"] .cm-feats svg { stroke: var(--cl); }
html[data-theme="light"] .cm-feats > div + div { border-left-color: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .cm-pills { background: #f6f7f9; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
html[data-theme="light"] .cm-pills i { color: var(--cl); }
html[data-theme="light"] .cm-two a { color: #111418; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
html[data-theme="light"] .cm-two svg { stroke: #475569; }
html[data-theme="light"] .cm-two .cm-wa { fill: #22c55e; stroke: none; }
html[data-theme="light"] .cm-go { color: #ffffff !important; }
