:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #3d8bfd;
    --dark: #212529;
    --light: #f8f9fa;
    --secondary: #6c757d;
    --gradient-primary: linear-gradient(135deg, #0d6efd, #0a58ca);
    --gradient-secondary: linear-gradient(135deg, #6c757d, #495057);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

/* Navbar */
.navbar {
    box-shadow: var(--shadow-md);
    background: #212529 !important;
}

/* Footer */
.footer {
    margin-top: 4rem;
    background: #212529 !important;
}

.navbar-brand img {
    /* Removido: filter: brightness(0) invert(1); */
    height: 30px; /* Mesmo tamanho usado no footer */
}

/* Botões com gradiente */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.donate-btn {
    border-radius: var(--radius-lg);
    padding: 0.375rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    border: none;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 82, 83, 0.4);
}


/* Section Titles */
.section-title {
    position: relative;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Course Cards */
.course-card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.course-card .card-img-top {
    height: 150px;
    object-fit: cover;
}

.course-card .card-body {
    padding: 1rem;
}

.course-card .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.course-card .card-text {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

/* Botões dos cards em vermelho */
.course-card .btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    border: none;
    color: white;
    box-shadow: 0 4px 10px rgba(238, 82, 83, 0.3);
}

.course-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(238, 82, 83, 0.4);
    background: linear-gradient(135deg, #ff5252, #d32f2f);
}

/* Video Page */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

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

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
}

/* Lesson List */
.lesson-list {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.lesson-list .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lesson-list .list-group-item:first-child {
    border-top: none;
}

.lesson-list .list-group-item:last-child {
    border-bottom: none;
}

.lesson-list .list-group-item.active {
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.1), transparent);
    color: var(--primary);
    font-weight: 600;
    border-color: #dee2e6;
    border-left: 4px solid var(--primary);
}

.lesson-list .list-group-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Certificate Page */
.certificate-container {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.certificate-preview {
    position: relative;
    padding: 3rem;
    margin: 2rem 0;
    background-color: #f8f9fa;
    background-image: url('images/certificate-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    color: white;
    text-align: center;
    padding: 20px;
    backdrop-filter: blur(3px);
    border-radius: var(--radius-sm);
}

/* Modal */
.modal-content {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-lg);
}

/* Atualização das variáveis de cores */
:root {
    --primary: #ff5252; /* Vermelho em vez de azul */
    --primary-dark: #d32f2f; /* Vermelho escuro */
    --primary-light: #ff6b6b; /* Vermelho claro */
    --dark: #212529;
    --light: #f8f9fa;
    --secondary: #6c757d;
    --gradient-primary: linear-gradient(135deg, #ff6b6b, #ee5253); /* Gradiente vermelho */
    --gradient-secondary: linear-gradient(135deg, #212529, #343a40); /* Gradiente preto */
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Botões com gradiente vermelho */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(238, 82, 83, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(238, 82, 83, 0.4);
    background: linear-gradient(135deg, #ff5252, #d32f2f);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(238, 82, 83, 0.3);
}

/* Botão secundário (preto) */
.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(33, 37, 41, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(33, 37, 41, 0.4);
}

/* Atualizar a linha abaixo dos títulos de seção */
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Atualizar o estilo dos itens ativos na lista de aulas */
.lesson-list .list-group-item.active {
    background: linear-gradient(90deg, rgba(238, 82, 83, 0.1), transparent);
    color: var(--primary);
    font-weight: 600;
    border-color: #dee2e6;
    border-left: 4px solid var(--primary);
}

.lesson-list .list-group-item:hover {
    background-color: rgba(238, 82, 83, 0.05);
}

/* Atualizar o cabeçalho do modal */
.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
}

/* Atualizar o título das páginas de Termos e Privacidade */
.container.py-5 > h1.mb-4 {
    font-size: 1.8rem;
    color: var(--primary); /* Vermelho em vez de azul */
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Estilos para páginas de Termos e Privacidade */
.bg-white.p-4.rounded.shadow-sm {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.bg-white.p-4.rounded.shadow-sm h2 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.bg-white.p-4.rounded.shadow-sm p, 
.bg-white.p-4.rounded.shadow-sm li {
    font-size: 0.95rem;
    color: #444;
}

.bg-white.p-4.rounded.shadow-sm ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.bg-white.p-4.rounded.shadow-sm li {
    margin-bottom: 0.5rem;
}