/* ==========================================================================
   Online Courses (/online-courses) — the inline <style> of MOA_Final_27112026/online-courses.html,
   which comes after every stylesheet (so it wins over formats_v2.css where both set a property).
   Loaded after catalog_v2.css, level_v2.css and formats_v2.css. Template: course_manage/online_courses.html.
   ========================================================================== */

#onlineGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 24px 0 48px; }
.oc-card {
  display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid #e3e3e3; border-radius: 16px;
  background: #fff; box-shadow: 0 5px 20px #00000008; color: #111; transition: transform .25s, border-color .25s;
}
.oc-card:hover { transform: translateY(-4px); border-color: #ee343b; }
.oc-top, .oc-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }
.oc-top span { padding: 6px 10px; border-radius: 20px; background: #fff1f2; color: #b9212a; }
.oc-specialty { margin-top: 22px; color: #666; font-size: 12px; }
.oc-card h3 { margin: 8px 0 20px; color: #111; font-size: 21px; line-height: 1.35; }
.oc-meta { margin-top: auto; padding: 15px 0; border-top: 1px solid #eee; color: #555; }
.oc-cta { display: block; padding: 12px; border-radius: 7px; background: #ee343b; color: #fff !important; font-weight: 600; text-align: center; }
.oc-cta:hover { background: #d92730; }

/* Filter bar: the inline styles turn it into a wrapping flex row with plain inputs and a plain reset button. */
.online-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.online-tools label { display: grid; flex: 1; gap: 6px; min-width: 160px; }
.online-tools input, .online-tools select, .online-reset {
  padding: 12px; border: 1px solid #ddd; border-radius: 7px; background: #fff; color: #111; font: inherit;
}
.online-reset:hover { background: #ee343b; color: #fff; }

.level-page { max-width: 1200px; margin: auto; padding: 32px 20px; }
.level-results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

@media (max-width: 850px) { #onlineGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 550px) {
  #onlineGrid { grid-template-columns: 1fr; }
  .level-results-head { display: block; }
}
@media (prefers-reduced-motion: reduce) { .oc-card { transition: none; } }
