/* E-Learning App hero — from Corewave E-Learning App Page (01 Hero) */

@keyframes cw-elearning-hero-ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 85, 39, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(255, 85, 39, 0); }
}

.cw-elearning-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 500px at 78% 45%, rgba(123, 47, 247, 0.22), transparent 70%),
    radial-gradient(500px 400px at 60% 90%, rgba(255, 85, 39, 0.14), transparent 70%),
    #141210;
  color: #eae7e1;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  --cw-el-edge: clamp(12px, 1.5vw, 24px);
  --cw-el-pad-x: clamp(12px, 1.25vw, 18px);
}

.cw-elearning-hero__inner {
  position: relative;
  box-sizing: border-box;
  width: min(1580px, calc(100vw - 2 * var(--cw-el-edge)));
  max-width: calc(100vw - 2 * var(--cw-el-edge));
  margin-inline: auto;
  padding: clamp(48px, 6vw, 80px) var(--cw-el-pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(28px, 3vw, 40px);
  align-items: center;
}

.cw-elearning-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cw-elearning-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #ff7a50;
}

.cw-elearning-hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5527;
  animation: cw-elearning-hero-ping 1.8s infinite;
}

.cw-elearning-hero__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #f3efe7;
}

.cw-elearning-hero__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #b7a6f5;
  letter-spacing: -0.01em;
}

.cw-elearning-hero__lead {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(234, 231, 225, 0.78);
  text-wrap: pretty;
}

.cw-elearning-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cw-elearning-hero__btn {
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cw-elearning-hero__btn--primary {
  padding: 0 26px;
  background: #e0431c;
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(224, 67, 28, 0.8);
}

.cw-elearning-hero__btn--primary:hover {
  background: #c93a16;
  color: #fff;
}

.cw-elearning-hero__btn--secondary {
  border: 1px solid rgba(234, 231, 225, 0.25);
  color: #eae7e1;
  font-weight: 500;
}

.cw-elearning-hero__btn--secondary:hover {
  border-color: #b7a6f5;
  color: #fff;
}

.cw-elearning-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 6px;
  border-top: 1px solid rgba(234, 231, 225, 0.1);
  padding-top: 22px;
}

.cw-elearning-hero__stat {
  padding: 0 26px 0 0;
  margin-right: 26px;
  border-right: 1px solid rgba(234, 231, 225, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cw-elearning-hero__stat--last {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.cw-elearning-hero__stat-value {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.cw-elearning-hero__stat-label {
  font-size: 13px;
  color: rgba(234, 231, 225, 0.6);
}

.cw-elearning-hero__preview {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cw-elearning-hero__preview-head {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(234, 231, 225, 0.55);
}

.cw-elearning-hero__preview-sync {
  color: #d4f53c;
}

.cw-elearning-hero__carousel {
  position: relative;
  height: 370px;
  overflow: hidden;
  perspective: 1400px;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}

.cw-elearning-hero__carousel.is-dragging {
  cursor: grabbing;
}

.cw-elearning-hero__card-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  will-change: transform, opacity;
}

.cw-elearning-hero__card-body {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  color: #fff;
}

.cw-elearning-hero__card-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 70% at 50% 110%, rgba(255, 255, 255, 0.28), transparent 60%);
  pointer-events: none;
}

.cw-elearning-hero__card-head {
  position: absolute;
  left: 18px;
  top: 16px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
}

.cw-elearning-hero__card-k2 {
  opacity: 0.8;
}

.cw-elearning-hero__card-badge {
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 10px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cw-elearning-hero__card-value-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 34%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
}

.cw-elearning-hero__card-value {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

.cw-elearning-hero__card-unit {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  margin-top: 6px;
}

.cw-elearning-hero__card-bars {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 44px;
  height: 40px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  justify-content: center;
}

.cw-elearning-hero__card-bar {
  flex: 1;
  max-width: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.cw-elearning-hero__card-bar--peak {
  background: rgba(255, 255, 255, 0.95);
}

.cw-elearning-hero__card-foot {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  font-size: 11.5px;
  opacity: 0.9;
}

@media (max-width: 640px) {
  .cw-elearning-hero__stat {
    margin-bottom: 16px;
  }
}
