/* E-learning (/elearning/) — complementa site.css; carregado só nas páginas do módulo */

/* Barra do e-learning, logo abaixo do menu do site */
.el-bar { background: #0f172a; color: #e2e8f0; font-size: 14px; }
.el-bar-in { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.el-brand { font-family: 'Manrope', sans-serif; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.el-brand span { color: #93c5fd; }
.el-bar-user { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.el-bar-user form { margin: 0; }
.el-bar-link { display: inline-flex; align-items: center; gap: 8px; color: #e2e8f0; background: none; border: 0; padding: 6px 10px; border-radius: 7px; cursor: pointer; font: inherit; }
.el-bar-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.el-bar-cta { background: var(--blue); color: #fff; padding: 7px 14px; border-radius: 7px; font-weight: 600; }
.el-bar-cta:hover { background: var(--blue-dark); }
.el-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; }
@media (max-width: 480px) { .el-bar-name { display: none; } .el-bar-cta { padding: 7px 10px; } }

/* Início */
.el-hero h1 { max-width: 820px; }
.el-sec { padding: 40px 0 72px; background: var(--bg); }
.el-soon { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px; box-shadow: var(--card-shadow); }
.el-soon h2 { font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.el-soon p { color: var(--muted); }
.el-soon-ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; }

/* Telas de conta (cadastro, entrar, senha) */
.el-auth { padding: 48px 0 80px; background: var(--bg); }
.el-auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: center; }
@media (max-width: 900px) { .el-auth-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.el-auth-info h1 { font-family: 'Manrope', sans-serif; font-size: 36px; font-weight: 800; line-height: 1.2; margin: 10px 0 18px; }
@media (max-width: 640px) { .el-auth-info h1 { font-size: 28px; } }
.el-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--blue); background: var(--blue-light); padding: 5px 12px; border-radius: 99px; }
.el-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.el-checks li { position: relative; padding-left: 30px; color: #374151; }
.el-checks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.el-card { padding: 30px; }
.el-card-narrow { max-width: 460px; margin: 0 auto; }
.el-center { text-align: center; }
.el-center .btn-submit { margin-top: 4px; }
@media (max-width: 480px) { .el-card { padding: 22px 18px; } .el-auth .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.el-hint { font-size: 12.5px; color: var(--muted); margin: -8px 0 16px; }
.el-hint a { color: var(--blue); text-decoration: underline; }
.el-muted { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.el-alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.el-alt a, .el-link { color: var(--blue); font-weight: 600; }
.el-alt a:hover, .el-link:hover { text-decoration: underline; }
.el-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; font-size: 13.5px; }
.el-remember { margin-bottom: 0; }
.el-auth .consent a { color: var(--blue); text-decoration: underline; }
.el-inline-form { margin: -6px 0 18px; }
.el-inline-form .btn-outline, .el-sent .btn-outline, .el-resend .btn-outline { width: 100%; justify-content: center; }
.el-stack { display: grid; gap: 18px; text-align: left; }
.el-resend { border-top: 1px solid var(--border); padding-top: 18px; }
.el-sent { text-align: center; }
.el-sent-ico { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; }

/* Mensagens */
.el-flash { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; border: 1px solid; }
.el-flash-ok { background: var(--green-bg); color: #166534; border-color: #bbf7d0; }
.el-flash-erro { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.el-flash-dev { background: #fffbeb; color: #92400e; border-color: #fde68a; word-break: break-all; }
.el-flash-dev a { color: #92400e; text-decoration: underline; }

/* Minha conta */
.el-narrow { max-width: 980px; }
.el-h1 { font-family: 'Manrope', sans-serif; font-size: 30px; font-weight: 800; margin-bottom: 20px; }
.el-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 820px) { .el-grid2 { grid-template-columns: minmax(0, 1fr); } }
.el-grid2 .form-card h2, .el-card-plain h2 { font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 800; margin-bottom: 18px; }
.el-grid2 input[disabled] { background: var(--bg); color: var(--muted); }
.el-meta { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 6px; font-size: 13.5px; }
.el-meta div { display: flex; justify-content: space-between; gap: 12px; }
.el-meta dt { color: var(--muted); }
.el-meta dd { margin: 0; font-weight: 500; }
.el-card-plain { margin-top: 24px; background: #fff; border: 1px dashed #cbd5e1; border-radius: 16px; padding: 24px 30px; }

/* ═══ Etapa 3: catálogo, curso e aula ═══ */
.el-h2 { font-family: 'Manrope', sans-serif; font-size: 21px; font-weight: 800; margin: 8px 0 16px; }
.el-h2 a:hover { color: var(--blue); }
.el-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-bottom: 36px; }
.el-ccard { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--card-shadow); transition: border-color .2s, transform .15s; }
.el-ccard:hover { border-color: var(--blue); transform: translateY(-2px); }
.el-ccard strong { font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 800; }
.el-ccard-cat { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--blue); }
.el-ccard-desc, .el-ccard-meta { color: var(--muted); font-size: 14px; }
.el-ccard-go { margin-top: auto; padding-top: 6px; color: var(--blue); font-weight: 600; font-size: 14px; }
.el-ccard-cont { border-color: #bfdbfe; background: linear-gradient(180deg, #f8fbff, #fff); }
.el-prog { display: block; height: 7px; border-radius: 99px; background: var(--border); overflow: hidden; }
.el-prog i { display: block; height: 100%; background: var(--green); border-radius: 99px; }

/* Curso */
.el-bc-light, .el-bc-light a { color: #cbd5e1; }
.el-bc-light a:hover { color: #fff; }
.el-curso-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .el-curso-grid { grid-template-columns: minmax(0, 1fr); } }
.el-aulas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.el-aula-item a { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; transition: border-color .2s; }
.el-aula-item a:hover { border-color: var(--blue); }
.el-aula-n { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); font-weight: 800; }
.el-aula-item.done .el-aula-n { background: var(--green-bg); color: var(--green); }
.el-aula-txt { display: grid; gap: 3px; min-width: 0; }
.el-aula-txt strong { font-size: 15.5px; }
.el-aula-txt span { color: #374151; font-size: 14px; }
.el-aula-txt small { color: var(--muted); font-size: 12.5px; }
.el-box { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--card-shadow); }
.el-box + .el-box { margin-top: 18px; }
.el-box h3 { font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.el-box .el-prog { margin-bottom: 10px; }
.el-desc p { color: #374151; font-size: 14.5px; margin-bottom: 10px; }

/* Aula */
.el-wide { max-width: 1280px; }
.el-sec-aula { padding-top: 24px; }
.el-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 16px; }
.el-title-row .el-h1 { margin-bottom: 0; font-size: clamp(22px, 3vw, 28px); }
.el-resume { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--blue-light); border: 1px solid #bfdbfe; color: var(--blue-dark); padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.el-resume[hidden] { display: none; }
.el-resume button { margin-left: auto; }
.el-btn-sm { padding: 8px 14px; }
.el-lesson { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .el-lesson { grid-template-columns: minmax(0, 1fr); } }
.el-video-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--card-shadow); scroll-margin-top: 12px; }
.el-ratio { position: relative; aspect-ratio: 16 / 9; background: #0b1220; }
.el-ratio > video, .el-ratio > iframe, .el-ratio > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.el-lock { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; color: #e2e8f0; padding: 20px; background: linear-gradient(135deg, #0f172a, #1e3a8a); }
.el-lock strong { font-family: 'Manrope', sans-serif; font-size: 22px; color: #fff; }
.el-lock div { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.el-tl-box { padding: 12px 16px 16px; }
.el-now { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; min-height: 22px; }
.el-clock { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.el-timeline { display: flex; gap: 3px; height: 14px; }
.el-seg { position: relative; flex: 0 0 auto; height: 100%; background: var(--border); border-radius: 3px; overflow: hidden; border: 0; padding: 0; cursor: pointer; }
.el-seg:hover { background: #cbd5e1; }
.el-seg i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--blue); pointer-events: none; }
.el-seg.cur { outline: 2px solid var(--blue-light); }
.el-aula-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.el-concluir.on { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.el-conteudo { line-height: 1.7; }
.el-conteudo .el-lead { font-size: 16px; color: #1f2937; font-weight: 500; }
.el-conteudo h2 { font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 800; margin: 22px 0 10px; }
.el-conteudo h3 { font-size: 15.5px; font-weight: 700; margin: 18px 0 6px; }
.el-conteudo h3 a { display: inline-block; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--blue); background: var(--blue-light); padding: 1px 8px; border-radius: 6px; margin-right: 6px; }
.el-conteudo h3 a:hover { background: var(--blue); color: #fff; }
.el-conteudo p { color: #374151; margin-bottom: 8px; }
.el-conteudo ul { padding-left: 20px; }
.el-conteudo li { margin-bottom: 4px; }
.el-proximo { margin-top: 18px; padding: 12px 14px; background: var(--bg); border-radius: 10px; font-weight: 600; }
.el-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--card-shadow); overflow: hidden; }
@media (max-width: 1000px) { .el-side { position: static; max-height: none; } }
.el-side-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--border); }
.el-side-head h2 { font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.el-side-head h2 small { font-weight: 500; color: var(--muted); font-size: 13px; }
.el-search { position: relative; }
.el-search input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 14px; background: var(--bg); }
.el-search input:focus { outline: 2px solid var(--blue-light); border-color: var(--blue); background: #fff; }
.el-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.el-hint2 { font-size: 12px; color: var(--muted); margin-top: 6px; }
.el-chapters { list-style: none; margin: 0; padding: 6px; overflow: auto; flex: 0 1 auto; }
.el-ch { display: flex; align-items: stretch; border-radius: 8px; }
.el-ch + .el-ch { margin-top: 2px; }
.el-ch-go { flex: 1; display: flex; gap: 12px; align-items: flex-start; text-align: left; background: none; border: 0; padding: 10px; border-radius: 8px; cursor: pointer; font: inherit; color: inherit; min-width: 0; }
.el-ch-go:hover { background: var(--bg); }
.el-ch-t { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-light); padding: 2px 8px; border-radius: 6px; margin-top: 1px; }
.el-ch-txt { min-width: 0; flex: 1; }
.el-ch-name { display: block; font-weight: 500; font-size: 14px; }
.el-ch-desc { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.el-ch mark { background: #fef08a; color: inherit; border-radius: 2px; }
.el-ch.cur .el-ch-go { background: var(--blue-light); }
.el-ch.cur .el-ch-t { background: var(--blue); color: #fff; }
.el-ch.cur .el-ch-name { font-weight: 700; color: var(--blue-dark); }
.el-ch-bar { display: block; height: 3px; background: var(--border); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.el-ch-bar i { display: block; height: 100%; width: 0; background: var(--blue); }
.el-ch-copy { flex: 0 0 auto; width: 36px; background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; opacity: .55; }
.el-ch:hover .el-ch-copy, .el-ch-copy:focus-visible { opacity: 1; }
.el-ch-copy:hover { background: var(--bg); color: var(--blue); }
.el-empty { padding: 18px 12px; color: var(--muted); font-size: 14px; text-align: center; }
.el-side-foot { border-top: 1px solid var(--border); padding: 14px 16px; font-size: 13.5px; overflow: auto; flex: 0 0 auto; max-height: 40vh; }
.el-mini { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.el-mini a { display: flex; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 6px; color: #374151; }
.el-mini a:hover { background: var(--bg); }
.el-mini span { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 11.5px; font-weight: 700; color: var(--muted); }
.el-mini li.done span { background: var(--green-bg); color: var(--green); }
.el-mini li.cur a { background: var(--blue-light); color: var(--blue-dark); font-weight: 600; }
.el-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 50; }
.el-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═══ Fórum da aula ═══ */
.el-forum { margin-top: 20px; }
.el-forum-head h2 { font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.el-forum-head h2 small { font-weight: 600; font-size: 13px; color: var(--blue); background: var(--blue-light); padding: 1px 8px; border-radius: 99px; vertical-align: middle; }
.el-forum-head h2 small:empty { display: none; }
.el-forum-form { margin: 14px 0 6px; }
.el-forum textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 14.5px; resize: vertical; background: var(--bg); }
.el-forum textarea:focus { outline: 2px solid var(--blue-light); border-color: var(--blue); background: #fff; }
.el-forum-form-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.el-forum-form-row .el-muted { margin: 0; }
.el-muted.erro, .el-fr-err { color: #b91c1c; font-size: 13px; }
.el-forum-vazio, .el-forum-login { color: var(--muted); font-size: 14px; padding: 14px 0 4px; }
.el-ft { border-top: 1px solid var(--border); padding: 16px 0 6px; }
.el-ft-resp { margin-left: 44px; }
.el-fp { display: flex; gap: 12px; padding: 8px 0; }
.el-ft-resp .el-fp { border-left: 2px solid var(--border); padding-left: 12px; margin-bottom: 6px; }
.el-ft-resp .el-fp.bot { border-left-color: #93c5fd; background: linear-gradient(90deg, #f5f9ff, transparent); border-radius: 0 10px 10px 0; }
.el-ft-resp .el-fp.sol { border-left-color: var(--green); background: linear-gradient(90deg, #f0fdf4, transparent); }
.el-fp-av { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e5e7eb; color: #374151; font-weight: 700; font-size: 13px; }
.el-fp.bot .el-fp-av { background: var(--blue); color: #fff; font-size: 11px; letter-spacing: .5px; }
.el-fp-body { min-width: 0; flex: 1; }
.el-fp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--muted); }
.el-fp-meta strong { color: var(--text); font-size: 14px; }
.el-tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--blue-light); color: var(--blue-dark); }
.el-tag.ok { background: var(--green-bg); color: #166534; }
.el-fp-txt { font-size: 14.5px; line-height: 1.65; color: #1f2937; margin: 4px 0 6px; overflow-wrap: anywhere; }
.el-fp-txt a[data-t] { color: var(--blue); font-weight: 600; font-variant-numeric: tabular-nums; }
.el-fp-acts { display: flex; flex-wrap: wrap; gap: 4px; }
.el-fa { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid transparent; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.el-fa:hover:not([disabled]) { background: var(--bg); color: var(--text); }
.el-fa.on { color: var(--blue); background: var(--blue-light); }
.el-fa.sol.on { color: #166534; background: var(--green-bg); }
.el-fa.del:hover { color: #b91c1c; }
.el-fa[disabled] { opacity: .55; cursor: default; }
.el-fa .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.el-fp-wait { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 6px 0 8px 14px; }
.el-dots { display: inline-flex; gap: 3px; }
.el-dots i { width: 6px; height: 6px; border-radius: 50%; background: #93c5fd; animation: el-dot 1.2s infinite ease-in-out; }
.el-dots i:nth-child(2) { animation-delay: .15s; } .el-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes el-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .el-dots i { animation: none; } }
.el-fr-form { margin: 6px 0 10px 14px; }
.el-fr-form > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
@media (max-width: 560px) { .el-ft-resp { margin-left: 12px; } }
.el-tag.rev { background: #fef3c7; color: #92400e; }
.el-fp-fontes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.el-fp-fontes a { color: var(--blue); background: var(--blue-light); padding: 2px 9px; border-radius: 99px; font-weight: 600; font-variant-numeric: tabular-nums; }
.el-fp-fontes a:hover { background: var(--blue); color: #fff; }
