/* --- CONFIGURAÇÕES GERAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --roxo-principal: #4A3B8B;
    --roxo-botao: #6A5ACD;
    --preto-detalhe: #1A0B3B;
    --cinza-texto: #666;
    --roxo-claro: #f4f3ff;
}

body {
    background-color: #fff;
    overflow-x: hidden;
    padding-top: 90px; /* Espaço para a navbar fixa */
}

/* --- NAVBAR (CABEÇALHO) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-left { display: flex; align-items: center; gap: 15px; }
.main-logo { height: 60px; }
.flags img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.menu a {
    text-decoration: none;
    color: var(--roxo-principal);
    font-weight: 600;
    margin: 0 12px;
    font-size: 14px;
    transition: 0.3s;
}

.menu a:hover { color: var(--roxo-botao); }

.header-right { display: flex; align-items: center; gap: 15px; }

.btn-portal-nav {
    text-decoration: none;
    color: var(--roxo-principal);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    border: 2px solid var(--roxo-principal);
    border-radius: 50px;
    transition: 0.3s;
}

.btn-portal-nav:hover {
    background: var(--roxo-principal);
    color: white;
}

/* --- HERO SECTION (BANNER ESTILO KNN) --- */
.hero {
    padding: 20px 5%;
    display: flex;
    justify-content: center;
}

.hero-banner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 550px;
    border-radius: 40px;
    overflow: hidden;
    background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1200') no-repeat center center/cover;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 30%, transparent 80%);
}

.hero-text-box {
    position: relative;
    z-index: 2;
    padding-left: 60px;
    max-width: 600px;
    color: white;
}

.hero-text-box h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text-box p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- ESTILO DO BOTÃO "CONHEÇA A METODOLOGIA" (DENTRO DO BANNER) --- */
.btn-metodologia {
    background: white;
    color: var(--roxo-principal);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    border: none;
}

.btn-metodologia:hover {
    transform: scale(1.05);
    background: var(--roxo-botao);
    color: white;
}

/* --- ESTILIZAÇÃO GERAL DE SEÇÕES E GRIDS --- */
.container {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: var(--roxo-principal);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
}

.method-intro { text-align: center; margin-bottom: 60px; }
.method-intro h1 { font-size: 48px; color: var(--roxo-principal); margin-bottom: 20px; }
.highlight { color: var(--roxo-botao); font-weight: 800; }

/* Grid de Cards (Método e Cursos) */
.method-grid, .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.method-card, .course-card {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.method-card:hover, .course-card:hover { transform: translateY(-10px); }
.method-card .icon { font-size: 50px; margin-bottom: 20px; }
.method-card h3 { color: var(--roxo-principal); margin-bottom: 15px; }

/* --- JORNADA DO ALUNO (NÍVEIS) --- */
.levels-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.level-box {
    flex: 1;
    min-width: 280px;
    padding: 40px;
    border-radius: 30px;
    border: 2px solid #f0f0f0;
    background: #fff;
    transition: 0.3s;
}

.level-tag {
    display: inline-block;
    background: #eee;
    color: var(--roxo-principal);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.level-box.highlighted {
    border-color: var(--roxo-botao);
    background: #fdfbff;
    box-shadow: 0 15px 35px rgba(106, 90, 205, 0.1);
}

/* --- CHAMADA PARA AÇÃO (CTA) --- */
.method-cta {
    background: var(--roxo-principal);
    color: white;
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    margin-top: 80px;
}

.btn-main-light {
    background: white;
    color: var(--roxo-principal);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-main-light:hover { transform: scale(1.05); }

/* --- BOTÃO FLUTUANTE NO RODAPÉ --- */
.btn-matricula-flutuante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--roxo-botao);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(106, 90, 205, 0.4);
    transition: 0.3s;
}

.btn-matricula-flutuante:hover { transform: translateY(-5px); filter: brightness(1.1); }

/* --- PORTAL (LOGIN E CADASTRO) --- */
.body-portal {
    background: var(--roxo-principal);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.portal-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.portal-card input, .portal-card select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
}

.btn-roxo {
    background: var(--roxo-principal);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
}
/* --- SEÇÃO DE DEPOIMENTOS --- */
.testimonials {
    background-color: var(--roxo-claro);
    padding: 80px 5%;
    border-radius: 50px;
    margin: 40px 0;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    position: relative;
}

.testimonial-card:hover {
    transform: scale(1.03);
}

.student-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--roxo-botao);
}

.testimonial-card p {
    font-style: italic;
    color: var(--cinza-texto);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.student-name {
    font-weight: 800;
    color: var(--roxo-principal);
    display: block;
}

.student-course {
    font-size: 12px;
    color: var(--roxo-botao);
    font-weight: 600;
}

.stars {
    color: #FFD700; /* Cor Dourada */
    margin-bottom: 10px;
}
/* Estilo para a Tabela de Gestão da Andrea */
.admin-table-container {
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.select-admin {
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
}

.btn-admin-save {
    background: var(--roxo-botao);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}
/* --- PAINEL ADMINISTRATIVO (ANDREA) --- */

.admin-header {
    background: var(--roxo-principal);
    color: white;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-header h1 { font-size: 22px; font-weight: 700; }

.btn-add-user {
    background: white;
    color: var(--roxo-principal);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}

.btn-add-user:hover { background: var(--roxo-claro); transform: translateY(-2px); }

.admin-container {
    padding: 40px 5%;
    max-width: 1100px;
    margin: 0 auto;
}

.management-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

/* Estilização da Tabela */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px; /* Espaço entre as linhas */
    margin-top: 20px;
}

.admin-table th {
    color: var(--cinza-texto);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 0 20px;
    text-align: left;
}

.admin-table tr td {
    background: #fff;
    padding: 20px;
    border-top: 1px solid #f9f9f9;
    border-bottom: 1px solid #f9f9f9;
}

.admin-table tr td:first-child {
    border-left: 1px solid #f9f9f9;
    border-radius: 15px 0 0 15px;
    font-weight: 600;
    color: var(--roxo-principal);
}

.admin-table tr td:last-child {
    border-right: 1px solid #f9f9f9;
    border-radius: 0 15px 15px 0;
}

/* Select e Botão dentro da tabela */
.admin-select {
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #eee;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.btn-save-vinc {
    background: var(--roxo-botao);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.btn-save-vinc:hover { background: var(--roxo-principal); }
/* --- PAINEL DO ALUNO --- */
.student-welcome {
    background: var(--roxo-principal);
    color: white;
    padding: 60px 5%;
    border-radius: 0 0 50px 50px;
    margin-bottom: 40px;
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.lesson-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lesson-card:hover {
    transform: translateY(-5px);
    border-color: var(--roxo-botao);
}

.status-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.status-liberado { background: #e6fffa; color: #38a169; }
.btn-edit {
    background: #e2e8f0;
    color: #4A3B8B;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
}

.btn-delete {
    background: #fff5f5;
    color: #e53e3e;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    margin-left: 5px;
}

.btn-delete:hover { background: #feb2b2; }
.btn-edit:hover { background: #cbd5e0; }
.insta-link {
    color: var(--roxo-principal); /* Ou a cor roxa que você está usando */
    font-size: 24px;
    margin: 0 15px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    vertical-align: middle;
}

.insta-link:hover {
    color: #E1306C; /* Cor oficial do Instagram ao passar o mouse */
    transform: scale(1.1);
}
/* Remove o espaço em branco entre a navbar e o conteúdo */
.container-prof {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* Remove a margem superior do primeiro título de cada card */
.section-card h2:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Garante que o corpo não tenha espaços extras */
body {
    padding-top: 70px; /* Ajuste esse valor para a altura exata da sua navbar */
    margin: 0;
}
/* --- LÓGICA DO MENU HAMBÚRGUER --- */
.menu-toggle {
    display: none; /* Escondido no PC */
    font-size: 26px;
    color: var(--roxo-principal);
    cursor: pointer;
    z-index: 1001;
}

.desktop-only { display: block; }
.btn-portal-mobile { display: none; }

@media (max-width: 992px) {
    .menu-toggle { display: block; } /* Mostra no Mobile/Tablet */
    .desktop-only { display: none; } /* Esconde o botão da navbar */

    .menu {
        display: none; /* Escondido por padrão */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Brota logo abaixo da navbar */
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }

    .menu.active {
        display: flex; /* Aparece ao clicar */
    }

    .menu a {
        margin: 0;
        padding: 15px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f9f9f9;
        font-size: 16px;
    }

    .btn-portal-mobile {
        display: block !important;
        background: var(--roxo-principal);
        color: white !important;
        margin-top: 10px !important;
        border-radius: 12px;
    }
}

