/* Shared layout + motion for E-Learning App page sections */

@keyframes cw-elearning-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes cw-elearning-marq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes cw-elearning-fill {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes cw-elearning-pop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

.cw-elearning-section {
  width: 100%;
  margin-inline: 0;
  font-family: 'Inter', system-ui, sans-serif;
  --cw-el-edge: clamp(12px, 1.5vw, 24px);
  --cw-el-pad-x: clamp(12px, 1.25vw, 18px);
}

.cw-elearning-section__inner {
  box-sizing: border-box;
  width: min(1480px, calc(100vw - 2 * var(--cw-el-edge)));
  max-width: calc(100vw - 2 * var(--cw-el-edge));
  margin-inline: auto;
  padding: clamp(72px, 9vw, 120px) var(--cw-el-pad-x);
}

/* Reference FAQ: 1000px content column + 40px horizontal inset (1080px shell). */
.cw-elearning-faq {
  --cw-el-faq-pad-x: clamp(20px, 2.8vw, 40px);
}

.cw-elearning-section__inner--faq {
  width: 100%;
  max-width: calc(1000px + 2 * var(--cw-el-faq-pad-x));
  padding-inline: var(--cw-el-faq-pad-x);
}

.cw-elearning-h2 {
  margin: 0;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.cw-elearning-h2 em,
.cw-elearning-h2__em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cw-elearning-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cw-elearning-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cw-elearning-fade-in {
  animation: cw-elearning-fade 0.4s ease-out both;
}

.cw-elearning-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
