.sticky-footer { position: relative; width: 100%; height: auto; clip-path: none; color: hsl(var(--foreground)); }
.sticky-footer__panel { position: static; width: 100%; height: auto; }
.sticky-footer__surface {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-top: 1px solid hsl(var(--border));
  background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--background)) 65%);
}
.sticky-footer__light { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sticky-footer__light > div {
  position: absolute;
  top: -650px;
  left: -100px;
  width: 560px;
  height: 1280px;
  border-radius: 50%;
  transform: rotate(-45deg);
  background: radial-gradient(ellipse, hsl(var(--primary) / .14), hsl(var(--primary) / .04) 50%, transparent 80%);
}
.sticky-footer__light > div:nth-child(2) {
  left: 140px;
  width: 240px;
  background: radial-gradient(ellipse, hsl(var(--secondary) / .12), hsl(var(--secondary) / .03) 50%, transparent 80%);
}
.sticky-footer__light > div:nth-child(3) {
  left: -200px;
  width: 240px;
  background: radial-gradient(ellipse, hsl(var(--solar) / .12), hsl(var(--solar) / .03) 50%, transparent 80%);
}
.sticky-footer__content { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 4rem; max-width: 1280px; min-height: inherit; margin-inline: auto; padding: 4rem 2rem 1.5rem; }
.sticky-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.sticky-footer__brand { display: inline-block; font-family: var(--font-heading-family); font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -.035em; }
.sticky-footer__brand span { color: hsl(var(--primary)); }
.sticky-footer__description { max-width: 30ch; margin-block: 1.5rem; color: hsl(var(--muted-foreground)); line-height: 1.65; }
.sticky-footer__group { min-width: 0; }
.sticky-footer__group h2 { margin: .5rem 0 1.5rem; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sticky-footer__group ul { margin: 0; padding: 0; list-style: none; }
.sticky-footer__link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; max-width: 100%; color: hsl(var(--muted-foreground)); font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; text-decoration: none; transition: color 150ms ease; }
.sticky-footer__link svg { width: 1rem; height: 1rem; flex-shrink: 0; opacity: 0; transition: opacity 150ms ease; }
.sticky-footer__link:hover, .sticky-footer__link:focus-visible { color: hsl(var(--primary)); }
.sticky-footer__link:hover svg, .sticky-footer__link:focus-visible svg { opacity: 1; }
.sticky-footer a:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 4px; }
.sticky-footer__mail { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid hsl(var(--border)); border-radius: .375rem; background: hsl(var(--card)); color: hsl(var(--primary)); }
.sticky-footer__mail svg { width: 1.25rem; height: 1.25rem; }
.sticky-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; padding-top: 1rem; border-top: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: .8125rem; }
.sticky-footer__bottom p { margin: 0; }
.sticky-footer__bottom .sticky-footer__link { font-size: inherit; }
/* Keep the footer in document flow so wrapped links and enlarged text remain reachable. */
@media (max-width: 1023px) {
  .sticky-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .sticky-footer__intro { grid-column: 1 / -1; }
  .sticky-footer__description { max-width: 48ch; }
  .sticky-footer__content { padding: 3rem 1.5rem 1.5rem; gap: 2rem; }
}
@media (max-width: 639px) {
  .sticky-footer__top { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .sticky-footer__content { padding-inline: 1rem; }
  .sticky-footer__group h2 { margin-bottom: .5rem; }
  .sticky-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-footer__link, .sticky-footer__link svg { transition: none; }
}

/* The course player scrolls beside a persistent sidebar, rather than across the viewport. */
.course-player-body .sticky-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.course-player-body .sticky-footer__intro { grid-column: 1 / -1; }
@media (max-width: 639px) {
  .course-player-body .sticky-footer__top { grid-template-columns: minmax(0, 1fr); }
}
