/* Layout e componentes didáticos de Curso e Aula — 2.5.0 (tipografia acessível em rem, feedback positivo no quiz e progresso local) */
.layout {
  max-width: 1450px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 255px;
  gap: 24px;
  padding: 18px 28px 50px;
  align-items: start;
}

.course-layout {
  max-width: 1120px;
  margin: 18px auto 50px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}

.side {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.side-top {
  padding: 15px;
  background: linear-gradient(135deg, #eaf6ff, #f9fcff);
  border-bottom: 1px solid var(--line);
}

.course-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 8px;
  margin-bottom: 13px;
}

.side h2 {
  font-size: 1.1875rem;
  line-height: 1.28;
  color: var(--navy);
  margin: 6px 0 10px;
}

.side h2 a {
  color: inherit;
  text-decoration: none;
}

.side h2 a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.meta {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.side details summary {
  padding: 15px 16px;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 750;
  cursor: pointer;
}

.lesson-list {
  list-style: none;
  padding: 0 8px 12px;
  margin: 0;
}

.lesson-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 9px;
  font-size: 0.875rem;
  line-height: 1.45;
  border-radius: 7px;
}

.lesson-list li.active {
  background: #eaf4fb;
  border-left: 3px solid var(--blue);
  font-weight: 700;
  color: var(--blue);
}

.lesson-list li.is-completed .num {
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 1px;
}

.lesson-list .num {
  color: var(--muted);
  min-width: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  flex-shrink: 0;
}

.lesson-list a {
  text-decoration: none;
  color: inherit;
}

.lesson-list a:hover {
  text-decoration: underline;
}

.side-bottom {
  border-top: 1px solid var(--line);
  padding: 13px 16px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.side-progress-mini {
  margin-bottom: 10px;
}

.side-progress-mini-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #165c33;
  margin-bottom: 5px;
}

.side-progress-mini-bar {
  height: 6px;
  border-radius: 999px;
  background: #e2ecf3;
  overflow: hidden;
}

.side-progress-mini-bar > span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.25s ease;
}

main {
  min-width: 0;
}

.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: clamp(22px, 3vw, 42px);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.lesson-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
}

.lesson-meta strong {
  color: var(--blue);
  letter-spacing: 0.04em;
}

.lesson-meta-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: #165c33;
  font-size: 0.75rem;
  font-weight: 700;
}

.progress {
  height: 6px;
  background: #e5ebf1;
  border-radius: 20px;
  margin: 10px 0 24px;
  overflow: hidden;
}

.progress span {
  display: block;
  background: var(--pink);
  height: 100%;
  transition: width 0.25s ease;
}

.article h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  margin: 0 0 14px;
  max-width: 740px;
}

.article h2 {
  font-size: clamp(1.3125rem, 2.2vw, 1.75rem);
  margin: 38px 0 14px;
}

.article h3 {
  font-size: 1.1875rem;
  margin: 0 0 8px;
}

.lead {
  font-size: 1.1875rem;
  color: #3a4f66;
  line-height: 1.65;
}

.section-no {
  color: var(--blue);
  font-size: 0.78em;
  margin-right: 6px;
}

/* Componentes didáticos */
.scene-grid,
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
  align-items: stretch;
}

.scene {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.scene:first-child {
  border-top: 3px solid #b84c47;
}

.scene:last-child {
  border-top: 3px solid #29825c;
}

.scene-photo {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 700 / 795;
  object-fit: cover;
  object-position: center top;
  background: #f1f4f7;
}

.scene-copy {
  padding: 15px 16px;
  font-size: 1rem;
  line-height: 1.6;
  flex: 1;
}

.scene-copy strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.0625rem;
}

.scene-copy .price {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 9px;
}

.questionline {
  text-align: center;
  color: var(--navy);
  font-weight: 700;
  padding: 6px 0 16px;
}

.callout {
  padding: 18px 20px;
  border-radius: 10px;
  margin: 24px 0;
  background: #eef6fc;
  border-left: 4px solid var(--blue);
  font-size: 1rem;
  line-height: 1.65;
}

.callout.orange {
  background: #fff6e7;
  border-color: #ed910d;
}

.callout.pink {
  background: #fff0f5;
  border-color: var(--pink);
}

.callout strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
}

.callout p {
  margin: 0;
}

.objectives ul,
.summary ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.objectives li,
.summary li {
  margin: 6px 0;
}

.compare > div {
  border-radius: 10px;
  background: #edf6fc;
  padding: 18px;
}

.compare > div + div {
  background: #fff4e5;
}

.compare ul {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.compare li {
  margin: 6px 0;
}

.concepts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}

.concept {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0;
  overflow: hidden;
  display: flex;
  gap: 0;
  align-items: stretch;
  min-height: 150px;
}

.concept:last-child {
  grid-column: 1 / -1;
}

.concept-photo {
  display: block;
  width: 38%;
  max-width: 120px;
  height: auto;
  object-fit: cover;
  object-position: center top;
  align-self: stretch;
}

.concept:last-child .concept-photo {
  width: 32%;
  max-width: 144px;
}

.concept-copy {
  padding: 15px;
  flex: 1;
  min-width: 0;
}

.concept h3 {
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

.concept p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.flow {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.flow li {
  position: relative;
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  align-items: flex-start;
}

.flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 34px;
  bottom: 0;
  border-left: 2px dashed #b9d4e8;
}

.flow .symbol {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  position: relative;
}

.flow p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.dialogue {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
  margin: 22px 0;
}

.dialogue-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 12px 0 18px;
}

.bubble-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0;
}

.bubble-row.reverse {
  flex-direction: row-reverse;
}

.avatar {
  overflow: hidden;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  background: #e7eef5;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bubble {
  padding: 13px 16px;
  background: #f1f4f7;
  border-radius: 3px 12px 12px 12px;
  font-size: 1rem;
  line-height: 1.6;
  min-width: 0;
}

.reverse .bubble {
  background: #e8f4fc;
  border-radius: 12px 3px 12px 12px;
}

.bubble b {
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 3px;
  color: var(--blue);
}

.dialogue-note {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 16px 0 0;
}

/* Quiz */
.quiz {
  border: 1px solid #cdddeb;
  border-radius: 13px;
  padding: 24px;
  margin-top: 32px;
  background: #fbfdff;
}

.quiz h2 {
  margin: 0 0 8px;
}

.quiz fieldset {
  border: 0;
  padding: 0;
  margin: 26px 0;
}

.quiz fieldset + fieldset {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.quiz legend {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.55;
  padding: 0;
  margin-bottom: 14px;
  width: 100%;
  color: var(--navy);
}

.quiz legend span {
  display: block;
  color: var(--blue);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 9px 0;
  font-size: 1rem;
  line-height: 1.55;
  cursor: pointer;
}

.option:has(input:checked) {
  border-color: #3987bd;
  background: #eaf4fc;
}

.option input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.feedback {
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.6;
  background: #eaf5ee;
  color: #14532d;
}

.feedback.wrong {
  background: #fff0eb;
  color: #842f15;
}

.feedback strong {
  display: block;
  margin-bottom: 3px;
}

.quiz-result {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.quiz-result.is-perfect {
  background: var(--green-soft);
  border-color: var(--green-border);
}

.quiz-result.is-good {
  background: #eef6fc;
  border-color: #a9cee8;
}

.quiz-result.is-review {
  background: #fff7eb;
  border-color: #f0c982;
}

.quiz-result-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.quiz-result-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--blue);
  color: #fff;
}

.quiz-result.is-perfect .quiz-result-badge {
  background: var(--green);
}

.quiz-result.is-review .quiz-result-badge {
  background: var(--orange-btn);
}

.quiz-result h3 {
  font-size: 1.3125rem;
  margin: 0;
  color: var(--navy);
}

.quiz-result.is-perfect h3 {
  color: #14532d;
}

.quiz-result p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

.quiz-result-progress-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem !important;
  font-weight: 600;
  color: #165c33;
  margin: 0 0 16px !important;
}

.quiz-noscript-key {
  margin-top: 16px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.quiz-noscript-key summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

/* Barra de conclusão manual/automática da aula */
.lesson-complete-bar {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid #d5e4f0;
  background: #f5fafe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lesson-complete-bar.is-completed {
  background: var(--green-soft);
  border-color: var(--green-border);
}

.lesson-complete-copy {
  flex: 1 1 240px;
  min-width: 0;
}

.lesson-complete-copy strong {
  display: block;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 3px;
}

.lesson-complete-bar.is-completed .lesson-complete-copy strong {
  color: #14532d;
}

.lesson-complete-copy span {
  display: block;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}

.lesson-complete-btn {
  flex-shrink: 0;
}

.lesson-complete-btn.is-done {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.lesson-complete-btn.is-done:hover {
  background: #176236;
  color: #fff;
}

/* Coluna direita */
.right {
  display: grid;
  gap: 17px;
  position: static;
}

.layout > .right {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.layout > .right .index {
  position: sticky;
  top: 16px;
}

.notice-heading {
  display: flex;
  align-items: center;
  gap: 7px;
}

.notice-heading svg {
  color: #d97706;
  flex-shrink: 0;
}

.notice a {
  color: var(--blue);
  text-decoration: none;
}

.notice a:hover {
  text-decoration: underline;
}

.right .panel {
  padding: 17px;
}

.right h2 {
  font-size: 1.0625rem;
  margin: 0 0 9px;
}

.right p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.notice {
  border-top: 3px solid #ed910d;
}

.bookpanel {
  border-top: 3px solid var(--blue);
}

.bookpanel-img {
  display: block;
  width: 136px;
  height: auto;
  aspect-ratio: 201 / 300;
  margin: 12px auto 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(18, 60, 97, 0.12);
}

.bookpanel h3 {
  font-size: 1rem;
  margin: 0 0 5px;
}

.right .btn {
  width: 100%;
  font-size: 0.875rem;
  min-height: 44px;
}

.tiny {
  font-size: 0.8125rem !important;
  line-height: 1.5;
  color: var(--muted);
}

.right .index a {
  display: block;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.45;
  padding: 6px 0;
  color: var(--blue);
}

.right .index a:hover {
  text-decoration: underline;
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.lesson-nav .btn {
  max-width: 65%;
  text-align: center;
}

.end-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 14px;
}

/* Página do curso — grade 3 colunas */
.course-shell {
  max-width: 1450px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 295px;
  gap: 24px;
  padding: 18px 28px 50px;
  align-items: start;
}

.course-left {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.course-cover-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--pale);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(18, 60, 97, 0.08);
}

.course-cover-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 68px;
  height: 68px;
  background: radial-gradient(circle at 100% 100%, var(--pink) 0%, var(--pink) 42%, transparent 43%);
  pointer-events: none;
}

.course-cover-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 15%;
}

.course-side-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

.course-side-head h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--navy);
}

.course-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
}

.course-center > *,
.course-left > *,
.course-right > * {
  min-width: 0;
}

.course-header-card {
  background: transparent;
}

.pill-pink {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.course-header-card h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin: 0 0 12px;
}

.course-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  font-size: 0.9375rem;
  color: var(--navy);
  font-weight: 600;
  margin-top: 14px;
}

.course-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.course-meta-row svg {
  color: var(--blue);
}

.course-top-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Painel de progresso do aluno na página do curso */
.course-progress-box {
  padding: 18px 20px;
  background: var(--green-soft);
  border-color: var(--green-border);
}

.course-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.course-progress-top h2 {
  margin: 0;
  font-size: 1.0625rem;
  color: #14532d;
}

.course-progress-count {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #165c33;
}

.course-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 122, 68, 0.16);
  overflow: hidden;
}

.course-progress-fill {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.course-progress-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 0.875rem;
  color: #2b5940;
}

.course-progress-reset {
  border: 0;
  background: transparent;
  padding: 4px 2px;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
}

.course-progress-reset:hover {
  color: var(--navy);
}

.course-intro-box {
  padding: 20px 22px;
  font-size: 1rem;
  line-height: 1.7;
}

.course-editorial-byline {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.course-editorial-byline a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.course-editorial-byline a:hover {
  text-decoration: underline;
}

/* Vídeo de apresentação sob demanda (youtube-nocookie facade) */
.course-video-box {
  padding: 18px 20px;
}

.course-video-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.course-video-tag {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
}

.mcg-yt-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line);
}

.mcg-yt-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--navy);
  cursor: pointer;
  color: #fff;
  text-align: center;
}

.mcg-yt-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.28s ease;
}

.mcg-yt-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 42, 72, 0.22) 0%, rgba(12, 42, 72, 0.42) 55%, rgba(12, 42, 72, 0.78) 100%);
  transition: background-color 0.2s ease;
}

.mcg-yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--orange-btn);
  color: #fff;
  display: inline-grid;
  place-items: center;
  padding-left: 4px;
  box-shadow: 0 10px 28px rgba(10, 28, 48, 0.42);
  border: 3px solid rgba(255, 255, 255, 0.92);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mcg-yt-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.mcg-yt-trigger:hover .mcg-yt-poster {
  transform: scale(1.03);
}

.mcg-yt-trigger:hover .mcg-yt-play {
  background: #ad4700;
  transform: translate(-50%, -56%) scale(1.08);
  box-shadow: 0 12px 32px rgba(200, 83, 0, 0.45);
}

.mcg-yt-trigger:focus-visible {
  outline: 3px solid #e99b36;
  outline-offset: -3px;
}

.mcg-yt-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.mcg-yt-noscript {
  margin: 12px 0 0;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .mcg-yt-poster,
  .mcg-yt-play,
  .course-progress-fill,
  .side-progress-mini-bar > span,
  .progress span {
    transition: none;
  }
}

.course-section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.course-section-heading svg {
  color: var(--blue);
}

.syllabus-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.syllabus-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--navy);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.syllabus-card:hover {
  border-color: var(--blue);
  background: #f5fafe;
}

.syllabus-card.is-completed {
  border-color: var(--green-border);
  background: #f8fdf9;
}

.syllabus-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--blue);
  font-weight: 800;
  font-size: 0.875rem;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.syllabus-card.is-completed .syllabus-circle {
  background: var(--green);
  color: #fff;
  font-size: 1rem;
}

.syllabus-copy {
  flex: 1;
  min-width: 0;
}

.syllabus-copy small {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}

.syllabus-copy strong {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--navy);
}

.syllabus-done-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #165c33;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.syllabus-arrow {
  color: var(--muted);
  font-size: 1.375rem;
  line-height: 1;
}

.course-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
}

.learn-card {
  background: #f2f8fd;
  border-color: #d6e7f5;
  padding: 18px !important;
}

.learn-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px !important;
  color: var(--navy);
}

.learn-head svg {
  color: var(--blue);
}

.learn-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.learn-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}

.check-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #23834a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.important-card {
  background: #fffaf0;
  border-color: #f3d796;
  padding: 16px !important;
}

.important-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.important-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-weight: 800;
  font-size: 0.8125rem;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.important-head h2 {
  margin: 0 0 6px !important;
}

.important-head p {
  margin: 0 !important;
}

@media (max-width: 1190px) {
  .course-shell {
    grid-template-columns: 235px minmax(0, 1fr) 245px;
    gap: 16px;
    padding-inline: 18px;
  }
}

@media (max-width: 1000px) {
  .course-shell {
    grid-template-columns: 1fr;
  }

  .course-shell > .course-left,
  .course-shell > .course-center,
  .course-shell > .course-right {
    grid-column: 1 / -1;
    position: static;
  }

  .course-shell > .course-right {
    grid-template-columns: 1fr 1fr;
  }

  .course-shell .course-side-box {
    display: none;
  }

  .course-cover-frame {
    max-width: 640px;
  }
}

@media (max-width: 700px) {
  .course-shell {
    padding: 12px 12px 28px;
  }

  .course-shell > .course-right {
    grid-template-columns: 1fr;
  }

  .course-shell .course-right .notice {
    display: block;
  }

  .course-top-cta .btn,
  .course-cta-row .btn,
  .lesson-complete-btn {
    width: 100%;
  }

  .lesson-nav .btn {
    flex: 1 1 100%;
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 1190px) {
  .layout {
    grid-template-columns: 225px minmax(0, 1fr) 220px;
    gap: 16px;
    padding-inline: 18px;
  }

  .article {
    padding: 24px;
  }

  .right .panel {
    padding: 14px;
  }
}

@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 225px minmax(0, 1fr);
  }

  .right,
  .layout > .right {
    grid-column: 2;
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-self: auto;
  }

  .side {
    max-height: none;
    overflow-y: visible;
  }

  .right .index {
    display: none;
  }

  .right .notice {
    grid-column: 1 / -1;
  }

  .course-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 12px 25px;
  }

  .course-layout {
    padding: 0 12px;
  }

  .side,
  .right,
  main {
    width: 100%;
    position: static;
  }

  .side-top,
  .side-bottom {
    display: none;
  }

  .side details summary {
    padding: 13px 15px;
  }

  .article {
    padding: 20px 16px;
    border-radius: 11px;
    font-size: 1rem;
    line-height: 1.72;
  }

  .lead {
    font-size: 1.0625rem;
  }

  .right,
  .layout > .right {
    display: grid;
    grid-template-columns: 1fr;
  }

  .right .notice {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .concepts {
    grid-template-columns: 1fr;
  }

  .concept {
    min-height: 120px;
  }

  .concept-photo,
  .concept:last-child .concept-photo {
    width: 33%;
    max-width: 112px;
  }

  .concept-copy {
    padding: 13px;
  }

  .scene-grid,
  .compare {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .scene-photo {
    aspect-ratio: 700 / 795;
    object-position: center top;
  }

  .scene-copy {
    padding: 14px;
    font-size: 0.9375rem;
  }

  .scene-copy strong {
    font-size: 1rem;
  }

  .compare > div {
    padding: 15px;
  }

  .compare ul {
    font-size: 0.9375rem;
  }

  .dialogue {
    padding: 14px;
  }

  .dialogue-photo {
    height: auto;
  }

  .avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .bubble {
    font-size: 0.9375rem;
  }

  .quiz {
    padding: 16px;
  }

  .option {
    font-size: 0.9375rem;
    padding: 11px 12px;
  }

  .lesson-nav .btn {
    max-width: none;
  }

  .lesson-meta {
    font-size: 0.8125rem;
  }

  .callout {
    padding: 15px 16px;
    font-size: 0.9375rem;
  }

  .syllabus-done-pill {
    display: none;
  }
}

/* Próximas aulas previstas (Em breve — não clicáveis) */
.course-meta-soon {
  color: #8a4500;
}

.course-meta-soon svg {
  color: #c85300;
}

.syllabus-upcoming-wrap {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.syllabus-upcoming-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 12px;
}

.syllabus-upcoming-head h3 {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--navy);
}

.syllabus-upcoming-head span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.syllabus-card.is-upcoming {
  background: #f8fafc;
  border-style: dashed;
  border-color: #cbd8e6;
  cursor: default;
}

.syllabus-card.is-upcoming:hover {
  border-color: #cbd8e6;
  background: #f8fafc;
}

.syllabus-card.is-upcoming .syllabus-circle {
  background: #e9eff5;
  color: var(--muted);
}

.syllabus-card.is-upcoming .syllabus-copy strong {
  color: #3a4f66;
  font-weight: 650;
}

.syllabus-soon-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8a4500;
  background: #fff4e5;
  border: 1px solid #f2d199;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}
