/* IMPORTANDO FONTE MODERNA */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0052a3;       /* Azul Expert */
    --primary-hover: #0052a3;
    --dark: #0a0e14;          /* Fundo Hero/Footer */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --color-gray-900: oklch(23.709% 0.04318 264.051);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */

.navbar {
    height: 80px;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    background: transparent;
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, top 0.3s ease;
}

/* Quando sair da foto, o JS aplica esta classe */
.navbar.scrolled {
    position: fixed; /* Agora ele fica preso na tela */
    
    background: var(--color-gray-900); /* Fica preto */
    top: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: slideDown 0.4s ease; /* Efeito de descida suave ao aparecer */
}

/* Animação para ele não aparecer "seco" ao ficar fixo */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 45px;      /* tamanho padrão */
    width: auto;
    display: block;
}

.nav-links{
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    margin-left: 25px;
    font-size: 0.95rem;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-links a:hover { color: var(--primary); }

@media (max-width: 728px) {
    .navbar{
        height: 70px;
    }

    .logo{
        font-size: 1.1rem;
    }

    .nav-links{
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    .btn .btn-secondary .portal {
        border: 1px solid rgba(255,255,255,0.3);
        border-radius: 4px;
        padding: 6px 10px !important;
    }
}

@media (max-width: 394px) {
    .navbar .container {
        padding: 0 10px; /* Reduz margens laterais */
    }

    .logo {
        font-size: 0.95rem; /* Logo ainda menor */
    }

    .nav-links a {
        font-size: 0.75rem; /* Fonte mínima para não empilhar */
        margin-left: 5px;
    }
}

/* HERO SECTION */
.hero {
    padding: 120px 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&q=80') center/cover;
    color: var(--white);
}

.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; }
.hero .headline { color: var(--white); opacity: 0.9; font-size: 1.2rem; margin-bottom: 10px; }
.hero .subheadline { color: var(--white); opacity: 0.9; font-size: 1.4rem; margin-bottom: 40px; }
/*.hero .subheadline { max-width: 600px; color: #cbd5e1; margin-bottom: 40px; } 

/* BOTÕES */
.cta-group { display: flex; gap: 15px; flex-wrap: wrap; }

.btn {
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }

.btn-secondary { border: 2px solid var(--white); color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--dark); }
.btn-secondary .curso { border: 1px solid var(--white); color: var(--white); }

/* SEÇÕES GERAIS */
.section-padding { padding: 90px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 50px; }
.section-title .end{ margin-bottom: 10px; }
.btn-primary .end {
    margin-top: 20px;
}

/* QUEM SOMOS */
.about p { max-width: 800px; margin: 16px auto; color: var(--text-muted); font-size: 1.2rem; }

/* CURSOS GRID */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.course-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.course-card:hover { transform: translateY(-8px); border-color: var(--primary); }
.course-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.course-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }
.course-card .details { color: var(--primary); font-weight: 700; text-decoration: none; }

/* DIFERENCIAIS */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feature-item { padding: 20px; }
.feature-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; display: block; }
.feature-item h4 { margin-bottom: 10px; }

/* PORTAL DO ALUNO */
.portal-container {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 35px 0;
}

.portal-item {
    background: var(--bg-light);
    padding: 18px;
    border-radius: 10px;
    font-weight: 600;
    text-align: left;
}

.fas {
    color:#0052a3
}

/* FOOTER */
.footer { background: var(--color-gray-900); color: var(--white); padding: 70px 0 30px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 { margin-bottom: 20px; color: var(--primary); }
.footer-col p, .footer-col a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 10px; }
.copyright { border-top: 1px solid #1e293b; padding-top: 30px; text-align: center; opacity: 0.5; font-size: 0.8rem; }

/* RESPONSIVO */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .portal-grid { grid-template-columns: 1fr; }
    .footer-grid { text-align: center; }
}

/* SEÇÃO FINAL CTA - ESTILO FIGMA */
.final-cta {
    background-color: var(--white); /* Fundo da seção em si */
}

.cta-card {
    background: linear-gradient(135deg, #0a0e14 0%, #16202a 100%); /* Degradê escuro do print */
    padding: 60px 40px;
    border-radius: 24px; /* Bordas bem arredondadas como no Figma */
    text-align: center;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

/* Detalhe visual (opcional): cria aquele efeito de formas geométricas no fundo */
.cta-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    transform: rotate(45deg);
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-card p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Botão específico "Outline" do print */
.btn-outline {
    background: transparent;
    border: 2px solid #475569;
    color: var(--white);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

/* Responsividade para celular */
@media (max-width: 768px) {
    .cta-card {
        padding: 40px 20px;
    }
    .cta-card h2 {
        font-size: 1.8rem;
    }
    .cta-buttons {
        flex-direction: column;
    }
}

/* CONTAINER DOS BOTÕES */
.social-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column; /* Empilha um sobre o outro */
    gap: 15px; /* Espaço entre eles */
    z-index: 10000;
}

/* ESTILO BASE DO BOTÃO */
.float-btn {
    width: 60px;
    height: 60px;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

/* CORES ESPECÍFICAS */
.whatsapp {
    background-color: #25d366;
}

.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* HOVER EFFECTS */
.float-btn:hover {
    transform: scale(1.1);
}

/* TOOLTIP (BALÃOZINHO) */
.float-btn .tooltip {
    position: absolute;
    right: 75px;
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.float-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* RESPONSIVIDADE CELULAR */
@media (max-width: 768px) {
    .social-float {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    .float-btn .tooltip {
        display: none; /* Esconde o texto no mobile para não poluir */
    }
}

/* No computador, o botão "Ler mais" não aparece */
.btn-read-more {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: underline;
}

/* Ajustes para Celular */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
        
    .more-text {
        display: none; /* Esconde o texto extra */
    }
    
    .more-text.show {
        display: inline; /* Mostra quando clicado */
    }

    .btn-read-more {
        display: inline-block; /* Mostra o botão apenas no celular */
    }
}

.course-card-open {
    display: flex;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #eee;
}

.course-image {
    flex: 1;
    max-width: 350px; /* Largura fixa para manter proporção do criativo */
    position: relative;
    cursor: pointer;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-info {
    flex: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.details-mini {
    margin: 15px 0 25px;
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

.details-mini i { color: var(--primary); }

/* MODAL / LIGHTBOX */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center; align-items: center;
}

.modal-content {
    max-height: 90vh;
    max-width: 90vw;
    border: 3px solid white;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px; right: 40px;
    color: white; font-size: 50px; cursor: pointer;
}

@media (max-width: 768px) {
    .course-card-open { flex-direction: column; }
    .course-image { max-width: 100%; height: 300px; }
}