/* RESET GERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* BODY */
body {
    background: url('../assets/onibus_ore3.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CONTAINER PADRÃO */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================== */
/* ESTILIZAÇÃO DO HEADER */
/* ========================== */
header {
    background-color: #464081;
    padding: 20px 0;
    text-align: center;
    color: white;
    width: 100%;
}

/* Centralizar a logo e alinhar o conteúdo */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ajuste da logo */
.logo img {
    width: auto;
    height: 50px;
    display: block;
}

/* Garantir que o h1 seja branco */
.header-title {
    font-size: 28px;
    color: white !important; /* Garante que seja branco mesmo que outro CSS esteja interferindo */
    font-weight: bold;
}

/* ========================== */
/* MENU DE NAVEGAÇÃO */
/* ========================== */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px 15px;
    transition: color 0.3s;
}

/* LINHA ANIMADA NO HOVER */
nav ul li a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: white;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transition: width 0.3s, left 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

nav ul li a:hover {
    color: #f1c40f;
}

/* ========================== */
/* ÁREA PRINCIPAL */
/* ========================== */
main {
    width: 100%;
    max-width: 800px;
    background: white;
    padding: 20px;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* TÍTULOS */
h1 {
    text-align: center;
    color: #464081;
    margin-bottom: 15px;
}

/* ========================== */
/* FORMULÁRIOS */
/* ========================== */
form {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* LABELS */
label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}

/* CAMPOS DE ENTRADA */
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* BOTÕES */
button {
    width: 100%;
    background-color: #5bbafa;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

button:hover {
    background-color: #464081;
}

/* MENSAGENS DE ERRO E SUCESSO */
.error {
    background: #ffb3b3;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* ========================== */
/* CHAMAMENTO */
/* ========================== */
/* Container do chamamento */

.chamamento-container {
    display: flex;
    align-items: center;
    background: #f1c40f;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Se houver imagem, ela fica do lado esquerdo */
.chamamento-imagem {
    max-width: 150px;
    margin-right: 20px;
}

.chamamento-imagem img {
    width: 100%;
    border-radius: 8px;
}

/* Estilo da parte do texto */
.chamamento-texto {
    flex: 1;
}

.chamamento-texto h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.chamamento-texto p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

/* Botão do chamamento */
.btn-chamamento {
    display: inline-block;
    background: #464081;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-chamamento:hover {
    background: #e57241;
}

/* Responsividade */
@media (max-width: 768px) {
    .chamamento-container {
        flex-direction: column;
        text-align: center;
    }

    .chamamento-imagem {
        margin-right: 0;
        margin-bottom: 15px;
    }
}



/* ========================== */
/* NOTÍCIAS */
/* ========================== */
.noticias-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.noticia-box {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.noticia-box img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.noticia-box h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.noticia-box p {
    font-size: 14px;
    color: #666;
}

.noticia-box .btn-leia-mais {
    display: inline-block;
    padding: 8px 12px;
    background: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    transition: 0.3s;
}

.noticia-box .btn-leia-mais:hover {
    background: #0056b3;
}

/* DESTAQUE */
.noticia-box.destaque {
    background: #ffeb3b;
    border: 2px solid #ffc107;
}

/* ========================== */
/* PAGINAÇÃO */
/* ========================== */
.paginacao {
    text-align: center;
    margin-top: 20px;
}

.paginacao span {
    font-size: 16px;
    font-weight: bold;
    margin: 0 10px;
}

.btn-paginacao {
    display: inline-block;
    padding: 8px 12px;
    background: #464081;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn-paginacao:hover {
    background: #e57241;
}


/* ========================== */
/* ESTILO DA PÁGINA DE NOTÍCIA */
/* ========================== */

.noticia-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.noticia-container h1 {
    font-size: 26px;
    text-align: center;
    margin-bottom: 10px;
    color: #464081;
}

.data-publicacao {
    font-size: 14px;
    color: #777;
    text-align: center;
    margin-bottom: 20px;
}

/* IMAGEM DA NOTÍCIA */
.noticia-imagem {
    text-align: center;
    margin-bottom: 20px;
}

.noticia-imagem img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 5px;
}

/* CONTEÚDO DA NOTÍCIA */
.noticia-conteudo p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

/* ========================== */
/* NAVEGAÇÃO ENTRE NOTÍCIAS */
/* ========================== */
.navegacao-noticias {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.navegacao-noticias a {
    background: #464081;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.navegacao-noticias a:hover {
    background: #e57241;
}

/* REMOVER TEXTO LONGO DENTRO DOS BOTÕES */
.noticia-anterior::after,
.proxima-noticia::before {
    content: '';
}


/* ========================== */
/* RODAPÉ */
/* ========================== */
footer {
    background-color: #464081;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: relative;
    bottom: 0;
    margin-top: 20px;
}

/* ========================== */
/* RESPONSIVIDADE */
/* ========================== */
@media (max-width: 768px) {
    main {
        width: 95%;
        padding: 15px;
    }
    
    input, select, button {
        font-size: 14px;
    }

    .noticias-container {
        flex-direction: column;
    }
}
