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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #1f2937;
    line-height: 1.6;
}

a {
    transition: 0.25s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* TOPO */

.topo {
    background: #0f2d52;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.topo-container {
    max-width: 1300px;
    margin: auto;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area img {
    height: 75px;
    border-radius: 18px;
}

.titulo-area span {
    font-size: 13px;
    opacity: 0.85;
}

.titulo-area h1 {
    font-size: 28px;
    margin-top: 4px;
    line-height: 1.2;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 0;
}

.menu a:hover {
    color: #9dc8ff;
}

/* HERO */

.hero {
    background: linear-gradient(135deg, #0f2d52 0%, #164675 55%, #1f5f99 100%);
    color: white;
    padding: 75px 25px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 420px;
    height: 420px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.hero::before {
    content: "";
    position: absolute;
    left: -90px;
    top: -90px;
    width: 260px;
    height: 260px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.hero-conteudo {
    max-width: 900px;
    margin: auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-home {
    padding: 85px 25px 80px;
}

.etiqueta {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: 46px;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 760px;
    margin: 0 auto;
}

/* BOTÕES */

.hero-botoes {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: 0;
}

.primario {
    background: #ffffff;
    color: #0f2d52;
}

.primario:hover {
    background: #dce9ff;
}

.secundario {
    border: 2px solid white;
    color: white;
}

.secundario:hover {
    background: rgba(255,255,255,0.1);
}

.btn-azul {
    display: inline-block;
    background: #0f2d52;
    color: white !important;
    margin-top: 15px;
}

.btn-azul:hover {
    background: #164675;
}

/* CARDS HOME */

.cards {
    max-width: 1300px;
    margin: -28px auto 45px;
    padding: 0 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 5;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.09);
    transition: 0.25s ease;
    border-top: 5px solid #164675;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card h2 {
    margin-bottom: 15px;
    color: #0f2d52;
    font-size: 24px;
}

.card p {
    margin-bottom: 20px;
    color: #4b5563;
}

.card a {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    color: #0056b3;
}

.card a:hover {
    color: #0f2d52;
}

/* SEÇÕES HOME */

.secao-dupla {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.bloco {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.bloco h2 {
    margin-bottom: 18px;
    color: #0f2d52;
    font-size: 26px;
}

.lista-eventos {
    list-style: none;
}

.lista-eventos li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.lista-eventos li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lista-eventos strong {
    display: block;
    color: #1f2937;
}

.lista-eventos span {
    display: block;
    margin-top: 5px;
    color: #555;
}

.link-destaque {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    font-weight: bold;
    color: #0056b3;
}

.link-mini {
    display: inline-block;
    margin-top: 8px;
    color: #0056b3;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.link-destaque:hover,
.link-mini:hover {
    color: #0f2d52;
}

/* MINIATURAS DE NOTÍCIAS NA HOME */

.noticia-mini-imagem {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #e5e7eb;
}

.noticia-mini-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SOBRE HOME */

.sobre-home {
    max-width: 1000px;
    margin: 60px auto;
    padding: 45px 30px;
    text-align: center;
    background: white;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sobre-home .etiqueta {
    background: #e8f0fb;
    color: #0f2d52;
}

.sobre-home h2 {
    font-size: 34px;
    margin-bottom: 20px;
    color: #0f2d52;
    line-height: 1.25;
}

.sobre-home p {
    font-size: 18px;
    color: #4b5563;
    max-width: 780px;
    margin: auto;
}

/* PÁGINAS INTERNAS */

.pagina-interna {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 25px;
}

.pagina-cabecalho {
    background: linear-gradient(135deg, #0f2d52 0%, #164675 100%);
    color: white;
    border-radius: 18px;
    padding: 45px 35px;
    text-align: center;
    margin-bottom: 35px;
}

.etiqueta-interna {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 15px;
}

.pagina-cabecalho h1 {
    font-size: 40px;
    margin-bottom: 12px;
}

.pagina-cabecalho p {
    font-size: 18px;
    opacity: 0.95;
}

.conteudo-interno {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.texto-institucional {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.texto-institucional p {
    font-size: 18px;
    margin-bottom: 18px;
    text-align: justify;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.mvv-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 5px solid #164675;
}

.mvv-card h2 {
    color: #0f2d52;
    margin-bottom: 15px;
}

.mvv-card ul {
    padding-left: 20px;
}

.mvv-card li {
    margin-bottom: 8px;
}

/* CONTATO */

.contato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.contato-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contato-card h2 {
    color: #0f2d52;
    margin-bottom: 25px;
}

.contato-item {
    margin-bottom: 18px;
    font-size: 17px;
}

.contato-item a {
    color: #0056b3;
    text-decoration: none;
}

.destaque-contato {
    background: linear-gradient(135deg, #0f2d52 0%, #164675 100%);
    color: white;
}

.destaque-contato h2 {
    color: white;
}

.destaque-contato hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 20px 0;
}

.btn-site {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background: white;
    color: #0f2d52;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn-site:hover {
    background: #dce9ff;
}

.noticias-opcoes {
    margin-top: 30px;
    padding: 0;
}

/* NOTÍCIAS */

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.noticia-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.25s ease;
}

.noticia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.noticia-imagem {
    margin: -28px -28px 18px -28px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #e5e7eb;
}

.noticia-imagem img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: 0.3s ease;
}

.noticia-card:hover .noticia-imagem img {
    transform: scale(1.03);
}

.noticia-data {
    display: inline-block;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.noticia-card h2 {
    color: #0f2d52;
    font-size: 21px;
    margin-bottom: 14px;
    line-height: 1.3;
}

.noticia-card p {
    margin-bottom: 18px;
}

.noticia-card a {
    color: #0056b3;
    font-weight: bold;
    text-decoration: none;
}

.noticia-card a:hover {
    color: #0f2d52;
}

/* EVENTOS */

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.evento-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: 0.25s ease;
}

.evento-card:hover {
    transform: translateY(-5px);
}

.evento-imagem img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.evento-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #0f2d52 0%, #164675 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

.evento-conteudo {
    padding: 28px;
}

.evento-status {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 16px;
}

.evento-status.aberto {
    background: #dff6dd;
    color: #207227;
}

.evento-status.encerrado {
    background: #ececec;
    color: #666;
}

.evento-conteudo h2 {
    color: #0f2d52;
    margin-bottom: 15px;
    font-size: 28px;
    line-height: 1.25;
}

.evento-data,
.evento-local {
    font-weight: bold;
    margin-bottom: 10px;
    color: #164675;
}

.evento-conteudo p {
    margin-top: 18px;
    line-height: 1.7;
}

/* ESTRUTURA DA ESCOLA */

.estrutura-secao {
    margin-bottom: 45px;
}

.estrutura-secao > h2 {
    color: #0f2d52;
    font-size: 30px;
    margin-bottom: 25px;
}

.estrutura-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.estrutura-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.destaque-atual {
    border-top: 5px solid #164675;
}

.estrutura-foto {
    margin-bottom: 20px;
}

.estrutura-foto img {
    width: 115px;
    height: 115px;
    object-fit: cover;
    border-radius: 50%;
    margin: auto;
}

.estrutura-placeholder {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f2d52 0%, #164675 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 42px;
    font-weight: bold;
}

.estrutura-cargo {
    display: inline-block;
    background: #e8f0fb;
    color: #0f2d52;
    padding: 6px 13px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
}

.estrutura-info h3,
.historico-item h3 {
    color: #0f2d52;
    font-size: 23px;
    margin-bottom: 8px;
}

.estrutura-periodo {
    color: #555;
    font-weight: bold;
    margin-bottom: 12px;
}

.historico-lista {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.historico-item {
    background: white;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 5px solid #164675;
}

/* ADMIN */

.cards-admin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.admin-card {
    background: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 5px solid #164675;
}

.admin-card h2 {
    color: #0f2d52;
    margin-bottom: 18px;
}

.admin-card p {
    margin-bottom: 20px;
}

.admin-card a {
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
}

.admin-card-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* TABELAS ADMINISTRATIVAS */

.admin-acoes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.btn-admin {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.primario-admin {
    background: #0f2d52;
    color: white;
}

.primario-admin:hover {
    background: #164675;
}

.secundario-admin {
    background: #e8f0fb;
    color: #0f2d52;
}

.secundario-admin:hover {
    background: #d8e7fb;
}

.tabela-admin-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow-x: auto;
}

.tabela-admin {
    width: 100%;
    border-collapse: collapse;
}

.tabela-admin th,
.tabela-admin td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.tabela-admin th {
    color: #0f2d52;
    font-size: 14px;
    text-transform: uppercase;
}

.tabela-admin small {
    color: #666;
}

.badge-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
}

.badge-publicado {
    background: #dff6dd;
    color: #207227;
}

.badge-rascunho {
    background: #ececec;
    color: #666;
}

.acoes-tabela a {
    display: inline-block;
    margin-right: 10px;
    color: #0056b3;
    font-weight: bold;
    text-decoration: none;
}

.acoes-tabela .link-excluir {
    color: #b42318;
}

/* FORMULÁRIOS ADMIN */

.form-admin-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-admin {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-admin label {
    font-weight: bold;
    color: #0f2d52;
}

.form-admin small {
    color: #666;
}

.form-admin input,
.form-admin textarea,
.form-admin select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.form-admin input:focus,
.form-admin textarea:focus,
.form-admin select:focus {
    outline: 2px solid #9dc8ff;
    border-color: #164675;
}

.form-admin textarea {
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.form-acoes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.form-admin button {
    border: none;
    cursor: pointer;
    font-size: 15px;
}

/* IMAGEM ATUAL NO FORMULÁRIO */

.imagem-atual-box {
    margin: 10px 0;
}

.imagem-atual-box label {
    display: block;
    margin-bottom: 10px;
}

.imagem-atual-box img {
    max-width: 360px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* RODAPÉ */

.rodape {
    background: #0f2d52;
    color: white;
    margin-top: 60px;
}

.rodape-container {
    max-width: 1300px;
    margin: auto;
    padding: 35px 25px;
    text-align: center;
}

.rodape-logos {
    margin-bottom: 20px;
}

.rodape-logos img {
    height: 70px;
    margin: 10px auto;
}

.rodape-texto p {
    margin: 8px 0;
}

/* RESPONSIVO */

@media (max-width: 900px) {
    .topo-container {
        flex-direction: column;
        text-align: center;
    }

    .logo-area {
        flex-direction: column;
    }

    .menu ul {
        justify-content: center;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .cards {
        margin-top: 30px;
    }

    .pagina-cabecalho h1 {
        font-size: 32px;
    }

    .sobre-home h2 {
        font-size: 28px;
    }

    .noticia-imagem img {
        height: 190px;
    }
}

@media (max-width: 600px) {
    .titulo-area h1 {
        font-size: 24px;
    }

    .logo-area img {
        height: 65px;
    }

    .menu ul {
        gap: 12px;
    }

    .menu a {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p,
    .pagina-cabecalho p,
    .sobre-home p,
    .texto-institucional p {
        font-size: 16px;
    }

    .cards,
    .secao-dupla,
    .pagina-interna {
        padding: 0 16px;
    }

    .secao-dupla {
        grid-template-columns: 1fr;
    }

    .card,
    .bloco,
    .sobre-home,
    .texto-institucional,
    .contato-card,
    .form-admin-container,
    .tabela-admin-container {
        padding: 24px;
    }

    .eventos-grid,
    .noticias-grid,
    .contato-grid {
        grid-template-columns: 1fr;
    }

    .eventos-grid {
        gap: 24px;
    }

    .evento-conteudo h2 {
        font-size: 24px;
    }

    .noticia-card h2 {
        font-size: 20px;
    }

    .noticia-imagem {
        margin: -24px -24px 18px -24px;
    }

    .noticia-imagem img {
        height: 180px;
    }
}
