* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #eef2f5;
    color: #111;
}

a {
    color: #005fcc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1180px;
    margin: auto;
    padding: 0 16px;
}

/* PÁGINA DE CADASTRO */

.cadastro-page{
    min-height: 700px;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:40px 20px;
}

.cadastro-card{
    width:100%;
    max-width:850px;
    background:#fff;
    border-radius:12px;
    padding:35px 40px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.cadastro-card h1{
    margin-top:0;
    color:#062b4f;
}

.cadastro-card p{
    color:#666;
    line-height:1.6;
}

/* TÍTULOS DAS SEÇÕES */

.cadastro-card h2{
    margin-top:35px;
    padding-bottom:8px;
    border-bottom:1px solid #ddd;
    font-size:22px;
}

/* GRID DOS CAMPOS */

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.form-grid .campo-full{
    grid-column:1 / -1;
}

select {
    width: 100%;
    padding: 12px;
    margin: 7px 0 14px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
}

select:focus {
    outline: none;
    border-color: #005fcc;
    box-shadow: 0 0 0 2px rgba(0,95,204,.12);
}

/* RESPONSIVO */

@media (max-width:700px){

    .cadastro-card{
        padding:25px;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

}

.cadastro-login {
    margin-top: 20px;
    text-align: center;
}

.erro {
    color: #c1121f;
    font-weight: bold;
}

/* TOPO */

.topo {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-titulo {
    color: #07294d;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-titulo strong {
    color: #ff6b00;
    font-weight: 700;
}

nav,
.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav a,
.nav-menu a {
    color: #07294d;
    font-size: 17px;
    font-weight: 600;
}

nav a:hover,
.nav-menu a:hover {
    color: #ff6b00;
    text-decoration: none;
}

/* LAYOUT */

.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    margin-top: 24px;
}

.card,
.hero,
.curso-card {
    background: #fff;
    border-radius: 8px;
}

.card {
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,.04);
}

.card h2 {
    margin-top: 0;
    color: #062b4f;
    font-size: 20px;
}


.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
}

.form-grid .campo-full {
    grid-column: 1 / -1;
}

.campo label {
    display: block;
    margin-bottom: 6px;
}

.campo input,
.campo select {
    margin-top: 0;
}

.erro-box {
    background: #fff3cd;
    border: 1px solid #ffe2a8;
    color: #6b4700;
    padding: 14px 16px;
    border-radius: 8px;
    margin: 18px 0 26px;
    line-height: 1.6;
}

.erro-box a {
    font-weight: bold;
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* FORMULÁRIOS */

label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

input,
select  {
    width: 100%;
    padding: 12px;
    margin: 7px 0 14px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 15px;
}

input:focus {
    outline: none;
    border-color: #005fcc;
    box-shadow: 0 0 0 2px rgba(0,95,204,.12);
}

button,
.btn {
    background: #ffc400;
    color: #111;
    border: 0;
    border-radius: 6px;
    padding: 13px 22px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

button:hover,
.btn:hover {
    background: #ffb300;
    text-decoration: none;
}

/* CATEGORIAS */

.categorias {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categorias li {
    border-bottom: 1px solid #ddd;
}

.categorias li:last-child {
    border-bottom: 0;
}

.categorias a {
    display: block;
    padding: 10px 0;
    color: #062b4f;
}

.categorias a:hover {
    color: #ff6b00;
    text-decoration: none;
}

/* HERO */

.hero {
    padding: 26px;
    margin-bottom: 22px;
    box-shadow: 0 3px 10px rgba(0,0,0,.04);
}

.busca {
    display: flex;
    gap: 14px;
}

.busca input {
    margin: 0;
    flex: 1;
}

.busca button {
    min-width: 130px;
}

/* TEXTOS */

h1 {
    color: #062b4f;
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 14px;
}

h2 {
    color: #062b4f;
}

.intro {
    line-height: 1.7;
    font-size: 17px;
}

/* CURSOS */

.grade-cursos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.curso-card {
    overflow: hidden;
    border-bottom: 4px solid #ff6b00;
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.curso-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

.curso-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: #ddd;
}

.curso-info {
    padding: 18px;
}

.curso-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.25;
}

.curso-info h3 a {
    color: #062b4f;
}

.curso-info h3 a:hover {
    color: #ff6b00;
    text-decoration: none;
}

.curso-info p {
    line-height: 1.5;
    color: #444;
    min-height: 68px;
}

.curso-info .btn {
    width: 100%;
    margin-top: 8px;
}

/* CONTEÚDO SEO */

.conteudo-seo {
    margin-top: 38px;
    background: #fff;
    border-radius: 8px;
    padding: 26px;
    line-height: 1.7;
}

/* RODAPÉ */

.rodape {
    margin-top: 40px;
    background: #062b4f;
    color: #fff;
    padding: 25px 0;
}

.rodape p {
    margin: 0;
}

/* RESPONSIVO */

@media (max-width: 1000px) {
    .grade-cursos {
        grid-template-columns: repeat(2, 1fr);
    }

    nav,
    .nav-menu {
        gap: 14px;
        flex-wrap: wrap;
    }

    nav a,
    .nav-menu a {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav,
    .nav-menu {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 12px;
    }

    .logo-titulo {
        font-size: 24px;
    }

    .grade-cursos {
        grid-template-columns: 1fr;
    }

    .busca {
        flex-direction: column;
    }

    .busca button {
        width: 100%;
    }

    h1 {
        font-size: 27px;
    }
}

.login-aluno-card {
    border-top: 4px solid #ff6b00;
}

.login-aluno-card h2 {
    margin-bottom: 10px;
}

.login-aluno-card p {
    color: #444;
    line-height: 1.5;
}

.login-aluno-card input {
    font-size: 14px;
    padding: 11px;
}

.btn-login-aluno {
    width: 100%;
    margin-top: 4px;
}

.login-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 14px;
}

.login-links a {
    color: #005fcc;
    font-weight: 600;
}

.link-sair-aluno {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: #c1121f;
    font-weight: 700;
}
.cadastro-login-box {
    background: #fff;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    padding: 22px;
    margin-top: 22px;
}

.cadastro-login-box h2 {
    margin-top: 0;
}

.cadastro-login-box .btn {
    width: 100%;
}
.sucesso-box {
    background: #e8f8ec;
    border: 1px solid #4caf50;
    color: #1b5e20;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.sucesso-box h2 {
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 15px;
}

.sucesso-box p {
    margin: 10px 0;
    font-size: 16px;
}
.senha-temporaria-box {
    text-align: center;
}

.senha-temporaria {
    display: inline-block;
    background: #062b4f;
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 10px;
    padding: 18px 32px;
    border-radius: 10px;
    margin: 18px 0;
}

.banner-curso-wrap{
    width:100%;
    height:320px;
    background-image:url('../images/banner-fundo-curso.webp');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    border-radius:12px;
    overflow:hidden;

    display:flex;
    justify-content:center;
    align-items:stretch;
}

.curso-banner{
    height:100%;
    width:auto;
    max-width:100%;
    display:block;
    border-radius:0;
}

.paginacao {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.paginacao a {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;

    color: #333;
    font-weight: 600;
    text-decoration: none;

    transition: .2s;
}

.paginacao a.ativa {
    background: #062b4f;
    color: #fff !important;
    border-color: #062b4f;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.paginacao a:hover {
    background: #f3f5f7;
}

.validacao-card {
    line-height: 1.7;
}

.sucesso-validacao {
    border-left: 6px solid #12a454;
}

.erro-validacao {
    border-left: 6px solid #c1121f;
}


}

.contato-card textarea {
    width: 100%;
    padding: 12px;
    margin: 7px 0 14px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    resize: vertical;
}

.aviso-contato {
    border-left: 6px solid #ffc400;
}

.contato-info p {
    line-height: 1.6;
}

.mapa-contato {
    margin-top: 18px;
    border-radius: 8px;
    overflow: hidden;
}
.certificado-modelos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.certificado-modelos img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.certificado-modelos h3 {
    margin-bottom: 12px;
}

@media(max-width: 800px) {
    .certificado-modelos {
        grid-template-columns: 1fr;
    }
}

.certificado-modelos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.certificado-modelos img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.certificado-modelos h3 {
    margin-bottom: 12px;
}

@media(max-width: 800px) {
    .certificado-modelos {
        grid-template-columns: 1fr;
    }
}

.topo-aluno {
    background: #062b4f;
    padding: 7px 0;
}

.topo-aluno .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.topo-aluno a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 32px;
    padding: 7px 14px;

    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;

    border-radius: 6px;
}

.topo-aluno a.area-aluno {
    background: #0d6efd;
}

.topo-aluno a.novo-aluno {
    background: #ff6b00;
}

.topo-aluno a:hover {
    filter: brightness(.95);
}

/* ---------- RODAPÉ ---------- */

.rodape{
    margin-top:60px;
    background:#062b4f;
    color:#fff;
}

.rodape-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px;
    padding:50px 0;
}

.rodape h3{
    margin-bottom:18px;
    font-size:18px;
    color:#fff;
}

.rodape p{
    line-height:1.7;
    color:#d7dce3;
}

.rodape ul{
    margin:0;
    padding:0;
    list-style:none;
}

.rodape li{
    margin-bottom:10px;
}

.rodape a{
    color:#d7dce3;
    text-decoration:none;
    transition:.2s;
}

.rodape a:hover{
    color:#fff;
    padding-left:4px;
}

.rodape-copy{
    background:#041d35;
    padding:18px 0;
    text-align:center;
    font-size:14px;
}

.rodape-copy p{
    margin:0;
    color:#d7dce3;
}

@media (max-width:900px){

    .rodape-grid{
        grid-template-columns:1fr;
        gap:30px;
    }

}
.home-banner {
    background: linear-gradient(135deg, #062b4f, #0b5d91);
    border-radius: 12px;
    padding: 42px;
    margin-bottom: 22px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.home-banner h1 {
    color: #fff;
    font-size: 34px;
    margin: 14px 0;
}

.home-banner p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 760px;
}

.home-selo {
    display: inline-block;
    background: #ffbe00;
    color: #062b4f;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 999px;
}

.home-beneficios {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.home-beneficios span {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    padding: 9px 13px;
    border-radius: 8px;
    font-weight: 700;
}

.vantagens-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 22px 0 28px;
}

.vantagem-card {
    background: #fff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 3px 14px rgba(0,0,0,.06);
    border-top: 4px solid #ff6b00;
}

.vantagem-card span {
    font-size: 30px;
}

.vantagem-card strong {
    display: block;
    margin: 10px 0 8px;
    color: #062b4f;
    font-size: 17px;
}

.vantagem-card p {
    margin: 0;
    line-height: 1.5;
}

@media(max-width: 900px) {
    .vantagens-home {
        grid-template-columns: 1fr 1fr;
    }

    .home-banner {
        padding: 28px;
    }
}

@media(max-width: 600px) {
    .vantagens-home {
        grid-template-columns: 1fr;
    }

    .home-banner h1 {
        font-size: 26px;
    }
}

@media (max-width: 600px) {

    .vantagens-home {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 16px 0 22px;
    }

    .vantagem-card {
        padding: 14px 10px;
        text-align: center;
        border-top-width: 3px;
    }

    .vantagem-card span {
        font-size: 24px;
        display: block;
        margin-bottom: 6px;
    }

    .vantagem-card strong {
        font-size: 14px;
        margin: 0;
        line-height: 1.25;
    }

    .vantagem-card p {
        display: none;
    }
}

@media (max-width: 768px) {

    .vantagens-home {
        display: none;
    }

}

.banner-curso-wrap {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f5f7;
}

.curso-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
@media (max-width: 768px) {
    .banner-curso-wrap {
        margin-bottom: 18px;
        border-radius: 8px;
    }

    .curso-banner {
        width: 100%;
        height: auto !important;
        max-height: none;
        object-fit: contain;
    }
}