/* =========================================
   IMPORTAÇÃO DA FONTE (Ubuntu para a Logo)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700;800&display=swap');

/* =========================================
   VARIÁVEIS GLOBAIS E BASE
   ========================================= */
:root {
    --primary-color: #5192b7;
    --primary-dark: #3a6b88;
    --bg-light: #ffffff;
    --bg-gray: #f8fafc;
    --text-dark: #121416;
    --text-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   NAVEGAÇÃO (Logo e Links juntos)
   ========================================= */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    background-color: var(--bg-light); padding: 10px 5%;
    position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #eaeaea;
}
/* Nova classe para controlar o tamanho da imagem da logo */
.nav-logo {
    max-height: 45px; /* Ajuste este valor conforme a necessidade do tamanho da sua logo */
    width: auto;
    display: block;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 40px; 
}

.nav-brand a { 
    font-family: 'Ubuntu', sans-serif; 
    color: var(--text-dark); 
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.nav-brand a:hover { color: var(--primary-color); }

.brand-top {
    font-weight: 300;
    font-size: 0.50rem;
    letter-spacing: 2px;
    margin-bottom: -10px;
}

.brand-main {
    font-size: 1.4rem; 
    font-weight: 800;
    letter-spacing: 4px;
}

.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-color); }

.nav-actions { display: flex; gap: 10px; }
.btn-login { text-decoration: none; color: var(--text-dark); border: 1px solid #ccc; padding: 6px 16px; border-radius: 4px; font-weight: 600; font-size: 0.85rem; }
.btn-login:hover { background: #f8fafc; }
.btn-signup { text-decoration: none; color: var(--text-light); background-color: var(--primary-color); padding: 7px 20px; border-radius: 4px; font-weight: 600; font-size: 0.85rem; }
.btn-signup:hover { background: var(--primary-dark); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative; background-image: url('../img/bg.png');
    background-size: cover; background-position: center; min-height: 80vh; display: flex; align-items: center;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 100%); z-index: 1; }
.hero-container { position: relative; z-index: 2; display: flex; width: 100%; padding: 0 5%; align-items: center; justify-content: space-between; gap: 30px; }
.hero-text { flex: 1; max-width: 550px; color: var(--text-light); }
.hero-text h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 20px; }
.hero-text p { font-size: 1.05rem; color: #e0e0e0; }

/* =========================================
   CARROSSEL HERO E TEMAS
   ========================================= */
.hero-carousel { flex: 1; width: 100% !important; max-width: 600px !important; min-width: 0; overflow: hidden; position: relative; }
.carousel-track { display: flex; width: 100%; align-items: stretch; transition: transform 0.5s ease-in-out; }

.theme-lilac { --theme-color: #9b59b6; } 
.theme-blue { --theme-color: #0284c7; } 
.theme-camo { --theme-color: #4b5320; } 

.carousel-card {
    flex: 0 0 100% !important; width: 100% !important; background: #ffffff; border-radius: 12px;
    padding: 20px 25px; color: var(--text-dark); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    display: flex; flex-direction: column; border-top: 4px solid var(--theme-color, #00c853); 
}

.mega-tags { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 15px; }
.tag-tilt { color: white; font-weight: 900; text-transform: uppercase; padding: 3px 10px; transform: rotate(-3deg); font-size: 0.8rem; display: inline-block; background-color: var(--theme-color, #00c853); }
.tag-large { font-size: 1.2rem; padding: 4px 12px; } 
.tag-straight { background-color: #f1f5f9; color: var(--theme-color, #00c853); border: 1px solid var(--theme-color, #00c853); font-weight: 800; font-size: 0.75rem; padding: 2px 8px; margin-left: 5px; display: inline-block; }
.mega-intro { font-size: 0.9rem; margin-bottom: 15px; color: #444; }

.mega-features { list-style: none; margin-bottom: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega-features li { font-size: 0.85rem; color: #222; display: flex; align-items: center; gap: 8px; }

.mega-nested-container { margin-bottom: 15px; }
.nested-card { border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px; display: flex; justify-content: space-between; background: #f8fafc; }
.nested-info h4 { font-size: 0.9rem; margin-bottom: 4px; }
.nested-details { gap: 10px; display: flex; }
.detail-label { font-size: 0.7rem; color: #64748b; }
.detail-val { font-size: 0.8rem; font-weight: bold; }
.nested-arrow { font-size: 1rem; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; background: #e2e8f0; border-radius: 50%; }

.mega-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #e2e8f0; padding-top: 15px; margin-top: auto; }
.mega-price-box { flex: 1; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px; text-align: center; background: #f8fafc; }
.price-old { font-size: 0.75rem; text-decoration: line-through; color: #ef4444; font-weight: bold; display: block; margin-bottom: 2px; }
.price-label { font-size: 0.7rem; color: var(--theme-color, #9b59b6); font-weight: bold; margin-bottom: -3px; display: block; }
.price-value { font-size: 1rem; font-weight: 800; }
.price-value span { font-size: 1.8rem; }
.price-value small { font-size: 0.8rem; }

.btn-mega-cta { flex: 1; background-color: #ffb300; color: #121416; text-align: center; padding: 12px; border-radius: 6px; text-decoration: none; font-weight: 900; font-size: 0.9rem; text-transform: uppercase; box-shadow: 0 4px 15px rgba(255, 179, 0, 0.3); transition: transform 0.2s, background 0.3s; }
.btn-mega-cta:hover { background-color: #ffa000; transform: scale(1.02); }
.price-anual { font-size: 0.75rem; color: var(--theme-color, #00c853); font-weight: 800; text-align: center; margin-top: 8px; width: 100%; }

.carousel-indicators { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
.dot { width: 10px; height: 10px; background: rgba(255,255,255,0.3); border-radius: 50%; cursor: pointer; }
.dot.active { background: #ffffff; transform: scale(1.2); }

/* =========================================
   SEÇÃO DE CURSOS
   ========================================= */
.enem-section { background-color: var(--bg-light); padding-top: 50px; padding-bottom: 80px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-subtitle { display: inline-block; color: var(--primary-color); font-weight: 800; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; background: #e0f2fe; padding: 6px 18px; border-radius: 20px; }
.section-title-elaborated { font-size: 2.5rem; color: var(--text-dark); font-weight: 800; letter-spacing: -1px; }
.section-title-elaborated span { color: var(--primary-color); }

.enem-container-marked { display: flex; align-items: center; justify-content: space-between; gap: 60px; max-width: 1200px; margin: 0 auto; padding: 40px; background: #fcfcfd; border-radius: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); border: 1px solid #f1f5f9; }
.enem-content { flex: 1; max-width: 550px; }

.tag-main-course { display: inline-block; background: linear-gradient(135deg, #9b59b6, #8e44ad); color: #ffffff; font-weight: 800; font-size: 0.85rem; letter-spacing: 1px; padding: 8px 18px; border-radius: 30px; text-transform: uppercase; margin-bottom: 25px; box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3); }
.enem-title { font-size: 2.5rem; color: var(--text-dark); line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.enem-title span { color: #9b59b6; }
.enem-desc { font-size: 1.1rem; color: #555; margin-bottom: 30px; line-height: 1.6; }

.enem-benefits { display: flex; flex-direction: column; gap: 20px; margin-bottom: 35px; }
.benefit-item { display: flex; align-items: flex-start; gap: 15px; }
.benefit-icon { font-size: 1.8rem; background: #fcf4ff; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid #f3e5f5; flex-shrink: 0; }
.benefit-text h4 { font-size: 1.15rem; color: var(--text-dark); margin-bottom: 5px; }
.benefit-text p { font-size: 0.95rem; color: #666; line-height: 1.5; }

.enem-price-block { display: flex; gap: 15px; margin-bottom: 25px; }
.price-card-mini { flex: 1; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px 15px 15px 15px; position: relative; text-align: center; }
.price-card-mini.highlight-mini { border: 2px solid #9b59b6; background: #fcf4ff; box-shadow: 0 10px 20px rgba(155, 89, 182, 0.1); }
.badge-mini { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: #64748b; color: white; font-size: 0.7rem; font-weight: bold; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.highlight-badge { background: #9b59b6; }
.price-card-mini h5 { font-size: 1rem; color: var(--text-dark); margin-bottom: 8px; }
.enem-price-old { font-size: 0.85rem; text-decoration: line-through; color: #ef4444; font-weight: bold; display: block; margin-bottom: 2px; }
.enem-price-desc { font-size: 0.8rem; color: #64748b; display: block; margin-bottom: 2px; font-weight: 600; }
.enem-price-new { font-size: 1rem; color: var(--text-dark); }
.enem-price-new strong { font-size: 1.8rem; font-weight: 900; color: #121416; }
.highlight-mini .enem-price-new strong { color: #9b59b6; }

.btn-lilac-solid { display: block; background-color: #9b59b6; color: white; padding: 16px 20px; border-radius: 8px; text-decoration: none; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; box-shadow: 0 10px 20px rgba(155, 89, 182, 0.2); transition: transform 0.2s, background 0.3s; text-align: center; width: 100%; }
.btn-lilac-solid:hover { background-color: #8e44ad; transform: translateY(-2px); }

/* Mockup Plataforma */
.enem-visual { flex: 1; display: flex; justify-content: center; }
.platform-mockup { width: 100%; max-width: 500px; background: #ffffff; border-radius: 12px; box-shadow: 0 25px 50px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; overflow: hidden; }
.mockup-header { background: #f1f5f9; padding: 12px 15px; display: flex; gap: 8px; border-bottom: 1px solid #e2e8f0; }
.dot-red, .dot-yellow, .dot-green { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; } .dot-yellow { background: #ffbd2e; } .dot-green { background: #27c93f; }
.mockup-body { display: flex; height: 350px; }
.mockup-sidebar { width: 80px; background: #f8fafc; border-right: 1px solid #e2e8f0; padding: 20px 15px; display: flex; flex-direction: column; gap: 15px; }
.menu-line { height: 8px; background: #cbd5e1; border-radius: 4px; } .menu-line.short { width: 60%; } .menu-line.mt { margin-top: auto; }
.mockup-content { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.video-placeholder { background: #e2e8f0; flex: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.play-btn { width: 50px; height: 50px; background: #9b59b6; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; padding-left: 4px; box-shadow: 0 10px 20px rgba(155, 89, 182, 0.3); }
.content-title { height: 16px; width: 60%; background: #94a3b8; border-radius: 8px; } .content-desc { height: 10px; width: 100%; background: #cbd5e1; border-radius: 5px; } .content-desc.short { width: 80%; }

/* Outros Cursos Mini Cards */
.other-courses-section { max-width: 1200px; margin: 80px auto 0 auto; padding: 0 20px; }
.secondary-section-title { text-align: center; font-size: 1.6rem; color: var(--text-dark); margin-bottom: 40px; font-weight: 700; }
.mini-cards-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.mini-course-card { flex: 1 1 300px; max-width: 400px; background: #ffffff; border-radius: 16px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); border: 1px solid #eaeaea; border-top: 4px solid var(--theme-color); display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.mini-course-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.mini-card-header { margin-bottom: 15px; }
.mini-tag { display: inline-block; background: var(--theme-color); color: white; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; }
.mini-course-title { font-size: 1.4rem; color: var(--text-dark); letter-spacing: -0.5px; line-height: 1.2; }
.mini-course-desc { font-size: 0.95rem; color: #666; margin-bottom: 25px; line-height: 1.5; }
.mini-course-features { list-style: none; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #eaeaea; flex-grow: 1; }
.mini-course-features li { font-size: 0.9rem; color: #444; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.mini-price-block { margin-bottom: 20px; }
.mini-price-old { font-size: 0.85rem; text-decoration: line-through; color: #ef4444; font-weight: bold; display: block; margin-bottom: 2px; }
.mini-price-new { font-size: 1.8rem; font-weight: 900; color: var(--text-dark); line-height: 1; margin-bottom: 5px; }
.mini-price-new span { font-size: 0.9rem; color: #666; font-weight: 600; }
.mini-price-anual { font-size: 0.8rem; color: var(--theme-color); font-weight: 800; }
.btn-mini-course { display: block; text-align: center; background: transparent; color: var(--theme-color); border: 2px solid var(--theme-color); padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 800; font-size: 0.95rem; text-transform: uppercase; transition: all 0.3s; }
.btn-mini-course:hover { background: var(--theme-color); color: white; }

/* =========================================
   NOVA SEÇÃO DE RESULTADOS (CARROSSEL MARQUEE INFINITO)
   ========================================= */
.results-section { background-color: var(--bg-gray); padding: 80px 0; border-top: 1px solid #eaeaea; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.testimonials-wrapper { width: 100%; overflow: hidden; padding: 20px 0 40px 0; }
.testimonials-track { display: flex; width: max-content; animation: autoScroll 35s linear infinite; }
.testimonials-track:hover { animation-play-state: paused; }
.testi-slide { display: flex; gap: 25px; padding-right: 25px; }

@keyframes autoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.testimonial-card { width: 320px; background: #ffffff; border-radius: 16px; padding: 25px; box-shadow: 0 10px 25px rgba(0,0,0,0.04); border: 1px solid #eaeaea; display: flex; flex-direction: column; transition: transform 0.3s ease; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.testi-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.avatar-gradient { width: 65px; height: 65px; border-radius: 50%; background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%); padding: 3px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0, 242, 254, 0.3); }
.avatar-gradient img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid #fff; background-color: #f1f5f9; }
.testi-info h4 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 4px; }
.uni-tag { display: inline-block; font-size: 0.65rem; font-weight: 800; padding: 3px 8px; border-radius: 12px; text-transform: uppercase; text-align: center; }
.tag-ufc { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.tag-ibge { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.testi-body { flex-grow: 1; display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.approved-course { font-size: 0.95rem; color: #555; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; }
.approved-course strong { color: var(--text-dark); }
.testi-quote { font-style: italic; font-size: 0.95rem; color: #444; line-height: 1.5; }
.testi-footer { background: #fcf4ff; border: 1px solid #f3e5f5; padding: 12px 15px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; }
.score-label { font-size: 0.85rem; color: #666; font-weight: 600; }
.score-number { font-size: 1.6rem; font-weight: 900; color: #9b59b6; line-height: 1; }
.check-icon-green { color: #00c853; }
.card-ibge .testi-footer { background: #f0fdf4; border-color: #dcfce7; }

/* =========================================
   PLANOS GERAIS E FOOTER ANTIGO (Mantido por segurança)
   ========================================= */
.pricing-section { background-color: var(--bg-light); padding: 80px 20px; }
.pricing-card { text-align: center; border: 2px solid #eaeaea; padding: 30px; }
.pricing-card.destaque { border-color: var(--primary-color); position: relative; }
.badge { background: var(--primary-color); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-weight: bold; }
.old-price { text-decoration: line-through; color: #999; font-size: 1.1rem; }
.new-price { font-size: 2.5rem; font-weight: bold; color: var(--text-dark); margin-bottom: 15px; }
.new-price span { font-size: 1.1rem; color: #666; }
.btn { display: block; background-color: var(--primary-color); color: var(--text-light); padding: 12px; text-decoration: none; border-radius: 4px; font-weight: bold; font-size: 1rem; width: 100%; }

/* =========================================
   RODAPÉ PREMIUM (DESIGN DARK SLATE)
   ========================================= */
.modern-footer { background-color: #0a0f1a; color: #94a3b8; padding-top: 70px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-family: 'Segoe UI', sans-serif; }
.footer-main-container { max-width: 1200px; margin: 0 auto; padding: 0 5% 50px 5%; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; }
.modern-footer .nav-brand .brand-top { color: #64748b; }
.modern-footer .nav-brand .brand-main { color: #ffffff; }
.brand-pitch { margin-top: 20px; font-size: 0.9rem; line-height: 1.6; }
.footer-column h4 { color: #ffffff; font-size: 0.9rem; font-weight: 700; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
.footer-list { list-style: none; padding: 0; }
.footer-list li { margin-bottom: 12px; }
.footer-list a { text-decoration: none; color: #94a3b8; font-size: 0.9rem; transition: all 0.3s ease; }
.footer-list a:hover { color: #5192b7; padding-left: 5px; }
.social-grid { display: flex; gap: 12px; margin-top: 25px; }
.social-icon { width: 38px; height: 38px; background: rgba(255,255,255,0.03); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #ffffff; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.05); }
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { background: #5192b7; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(81, 146, 183, 0.3); }
.newsletter-col p { font-size: 0.85rem; margin-bottom: 20px; }
.footer-form { display: flex; background: rgba(255,255,255,0.05); padding: 5px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); }
.footer-form input { background: transparent; border: none; padding: 10px; color: white; flex: 1; font-size: 0.85rem; outline: none; }
.footer-form button { background: #5192b7; color: white; border: none; padding: 0 15px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.footer-form button:hover { background: #3a6b88; }
.footer-bottom-legal { background: #070a13; padding: 25px 5%; border-top: 1px solid rgba(255, 255, 255, 0.03); }
.legal-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #475569; }
.legal-links a { text-decoration: none; color: #475569; }
.separator { margin: 0 5px; opacity: 0.3; }

/* =========================================
   RESPONSIVIDADE (FIX PARA CELULAR)
   ========================================= */

@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; padding-top: 40px; gap: 30px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-carousel { width: 100vw !important; max-width: 100% !important; padding: 0 5%; }
    .enem-container-marked { flex-direction: column; text-align: center; gap: 40px; padding: 30px 20px; }
    .enem-benefits { text-align: left; }
    .enem-price-block { flex-direction: column; } 
    .nav-left { gap: 20px; } 
    .footer-main-container { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; padding: 15px; }
    .nav-left { flex-direction: column; gap: 10px; }
    .nav-links { gap: 15px; justify-content: center; }
    .nav-actions { width: 100%; justify-content: center; }
    .section-title-elaborated { font-size: 2.2rem; }
    .mini-course-card { flex-basis: 100%; max-width: 100%; } 
    .footer-main-container { grid-template-columns: 1fr; text-align: center; }
    .social-grid { justify-content: center; }
    .legal-container { flex-direction: column; gap: 15px; }
    .footer-column .nav-brand { align-items: center; }
    
    /* Hero e Carousel no Mobile */
    .hero-text h1 { font-size: 1.8rem; }
    .mega-features { grid-template-columns: 1fr; }
    .mega-footer { flex-direction: column; }
    .mega-price-box { width: 100%; }
    .btn-mega-cta { width: 100%; }
    .enem-visual { display: none; } /* Mockup ocupa muito espaço no celular */
}

@media (max-width: 480px) {
    .brand-main { font-size: 1.1rem; letter-spacing: 2px; }
    .brand-top { font-size: 0.4rem; }
    .footer-form { flex-direction: column; }
    .footer-form button { padding: 12px; margin-top: 5px; }
}

/* =========================================
   RESPONSIVIDADE (FIX PARA CELULAR - NOVO LAYOUT)
   ========================================= */

@media (max-width: 768px) {
    /* 1. Navbar vira o contêiner principal vertical */
    .navbar {
        flex-direction: column;
        align-items: stretch; /* estica os filhos (nav-left) para ocupar toda a largura */
        padding: 10px 20px;
        gap: 0;
    }

    /* 2. Nav-left vira a "Barra do Topo" usando GRID */
    .nav-left {
        display: grid;
        width: 100%;
        /* Criamos 3 colunas: [Ícone] [Espaço flexível] [Logo] */
        grid-template-columns: auto 1fr auto; 
        align-items: center;
        gap: 0;
    }

    /* Forçamos o Hambúrguer para a Coluna 1 (Esquerda) */
    .menu-toggle {
        grid-column: 1;
        display: flex; /* Mostra o ícone */
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
        z-index: 10;
    }
    /* Estilo das Barrinhas (Mantido) */
    .menu-toggle .bar {
        height: 3px;
        width: 100%;
        background-color: var(--text-dark);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Forçamos a Logo para a Coluna 3 (Direita) */
    .nav-brand {
        grid-column: 3;
        justify-self: end; /* empurra para a direita dentro da célula */
        margin: 0;
        display: flex;
        align-items: center;
    }
    .nav-logo {
        max-height: 35px; /* Reduzimos um pouco a logo no celular para ficar elegante */
        width: auto;
    }

    /* 3. Links do Menu (Dentro da nav-left, mas aparecem abaixo) */
    .nav-links {
        grid-column: 1 / -1; /* Ocupa todas as colunas da grid */
        grid-row: 2; /* Fica na linha abaixo da barra do topo */
        display: none; /* Escondido inicialmente */
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 15px 0 0 0;
        gap: 0;
        margin-top: 15px; /* espaçamento da barra do topo */
        border-top: 1px solid #eaeaea; /* linha decorativa */
    }
    .nav-links.active {
        display: flex; /* Mostra quando aberto */
    }
    .nav-links li { width: 100%; }
    .nav-links li a {
        display: block;
        padding: 12px 0;
        font-size: 1rem;
        width: 100%;
    }

    /* 4. Botões de Ação (Abaixo de tudo) */
    .nav-actions {
        display: none; /* Escondido inicialmente */
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }
    
    .nav-actions.active {
        display: flex; /* Mostra quando aberto */
    }

    /* Formata os dois botões (Área do Aluno e Cadastre-se) para ocuparem a tela toda no celular */
    .nav-actions .btn-login,
    .nav-actions .btn-signup {
        width: 100%;
        text-align: center;
        padding: 12px;
        display: block;
    }

   
    /* ANIMAÇÃO DO HAMBÚRGUER PARA "X" (Mantido) */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
}