/* --- VARIAVEIS E RESET --- */
:root {
    /* Paleta Vermelha Profissional */
    --primary: #dc2626;
    --primary-dark: #991b1b;
    --primary-light: #fee2e2;
    --accent: #0f172a;

    --text-main: #1e293b;
    --text-light: #64748b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --success: #16a34a;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-card: 16px;
    --radius-btn: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* --- BARRA DE NAVEGAÇÃO --- */
.main-navbar {
    background-color: #f5f5f5;
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    max-height: 180px;
    width: auto;
    display: block;
}

.student-area-nav {
    position: relative;
}

.main-navbar .btn-student {
    color: var(--primary);
    border: 2px solid var(--primary-light);
    background: white;
}
.main-navbar .btn-student:hover {
   background: var(--primary-light);
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* --- ÁREA DO ALUNO --- */
.student-area {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 50;
}

.btn-student {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.btn-student:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Popover do Menu do Aluno */
.student-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: white;
    width: 260px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.student-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.menu-item:hover {
    background-color: #f1f5f9;
    color: var(--primary);
}

.menu-item i {
    font-size: 1.2rem;
    color: var(--text-light);
}

.menu-item:hover i {
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #7f1d1d 100%);
    color: white;
    padding: 6rem 1.5rem 8rem;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tag {
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    display: inline-block;
    backdrop-filter: blur(4px);
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}
.hero-shape {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-page);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(1.5);
}

/* --- FILTROS --- */
.filter-wrapper {
    position: sticky;
    top: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: -3rem 1rem 3rem;
}
.filter-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 15px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.5);
}
.filter-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover { color: var(--primary); background: #f1f5f9; }

.filter-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* --- GRID DE CURSOS --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    align-items: stretch;
    gap: 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}
.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeUp 0.6s forwards;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}
.card-header {
    height: 170px;
    position: relative;
    overflow: hidden;
}
.card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.course-card:hover .card-header img { transform: scale(1.1); }
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.course-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.course-subtitle {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Conteúdo completo do curso em chips */
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
}
.chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.4;
    white-space: nowrap;
}

/* Faixa salarial / impacto no card */
.card-salary,
.card-impact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: auto;
}
.card-salary {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.card-salary i { color: #15803d; font-size: 1.5rem; }
.card-salary small,
.card-impact small {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.card-salary small { color: #166534; }
.card-salary strong { color: #15803d; font-size: 1.05rem; display: block; }
.card-impact {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}
.card-impact i { color: var(--accent); font-size: 1.5rem; }
.card-impact small { color: #475569; }
.card-impact strong { color: var(--accent); font-size: 0.95rem; display: block; line-height: 1.3; }

.card-footer {
    padding: 1.5rem 1.75rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
}

.btn {
    padding: 12px;
    border-radius: var(--radius-btn);
    border: none;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

/* --- CTA VER DETALHES (Vermelho/Branco) --- */
.btn-detalhes {
    background-color: var(--primary);
    color: white;
    width: 100%;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.2);
}
.btn-detalhes:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(220, 38, 38, 0.3);
}

/* --- CTA SECUNDÁRIO QUERO ME MATRICULAR (pill compacto) --- */
.btn-matricula-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    margin: 0 auto;
    padding: 8px 18px;
    border-radius: var(--radius-btn);
    background-color: var(--success);
    color: white;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(22, 163, 74, 0.2);
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.btn-matricula-mini:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(22, 163, 74, 0.3);
}

/* --- CTA QUERO ME MATRICULAR (detalhes, versão quadrada) --- */
.btn-matricula {
    background-color: var(--success);
    color: white;
    box-shadow: 0 4px 6px rgba(22, 163, 74, 0.2);
}
.btn-matricula:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(22, 163, 74, 0.3);
}

/* --- BOTÃO FLUTUANTE DE CONTATO --- */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    text-decoration: none;
}
.floating-cta:hover {
    transform: scale(1.1) rotate(10deg);
}
.floating-cta.fab-whatsapp {
    background-color: #25D366;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}
.floating-cta.fab-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 10px 20px rgba(204, 35, 102, 0.4);
}

/* --- RODAPÉ --- */
.main-footer {
    background-color: var(--primary);
    color: white;
    padding-top: 4rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links li,
.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    line-height: 1.4;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.social-highlight-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.social-btn-classic {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    width: 100%;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.social-btn-classic i {
    font-size: 1.5rem;
}

.social-btn-classic.facebook {
    background-color: #1877F2;
}

.social-btn-classic.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn-classic:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.full-width {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 1.1rem;
    gap: 10px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- PÁGINA DETALHES --- */
.details-hero {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}
.details-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
}
.details-header-content {
    position: relative;
    z-index: 2;
    padding: 2rem 5%;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    color: white;
}
.details-badge {
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: inline-block;
}
.details-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.details-container {
    max-width: 1280px;
    margin: -40px auto 0;
    padding: 0 1.5rem 4rem;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.main-content {
    display: flex;
    flex-direction: column;
}

.main-content .content-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.content-box {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.sidebar-sticky {
    position: sticky;
    top: 20px;
}

.salary-highlight {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
}
.salary-highlight h4 { color: #166534; margin-bottom: 5px; font-size: 0.9rem; text-transform: uppercase; }
.salary-highlight strong { color: #15803d; font-size: 1.8rem; display: block; }
.salary-highlight small { color: #166534; display: block; margin-top: 5px; }

.impact-highlight {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
}
.impact-highlight h4 { color: #334155; margin-bottom: 5px; font-size: 0.9rem; text-transform: uppercase; }
.impact-highlight strong { color: var(--accent); font-size: 1.3rem; display: block; line-height: 1.3; }

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    align-content: start;
}
.module-item {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.opp-list { list-style: none; margin-top: 1rem; }
.opp-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.opp-list li i { color: var(--primary); font-size: 1.2rem; }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 500;
    opacity: 0.8;
    transition: 0.2s;
}
.back-btn:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 850px) {
    .details-container { grid-template-columns: 1fr; margin-top: 0; }
    .details-hero { height: 250px; }
}

/* --- RESPONSIVO --- */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }

    .main-navbar .navbar-content {
        padding: 0 1rem;
        gap: 10px;
    }

    .logo-container {
        max-width: 50%;
        display: flex;
        align-items: center;
    }

    .site-logo {
        height: auto;
        max-height: 85px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .student-area-nav {
        flex-shrink: 0;
    }

    .main-navbar .btn-student span {
        display: inline-block;
        font-size: 0.8rem;
    }

    .main-navbar .btn-student {
        width: auto;
        height: auto;
        padding: 8px 14px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50px;
        gap: 6px;
    }

    .hero {
        padding: 2rem 1rem 4rem;
        overflow: hidden;
        width: 100%;
    }

    .hero-shape {
        width: 150%;
        left: 0;
    }

    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem 6rem;
    }

    .filter-wrapper {
        margin: -2rem 0 2rem;
    }

    .filter-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 15px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
