/* Epidemic Modeling course pages: additions on top of rl-course.css (same page structure as the RL course). */
.em-player { position: relative; border-radius: 16px; overflow: hidden; background: #0F172A; }
.em-soon { position: relative; width: 100%; height: 100%; }
.em-soon img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.em-soon-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(15, 23, 42, .88); color: #fff; font-weight: 700; font-size: 1rem; padding: .7rem 1.1rem; border-radius: 999px; white-space: nowrap; }
.rl-player-wrap .em-player { aspect-ratio: 16 / 9; }
.em-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.em-how > div { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.em-how b { color: #1D4ED8; font-size: 1rem; } .em-how span { color: #4B5563; font-size: .95rem; line-height: 1.45; }
.em-part { margin: 1.8rem 0 .8rem; }
.em-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.em-mod { position: relative; }
.em-mod .em-num { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 999px; background: #2563EB; color: #fff; font-weight: 800; margin-bottom: .6rem; }
.em-mod.is-soon { opacity: .62; }
.em-mod.is-soon .em-num { background: #94A3B8; }
.em-mod.is-soon .card-more { color: #64748B; }
@media (max-width: 1024px) { .em-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .em-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .em-grid, .em-how { grid-template-columns: 1fr; } }
/* labs */
.epx-challenges { list-style: none; margin: .4rem 0 .8rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.epx-challenges li { display: flex; gap: .6rem; align-items: flex-start; color: #374151; font-size: .95rem; line-height: 1.45; padding: .55rem .7rem; border: 1px solid #E5E7EB; border-radius: 12px; background: #fff; }
.epx-challenges li.is-done { border-color: #A7F3D0; background: #ECFDF5; color: #065F46; }
.epx-mark { flex: 0 0 auto; display: inline-flex; margin-top: .1rem; color: #94A3B8; }
.epx-challenges li.is-done .epx-mark { color: #059669; }
.em-labs { margin-top: 1rem; }
.em-lab .em-lab-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: #EFF6FF; color: #2563EB; font-size: 1.3rem; margin-bottom: .6rem; }
/* hub: the course book */
.em-book { margin-top: 1.25rem; display: flex; gap: .8rem; align-items: flex-start; background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 16px; padding: .9rem 1.1rem; max-width: 44rem; }
.em-book > i { font-size: 1.4rem; color: #2563EB; margin-top: .1rem; }
.em-book p { font-size: .98rem; line-height: 1.6; color: #1F2937; }
.em-book a { color: #1D4ED8; font-weight: 600; }
.em-book cite { font-style: italic; }
.em-book-buy { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.em-cover { max-width: 340px; width: 100%; justify-self: center; border-radius: 14px; }
.em-cover a { display: block; }
@media (min-width: 1100px) { .rl-lec-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .em-cover { order: -1; max-width: 220px; justify-self: start; } }
