/* ================= VARIABLES & RESET ================= */
:root {
    /* Paleta Papa Mike Saúde */
    --primary-blue: #003366;
    /* Azul Marinho Profundo */
    --secondary-blue: #004d99;
    /* Azul um pouco mais claro para hover */
    --accent-yellow: #FFD700;
    /* Amarelo Ouro */
    --yellow-hover: #e6c200;
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --white: #ffffff;
    --gray-light: #f5f7fa;
    --gray-border: #e1e1e1;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-blue);
    line-height: 1.2;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-yellow {
    color: var(--accent-yellow);
}

.text-blue {
    color: var(--primary-blue);
}

/* ================= UTILS & BUTTONS ================= */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--gray-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-yellow);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: #555;
    margin-top: 10px;
}

.mobile-only,
.mobile-only-instruction {
    display: none;
}


.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--yellow-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Botão Outline Branco (para CTA azul) */
.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    background-color: transparent;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-yellow {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-yellow:hover {
    background-color: var(--yellow-hover);
    transform: scale(1.05);
}

.btn-full {
    width: 100%;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px;
    border-radius: 8px;
    display: block;
}

.btn-full:hover {
    background-color: var(--secondary-blue);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.pulsing-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* ================= HEADER ================= */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    /* Branco com transparência */
    backdrop-filter: blur(10px);
    /* O Pulo do Gato: Desfoque do que passa atrás */
    -webkit-backdrop-filter: blur(10px);
    /* Para Safari/iPhone */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    /* Sombra mais suave */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
    width: auto;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    color: var(--primary-blue);
    position: relative;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-yellow);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.active-link {
    color: var(--secondary-blue) !important;
}

.active-link::after {
    width: 100% !important;
}

.nav-list a.nav-event-highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block; /* Alterado de flex para block para evitar bugs sem o ícone */
    text-align: center;
}

/* Remove a linha amarela padrão de hover para o botão destaque */
.nav-list a.nav-event-highlight::after {
    display: none;
}

.nav-list a.nav-event-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: var(--accent-yellow);
    color: var(--primary-blue) !important;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-menu-icon {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* ================= MOBILE PROMO HERO (AZUL) ================= */
.mobile-promo-hero {
    display: none;
    /* Escondido no desktop */
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 100px 0 40px;
    color: var(--white);
    text-align: center;
}

.mobile-promo-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.mobile-promo-hero p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.promo-tag {
    background-color: #e63946;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mobile-lead-form {
    background-color: var(--white);
    border: none;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mobile-lead-form h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.mobile-lead-form input,
.mobile-lead-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    background-color: var(--gray-light);
    color: var(--text-dark);
    font-size: 1rem;
}

.mobile-lead-form input:focus,
.mobile-lead-form select:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--white);
}

.secure-text {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

/* ================= DESKTOP HERO ================= */
.desktop-hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 51, 102, 0.95) 0%, rgba(0, 51, 102, 0.7) 60%, rgba(0, 51, 102, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 650px;
    margin-left: 0;
}

.badge {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.desktop-hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.desktop-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ================= STATS ================= */
.stats {
    background-color: var(--accent-yellow);
    padding: 40px 0;
    margin-top: -1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-weight: 500;
    color: var(--primary-blue);
}

/* ================= COURSES (HOME & PAGE) ================= */

/* ================= CORREÇÃO CURSOS HEADER ================= */
.courses-header {
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.8)), url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?q=80&w=1000');
    background-size: cover;
    background-position: center;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 20px;
    /* Espaço para sombra não cortar */
    /* Garante que não tenha barra de rolagem no Desktop */
    overflow: visible;
}

.course-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;

    /* Isso faz todos terem a altura da linha inteira */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-yellow);
}

.course-image {
    height: 220px;
    /* Altura fixa para imagem não quebrar o layout */
    position: relative;
    flex-shrink: 0;
    /* Não deixa a imagem encolher */
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
    /* Zoom suave */
}

.course-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-yellow {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

.course-info {
    padding: 25px;
    flex-grow: 1;
    /* Ocupa todo o espaço sobrando */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Espalha o conteúdo */
}

.course-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    min-height: 3rem;
    /* Reserva espaço para 2 linhas de título */
}

.course-info p {
    margin-bottom: 15px;
    flex-grow: 1;
    /* Empurra os detalhes para baixo */
}

.course-info .btn {
    margin-top: auto;
}

.course-meta {
    margin: 15px 0 20px;
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
    padding: 15px 0;
}

.course-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.course-meta li i {
    color: var(--accent-yellow);
}

/* Filtros (Página Cursos) */
.course-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* FAQ (Página Cursos) */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-yellow);
}

.faq-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}




/* ================= MERCADO & GRÁFICOS ================= */
.market-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.market-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-blue);
}

.market-text p {
    margin-bottom: 30px;
}

.market-img img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.chart-container {
    margin-bottom: 25px;
}

.chart-label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.progress-bar {
    height: 14px;
    background-color: #e1e1e1;
    border-radius: 7px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 7px;
    transition: width 1.5s ease-in-out;
}

.progress-fill.gray {
    background-color: #999;
}

.progress-fill.blue {
    background-color: var(--primary-blue);
}

.progress-fill.yellow {
    background-color: var(--accent-yellow);
}

/* Comparativo Salarial (VS) */
.salary-comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.comparison-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border: 1px solid var(--gray-border);
}

.highlight-box {
    border: 2px solid var(--accent-yellow);
    transform: scale(1.05);
    background: #fff;
    position: relative;
}

.highlight-box::before {
    content: 'RECOMENDADO';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
}

.big-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 15px 0;
}

.text-gray {
    color: #777;
}

.bar-container {
    background: #eee;
    height: 10px;
    border-radius: 5px;
    margin-top: 20px;
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: 5px;
}

.bar.gray {
    background: #999;
}

.bar.blue {
    background: var(--primary-blue);
}

.vs-circle {
    background: var(--text-dark);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Parceiros */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.partner-logo {
    background: var(--gray-light);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #777;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.partner-logo i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.partner-logo:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}


/* ================= ESTRUTURA & GALERIA ================= */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.carousel-slide {
    display: none;
    width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 51, 102, 0.8);
    color: var(--white);
    padding: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    z-index: 10;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover,
.next:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

.carousel-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--primary-blue);
}


/* Layouts de Estrutura (ZigZag) */
.structure-feature {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.structure-feature.reverse {
    flex-direction: row-reverse;
}

.structure-text {
    flex: 1;
}

.structure-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.structure-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.structure-note {
    margin-top: 20px;
    font-style: italic;
    background-color: var(--gray-light);
    padding: 10px;
    border-left: 3px solid var(--accent-yellow);
    font-size: 0.9rem !important;
}

.structure-img {
    flex: 1;
}

.structure-img img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.structure-img img:hover {
    transform: scale(1.02);
}

/* Grid Ambientes */
.grid-environments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.env-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
}

.env-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.env-content {
    padding: 20px;
}

.env-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.env-content p {
    font-size: 0.95rem;
    color: #666;
}

/* Headers Internos (Páginas) */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Header Imagens */
.market-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1551818255-e6e10975bc17?q=80&w=1000');
}

.structure-header {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?q=80&w=1000');
}


/* ================= DIFERENCIAIS & EXTRAS ================= */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 51, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.split-image {
    position: relative;
}

.split-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Depoimentos */
.bg-blue {
    background-color: var(--primary-blue);
    color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.testimonial-card p {
    font-style: italic;
    margin: 15px 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.testimonial-card h4 {
    color: var(--accent-yellow);
    margin-bottom: 0;
}

.testimonial-card span {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.tech-item i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tech-item h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Localização */
.location-box {
    display: flex;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.location-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.address-list {
    margin: 25px 0;
}

.address-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.address-list li i {
    color: var(--primary-blue);
    font-size: 1.3rem;
}

.location-map {
    flex: 1;
}

.location-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}


/* ================= CTA & FOOTER ================= */
/* Ajuste na Seção CTA para receber a onda */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 80px 0 150px 0;
    /* Aumentei o padding embaixo para a onda não cobrir o texto */
    text-align: center;
    position: relative;
    /* IMPORTANTE: Para a onda ficar presa aqui dentro */
    overflow: hidden;
    /* Garante que nada vaze */
}

/* Nova Onda Perfeita */
.custom-shape-divider-bottom-168990 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    /* Gira para conectar com o rodapé */
}

.custom-shape-divider-bottom-168990 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 110px;
    /* Altura da onda */
}

.custom-shape-divider-bottom-168990 .shape-fill {
    fill: #002244;
    /* COR EXATA DO FOOTER */
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.small-text {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

footer {
    background-color: #002244;
    color: #b3b3b3;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-yellow);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

.footer-col i {
    margin-right: 10px;
    color: var(--accent-yellow);
    width: 20px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
}

.social-icons a:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ================= MEDIA QUERIES (MOBILE) ================= */
@media (max-width: 991px) {

    /* Esconde elementos de Desktop */
    .desktop-only {
        display: none;
    }

    .navbar {
        display: none;
    }

    .desktop-hero {
        display: none;
    }

    /* Mostra elementos Mobile */
    .mobile-menu-icon {
        display: block;
    }

    .mobile-promo-hero {
        display: block;
    }

    .mobile-only {
        display: block;
    }

    .mobile-only-instruction {
        display: block;
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    /* Ajustes de Layout */
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-btns {
        justify-content: center;
    }

    /* Grid vira coluna */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .market-grid,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .structure-feature,
    .structure-feature.reverse,
    .location-box {
        flex-direction: column;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .market-img {
        order: -1;
        margin-bottom: 20px;
    }

    .split-image {
        order: -1;
        margin-bottom: 30px;
    }

    .location-map img {
        height: 250px;
        min-height: auto;
    }

    .floating-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        width: 90%;
        justify-content: center;
    }

    /* EFEITO SCROLL SNAP NOS CURSOS (Estilo Netflix) */
    .courses-grid {
        display: flex;
        /* Vira carrossel no mobile */
        overflow-x: auto;
        /* Permite rolar */
        scroll-snap-type: x mandatory;
        gap: 20px;

        /* ESCONDE A BARRA DE ROLAGEM (Mágica) */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .courses-grid::-webkit-scrollbar {
        display: none;
    }


    .course-card {
        scroll-snap-align: start;
        min-width: 280px;
        /* Largura fixa no mobile */
        flex: 0 0 85%;
        /* Ocupa 85% da tela */
    }

    .course-info {
        padding: 25px;
        flex: 1;
        /* Faz o corpo crescer para preencher o espaço */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* Joga o botão para o fundo */
    }

    /* Ajuste de Fontes */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    /* CTA Mobile */
    .cta-buttons {
        flex-direction: column;
    }

    .salary-comparison {
        flex-direction: column;
    }

    .mobile-link.mobile-event-highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 8px 0;
    display: block;
}

    .mobile-link.mobile-event-highlight:hover {
    background: var(--accent-yellow);
    color: var(--primary-blue) !important;
}

    .vs-circle {
        margin: -15px 0;
        z-index: 2;
    }

    .highlight-box {
        transform: scale(1);
        margin-top: 10px;
    }
}

/* Menu Mobile Overlay Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    justify-content: flex-end;
}

.mobile-menu-overlay.active {
    display: flex;
}

.mobile-menu-content {
    width: 80%;
    max-width: 300px;
    background-color: var(--white);
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideIn 0.3s ease;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.close-menu {
    align-self: flex-end;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

.mobile-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    border-bottom: 1px solid var(--gray-border);
    padding-bottom: 10px;
}

.mobile-btn {
    margin-top: 10px;
    text-align: center;
    width: 100%;
}

/* Animação Fade */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}


/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Animação de Pulso para chamar atenção */
.whatsapp-float {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Classes para animação */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    /* Começa mais para baixo */
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
    /* Sobe para a posição original */
}

/* Pop-up de Saída */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    /* Começa invisível */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border-top: 8px solid var(--accent-yellow);
}

.popup-overlay.visible {
    display: flex;
    opacity: 1;
}

.popup-overlay.visible .popup-content {
    transform: scale(1);
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

.discount-box {
    background: #f0f0f0;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    border: 2px dashed var(--primary-blue);
}

.discount-box span {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}

/* Notificação Toast "Efeito Manada" */
.toast {
    position: fixed;
    bottom: 100px;
    /* Acima do botão do WhatsApp */
    left: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 999;
    max-width: 300px;
    border-left: 5px solid var(--accent-yellow);
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hidden-toast {
    transform: translateX(-150%);
    /* Esconde para a esquerda */
}

.toast-icon i {
    font-size: 24px;
    color: #25d366;
    /* Verde sucesso */
}

.toast-content {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.toast-name {
    font-weight: bold;
    color: var(--primary-blue);
}

.toast-time {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}


/* AJUSTE DE POLUIÇÃO VISUAL */
/* Esconde a notificação em telas menores que 768px (Celulares e Tablets em pé) */
@media (max-width: 768px) {
    #toast-notification {
        display: none !important;
    }
}

/* Esconde no mobile muito pequeno para não atrapalhar */
@media (max-width: 480px) {
    .toast {
        display: none;
    }
}

/* Efeito de Zoom nas Imagens dos Cards */
.course-image,
.structure-img,
.env-card {
    overflow: hidden;
    /* Garante que a imagem não saia da borda */
}

.course-image img,
.structure-img img,
.env-card img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Movimento suave */
}

/* Quando passar o mouse no card, a imagem cresce */
.course-card:hover .course-image img,
.structure-feature:hover .structure-img img,
.env-card:hover img {
    transform: scale(1.1);
    /* Aumenta 10% */
}


/* Destaque para Leis e Normas */
.law-badge {
    background-color: var(--primary-blue);
    /* Azul Escuro da Marca */
    color: var(--white);
    font-size: 0.75rem;
    /* Um pouco menor que o título */
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(0, 51, 102, 0.3);
    border: 1px solid var(--primary-blue);
}

.highlight-loco {
    background-color: yellow;
}

/* Estilo do Modal Lei Lucas */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.modal-header i {
    font-size: 2rem;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.modal-body ul {
    list-style: none;
    margin-bottom: 20px;
}

.modal-body li {
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.modal-cta {
    font-weight: bold;
    color: var(--primary-blue);
    text-align: center;
    margin-top: 10px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* ================= GALERIA DE VÍDEOS (CEOZ) ================= */

/* MODAL DE VÍDEO (PLAYER) */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 11000;
    /* Acima de tudo */
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.video-modal-content {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: black;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.video-modal-content video {
    width: 100%;
    height: 100%;
}

.close-video {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-video:hover {
    color: var(--accent-yellow);
}