/* ==========================================================================
   Course level layout — MOA_Final_27112026/browse-by-course-level.html
   Port of browse-by-course-level.css + inner-banner-center.css + black-inner-banners.css (final cascade).
   Also the base of online-courses.html / hybrid-programs.html (their CSS starts with these same rules);
   their refinements live in formats_v2.css, loaded after this file.
   Loaded after catalog_v2.css. Template: course_manage/browse_by_course_level.html.
   ========================================================================== */

/* ---------- Hero ---------- */
.level-hero { padding: 90px 0 85px; background: #000; color: #fff; text-align: center; }
/* black-inner-banners.css: the banner content sits above its (removed) artwork layers. */
.level-hero > .moa-container { position: relative; z-index: 1; }
.level-hero h1 { margin: 12px auto; color: #fff; font-size: clamp(34px, 5vw, 58px); }
.level-hero p { max-width: 680px; margin: 0 auto 28px; color: #fff; line-height: 1.7; }
.level-eyebrow { color: #ee343b; font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.level-hero .level-eyebrow { color: #fff; }
.level-hero-cta {
  display: inline-block; padding: 14px 25px; border-radius: 8px; background: #ee343b; color: #fff; font-weight: 700;
  transition: transform .25s;
}
.level-hero-cta:hover { transform: translateY(-4px); }

/* ---------- Level cards ---------- */
.level-page { padding-top: 70px; padding-bottom: 90px; }
.level-intro { margin-bottom: 32px; text-align: center; }
.level-intro h2 { margin: 12px 0; font-size: clamp(26px, 3vw, 38px); }
.level-intro p { color: #666; }
.level-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.level-card {
  display: flex; flex-direction: column; gap: 12px; min-height: 218px; padding: 26px;
  border: 1px solid #e7e7e7; border-radius: 16px; background: #fff; box-shadow: 0 4px 20px #00000008;
  font: inherit; text-align: left; cursor: pointer; transition: transform .3s, box-shadow .3s, border-color .3s;
}
/* The design's button hover (hover-animations.css, also in pages_v2.css) wins over this transform/shadow. */
.level-card:hover, .level-card:focus-visible { transform: translateY(-8px); box-shadow: 0 18px 36px #00000018; border-color: #ee343b; }
.level-card.active { border: 2px solid #ee343b; background: #fff8f8; }
.level-icon { color: #ee343b; font-size: 29px; }
.level-card strong { color: #181818; font-size: 21px; }
.level-card small { color: #666; font-size: 14px; }
.level-card-link { margin-top: auto; color: #ee343b; font-size: 14px; font-weight: 700; }

/* ---------- Results ---------- */
.level-results { margin-top: 65px; scroll-margin-top: 100px; }
.level-results-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.level-results-head h2 { margin: 8px 0; font-size: 30px; }
.level-results-head p { color: #777; }
.level-view-all { color: #ee343b; font-weight: 700; }
.level-empty { padding: 35px; border-radius: 12px; background: #fafafa; text-align: center; }
.catalog-card { transition: transform .3s, box-shadow .3s; }
.catalog-card:hover { transform: translateY(-7px); box-shadow: 0 16px 32px #00000016; }

@media (max-width: 900px) { .level-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .level-card-grid { grid-template-columns: 1fr; }
  .level-results-head { flex-direction: column; align-items: flex-start; }
  .level-hero { padding: 65px 0; }
}
@media (prefers-reduced-motion: reduce) { .level-card, .catalog-card, .level-hero-cta { transition: none; } }
