/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
p {
    font-size: 1.1rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0f4082;
    min-height: 100vh;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700 !important;
}

.header p {
    color: #7f8c8d;
    font-size: 1.3rem !important;
}

/* Navegação */
.nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.nav li {
    flex: 1;
    min-width: 150px;
}

.nav a {
    display: block;
    padding: 15px 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.nav a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.nav a.active {
    background: #0f4082 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Conteúdo principal */
.main-content {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Seções de aula */
.lesson-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #ecf0f1;
}

.lesson-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.lesson-section h2 {
    color: #2c3e50;
    font-size: 2rem !important;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

/* Container de vídeo */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Atividades H5P */
.h5p-container {
    margin: 30px 0;
    overflow: hidden;
}

.h5p-container iframe {
    width: 100%;
    min-height: 400px;
    border: none;
}

/* Atividade de casa */
.homework {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.homework h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.homework h3::before {
    content: "📝";
    font-size: 1.2rem;
}

.homework p {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.homework a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.homework a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Avaliação */
.evaluation {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.3);
}

.evaluation h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

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

    .nav ul {
        flex-direction: column;
    }

    .nav li {
        min-width: auto;
    }

    .main-content {
        padding: 25px;
    }

    .lesson-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px;
    }

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

    .main-content {
        padding: 20px;
    }

    .homework,
    .evaluation {
        padding: 20px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: fadeIn 0.6s ease-out;
}

/* Botões de navegação entre aulas */
.lesson-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.lesson-nav-btn {
    flex: 1;
    padding: 15px 25px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.lesson-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.lesson-nav-btn.disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    box-shadow: none;
}

.lesson-nav-btn.disabled:hover {
    transform: none;
}

@media (max-width: 480px) {
    .lesson-navigation {
        flex-direction: column;
    }
}