/* ═══════════════════════════════════════════════════════════════
   Layout-15  "Plataforma de Curso"
   Prefix: lp15-

   Conceito: Interface estilo plataforma EAD (Coursera/edX).
   Sidebar esquerda fixa com lista colapsável de módulos e barra
   de progresso de inscrições. Hero split visual/info. Atividades
   como lições numeradas com coluna roxa destacada à esquerda.

   Pilares visuais:
   ├─ Sidebar: deep blue-purple #1c1d3e, 260px, lista colapsável
   ├─ Hero: grid split (banner|gradiente esquerda + info direita)
   ├─ Fundo body: #f7f8fc off-white
   ├─ Lições: cards brancos com número de aula em coluna roxa
   ├─ Módulos: separador badge MÓDULO 01/02…
   └─ Progresso: barra no sidebar por inscrições em atividades
   ═══════════════════════════════════════════════════════════════ */

/* ── Variáveis ────────────────────────────────────────────────── */
.lp15-body {
    --purple:     #7c3aed;
    --purple-d:   #5b21b6;
    --purple-l:   #f5f3ff;
    --purple-b:   #ddd6fe;
    --purple-t:   rgba(124,58,237,.12);
    --sidebar-bg: #1c1d3e;
    --sidebar-w:  264px;
    --bg:         #f7f8fc;
    --card:       #ffffff;
    --border:     #e2e8f0;
    --border-2:   #cbd5e1;
    --text:       #1e293b;
    --text-2:     #475569;
    --text-3:     #94a3b8;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,.09);
    --shadow-pur: 0 4px 20px rgba(124,58,237,.13);
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
.lp15-body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 15px; line-height: 1.65;
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ═══ SIDEBAR ════════════════════════════════════════════════════ */
.lp15-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    display: flex; flex-direction: column;
    z-index: 100;
    overflow-y: auto; overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.12) transparent;
}
.lp15-sidebar::-webkit-scrollbar { width: 4px; }
.lp15-sidebar::-webkit-scrollbar-track { background: transparent; }
.lp15-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 2px; }

/* ── Brand ────────────────────────────────────────────────────── */
.lp15-sb-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 15px 16px 13px;
    background: rgba(0,0,0,.22);
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.lp15-sb-back {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.55); text-decoration: none;
    font-size: .7rem; flex-shrink: 0;
    transition: background .2s, color .2s;
}
.lp15-sb-back:hover { background: rgba(255,255,255,.16); color: #fff; }
.lp15-sb-logo-text {
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .18em;
    color: rgba(255,255,255,.35);
}

/* ── Event title na sidebar ───────────────────────────────────── */
.lp15-sb-event-name {
    padding: 13px 16px 10px;
    font-size: .88rem; font-weight: 700; line-height: 1.38;
    color: rgba(255,255,255,.85);
    display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    flex-shrink: 0;
}

/* ── Barra de progresso ───────────────────────────────────────── */
.lp15-sb-progress-wrap {
    padding: 2px 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.lp15-sb-progress-meta {
    display: flex; justify-content: space-between;
    font-size: .67rem; color: rgba(255,255,255,.4);
    margin-bottom: 6px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
}
.lp15-sb-progress-track {
    height: 4px; background: rgba(255,255,255,.1);
    border-radius: 2px; overflow: hidden;
}
.lp15-sb-progress-fill {
    height: 100%; border-radius: 2px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    transition: width .5s ease;
}

/* ── Links rápidos ────────────────────────────────────────────── */
.lp15-sb-qnav {
    padding: 8px 8px 2px;
    flex-shrink: 0;
}
.lp15-sb-qlink {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 6px;
    font-size: .82rem; font-weight: 600;
    color: rgba(255,255,255,.52); text-decoration: none;
    transition: color .15s, background .15s;
}
.lp15-sb-qlink i { font-size: .78rem; width: 14px; text-align: center; }
.lp15-sb-qlink:hover  { color: rgba(255,255,255,.88); background: rgba(255,255,255,.06); }
.lp15-sb-qlink.active { color: #c4b5fd; background: rgba(124,58,237,.2); }

.lp15-sb-divider { height: 1px; background: rgba(255,255,255,.07); margin: 6px 0; }
.lp15-sb-sec-label {
    padding: 7px 16px 3px;
    font-size: .64rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .18em;
    color: rgba(255,255,255,.25);
    flex-shrink: 0;
}

/* ── Lista de módulos ─────────────────────────────────────────── */
.lp15-sb-modules {
    flex: 1; padding: 0 8px 8px;
}
.lp15-sb-mod { }
.lp15-sb-mod-hd {
    width: 100%; display: flex; align-items: center; gap: 7px;
    padding: 7px 10px; border-radius: 6px;
    background: none; border: none; cursor: pointer; text-align: left;
    transition: background .15s;
}
.lp15-sb-mod-hd:hover { background: rgba(255,255,255,.06); }
.lp15-sb-mod-num {
    font-size: .64rem; font-weight: 700;
    background: rgba(124,58,237,.35);
    color: #c4b5fd; padding: 2px 6px; border-radius: 3px;
    letter-spacing: .06em; flex-shrink: 0;
    white-space: nowrap;
}
.lp15-sb-mod-name {
    font-size: .8rem; font-weight: 600;
    color: rgba(255,255,255,.62); flex: 1; text-align: left;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp15-sb-mod-cnt {
    font-size: .65rem; color: rgba(255,255,255,.26); flex-shrink: 0;
}
.lp15-sb-mod-icon {
    font-size: .65rem; color: rgba(255,255,255,.28);
    transition: transform .2s; flex-shrink: 0;
}
.lp15-sb-mod.open .lp15-sb-mod-icon { transform: rotate(180deg); }

.lp15-sb-mod-lessons {
    display: none; padding: 2px 0 6px 10px;
}
.lp15-sb-mod.open .lp15-sb-mod-lessons { display: block; }

.lp15-sb-lesson {
    display: flex; align-items: flex-start; gap: 7px;
    padding: 5px 8px; border-radius: 5px; border-left: 2px solid transparent;
    text-decoration: none; margin-bottom: 1px;
    transition: background .12s;
}
.lp15-sb-lesson:hover { background: rgba(255,255,255,.05); }
.lp15-sb-lesson.active {
    background: rgba(124,58,237,.16);
    border-left-color: var(--purple);
}
.lp15-sb-lesson-n {
    font-size: .68rem; font-weight: 700;
    color: rgba(255,255,255,.26); min-width: 20px;
    font-family: 'Courier New', monospace;
    padding-top: 1px; flex-shrink: 0;
}
.lp15-sb-lesson.active .lp15-sb-lesson-n { color: #c4b5fd; }
.lp15-sb-lesson-t {
    font-size: .77rem; line-height: 1.32; color: rgba(255,255,255,.48); flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lp15-sb-lesson.active .lp15-sb-lesson-t { color: rgba(255,255,255,.84); }
.lp15-sb-check { font-size: .63rem; color: #4ade80; flex-shrink: 0; padding-top: 2px; }

/* ── Área do utilizador (fundo sidebar) ───────────────────────── */
.lp15-sb-user-wrap {
    flex-shrink: 0; margin-top: auto;
    padding: 10px 10px 12px;
    border-top: 1px solid rgba(255,255,255,.07);
    position: relative;
}
.lp15-sb-user-btn {
    width: 100%; display: flex; align-items: center; gap: 9px;
    padding: 8px 10px; border-radius: 8px;
    background: none; border: none; cursor: pointer;
    text-align: left; position: relative;
    transition: background .15s;
}
.lp15-sb-user-btn:hover { background: rgba(255,255,255,.07); }
.lp15-sb-av {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--purple); border: 1.5px solid rgba(124,58,237,.5);
    display: flex; align-items: center; justify-content: center;
    font-size: .6rem; font-weight: 700; color: #fff;
    overflow: hidden; flex-shrink: 0;
}
.lp15-sb-user-info { flex: 1; min-width: 0; }
.lp15-sb-user-name {
    font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.78);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: block;
}
.lp15-sb-user-role { font-size: .67rem; color: rgba(255,255,255,.3); }
.lp15-sb-user-icon { font-size: .67rem; color: rgba(255,255,255,.28); flex-shrink: 0; }

.lp15-sb-user-dropdown {
    position: absolute; bottom: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border: 1px solid var(--border);
    box-shadow: var(--shadow-md); border-radius: 8px;
    z-index: 200; display: none; overflow: hidden;
}
.lp15-sb-user-dropdown.show { display: block; }
.lp15-sb-user-dropdown a,
.lp15-sb-user-dropdown button {
    display: block; width: 100%; padding: 9px 14px;
    font-size: .78rem; color: var(--text-2); text-decoration: none;
    background: none; border: none; border-bottom: 1px solid var(--border);
    text-align: left; cursor: pointer; transition: background .1s;
}
.lp15-sb-user-dropdown a:last-child,
.lp15-sb-user-dropdown button:last-child { border-bottom: none; }
.lp15-sb-user-dropdown a:hover,
.lp15-sb-user-dropdown button:hover { background: var(--purple-l); }

.lp15-sb-login-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 12px; border-radius: 8px;
    background: rgba(124,58,237,.18); border: 1px solid rgba(124,58,237,.32);
    color: #c4b5fd; cursor: pointer;
    font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    transition: background .2s;
}
.lp15-sb-login-btn:hover { background: rgba(124,58,237,.28); }

/* ═══ CONTEÚDO PRINCIPAL ══════════════════════════════════════════ */
.lp15-main { margin-left: var(--sidebar-w); }

/* ═══ HERO SPLIT ══════════════════════════════════════════════════ */
.lp15-hero {
    display: grid;
    grid-template-columns: 1fr 370px;
    min-height: 380px;
}

/* Metade visual (esquerda) */
.lp15-hero-visual {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #2e1065 0%, #4c1d95 45%, #6d28d9 100%);
}
.lp15-hero-visual > img {
    display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center; filter: brightness(.72) saturate(.9);
}
.lp15-hero-visual-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(22,0,70,.55) 0%, rgba(109,40,217,.3) 100%);
    display: flex; flex-direction: column;
    justify-content: flex-end; padding: 28px 32px;
}
.lp15-hero-sigla {
    font-size: .6rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .28em;
    color: rgba(255,255,255,.5); margin: 0 0 7px;
}
.lp15-hero-visual-title {
    font-size: clamp(1.3rem, 2.6vw, 2.1rem);
    font-weight: 900; line-height: 1.12; letter-spacing: -.02em;
    color: #fff; margin: 0;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

/* Metade info (direita) */
.lp15-hero-info {
    background: var(--card);
    padding: 32px 28px;
    display: flex; flex-direction: column; justify-content: center;
    border-left: 1px solid var(--border);
}

.lp15-hero-stats {
    display: flex; margin-bottom: 20px;
    border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.lp15-hero-stat {
    flex: 1; text-align: center; padding: 10px 6px;
    border-right: 1px solid var(--border);
}
.lp15-hero-stat:last-child { border-right: none; }
.lp15-hero-stat-val {
    display: block; font-size: 1.2rem; font-weight: 800;
    color: var(--purple); line-height: 1;
}
.lp15-hero-stat-lbl {
    display: block; font-size: .54rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--text-3); margin-top: 4px;
}
.lp15-hero-info-title {
    font-size: clamp(.9rem, 1.5vw, 1.2rem);
    font-weight: 800; line-height: 1.28; color: var(--text);
    margin: 0 0 10px;
}
.lp15-hero-date {
    display: flex; align-items: center; gap: 6px;
    font-size: .78rem; color: var(--text-2); margin-bottom: 10px;
}
.lp15-hero-date i { color: var(--purple); font-size: .65rem; }

.lp15-hero-status {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .6rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    padding: 3px 10px; border-radius: 4px; margin-bottom: 18px;
    width: fit-content;
}
.lp15-hero-status.aberto    { background: #dcfce7; color: #15803d; }
.lp15-hero-status.futuro    { background: var(--purple-l); color: var(--purple-d); }
.lp15-hero-status.andamento { background: #fef9c3; color: #a16207; }
.lp15-hero-status.encerrado { background: #f1f5f9; color: var(--text-3); }

.lp15-hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.lp15-hero-btn-primary {
    flex: 1; min-width: 120px; padding: 10px 16px;
    background: var(--purple); color: #fff; border: none; border-radius: 6px;
    cursor: pointer; font-size: .76rem; font-weight: 700;
    text-align: center; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: background .2s, transform .15s;
}
.lp15-hero-btn-primary:hover { background: var(--purple-d); transform: translateY(-1px); color: #fff; }
.lp15-hero-btn-secondary {
    padding: 10px 16px;
    background: transparent; color: var(--purple);
    border: 1px solid var(--purple-b); border-radius: 6px;
    cursor: pointer; font-size: .76rem; font-weight: 700;
    text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: background .2s;
}
.lp15-hero-btn-secondary:hover { background: var(--purple-l); }

/* ═══ SEÇÕES ══════════════════════════════════════════════════════ */
.lp15-content-wrap { max-width: 820px; margin: 0 auto; }

/* Blocos de Informação + Comissão Científica — alinhar/justificar com as seções do layout.
   .container tem box-sizing:border-box, então a max-width precisa incluir o padding p/ o
   CONTEÚDO ficar com 820px (igual ao .lp15-content-wrap) e o padding 32px ficar "por fora",
   como o padding da .lp15-section. 820 + 2*32 = 884. */
#blocos-informacao, #comissao-cientifica { padding: 0; }
#blocos-informacao .container, #comissao-cientifica .container { max-width: 884px; width: 100%; margin: 0 auto; padding: 48px 32px; }

.lp15-section {
    padding: 48px 32px 56px;
    scroll-margin-top: 24px;
}
.lp15-section + .lp15-section { border-top: 1px solid var(--border); }

.lp15-section-head {
    display: flex; align-items: center; gap: 12px; margin-bottom: 26px;
}
.lp15-section-num {
    font-size: .58rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--purple); padding: 4px 9px;
    background: var(--purple-l); border: 1px solid var(--purple-b);
    border-radius: 3px; white-space: nowrap;
}
.lp15-section-title { font-size: 1.1rem; font-weight: 800; color: var(--text); }

/* ── Sobre ────────────────────────────────────────────────────── */
.lp15-sobre-layout {
    display: grid; grid-template-columns: 1fr 220px; gap: 28px; align-items: start;
}
.lp15-sobre-text { font-size: .9rem; line-height: 1.78; color: var(--text-2); margin: 0; }
.lp15-info-card {
    background: var(--purple-l); border: 1px solid var(--purple-b);
    border-radius: 10px; padding: 18px 20px;
}
.lp15-info-card-title {
    font-size: .6rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--purple); margin: 0 0 12px;
}
.lp15-info-row {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: .76rem; color: var(--text-2); margin-bottom: 8px;
}
.lp15-info-row:last-child { margin-bottom: 0; }
.lp15-info-row i { font-size: .64rem; color: var(--purple); padding-top: 3px; flex-shrink: 0; }

/* ── Programação: Módulos ─────────────────────────────────────── */
.lp15-module { margin-bottom: 42px; }
.lp15-module:last-child { margin-bottom: 0; }

.lp15-module-hd {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px; padding-bottom: 11px;
    border-bottom: 2px solid var(--purple-l);
    flex-wrap: wrap;
}
.lp15-module-badge {
    font-size: .58rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--purple); padding: 4px 10px;
    background: var(--purple-l); border: 1px solid var(--purple-b);
    border-radius: 4px; white-space: nowrap;
}
.lp15-module-title { font-size: .9rem; font-weight: 700; color: var(--text); }
.lp15-module-count { font-size: .7rem; color: var(--text-3); margin-left: auto; }

/* ── Lição (card horizontal numerado) ────────────────────────── */
.lp15-lesson {
    display: flex; background: var(--card);
    border-radius: 10px; border: 1px solid var(--border);
    overflow: hidden; margin-bottom: 10px;
    scroll-margin-top: 24px;
    transition: box-shadow .2s, transform .15s, border-color .2s;
    box-shadow: var(--shadow-sm);
}
.lp15-lesson:last-child { margin-bottom: 0; }
.lp15-lesson:hover {
    box-shadow: var(--shadow-pur);
    transform: translateY(-1px);
    border-color: var(--purple-b);
}
.lp15-lesson.is-inscrito { border-left: 3px solid #22c55e; }

/* Coluna numérica */
.lp15-lesson-num {
    width: 66px; flex-shrink: 0;
    background: var(--purple);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 14px 6px;
    transition: background .2s;
}
.lp15-lesson:hover .lp15-lesson-num { background: var(--purple-d); }
.lp15-lesson.is-inscrito .lp15-lesson-num { background: #16a34a; }
.lp15-lesson-num-lbl {
    font-size: .4rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .22em;
    color: rgba(255,255,255,.6); margin-bottom: 4px;
    white-space: nowrap;
}
.lp15-lesson-num-n {
    font-size: 1.5rem; font-weight: 900; line-height: 1; color: #fff;
}

/* Corpo */
.lp15-lesson-body { flex: 1; padding: 14px 18px; min-width: 0; }

.lp15-lesson-tags {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; margin-bottom: 7px;
}
.lp15-lesson-tipo {
    font-size: .52rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--purple); background: var(--purple-l);
    border: 1px solid var(--purple-b);
    padding: 2px 7px; border-radius: 3px; white-space: nowrap;
}
.lp15-lesson-time {
    display: flex; align-items: center; gap: 4px;
    font-size: .64rem; color: var(--text-3);
}
.lp15-lesson-time i { font-size: .56rem; color: var(--purple); }

.lp15-lesson-title {
    font-size: .95rem; font-weight: 700; line-height: 1.3;
    color: var(--text); margin: 0 0 5px;
}
.lp15-lesson-local {
    display: flex; align-items: center; gap: 5px;
    font-size: .65rem; color: var(--text-3); margin-bottom: 5px;
}
.lp15-lesson-local i { font-size: .56rem; color: var(--purple); }
.lp15-lesson-byline { font-size: .67rem; font-style: italic; color: var(--text-3); margin: 0 0 6px; }
.lp15-lesson-desc {
    font-size: .77rem; color: var(--text-3); line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lp15-lesson-foot {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding-top: 8px; border-top: 1px solid var(--border); margin-top: 2px;
}
.lp15-vagas { font-size: .63rem; color: var(--text-3); }
.lp15-vagas.sem { color: #dc2626; font-weight: 700; }
.lp15-lesson-inscr {
    font-size: .63rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--purple); background: none;
    border: 1px solid var(--purple-b);
    padding: 4px 12px; border-radius: 4px; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.lp15-lesson-inscr:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.lp15-lesson-inscrito {
    font-size: .63rem; font-weight: 700; color: #16a34a;
    display: flex; align-items: center; gap: 4px;
}

/* Prog vazia */
.lp15-prog-empty {
    text-align: center; padding: 40px; font-size: .88rem;
    color: var(--text-3); font-style: italic;
    border: 1px dashed var(--border); border-radius: 10px;
    background: var(--card);
}

/* ═══ INSCRIÇÃO ════════════════════════════════════════════════════ */
.lp15-inscr-wrap { max-width: 500px; margin: 0 auto; }
.lp15-inscr-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md);
}
.lp15-inscr-card-head {
    background: var(--purple); padding: 18px 24px;
    display: flex; align-items: center; gap: 12px;
}
.lp15-inscr-icon {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: .88rem; color: #fff; flex-shrink: 0;
}
.lp15-inscr-head-label {
    font-size: .58rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .16em;
    color: rgba(255,255,255,.65); margin: 0 0 2px; display: block;
}
.lp15-inscr-head-title {
    font-size: .88rem; font-weight: 700; color: #fff; margin: 0;
    line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lp15-inscr-body { padding: 26px 24px; text-align: center; }
.lp15-inscr-text { font-size: .84rem; color: var(--text-2); margin: 0; line-height: 1.65; }

/* Countdown */
.lp15-countdown {
    display: none; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin: 18px 0 0;
}
.lp15-countdown.visible { display: flex; }
.lp15-cnt-unit { text-align: center; }
.lp15-cnt-num {
    display: block; font-size: 1.85rem; font-weight: 800; line-height: 1;
    color: var(--purple);
}
.lp15-cnt-lbl {
    font-size: .54rem; color: var(--text-3);
    text-transform: uppercase; letter-spacing: .12em;
}
.lp15-cnt-sep { font-size: 1.3rem; color: var(--border-2); align-self: flex-start; padding-top: 4px; }

.lp15-inscr-alert { margin: 8px 0 0; font-size: .78rem; }
.lp15-inscr-cta {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 18px; padding: 12px 32px;
    background: var(--purple); color: #fff; border: none;
    border-radius: 8px; cursor: pointer;
    font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .14em;
    box-shadow: 0 4px 16px rgba(124,58,237,.3);
    transition: background .2s, box-shadow .2s, transform .15s;
}
.lp15-inscr-cta:hover {
    background: var(--purple-d);
    box-shadow: 0 4px 24px rgba(124,58,237,.45);
    transform: translateY(-1px);
}
.lp15-inscr-cta:disabled { background: var(--text-3); box-shadow: none; transform: none; cursor: not-allowed; }
.lp15-inscr-counter { margin-top: 12px; font-size: .68rem; color: var(--text-3); }

/* ═══ BARRA DE TOPO (mobile) ══════════════════════════════════════ */
.lp15-topbar {
    display: none;
    position: sticky; top: 0; z-index: 100;
    background: var(--card); border-bottom: 1px solid var(--border);
    height: 52px; padding: 0 16px;
    align-items: center; gap: 10px;
    box-shadow: var(--shadow-sm);
    position: sticky;
}
.lp15-topbar-back {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 6px;
    background: var(--purple-l); color: var(--purple);
    text-decoration: none; font-size: .7rem; flex-shrink: 0;
    transition: background .2s;
}
.lp15-topbar-back:hover { background: var(--purple-b); }
.lp15-topbar-title {
    font-size: .76rem; font-weight: 700; color: var(--text);
    flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp15-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.lp15-topbar-toggle {
    display: none;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    border: 1px solid var(--purple-b);
    border-radius: 8px;
    background: var(--purple-l);
    color: var(--purple);
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.lp15-topbar-toggle:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
    color: var(--purple-d);
}
.lp15-topbar-toggle span {
    display: block;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}
.lp15-topbar-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lp15-topbar-toggle.is-open span:nth-child(2) { opacity: 0; }
.lp15-topbar-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.lp15-topbar-nav {
    display: flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
    min-width: 0;
}
.lp15-topbar-link {
    padding: 5px 9px; border-radius: 5px;
    font-size: .64rem; font-weight: 600;
    color: var(--text-2); text-decoration: none;
    transition: color .15s, background .15s; white-space: nowrap;
}
.lp15-topbar-link:hover { color: var(--purple); background: var(--purple-l); }
.lp15-topbar-link.active {
    color: var(--purple);
    background: var(--purple-l);
}

.lp15-topbar-user { position: relative; flex-shrink: 0; }
.lp15-topbar-user-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 6px;
    background: none; border: 1px solid var(--border);
    cursor: pointer; font-size: .66rem; font-weight: 600;
    color: var(--text-2); transition: border-color .15s, color .15s;
}
.lp15-topbar-user-btn:hover { border-color: var(--purple-b); color: var(--purple); }
.lp15-topbar-av {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--purple);
    display: flex; align-items: center; justify-content: center;
    font-size: .54rem; font-weight: 700; color: #fff; overflow: hidden;
}
.lp15-topbar-dropdown {
    position: absolute; top: calc(100% + 6px); right: 0;
    min-width: 180px; background: var(--card);
    border: 1px solid var(--border); box-shadow: var(--shadow-md);
    border-radius: 8px; z-index: 300; display: none; overflow: hidden;
}
.lp15-topbar-dropdown.show { display: block; }
.lp15-topbar-dropdown a,
.lp15-topbar-dropdown button {
    display: block; width: 100%; padding: 9px 14px;
    font-size: .78rem; color: var(--text-2); text-decoration: none;
    background: none; border: none; border-bottom: 1px solid var(--border);
    text-align: left; cursor: pointer; transition: background .1s;
}
.lp15-topbar-dropdown a:last-child,
.lp15-topbar-dropdown button:last-child { border-bottom: none; }
.lp15-topbar-dropdown a:hover,
.lp15-topbar-dropdown button:hover { background: var(--purple-l); }

.lp15-topbar-login-btn {
    padding: 5px 12px; border-radius: 5px;
    background: var(--purple); color: #fff; border: none; cursor: pointer;
    font-size: .64rem; font-weight: 700; transition: background .2s;
    white-space: nowrap;
}
.lp15-topbar-login-btn:hover { background: var(--purple-d); }

/* ═══ FOOTER ══════════════════════════════════════════════════════ */
.lp15-footer {
    padding: 14px 32px;
    border-top: 1px solid var(--border);
    font-size: .64rem; color: var(--text-3);
    text-align: center;
}
.lp15-footer a { color: var(--text-3); text-decoration: none; transition: color .15s; }
.lp15-footer a:hover { color: var(--purple); }
.lp15-footer-sep { margin: 0 8px; }

/* ═══ SCROLL MARGIN ════════════════════════════════════════════════ */
.lp15-section { scroll-margin-top: 24px; }
[id^="lp15-ativ-"] { scroll-margin-top: 28px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1120px) {
    .lp15-hero { grid-template-columns: 1fr 330px; }
    .lp15-hero-info { padding: 28px 22px; }
}
@media (max-width: 960px) {
    .lp15-hero { grid-template-columns: 1fr 290px; }
}

/* Mobile: oculta sidebar, mostra topbar */
@media (max-width: 860px) {
    .lp15-sidebar { display: none; }
    .lp15-main { margin-left: 0; }
    .lp15-topbar { display: flex; }

    .lp15-hero { grid-template-columns: 1fr; }
    .lp15-hero-visual { min-height: 200px; }
    .lp15-hero-info { border-left: none; border-top: 1px solid var(--border); }

    .lp15-sobre-layout { grid-template-columns: 1fr; }
    .lp15-info-card { order: -1; }

    .lp15-section { padding: 36px 20px 44px; }
    .lp15-inscr-wrap { max-width: 100%; }

    .lp15-section { scroll-margin-top: 60px; }
    [id^="lp15-ativ-"] { scroll-margin-top: 60px; }

    .lp15-topbar {
        height: auto;
        min-height: 52px;
        padding-top: 9px;
        padding-bottom: 9px;
        position: sticky;
    }
    .lp15-topbar-toggle { display: inline-flex; }
    .lp15-topbar-actions { margin-left: auto; }
    .lp15-topbar-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 14px;
        background: var(--sidebar-bg);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 16px;
        box-shadow: 0 16px 40px rgba(15,23,42,.22);
        z-index: 140;
    }
    .lp15-topbar-nav.is-open { display: flex; }
    .lp15-topbar-link {
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: .82rem;
        color: rgba(255,255,255,.76);
        background: rgba(255,255,255,.03);
        border: 1px solid rgba(255,255,255,.04);
    }
    .lp15-topbar-link:hover,
    .lp15-topbar-link.active {
        color: #fff;
        background: rgba(124,58,237,.26);
        border-color: rgba(196,181,253,.28);
    }
    .lp15-topbar-user-btn span {
        display: none;
    }
    .lp15-topbar-user-btn {
        min-width: 36px;
        padding-left: 6px;
        padding-right: 6px;
        justify-content: center;
    }
    .lp15-topbar-login-btn {
        min-width: 36px;
        padding-left: 10px;
        padding-right: 10px;
    }
}
@media (max-width: 560px) {
    .lp15-lesson { flex-direction: column; }
    .lp15-lesson-num {
        width: 100%; flex-direction: row; gap: 10px;
        padding: 8px 16px; justify-content: flex-start;
    }
    .lp15-lesson-num-n { font-size: 1.1rem; }
    .lp15-lesson-num-lbl { margin-bottom: 0; }

    .lp15-hero-stats { border: none; gap: 1px; flex-wrap: nowrap; }
    .lp15-hero-stat { border: 1px solid var(--border); border-radius: 6px; flex: 1; }
    .lp15-hero-stat-val { font-size: .95rem; }

    .lp15-section { padding: 28px 16px 36px; }
    .lp15-topbar { padding-left: 12px; padding-right: 12px; gap: 8px; }
    .lp15-topbar-nav { left: 12px; right: 12px; }
    .lp15-topbar-title { font-size: .72rem; }
}

/* ── Blocos de Informação como "lições" (layout-15) ───────────────
   Ajuste pedido: o título do bloco recebe a formatação do QUANTIFICADOR da
   atividade (.lp15-lesson-num — coluna roxa) e o texto fica como a
   IDENTIFICAÇÃO (.lp15-lesson-title). Cada bloco vira um card-lição. */
#blocos-informacao .evento-bloco {
    display: flex;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
}
/* título = quantificador (coluna roxa, texto branco centralizado) */
#blocos-informacao .evento-bloco-titulo {
    flex-shrink: 0; align-self: stretch;
    min-width: 120px; max-width: 188px;
    display: flex; align-items: center; justify-content: center;
    margin: 0; padding: 14px 16px;
    background: var(--purple); color: #fff;
    text-align: center; line-height: 1.2;
    font-size: 1rem !important; font-weight: 900; letter-spacing: -.01em;
}
/* texto = identificação (mesma cor/tamanho da .lp15-lesson-title, porém peso
   normal — o negrito fica só nos trechos marcados como <b>/<strong>) */
#blocos-informacao .evento-bloco-texto {
    flex: 1; min-width: 0;
    padding: 14px 18px;
    color: var(--text);
    font-size: .95rem !important; font-weight: 400; line-height: 1.55;
}
#blocos-informacao .evento-bloco-texto p:last-child,
#blocos-informacao .evento-bloco-texto ul:last-child,
#blocos-informacao .evento-bloco-texto ol:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
    #blocos-informacao .evento-bloco { flex-direction: column; }
    #blocos-informacao .evento-bloco-titulo {
        max-width: none; width: 100%;
        justify-content: flex-start; text-align: left;
        padding: 9px 16px;
    }
}

/* ── Submissões conforme as demais seções (tema roxo do layout-15) ──
   Header roxo, cards brancos, botão roxo; alinhado ao .lp15-content-wrap.
   #submissoes vence o <style> autocontido do partial. */
#submissoes.evsub-section {
    padding: 48px 32px 56px;
    border-top: 1px solid var(--border);
}
#submissoes .evsub-wrap { max-width: 820px; padding: 0; }
#submissoes .evsub-title { font-size: 1.1rem; font-weight: 800; color: var(--text); }
#submissoes .evsub-title i { color: var(--purple); }
#submissoes .evsub-card {
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--card); box-shadow: var(--shadow-sm);
}
#submissoes .evsub-head { background: var(--purple); color: #fff; border-bottom: none; }
#submissoes .evsub-card-title { color: #fff; }
#submissoes .evsub-btn { background: var(--purple); border-radius: 8px; }
#submissoes .evsub-btn:hover { background: var(--purple-d); }
#submissoes .evsub-btn--off,
#submissoes .evsub-btn:disabled { background: #e2e8f0; color: #94a3b8; }
#submissoes .evsub-tpls a { color: var(--purple); }
@media (max-width: 768px) {
    #submissoes.evsub-section { padding: 36px 20px 44px; }
}
