/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BASE ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #eef4fb;
    color: #1e293b;
    line-height: 1.7;
}

p {
    text-align: justify;
    
}

/* ===== FUNDO ESPECÍFICO DA AULA ===== */
body.aula-page {
    background-color: #ffffff;
}

/* Remove efeito card apenas das aulas */


/* Linha divisória elegante entre seções */
.aula-page .aula section:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 30px;
}

/* ===== LAYOUT ===== */
.container {
    width: 90%;
    max-width: 950px;
    margin: auto;
}

.header {
    background: #2563eb;
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.2rem;
}

.subtitle {
    opacity: 0.9;
    margin-top: 8px;
}

/* ===== CONTEÚDO ===== */
.content section {
    margin-bottom: 45px;
}

h2 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    border-left: 6px solid #3b82f6;
    padding-left: 12px;
}

p {
    margin-bottom: 15px;
}

/* ===== IMAGENS ===== */
figure {
    margin: 20px 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #475569;
}

/* ===== TABELAS ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: #dbeafe;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    font-weight: 600;
}

tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

tbody tr:hover {
    background-color: #f1f5f9;
}

/* ===== CÓDIGO ===== */
pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9rem;
}

/* ===== ALERTAS (VERSÃO COM MAIS CONTRASTE) ===== */
.box {
    padding: 16px;
    border-radius: 8px;
    margin: 18px 0;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.box strong {
    display: block;
    margin-bottom: 6px;
}

/* INFO */
.box.info {
    background-color: #cfe8ff;
    border-left: 8px solid #1d4ed8;
    color: #0f172a;
}

/* WARNING */
.box.warning {
    background-color: #ffe8d6;
    border-left: 8px solid #ea580c;
    color: #7c2d12;
}

/* SUCCESS */
.box.success {
    background-color: #d1fae5;
    border-left: 8px solid #15803d;
    color: #064e3b;
}

/* ===== FOOTER ===== */
.footer {
    background: #2563eb;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    table {
        font-size: 0.9rem;
    }
}

/* ===== CARD INSTITUCIONAL ===== */
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    margin: 15px 0;
}

/* Aula sem efeito card */
.aula section {
    margin: 45px 0;
}

/* ===== LISTA DE AULAS ===== */
.lesson-list {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.lesson-card {
    display: block;
    text-decoration: none;
    background: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.2s ease;
    color: #1e293b;
}

.lesson-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    background-color: #f1f5ff;
}

.lesson-card h3 {
    margin-bottom: 6px;
    font-size: 1.1rem;
}


/* ===== LISTA ESTILO ACADÊMICO ===== */
ul {
    list-style: none;
    margin: 15px 0;
    padding-left: 0;
}

ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}

ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

ul ul {
    margin-top: 8px;
    padding-left: 18px;
}

ul ul li::before {
    content: "◦";
    color: #3b82f6;
}


.content {
    padding-bottom: 40px;
}

.content.aula {
    padding-top: 10px;
}

.aula section:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 30px;
}

/* ===== SEÇÃO DE EXERCÍCIOS - VERSÃO CARD ELEGANTE ===== */

.aula-page .exercicios {
    background: #eef4fb;
    padding: 30px 30px 30px 40px; /* mais espaço à esquerda */
   
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    margin: 30px 0;
    border-left: 6px solid #3b82f6;
}

.badge {
    display: inline-block;
    padding: .25em .4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
}

.badge-warning {
    color: #212529;
    background-color: #ffc107;
}

.badge-primary {
    color: #fff;
    background-color: #007bff;
}