/* ==========================================================================
   Course catalog — shared by every course page (MOA_Final_27112026):
   all-courses.html (/courses), browse-by-specialty, browse-by-course-level, online-courses, hybrid-programs.
   Port of all-courses.css + hover-animations.css (course cards) + inner-banner-center.css and
   black-inner-banners.css (the black, centred hero), in cascade order.
   Card markup: templates/course_manage/catalog_card.html. Filtering: js/catalog_v2.js.
   ========================================================================== */

/* ---------- All Courses hero ---------- */
.catalog-hero { padding: 80px 0 72px; background: #000; color: #fff; text-align: center; }
/* black-inner-banners.css: the banner content sits above its (removed) artwork layers. */
.catalog-hero > .moa-container { position: relative; z-index: 1; }
.catalog-eyebrow { color: #ee343b; font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.catalog-hero .catalog-eyebrow { color: #fff; }
.catalog-hero h1 { margin: 12px auto; color: #fff; font-size: clamp(32px, 4vw, 54px); }
.catalog-hero p { max-width: 650px; margin-inline: auto; color: #fff; font-size: 17px; }

/* ---------- Toolbar ---------- */
.catalog-section { padding-top: 48px; padding-bottom: 85px; }
.catalog-toolbar {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: 14px; align-items: end;
  padding: 22px; border: 1px solid #ececec; border-radius: 16px; background: #fafafa;
}
.catalog-toolbar label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.catalog-toolbar input, .catalog-toolbar select {
  width: 100%; height: 45px; padding: 0 12px; border: 1px solid #ddd; border-radius: 8px; background: #fff; font: inherit;
}
.catalog-toolbar input:focus, .catalog-toolbar select:focus { outline: 2px solid #ee343b; outline-offset: 1px; }
.catalog-toolbar button {
  height: 45px; padding: 0 16px; border: 1px solid #ee343b; border-radius: 8px; background: #fff; color: #ee343b;
  font-weight: 700; cursor: pointer;
}
.catalog-results { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 18px; }
.catalog-results p { font-weight: 700; }

/* ---------- Course card ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.catalog-card {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid #f0d4d6; border-radius: 15px;
  background: #fff; box-shadow: 0 6px 24px #00000009;
}
.catalog-card > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.catalog-image-placeholder {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1.75; background: linear-gradient(135deg, #f8f9fb, #f5e7e9);
}
.catalog-medical-mark { color: #ee343b; font-size: 58px; opacity: .6; }
.catalog-card-content { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.catalog-tag { color: #ee343b; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.catalog-card h2 { margin: 9px 0 16px; color: #222; font-size: 20px; font-weight: 800; line-height: 1.35; }
.catalog-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.catalog-meta span { padding: 7px 9px; border-radius: 6px; background: #f6f6f6; color: #444; font-size: 12px; font-weight: 600; }
.catalog-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.catalog-actions a { color: #ee343b; font-weight: 800; }
.catalog-actions a:hover { text-decoration: underline; }
.catalog-link-unavailable { color: #999; font-weight: 800; cursor: not-allowed; }

/* hover-animations.css */
@media (hover: hover) and (pointer: fine) {
  .catalog-card {
    transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease, border-color .3s ease, background-color .3s ease;
    will-change: transform;
  }
  .catalog-card:hover { transform: translateY(-7px); box-shadow: 0 16px 36px rgba(26, 28, 35, .13); border-color: rgba(238, 52, 59, .35); }
  .catalog-card img { transition: transform .55s cubic-bezier(.22, 1, .36, 1), filter .45s ease; }
  .catalog-card:hover img { transform: scale(1.035); }
  .catalog-actions a { transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease; }
}

/* ---------- View more / empty ---------- */
.catalog-more-wrap { margin: 38px 0 12px; text-align: center; }
.catalog-more-btn {
  padding: 15px 32px; border: 2px solid #ee343b; border-radius: 9px; background: #ee343b; color: #fff;
  font: inherit; font-weight: 800; cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.catalog-more-btn:hover { background: #fff; color: #ee343b; transform: translateY(-2px); }
.catalog-more-btn:focus-visible { outline: 3px solid #222; outline-offset: 4px; }
.catalog-more-btn span { margin-left: 9px; }
.catalog-empty { padding: 50px; color: #666; text-align: center; }

@media (max-width: 1050px) {
  .catalog-toolbar { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .catalog-hero { padding: 52px 0; }
  .catalog-toolbar, .catalog-grid { grid-template-columns: 1fr; }
  .catalog-results { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-card, .catalog-card img { transition: none; }
}
