* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Titillium Web", Helvetica, sans-serif;
  overflow-x: hidden;
  width: 100%;
  padding: 0;
  background-color: #fff;
}

/* --- ANIMAÇÕES --- */
.animar { 
    opacity: 0; 
    transform: translate3d(0, 30px, 0); 
}
.fade-in-up { animation: fadeInUp 1.0s ease-out forwards; }

@keyframes fadeInUp {
  0% { opacity: 0; transform: translate3d(0, 30px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* --- CABEÇALHO (HEADER) --- */
.cabecalho {
  background: linear-gradient(90deg, rgba(114, 198, 239, 1) 0%, rgba(0, 78, 143, 1) 100%);
  color: white;
  padding: 1em 0 3em;
  position: relative; 
  z-index: 1000;
}

.container-cabecalho {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.esquerda { 
    display: flex; 
    align-items: center; 
    gap: 1em; 
}

.logo { 
    max-width: 60px; 
    height: auto; 
}

.titulo { 
    font-size: 14px; 
    font-weight: 400; 
    white-space: nowrap; 
}

.direita { 
    display: flex; 
    gap: 2em; 
}

.link { 
    color: white; 
    text-decoration: none; 
    font-size: 14px; 
}
.link:hover { 
    text-decoration: underline; 
}

/* --- ÁREA DE BUSCA E TÍTULO PRINCIPAL --- */
.conteudo {
  max-width: 1200px;
  margin: 2em auto 0;
  padding: 0 2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.imagem-principal { 
    max-width: 300px; 
    width: 100%; 
}

.mensagem h1, .label { 
    font-size: 24px; 
    margin-bottom: 1em; 
    color: white; 
}

.campo-busca { 
    position: relative; 
    width: 100%; 
    max-width: 400px; 
    /* Importante para o dropdown ficar alinhado */
    z-index: 100;
}

.campo-busca i { 
    position: absolute; 
    left: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #999; 
    font-size: 16px;
    z-index: 10;
}

.input-busca { 
    width: 100%; 
    padding: 0.8em 1.2em 0.8em 2.5em; 
    border: none; border-radius: 30px; 
    font-size: 14px; 
    outline: none; 
    /* Sombra suave ao focar */
    transition: box-shadow 0.3s ease;
}

.input-busca:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* --- RESULTADOS DA BUSCA OVERLAY --- */
.container-resultados-full {
    max-width: 900px;
    margin: 2em auto;
    padding: 0;
    background-color: #fff;
    border-radius: 8px; /* Arredondado igual da imagem */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    min-height: auto; 
    display: none; /* Começa oculto */
}

/* Cabeçalho "Principais resultados..." (substitui .resultado-header) */
.header-resultados {
    padding: 20px;
    text-align: center;
    font-size: 16px;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fcfcfc;
    font-weight: 500;
}

/* Lista de itens */
.lista-resultados-card {
    display: flex;
    flex-direction: column;
}

/* Cada item (substitui .resultado-item) */
.item-resultado-lista {
    display: block;
    padding: 20px 25px;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.item-resultado-lista:last-child {
    border-bottom: none;
}

.item-resultado-lista:hover {
    background-color: #f9fbfd; /* Azulzinho claro ao passar o mouse */
}

/* Título do artigo */
.item-resultado-lista h3 {
    font-size: 18px;
    color: #004E8F; /* Azul RaceTime */
    font-weight: 500;
    margin: 0 0 5px 0;
}

/* Negrito no termo buscado */
.item-resultado-lista h3 b {
    color: #004E8F;
    font-weight: 800;
}

/* Texto pequeno "breadcrumb" abaixo do título */
.breadcrumb-resultado {
    font-size: 13px;
    color: #888;
    display: block;
}

/* Carregando */
.carregando {
    text-align: center;
    padding: 40px;
    color: #666;
}
.no-results-container {
    max-width: 700px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
    color: #333;
}

.no-results-img {
    max-width: 180px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.no-results-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.no-results-text {
    font-size: 16px;
    color: #666;
    max-width: 420px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

.no-results-btn {
    padding: 12px 28px;
    background-color: white;
    border: 1px solid #c5c5c5;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.no-results-btn:hover {
    background-color: #f8f8f8;
}
.container-resultados-full {
    max-width: 1200px;
    margin: 2em auto;
    padding: 0 2em;
    min-height: 60vh; /* Garante que o rodapé fique lá embaixo */
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

/* Título "Resultados para..." */
.resultado-header-page {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Card de cada resultado */
.result-card {
    display: block;
    background-color: #fff;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.result-card:hover {
    background-color: #f4fbfe; /* Azulzinho claro da identidade visual */
    color: #004E8F;
    transform: translateX(5px);
}

.result-card h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: inherit;
}

.result-card span {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .container-resultados-full {
        padding: 0 1em;
    }
}
/* Dropdown Autocomplete igual ao print */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    overflow: hidden;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px; /* Espaço entre input e dropdown */
}

.autocomplete-header {
    padding: 15px 20px;
    font-size: 13px;
    color: #888;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-item {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: #f4fbfe;
}

.result-title {
    font-size: 16px;
    color: #004E8F; /* Azul RaceTime */
    font-weight: 500;
    margin-bottom: 4px;
}

.result-title b {
    color: #004E8F; /* Mantém azul */
}

.result-breadcrumb {
    font-size: 12px;
    color: #999;
}
/* --- NAVEGAÇÃO (BREADCRUMB) --- */
nav.breadcrumb { 
    background-color: white; 
    padding: 1rem 2rem; 
    border-bottom: 1px solid #cacaca; 
}

.breadcrumb {
  display: flex; 
  flex-wrap: nowrap; 
  align-items: center; 
  justify-content: flex-start;
  gap: 8px; 
  max-width: 1200px; 
  margin: 5px auto 0; 
  font-size: 16px; 
  color: #0077cc;
}

.breadcrumb a, .breadcrumb span { 
    text-decoration: none;
    color: #0077cc; 
    font-weight: 500; 
}
.breadcrumb span { 
    color: #555; 
}

/* --- LAYOUT PADRÃO (ARTIGOS E CATEGORIAS) --- */
.container-artigo, .container-categoria { 
    display: flex; 
    gap: 2rem; 
    max-width: 1200px; 
    margin: 2em auto; 
    padding: 0 2em; 
    flex-wrap: wrap; 
}

/* --- RODAPÉ (FOOTER) --- */
footer { 
    background-color: #004b8e; 
    color: white; 
    text-align: center; 
    margin-top: 3em;
}

.footer-top { 
    padding: 40px 20px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 25px; 
}

.logo-footer { 
    max-width: 80px; 
}

.footer-links a { 
    color: #fff; 
    margin: 0 10px; 
    text-decoration: none; 
}

.footer-social a {
     color: #fff; 
     font-size: 22px; 
     margin: 0 10px; 
}

footer hr { 
    width: 90%; 
    max-width: 1200px; 
    border-top: 1px solid #e0e0e0;
    margin: 0 auto; 
}

.footer-bottom { 
    padding: 20px; 
}

/* --- RESPONSIVIDADE GLOBAL (CORREÇÃO MOBILE) --- */
@media (max-width: 768px) {
  
  /* 1. Esconde a parte da direita (WhatsApp e Fale Conosco) */
  .direita {
    display: none;
  }

  /* 2. Centraliza o container do cabeçalho */
  .container-cabecalho {
    justify-content: center;
    padding-top: 10px;
  }

  /* 3. CORREÇÃO PRINCIPAL: Força a esquerda a ficar em LINHA (row) */
  .esquerda {
    width: 100%;
    display: flex;
    flex-direction: row; 
    justify-content: center;
    align-items: center;
    gap: 15px;
  }

  /* 4. Ajustes no texto do título */
  .titulo {
    white-space: normal;
    text-align: left;
    font-size: 14px;
    margin: 0;
  }

  /* 5. Ajustes de Layout Geral */
  .container-artigo { 
    flex-direction: column; 
  }
  
  .breadcrumb { 
    flex-wrap: wrap; 
  }
}