/* Course page text blocks (intro, details, outline). Made by includes/course_rich.php.
   Copied in spirit from CourseLab C02: ticked list, who-cards, modules that open and close. */
.cr-prose, .cr-rich {
    --cr-brand: #007bff; --cr-brand-soft: #eaf3ff; --cr-ink: #212529; --cr-muted: #5f6b76;
    --cr-line: #dee2e6; --cr-surface: #fff; --cr-soft: #f6f8fb; --cr-ok: #1e8449; --cr-ok-soft: #e4f4ea;
    color: var(--cr-muted); font-size: 1.06rem; line-height: 1.8;
}

/* plain text (also old courses) */
.cr-prose p { margin: 0 0 1rem; }
.cr-prose p:last-child { margin-bottom: 0; }
.cr-prose .cr-lead { font-size: 1.22rem; line-height: 1.75; color: var(--cr-ink); }
.cr-prose ul, .cr-plain ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.cr-prose ul li, .cr-plain ul li { position: relative; padding-inline-start: 1.7rem; }
.cr-prose ul li::before, .cr-plain ul li::before { content: ""; position: absolute; inset-inline-start: .35rem; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--cr-brand); }
.cr-prose ol, .cr-plain ol { margin: 0 0 1rem; padding-inline-start: 1.5rem; display: grid; gap: .5rem; }
.cr-prose h2, .cr-prose h3, .cr-prose h4 { color: var(--cr-ink); font-weight: 700; margin: 1.4rem 0 .6rem; font-size: 1.25rem; }
.cr-prose strong, .cr-rich strong { color: var(--cr-ink); }

/* sections of the details tab */
.cr-sec { margin-bottom: 2rem; }
.cr-sec:last-child { margin-bottom: 0; }
.cr-h { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; font-size: 1.3rem; font-weight: 700; color: var(--cr-ink); }
.cr-h::before { content: ""; width: 5px; height: 1.4em; border-radius: 4px; background: var(--cr-brand); }
.cr-plain p { margin: 0 0 .8rem; }
.cr-plain p:last-child { margin-bottom: 0; }
.cr-plain ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cr-plain ul li { position: relative; padding-inline-start: 1.7rem; }
.cr-plain ul li::before { content: ""; position: absolute; inset-inline-start: .35rem; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--cr-brand); }

/* what you will learn */
.cr-learn { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.6rem; }
.cr-learn li { display: flex; gap: .7rem; align-items: flex-start; }
.cr-learn li::before {
    content: ""; flex: 0 0 24px; width: 24px; height: 24px; margin-top: .3em; border-radius: 50%;
    background: var(--cr-ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e8449' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.cr-learn li > span { color: var(--cr-ink); }

/* who should attend */
.cr-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cr-who > div { display: grid; align-content: start; gap: .25rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--cr-soft); border: 1px solid var(--cr-line); }
.cr-who .cr-ic { width: 42px; height: 42px; margin-bottom: .4rem; border-radius: 12px; background: var(--cr-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12a4 4 0 100-8 4 4 0 000 8zM4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E") center / 22px no-repeat; }
.cr-who b { color: var(--cr-ink); font-size: 1.05rem; line-height: 1.4; }
.cr-who div > span:not(.cr-ic) { font-size: .98rem; line-height: 1.6; }

/* outline: modules */
.cr-oh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; color: var(--cr-muted); font-weight: 600; }
.cr-all { min-height: 40px; padding: 0 1rem; border: 1px solid var(--cr-line); border-radius: 10px; background: var(--cr-surface); color: var(--cr-brand); font-weight: 600; cursor: pointer; }
.cr-all:hover { background: var(--cr-brand-soft); border-color: var(--cr-brand); }
.cr-mod { margin-top: .7rem; border: 1px solid var(--cr-line); border-radius: 16px; background: var(--cr-surface); }
.cr-mod[open] { border-color: rgba(0, 123, 255, .35); }
.cr-mod summary { display: flex; align-items: center; gap: .9rem; min-height: 64px; padding: .6rem 1rem; cursor: pointer; list-style: none; }
.cr-mod summary::-webkit-details-marker { display: none; }
.cr-mod summary::after { content: ""; margin-inline-start: auto; width: 10px; height: 10px; border-inline-end: 2px solid var(--cr-muted); border-bottom: 2px solid var(--cr-muted); transform: rotate(45deg); transition: transform .2s; flex: 0 0 auto; }
.cr-mod[open] summary::after { transform: rotate(-135deg); }
.cr-mn { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--cr-brand-soft); color: var(--cr-brand); font-weight: 800; font-size: 1rem; }
.cr-mt { display: grid; line-height: 1.4; }
.cr-mt b { color: var(--cr-ink); font-size: 1.08rem; }
.cr-mt small { color: var(--cr-muted); font-size: .92rem; }
.cr-mb { padding: .2rem 1.2rem 1.1rem; border-top: 1px dashed var(--cr-line); margin: 0 1rem; padding-inline: 0; padding-top: .9rem; }
.cr-mb ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.cr-mb ul li { position: relative; padding-inline-start: 1.7rem; }
.cr-mb ul li::before { content: ""; position: absolute; inset-inline-start: .35rem; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--cr-brand); }
.cr-mb p { margin: 0 0 .6rem; }

/* outline with no headings: numbered cards */
.cr-topics { list-style: none; counter-reset: crt; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.cr-topics li { counter-increment: crt; display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--cr-line); border-radius: 14px; background: var(--cr-surface); }
.cr-topics li::before { content: counter(crt); flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--cr-brand-soft); color: var(--cr-brand); font-weight: 800; }
.cr-topics li > span { color: var(--cr-ink); line-height: 1.5; }

@media (max-width: 991.98px) { .cr-who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .cr-learn, .cr-who, .cr-topics { grid-template-columns: minmax(0, 1fr); }
    .cr-prose .cr-lead { font-size: 1.12rem; }
}

/* ---------- schedule card (one published session) ---------- */
.sch-card {
    --cr-brand: #007bff; --cr-brand-soft: #eaf3ff; --cr-ink: #212529; --cr-muted: #5f6b76; --cr-line: #dee2e6; --cr-soft: #f6f8fb; --cr-ok-soft: #e4f4ea;
    border: 1px solid var(--cr-line); border-radius: 18px; background: #fff; padding: clamp(18px, 2.4vw, 28px);
}
.sch-card + .sch-card { margin-top: 1.25rem; }
.sch-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--cr-line); }
.sch-title { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--cr-ink); }
.sch-pill { padding: .25rem .9rem; border-radius: 999px; background: var(--cr-ok-soft); color: #146c2e; font-weight: 700; font-size: .85rem; letter-spacing: 0; }
.sch-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.sch-fact { display: flex; gap: .8rem; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--cr-soft); border: 1px solid var(--cr-line); }
.sch-ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background-color: var(--cr-brand-soft); background-position: center; background-repeat: no-repeat; background-size: 20px; }
.sch-fact > div { display: grid; gap: .15rem; min-width: 0; }
.sch-fact small { color: var(--cr-muted); font-size: .88rem; font-weight: 600; }
.sch-fact b { color: var(--cr-ink); font-size: 1.05rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.sch-fact .co-price { align-items: flex-start !important; margin-inline-start: 0 !important; text-align: start !important; }
.sch-fact .co-price-now { color: #1e8449; font-size: 1.15rem; }
.sch-trainer { display: flex; gap: 1rem; align-items: center; margin-top: 12px; padding: 16px; border: 1px solid var(--cr-line); border-radius: 14px; }
.sch-av { flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--cr-brand); color: #fff; font-weight: 800; font-size: 1.2rem; }
.sch-trainer > div { display: grid; gap: .1rem; min-width: 0; }
.sch-trainer small { color: var(--cr-muted); font-size: .88rem; font-weight: 600; }
.sch-trainer b { color: var(--cr-ink); font-size: 1.08rem; }
.sch-meta { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; margin-top: .25rem; color: var(--cr-muted); font-size: .92rem; }
.sch-act { display: flex; justify-content: flex-end; margin-top: 20px; }
.sch-act .btn { min-height: 46px; padding-inline: 1.6rem; font-weight: 600; }
.sch-full { color: #5f4aa6; font-weight: 700; }
@media (max-width: 575.98px) { .sch-act .btn { width: 100%; } .sch-trainer { align-items: flex-start; } }
.sch-ic.ic-clock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.sch-ic.ic-price { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M16.5 7.5C16 6 14.3 5 12 5c-2.4 0-4 1.1-4 3s1.6 2.6 4 3 4 1.1 4 3-1.6 3-4 3c-2.3 0-4-1-4.5-2.5'/%3E%3C/svg%3E"); }
.sch-ic.ic-pin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 10-14 0c0 4.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.sch-ic.ic-screen { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }
.sch-ic.ic-seats { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11a3.5 3.5 0 100-7 3.5 3.5 0 000 7zM2.5 20c0-3.3 2.9-6 6.5-6s6.5 2.7 6.5 6M16 4.3a3.5 3.5 0 010 6.7M18.5 14.4c1.8.8 3 2.7 3 5.6'/%3E%3C/svg%3E"); }
.sch-ic.ic-cal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.sch-fact .co-price-was { margin-inline-start: .7em !important; }
