/* =========================================================
RESET
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: #030712;
    color: white;
    overflow-x: hidden;
}

a.course {
    text-decoration: none;
    display: block;
}

/* =========================================================
FUNDO GLOBAL
========================================================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(2,6,23,0.90), rgba(2,6,23,0.92));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(61,120,227,0.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(61,120,227,0.15), transparent 35%);
    z-index: -1;
}

/* =========================================================
SECTIONS
========================================================= */

section {
    padding: 90px 40px;
    position: relative;
}

section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 55px;
    color: white;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* =========================================================
HEADER
========================================================= */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 60px;
    background: rgba(2,6,23,0.75);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(61,120,227,0.15);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo { display: flex; align-items: center; }
.logo-img { width: 140px; }

.nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #3D78E3;
    font-size: 15px;
    position: relative;
    transition: .3s;
    border-bottom: none;
    outline: none;
}

.nav a:hover { color: white; }
.nav .active { color: #3D78E3; }

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #3D78E3;
    transition: .3s;
}

.nav a:hover::after { width: 100%; }
.nav .active::after { width: 100%; }

.header-socials p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-right: 4px;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(61,120,227,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: .3s;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    font-size: 15px;
}

.header-socials a:hover {
    transform: translateY(-3px);
    background: rgba(61,120,227,0.15);
    box-shadow: 0 0 20px rgba(61,120,227,0.45);
}

/* =========================================================
HERO
========================================================= */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 80px;
    position: relative;
    background:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url('/ChatGPT\ Image\ 18\ de\ mai.\ de\ 2026\,\ 11_01_39.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

#particulas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    max-width: 480px;
    z-index: 2;
}

.hero-pretitulo {
    color: #3D78E3;
    font-size: 12px;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 68px;
    line-height: 0.95;
    text-align: left;
    margin-bottom: 25px;
    color: white;
    font-weight: 900;
    letter-spacing: -1px;
}

.hero-content h2 span { color: #3D78E3; }

.hero-desc {
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: #3D78E3;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
    box-shadow: 0 0 25px rgba(61,120,227,0.45);
    border-bottom: none;
}

.hero .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(61,120,227,0.7);
    background: #2a5ec4;
}

.hero-cards {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 14px;
    align-items: center;
}

.hero-card-item {
    background: rgba(10,20,50,0.6);
    border: 1px solid rgba(61,120,227,0.35);
    backdrop-filter: blur(10px);
    padding: 24px 16px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    width: 140px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    transition: all 0.3s ease;
}

.hero-card-item:nth-child(1) { animation-delay: 0.2s; }
.hero-card-item:nth-child(2) { animation-delay: 0.4s; }
.hero-card-item:nth-child(3) { animation-delay: 0.6s; }
.hero-card-item:nth-child(4) { animation-delay: 0.8s; }

.hero-card-item:hover {
    background: rgba(61,120,227,0.2);
    border-color: #3D78E3;
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(61,120,227,0.3);
}

.hero-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(61,120,227,0.6);
    background: rgba(61,120,227,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #3D78E3;
    box-shadow: 0 0 15px rgba(61,120,227,0.25);
    transition: all 0.3s ease;
}

.hero-card-item:hover .hero-card-icon {
    box-shadow: 0 0 30px rgba(61,120,227,0.6);
    background: rgba(61,120,227,0.25);
}

.hero-card-item h4 {
    color: white;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.hero-card-item p {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    line-height: 1.5;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
CARDS GERAIS
========================================================= */

.cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 24px;
}

.card {
    background: rgba(10,20,50,0.45);
    border: 1px solid rgba(61,120,227,0.28);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    transition: .35s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    width: 240px;
    min-height: 220px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    border-color: #3D78E3;
    background: rgba(61,120,227,0.12);
    box-shadow: 0 0 35px rgba(61,120,227,0.3), 0 10px 30px rgba(0,0,0,0.3);
}

.card i {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(61,120,227,0.55);
    background: rgba(61,120,227,0.08);
    color: #3D78E3;
    font-size: 30px;
    margin-bottom: 18px;
    transition: .3s;
}

.card:hover i {
    background: rgba(61,120,227,0.22);
    box-shadow: 0 0 30px rgba(61,120,227,0.5);
}

.card h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 17px;
}

.card p {
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    font-size: 13px;
}

/* =========================================================
SOBRE
========================================================= */

.sobre-grid {
    max-width: 1100px;
    margin: 0 auto;
}

.sobre-texto > p {
    text-align: center;
    color: rgba(255,255,255,0.72);
    line-height: 2;
    margin-bottom: 50px;
    font-size: 16px;
}

.sobre-missao-visao {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.sobre-card {
    width: 300px;
    padding: 30px 24px;
    background: rgba(10,20,50,0.45);
    border: 1px solid rgba(61,120,227,0.28);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    transition: .35s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.sobre-card:hover {
    transform: translateY(-8px);
    border-color: #3D78E3;
    background: rgba(61,120,227,0.12);
    box-shadow: 0 0 35px rgba(61,120,227,0.3);
}

.sobre-card i {
    font-size: 34px;
    color: #3D78E3;
    margin-bottom: 14px;
    display: block;
}

.sobre-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: white;
    font-weight: 700;
}

.sobre-card p {
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    font-size: 13px;
}

/* =========================================================
FORMAÇÕES
========================================================= */

#formacoes {
    position: relative;
    overflow: visible;
    padding-bottom: 160px;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.carousel-container {
    width: 982px; /* 3 × 310 + 2 × 24 */
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.carousel {
    display: flex;
    gap: 24px;
    transition: transform .5s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.course {
    position: relative;
    flex: 0 0 310px;
    height: 260px;
    border-radius: 18px;
    overflow: visible;
    cursor: pointer;
    transition: .35s;
    border: 1px solid rgba(61,120,227,0.25);
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    z-index: 2;
}

.course:hover {
    transform: translateY(-8px);
    border-color: #3D78E3;
    box-shadow: 0 0 30px rgba(61,120,227,0.3);
    z-index: 50;
}

.course-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    overflow: hidden;
}

.course-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,6,23,0.95), rgba(2,6,23,0.1));
    border-radius: 18px;
}

.course-name {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 18px 20px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    z-index: 2;
    line-height: 1.3;
}

.course-popup { display: none; }

/* =========================================================
POPUP FLUTUANTE
========================================================= */

#floating-popup {
    position: absolute;
    width: 300px;
    background: rgba(10,20,50,0.96);
    border: 1px solid rgba(61,120,227,0.35);
    backdrop-filter: blur(18px);
    color: white;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
    box-shadow: 0 0 30px rgba(61,120,227,0.25), 0 10px 25px rgba(0,0,0,0.4);
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}

#floating-popup.visible {
    opacity: 1;
    transform: translateY(0);
}

#floating-popup::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-bottom-color: rgba(10,20,50,0.96);
}

/* =========================================================
SETAS
========================================================= */

.prev, .next {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(10,20,50,0.75);
    border: 1px solid rgba(61,120,227,0.35);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    z-index: 100;
}

.prev:hover, .next:hover {
    background: #3D78E3;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(61,120,227,0.5);
}

/* =========================================================
FAQ
========================================================= */

.faq {
    text-align: center;
    padding: 90px 40px;
}

.faq-titulo {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 35px;
    color: white;
    letter-spacing: -0.5px;
}

.faq-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.faq-lado-esquerdo { flex: 1; }

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-foto-lado {
    width: 420px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

.faq-foto-img {
    width: 100%;
    max-width: 420px;
    object-fit: cover;
    object-position: top;
    border-radius: 18px;
    mix-blend-mode: lighten;
    margin-top: -14px;
}

.faq-item {
    overflow: hidden;
    background: rgba(10,20,50,0.45);
    border: 1px solid rgba(61,120,227,0.28);
    backdrop-filter: blur(16px);
    border-radius: 14px;
    transition: .3s;
}

.faq-item:hover {
    border-color: #3D78E3;
    background: rgba(61,120,227,0.1);
}

.faq-question {
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 10px;
}

.faq-question i {
    font-size: 20px;
    transition: .3s;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
    padding: 0 22px;
}

.faq-answer p {
    padding-bottom: 18px;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    font-size: 14px;
}

.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* =========================================================
FOOTER
========================================================= */

.footer {
    background: rgba(2,6,23,0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(61,120,227,0.12);
    padding: 60px 20px 10px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
    gap: 40px;
}

.footer-col {
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h3 { color: white; font-size: 15px; }

.footer-col:first-child {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer-logo {
    width: 180px;
    margin-top: -40px;
}

.footer-col a {
    color: rgba(255,255,255,0.844);
    text-decoration: none;
    font-size: 13px;
}

.footer-col a:hover { color: #3D78E3; }

.footer-col p {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.845);
}

.socials { display: flex; gap: 14px; }

.socials a {
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 50%;
    color: white;
    border: 1px solid rgba(61,120,227,0.3);
    transition: .3s;
}

.socials a:hover {
    background: rgba(61,120,227,0.2);
    border-color: #3D78E3;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 15px;
    color: #666;
    font-size: 13px;
}

/* =========================================================
WHATSAPP
========================================================= */

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,20,50,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(61,120,227,0.3);
    box-shadow: 0 0 25px rgba(61,120,227,0.2);
    transition: .3s;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 0 35px rgba(61,120,227,0.45);
}

.whatsapp-float img { width: 38px; }

/* =========================================================
RESPONSIVO
========================================================= */

@media(max-width: 768px) {
    #formacoes {
    padding-left: 0;
    padding-right: 0;
}

    section { padding: 70px 20px; }
    section h2 { font-size: 28px; }

    .header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        min-height: auto;
    }

    .hero-content h2 {
        text-align: center;
        font-size: 48px;
    }

    .hero-cards {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-card-item { width: 130px; }

    .sobre-missao-visao {
        flex-direction: column;
        align-items: center;
    }

    .sobre-card { width: 100%; max-width: 320px; }
    .card { width: 100%; max-width: 320px; }

    /* ── carousel mobile ── */
    .carousel-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0;
        overflow: hidden;
    }

    .carousel-container {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    flex-shrink: 0;
}

    .carousel {
        width: 100%;
        gap: 0; /* sem gap no mobile — step = largura exata do container */
    }

    .course {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
}

    .prev, .next {
        display: flex;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    /* FAQ */
    .faq-layout { flex-direction: column; }

    .faq-foto-lado {
        width: 100%;
    }

    .faq-foto-img {
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 25px;
    }

    .footer-col { width: 100%; }
    .footer-logo { margin-top: 0; }

    /* WhatsApp */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        right: 15px;
        bottom: 15px;
    }

    .whatsapp-float img { width: 32px; }
}

/* =========================================================
SELETOR DE IDIOMA (NOVO)
========================================================= */
#idiomaSelect {
    background: rgba(10, 20, 50, 0.6);
    border: 1px solid rgba(61, 120, 227, 0.35);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none; /* Remove a seta padrão do sistema em alguns navegadores */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='white'><path d='M12 16L6 10H18L12 16Z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 28px; /* Espaço para a setinha customizada branca */
}

#idiomaSelect:hover {
    background: rgba(61, 120, 227, 0.2);
    border-color: #3D78E3;
    box-shadow: 0 0 15px rgba(61, 120, 227, 0.4);
}

/* Garante que as opções dentro do select fiquem legíveis em fundo escuro */
#idiomaSelect option {
    background: #040c2f;
    color: white;
}
