/* Compact course collection, using the supplied crystal landscape. */
body.collection-page {
  background: #f5f7ff url('../img/portal/course-collection-20260907.jpg') center top / max(100%, 1100px) auto no-repeat;
  color: #242957;
}
.collection-page .site-header + .page-layer { padding-top: 0; }
.collection-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 112px; padding-bottom: 26px; }
.collection-intro .eyebrow { color: #5e63a0; font-size: 12px; letter-spacing: .2em; }
.collection-intro h1 { margin-top: 7px; font: 700 clamp(36px, 4vw, 48px)/1.22 var(--font-display); letter-spacing: .06em; color: #20235e; }
.collection-intro > p:last-child { margin-top: 10px; font-size: 16px; color: #535c85; }
.collection-page .course-search { flex: 0 1 470px; width: 100%; margin: 0 0 4px; }
.collection-page .course-search > div { gap: 6px; padding: 6px 7px 6px 18px; border: 1px solid #fff; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 6px 28px #56569f0c; }
.collection-page .course-search input { padding: 9px 4px; font-size: 14px; }
.collection-page .course-search input:focus,
.collection-page .course-search input:focus-visible { outline: none; box-shadow: none; }
.collection-page .course-search:focus-within > div { background: #fff; box-shadow: 0 8px 30px #5a50b429; }
.collection-page .course-search button { display: grid; place-items: center; width: 38px; min-width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #5850cb; color: #fff; cursor: pointer; box-shadow: 0 3px 10px #5850cb25; }
.collection-page .course-search button:hover { background: #4038b0; }
.collection-page .course-search button svg { display: block; }
.collection-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.collection-tab { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 76px; padding: 12px 16px; border: 1px solid #ffffffa6; border-radius: 12px; background: #ffffff66; color: #596098; transition: background 140ms, box-shadow 140ms, border-color 140ms; }
.collection-tab > svg { flex-shrink: 0; }
.collection-tab > span { display: grid; gap: 2px; }
.collection-tab strong { color: #30375d; font: 600 16px/1.5 var(--font-sans); white-space: nowrap; }
.collection-tab small { font-size: 12px; color: #687093; }
.collection-tab:hover { background: #ffffffd9; }
.collection-tab[aria-current] { background: #fff; border-color: #dfdefb; color: #6358dd; box-shadow: 0 5px 20px #5850cb0b, inset 0 -2px #8278ed; }
.collection-tab[aria-current] strong { color: #34306d; }
.collection-tab:focus-visible { outline: 3px solid #7264d5; outline-offset: 3px; }
.collection-panel { padding: 20px; border: 1px solid #fff; border-radius: 18px; background: #ffffffba; box-shadow: 0 12px 44px #4b4a8d06; }
.collection-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 2px 17px; }
.collection-panel-heading h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font: 700 24px/1.5 var(--font-display); color: #24275e; }
.collection-panel-heading h2::before { content: ''; width: 3px; height: 21px; border-radius: 2px; background: #7467d9; }
.collection-count { padding: 1px 8px; border: 1px solid #e4e4f4; border-radius: 20px; color: #6a6794; font: 400 12px/1.7 var(--font-sans); }
.collection-panel-heading [data-group-description] { margin-top: 4px; color: #67718d; font-size: 14px; line-height: 1.7; }
.collection-updated { flex-shrink: 0; font-size: 12px; color: #737b94; }
.collection-page .portal-course-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 0; }
.collection-page .course-card { border: 1px solid #e9eaf6; border-radius: 12px; background: #ffffffef; box-shadow: 0 2px 8px #423b6d04; }
.collection-page .course-card:hover { border-color: #c9c4ed; box-shadow: 0 6px 20px #5144900d; transform: translateY(-2px); }
.collection-page .course-card-body { padding: 13px; gap: 11px; }
.collection-page .course-card-heading { align-items: center; gap: 12px; }
.collection-page .course-cover { flex-basis: 84px; width: 84px; height: 84px; aspect-ratio: 1; border: 0; border-radius: 8px; background: #dce2ef; }
.collection-page .course-cover img { object-position: center; }
.collection-page .portal-course-grid h3 { font: 700 18px/1.5 var(--font-display); color: #2c305b; }
.collection-page .course-teachers { margin-top: 7px; font-size: 14px; line-height: 1.6; color: #69738c; }
.collection-page .course-actions { gap: 5px; padding-top: 10px; border-color: #efeff7; }
.collection-page .course-action { min-height: 30px; padding: 4px 8px; font-size: 14px; line-height: 1.5; border-radius: 5px; background: #f4f5fa; color: #606a87; }
.collection-page .course-action:hover { background: #eeedf8; color: #4d438f; }
.collection-page .course-action-primary { background: #eeecfc; color: #5447b1; }
.collection-page .course-action-primary:hover { background: #5c50bd; color: #fff; }
.collection-search-result { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; color: #69728c; font-size: 14px; overflow-wrap: anywhere; }
.collection-search-result a { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; color: #5b50ad; }
.collection-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 21px 4px 42px; }
.collection-bottom p { color: #717a91; font-size: 12px; }
.collection-bottom a { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: #5b5295; font-size: 14px; }
.collection-page .site-footer { background: #eff2fb; border-color: #e3e6f2; }
@media (max-width: 1023px) {
  .collection-page .portal-course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .collection-hero { gap: 24px; }
  .collection-page .course-search { flex-basis: 390px; }
  .collection-tab { gap: 9px; padding-inline: 10px; }
  .collection-tab strong { font-size: 14px; }
}
@media (max-width: 720px) {
  .collection-hero { display: block; padding-top: 90px; padding-bottom: 16px; }
  .collection-intro .eyebrow { display: none; }
  .collection-intro h1 { margin-top: 0; font-size: 32px; }
  .collection-page .course-search { max-width: none; margin-top: 16px; }
  .collection-page .course-search input { padding: 8px 4px; font-size: 16px; }
  .collection-page .course-search button { width: 44px; min-width: 44px; height: 44px; }
  .collection-page .course-action { min-height: 44px; }
  .collection-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 3px 9px; margin: -4px -3px 9px; scroll-padding-inline: 3px; scrollbar-width: thin; scrollbar-color: #d7d5ec transparent; }
  .collection-tab { flex: 0 0 auto; min-height: 65px; padding: 9px 14px; }
  .collection-tab > svg { width: 21px; height: 21px; }
  .collection-panel { padding: 16px; border-radius: 14px; }
  .collection-panel-heading { gap: 10px; align-items: flex-start; }
  .collection-panel-heading h2 { font-size: 22px; }
  .collection-updated { display: none; }
  .collection-bottom { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 30px; }
}
@media (max-width: 640px) {
  .collection-content { padding-inline: 16px; }
  .collection-page .portal-course-grid { grid-template-columns: 1fr; gap: 10px; }
  .collection-page .course-cover { flex-basis: 80px; width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-tab, .collection-page .course-card { transition: none; }
  .collection-page .course-card:hover { transform: none; }
}
