[id] {
  scroll-margin-top: 80px;
}

html {
  overflow-y: scroll;
}

.card {
  opacity: 1;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.text-bg-purple {
  color: #fff !important;
  background-color: #6f42c1 !important;
}

.text-bg-orange {
  color: #111827 !important;
  background-color: #fd7e14 !important;
}

.text-bg-teal {
  color: #fff !important;
  background-color: #0f766e !important;
}

.cm-navbar-actions {
  flex: 0 0 auto;
  gap: 0.75rem;
  margin-left: auto;
}

.workbook-marketing-heading {
  min-height: 3rem;
}

.workbook-marketing-image-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(65vh, 650px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.workbook-marketing-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.workbook-marketing-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.workbook-marketing-modal {
  height: calc(100dvh - 1rem);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.workbook-marketing-modal .modal-content {
  height: 100%;
}

.workbook-marketing-modal .modal-body,
.workbook-marketing-modal figure {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.workbook-marketing-modal .modal-body {
  overflow: hidden;
}

.workbook-marketing-modal figure,
.workbook-marketing-modal-image-wrap {
  flex: 1 1 auto;
}

.workbook-marketing-modal-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.cm-explore-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  animation: cm-explore-hint-float 1.6s ease-in-out infinite;
}

@keyframes cm-explore-hint-float {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.75;
  }
  50% {
    transform: translateX(6px);
    opacity: 1;
  }
}
