.av-lesson-questions {
  --av-question-gap: 14px;
  padding-block: clamp(48px, 6vw, 76px);
  background: #050711;
  color: #f7f7fc;
}

.av-lesson-questions-wrap {
  width: min(980px, calc(100% - 32px));
  margin-inline: auto;
}

.av-lesson-instructor { text-align: center; }

.av-lesson-instructor .av-lesson-instructor-badge {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 8px;
  background: #00fab0;
  color: #051a16;
  font-size: 14px;
  font-weight: 760;
}

.av-lesson-instructor h2 {
  margin-top: 21px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 780;
  letter-spacing: -.035em;
  line-height: 1.36;
}

.av-lesson-instructor em { color: #00fab0; font-style: normal; }

.av-lesson-questions-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 12px;
}

.av-lesson-questions-title {
  color: #bec4dc;
  font-size: 14px;
  font-weight: 680;
}

.av-lesson-questions .av-lesson-motion-toggle {
  padding: 5px 9px;
  border: 1px solid #363d59;
  border-radius: 6px;
  background: #15182a;
  color: #ebedff;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.av-lesson-motion-toggle:hover { background: #252a42; }
.av-lesson-questions .av-lesson-motion-toggle:focus-visible { outline-color: #a5b4ff; }

.av-lesson-question-rows { display: grid; gap: var(--av-question-gap); }

.av-lesson-questions .av-lesson-question-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--av-question-gap);
  padding: 0;
  list-style: none;
}

.av-lesson-questions .av-lesson-question-grid[aria-hidden="true"] { display: none; }

.av-lesson-question-grid li {
  display: grid;
  grid-column: span 7;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #262b42;
  border-radius: 24px;
  background: #15182a;
}

.av-lesson-question-row:nth-child(odd) li:first-child,
.av-lesson-question-row:nth-child(even) li:last-child { grid-column: span 5; }

.av-lesson-question-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #254962;
  color: #e3f6ff;
  font-size: 15px;
  font-weight: 800;
}

.av-lesson-question-grid li:nth-child(3n + 1) .av-lesson-question-icon { background: #245e58; color: #e1fff1; }
.av-lesson-question-grid li:nth-child(3n + 2) .av-lesson-question-icon { background: #4a3e70; color: #f1e7ff; }

.av-lesson-question-grid h4 {
  margin: 0;
  color: #f6f6ff;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.38;
}

.av-lesson-question-grid strong { color: #a5b4ff; font-weight: 760; }

.av-lesson-question-grid li p {
  margin-top: 6px;
  color: #c3c7d9;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .av-lesson-questions { --av-question-gap: 9px; }
  .av-lesson-instructor h2 br { display: none; }
  .av-lesson-questions .av-lesson-question-grid { display: flex; flex-direction: column; }
  .av-lesson-question-grid li { gap: 10px; padding: 15px; border-radius: 16px; }
  .av-lesson-question-icon { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: no-preference) {
  .av-lesson-questions[data-motion] .av-lesson-question-row {
    --av-question-fade: clamp(18px, 6vw, 65px);
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(
      90deg, transparent, #000 var(--av-question-fade),
      #000 calc(100% - var(--av-question-fade)), transparent
    );
  }

  .av-lesson-questions[data-motion] .av-lesson-question-track {
    display: flex;
    width: max-content;
    animation: av-lesson-scroll 36s linear -5s infinite;
  }

  .av-lesson-questions[data-motion] .av-lesson-question-row:nth-child(2) .av-lesson-question-track {
    animation-direction: reverse;
    animation-delay: -13s;
  }

  .av-lesson-questions[data-motion] .av-lesson-question-row:nth-child(3) .av-lesson-question-track {
    animation-delay: -21s;
  }

  .av-lesson-questions[data-motion="paused"] .av-lesson-question-track { animation-play-state: paused; }

  .av-lesson-questions[data-motion] .av-lesson-question-grid {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    padding-inline-end: var(--av-question-gap);
  }

  .av-lesson-questions[data-motion] .av-lesson-question-grid li { width: clamp(285px, 78vw, 615px); }

  .av-lesson-questions[data-motion] .av-lesson-question-row:nth-child(odd) li:first-child,
  .av-lesson-questions[data-motion] .av-lesson-question-row:nth-child(even) li:last-child {
    width: clamp(250px, 72vw, 500px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .av-lesson-questions .av-lesson-motion-toggle { display: none; }
}

@keyframes av-lesson-scroll {
  to { transform: translateX(-50%); }
}
