/* =================================== */
/* --- ESTILOS GERAIS DO SITE --- */
/* =================================== */

html, body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Karma', Arial, sans-serif;
    font-weight: 400; /* letras mais finas */
    background-color: #0a0a2a;
    color: white;
}

/* Importa a fonte Roboto para todas as páginas */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Variável de fonte do site */
:root { --site-font: 'Roboto', Arial, sans-serif; }

/* Garante que toda a página use a mesma fonte */
body {
  font-family: var(--site-font);
}

/* Cabeçalho */
header {
    display: flex;
    align-items: center; /* centraliza verticalmente conteúdo do header */
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: linear-gradient(to right, #001970, #0a0a2a);
    height: 80px;
    position: relative;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: px 0;
}

.logo img {
    max-height: 100px; /* deixa a logo enquadrada */
    width: auto;
    display: block;
    object-fit: contain;
}

/* Responsivo: reduz tamanho da logo em telas pequenas */
@media (max-width: 600px) {
  header .logo { height: 48px; }
  header .logo img { max-height: 44px; }
}

nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    padding: 8px 12px;
    white-space: nowrap;
}

.buttons {
    display: flex;
    gap: 8px;
}

.buttons button {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.login, .cadastro {
    background-color: #1a237e;
    color: white;
}

/* Menu mobile */
.menu-mobile {
    display: none;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 834px) {
    header {
        padding: 0 15px;
    }
    
    nav a {
        font-size: 1rem;
        padding: 6px 10px;
    }
    
    .buttons button {
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    header {
        justify-content: space-between;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding: 10px 0;
        display: none;
        background: #001970;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

    nav.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .menu-mobile {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        padding: 5px;
    }

    .buttons {
        gap: 5px;
    }
}

@media (max-width: 412px) {
    header {
        padding: 0 10px;
    }

    .logo img {
        max-width: 100px;
    }

    .buttons button {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* Cards */
.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    width: calc(25% - 20px);
    min-width: 250px;
    height: 350px;
    overflow: hidden;
    position: relative;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* Media Queries para Cards */
@media (max-width: 1024px) {
    .cards {
        padding: 15px;
        gap: 15px;
    }
    
    .card {
        width: calc(33.33% - 15px);
        height: 300px;
    }
}

@media (max-width: 834px) {
    .card {
        width: calc(50% - 15px);
        height: 280px;
    }
}

@media (max-width: 412px) {
    .cards {
        padding: 10px;
        gap: 10px;
    }
    
    .card {
        width: 100%;
        height: 250px;
        min-width: unset;
    }
}

.card p {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    font-weight: 400;
    color: white;
    font-size: 2rem;
    letter-spacing: 2px;
    width: 100%;
    text-align: center;
}

/* Sobre */
.sobre {
    background-color: #1a1a3d;
    padding: 24px;
    text-align: center;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 10px;
}

.sobre p {
    margin-bottom: 18px;
    font-size: 2rem;
    font-weight: 400;
}

.conhecer {
    background-color: #0d47a1;
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 400;
}

.sobre-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.sobre-card {
    flex: 2; /* Faz o texto ocupar mais espaço */
    text-align: left;
}

.sobre-img-box {
    flex: 1; /* Faz a imagem ocupar menos espaço */
}

/* Rodapé */
footer {
    background: linear-gradient(to right,#020139, #001970);
    padding: 32px 40px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.footer-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

.footer-logo img {
    height: 170px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo span {
    display: block;
    font-weight: 400;
    font-size: 2.2rem;
    margin-bottom: 8px;
}

footer p {
    font-weight: 400;
    font-size: 1.5rem;
    margin: 0;
}

.social {
    display: flex;
    align-items: center;
    gap: 32px;
}

.social img {
    height: 54px;
    margin: 0;
}

main { 
    flex: 1;
    text-align: center;
    padding: 40px 20px;
}

/* --- Eventos --- */
main h1 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center; /* centraliza o título */
}

.eventos {
    display: flex;
    justify-content: center; /* centraliza os quadrados */
    gap: 60px;
    flex-wrap: wrap;
    text-align: center;
}

.evento {
    width: 220px;
    text-align: center;
}

.evento img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Listas de cada evento */
.palestra-info ul, .passeios-info ul, .trotes-info ul {
    padding-left: 20px; /* espaço para bullets */
    list-style-type: disc; /* coloca o • antes */
    text-align: left; /* deixa os itens alinhados à esquerda */
    margin: 0 auto;
    max-width: 200px;
    color: #e0e0e0;
}

.palestra-info li, .passeios-info li, .trotes-info li {
    margin-bottom: 6px;
}

/* --- Projetos --- */
h1 {
    text-align: center;
    margin-top: 30px;
    font-size: 2em;
    letter-spacing: 2px;
}

.container {
    background: #05043b;
    color: #222;
    margin: 30px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
}

.section {
    margin-bottom: 40px;
    clear: both;
}

.section h2 {
    font-size: 1.3em;
    margin-bottom: 5px;
}

.section p {
    font-size: 1em;
    margin-bottom: 5px;
}

.section small {
    color: #444;
    font-style: italic;
}

.formatura {
    clear: both;
    margin-top: 40px;
}

.project-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #222;
}

.project-text {
    flex: 1;
    font-family: 'Georgia', serif;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s;
}

.carousel-img.active {
    opacity: 1;
    position: relative;
}

.formatura-img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;  /* mantém a proporção dos carrosseis */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* --- ESTILOS PÁGINA ESPORTES --- */
.pagina-esportes {
    background-color: #00174b;
}

.pagina-esportes main {
    display: flex;
    padding: 40px; 
    gap: 30px;
    flex: 1;
    text-align: left;
}

.pagina-esportes .left-side {
    flex: 1;
}

.pagina-esportes .left-side img {
    width: 100%;
    height: 100%; 
    max-height: 80vh; 
    border-radius: 8px;
    object-fit: cover;
}

.pagina-esportes .right-side {
    flex: 1.8;
    background-color: #0a0a2d;
    padding: 20px;
    border-radius: 10px;
    overflow-y: auto;
    max-height: 80vh; 
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.3;
}

.pagina-esportes .right-side h2 {
    margin-top: 0;
    border-bottom: 2px solid white;
    padding-bottom: 8px;
    font-family: 'Irish Grover', cursive;
    font-size: 2rem;
    color: #fff;
    text-align: center;
}

.pagina-esportes .box {
    background-color: #fff;
    color: #111;
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #00174b;
    text-align: center;
}

.pagina-esportes .box-title {
    font-family: 'Irish Grover', cursive;
    font-size: 1.5rem;
    color: #00174b;
    margin-bottom: 10px;
    text-align: center;
}

.pagina-esportes .table-flex {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.pagina-esportes .table-flex.three-cols {
    justify-content: space-between;
}

.pagina-esportes .table-col {
    flex: 1;
    font-family: 'Irish Grover', cursive;
    font-size: 1.15rem;
    color: #00174b;
    text-align: center;
}

.pagina-esportes .table-flex.three-cols .table-col:nth-child(2) {
    margin-left: 20px;
    margin-right: 20px;
}

.pagina-esportes .table-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: 'Karma', serif;
    font-size: 1.05rem;
    color: #111;
    text-align: center;
    margin-bottom: 8px;
}

.pagina-esportes .table-content.three-cols {
    justify-content: space-between;
}

.pagina-esportes .table-content .table-col {
    font-family: 'Karma', serif;
    font-size: 1.05rem;
    color: #111;
    text-align: center;
}

/* --- ESTILOS PÁGINA NOTÍCIAS --- */
.pagina-noticias {
    background: #0a0a4a;
    color: #fff;
    font-family: 'Georgia', serif;
}

.pagina-noticias .main-title {
    text-align: center;
    font-size: 2em;
    margin: 30px 0 20px 0;
    letter-spacing: 2px;
}

.pagina-noticias .container-main {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 80px; /* Espaço para o rodapé não sobrepor */
}

.pagina-noticias .content-row {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens quebrem a linha em telas menores */
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.pagina-noticias .news-box {
    background: #fff;
    color: #222;
    border-radius: 10px;
    padding: 20px 25px;
    width: 450px; /* Largura ajustada */
    box-sizing: border-box;
    margin-top: 10px;
}

.pagina-noticias .news-date {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.pagina-noticias .news-title {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 1.2em;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

.pagina-noticias .news-text {
    font-size: 1em;
    margin-bottom: 10px;
    text-align: justify;
}

.pagina-noticias .news-img-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 380px; /* Largura ajustada */
    height: 220px; /* Altura ajustada */
    margin-top: 10px;
}

.pagina-noticias .news-img-box img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.pagina-noticias .comments-box {
    background: #fff;
    color: #222;
    border-radius: 15px;
    padding: 15px 20px;
    margin-top: 20px;
    width: 380px; /* Largura ajustada */
    box-sizing: border-box;
    position: relative;
}

.pagina-noticias .comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    position: relative;
}

.pagina-noticias .comments-title {
    font-weight: bold;
    font-size: 1.1em;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.pagina-noticias .comments-likes {
    font-size: 1em;
    color: #222;
    background: #eaeefc;
    border-radius: 12px;
    padding: 2px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
    position: relative;
    cursor: pointer;
}

.pagina-noticias .comments-likes .heart {
    color: #222;
    font-size: 1.3em;
    margin-right: 3px;
}

.pagina-noticias .emoji-popup {
    display: none;
    position: absolute;
    bottom: 35px;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 8px 12px;
    z-index: 10;
    font-size: 1.3em;
    gap: 8px;
}

.pagina-noticias .emoji-popup span {
    cursor: pointer;
    margin: 0 3px;
    transition: transform 0.1s;
}

.pagina-noticias .emoji-popup span:hover {
    transform: scale(1.2);
}

.pagina-noticias .comment-user {
    font-weight: bold;
    font-size: 0.95em;
}

.pagina-noticias .comment-text {
    font-size: 0.95em;
    color: #363638;
    text-decoration: none;
}

.pagina-noticias .comment-input {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    font-family: 'Georgia', serif;
    font-size: 1em;
    box-sizing: border-box;
}

.pagina-noticias .comment-send-btn {
    background: #1a1a7a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 18px;
    cursor: pointer;
    font-family: 'Georgia', serif;
    font-size: 1em;
    margin-bottom: 5px;
    transition: background 0.2s;
}

.pagina-noticias .comment-send-btn:hover {
    background: #2a2a9a; /* Um pouco mais claro no hover */
}

.pagina-noticias .comment-more {
    text-align: right;
    font-size: 0.95em;
    color: #777791;
    cursor: pointer;
}

.pagina-noticias .comment-more a {
    color: #1a1a7a;
    text-decoration: underline;
}

/* === ESTILO PARA TELA GENÉRICA === */
.tela {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-align: center;
    width: 400px;
    max-width: 95%;
}

.tela.ativa {
    display: block;
}

h2 {
    margin-bottom: 20px;
}

button {
    background: #222;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #444;
}

.menu-opcao {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    margin: 15px 0;
    cursor: pointer;
}

.menu-opcao span {
    font-size: 16px;
}

textarea, input[type="file"] {
    width: 100%;
    margin: 10px 0;
}

.checkboxes {
    margin: 10px 0;
    text-align: left;
}

/* =================================== */
/* --- ESTILOS PÁGINA ADMIN --- */
/* =================================== */

/* Estilos gerais para a página de admin */
.pagina-admin {
    font-family: 'Times New Roman', Times, serif;
    background-color: #000080; /* Azul escuro */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0;
}

/* Container principal branco */
.pagina-admin .admin-panel {
    background-color: #ffffff;
    width: 400px;
    padding: 40px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Cabeçalho com o logo e título */
.pagina-admin .header-admin {
    margin-bottom: 50px;
}

.pagina-admin .header-admin .cognitia-logo {
    width: 70px;
    height: auto;
    margin-bottom: 10px;
}

.pagina-admin .header-admin h1 {
    font-size: 1.2em;
    color: #333;
    margin: 0;
    letter-spacing: 2px;
    font-weight: normal;
}

/* Estilização do menu de opções */
.pagina-admin .menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinha os itens à esquerda */
    gap: 40px;
    padding-left: 50px;
    margin-bottom: 60px;
}

.pagina-admin .menu-option {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #333;
    font-size: 1.1em;
}

.pagina-admin .menu-option i {
    font-size: 2.5em;
    color: #555;
    width: 50px;
    text-align: center;
}

.pagina-admin .menu-option:hover {
    color: #000080; /* Muda a cor do texto ao passar o mouse */
}

.pagina-admin .menu-option:hover i {
    color: #000080; /* Muda a cor do ícone ao passar o mouse */
}

/* Rodapé com o logo Alcina */
.pagina-admin .footer-logo-admin img {
    width: 120px; 
    height: auto;
}



/* ======================================= */
/* REGRAS DE RESPONSIVIDADE (MEDIA QUERIES)*/
/* ======================================= */

/* 1. Regras para Telas de Tablets (até 768px) */
@media (max-width: 768px) {
    /* CABEÇALHO (HEADER) - Empilha os elementos */
    header {
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
    }

    header nav {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    /* Ocupa a largura total para melhor visualização dos links */
    header nav a {
        display: block;
        margin: 5px 0;
        padding: 8px 0;
    }

    /* SEÇÃO DE CARDS - Mostra 2 cards por linha */
    .cards {
        flex-wrap: wrap;
        justify-content: space-around;
        padding: 20px 10px;
    }

    .card-link, .card {
        width: 45%;
        margin-bottom: 20px;
    }
}

/* 2. Regras para Telas de Celulares (até 600px) */
@media (max-width: 600px) {
    /* SEÇÃO DE CARDS - Faz 1 card por linha para melhor leitura em telas pequenas */
    .cards {
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px;
        gap: 12px;
    }

    .card-link, .card {
        width: 100% !important;
        margin-bottom: 12px;
        min-width: unset;
        height: auto;
    }

    /* Ajustes no cabeçalho e botões para telas pequenas */
    header nav a {
        padding: 10px 0;
        font-size: 0.95rem;
    }

    .buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .buttons button {
        width: 90%;
        max-width: 320px;
    }
}