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

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  color: #000;
  overflow-x: hidden; /* Impede qualquer rolagem horizontal na página inteira */
  width: 100%;
}

/* Cabeçalho */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.logo img {
  width: 230px;
  height: auto;
  display: block;
}

#menu-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

nav {
  display: flex;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: #222;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  padding: 10px 0;
}

nav a.active { color: #c4170c; border-bottom: 2px solid #c4170c; }
nav a:hover { color: #666; transition: color 0.3s ease; }

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* Ticker */
/* Container Principal */
.news-ticker {
  display: flex;
  align-items: center;
  background: #222; /* Fundo escuro para contraste */
  color: #fff;
  height: 40px;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
  border-bottom: 3px solid #c4170c; /* Linha vermelha característica do seu site */
}

/* Rótulo Fixo */
.ticker-label {
  background: #c4170c;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  box-shadow: 5px 0 15px rgba(0,0,0,0.3);
}

/* Área onde o texto corre */
.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-content {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-move 80s linear infinite; /* Tempo da animação */
}

.ticker-content span {
  padding: 0 30px;
  font-size: 15px;
}

.ticker-content a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.ticker-content a:hover {
  color: #ffcc00; /* Destaque ao passar o mouse */
}

/* Animação de movimento */
@keyframes ticker-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Pausar ao passar o mouse para facilitar a leitura */
.news-ticker:hover .ticker-content {
  animation-play-state: paused;
}
@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Carousel (full-bleed) */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin: 0 auto 30px auto;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
/* Este é o "quadro" por onde vemos as fotos */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%; /* Ou a largura que você definiu */
  margin: 0 auto;
  overflow: hidden; /* ESSA LINHA É A CHAVE: ela corta a rolagem lateral */
  margin-bottom: 30px !important;  /* Espaço extra após o carrossel */
  
}
.carousel-wrapper { width: 100%; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; width: 100%; }
/* Cada slide individualmente */
.slide {
  min-width: 100%; /* Garante que cada slide ocupe exatamente 100% da tela */
  box-sizing: border-box;
  position: relative;
}
.carousel img { width: 100vw; height: auto; object-fit: cover; flex-shrink: 0; }

.slide-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 80%;
}

.slide-content h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 14px;
}  


.slide img {
  width: 100%;          /* sempre ocupar a largura total */
  height: 400px;        /* altura fixa do banner (ajuste conforme seu layout) */
  object-fit: cover;    /* cobre todo o espaço, cortando excesso sem distorcer */
  border-radius: 8px;   /* opcional: bordas arredondadas */
} 

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: white;
  background-color: rgba(0,0,0,0.4);
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.6); }
.prev { left: 10px; } .next { right: 10px; }

/* Containers */
.container {
  max-width: 1400px;
  margin: auto;
  padding: 0 15px 20px 15px;
}

/* Imagem dentro do texto */
.noticia-imagem-inline {
  margin: 15px auto;
  text-align: center;
  max-width: 350px;   /* 🔹 limite de largura da figura */
}

.noticia-imagem-inline img {
  width: 100%;        /* a imagem ocupa 100% da largura do container */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.noticia-imagem-inline figcaption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
  font-style: italic;
}

/* Container com imagens sempre na horizontal */
.noticia-imagens-duplas {
  display: flex;
  flex-wrap: nowrap;        /* 🔹 impede de quebrar linha */
  gap: 15px;                /* espaço entre as imagens */
  justify-content: center;  /* centraliza dentro do texto */
  margin: 20px 0;
}

.noticia-imagens-duplas img {
  width: 48%;               /* cada imagem ocupa metade do espaço */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  object-fit: cover;
}





/* Rotating Ads */
.ads-rotativo {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background: #fff;
}
.ads-rotativo img { width: 100%; display: none; }
.ads-rotativo img.active { display: block; }

/* Layout principal 3:1 */
.layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: auto;
  
}

/* Estilo para o título dentro de categoria.html */
#titulo-categoria {
    font-size: 2.5rem;
    font-weight: 900;
    color: #222;
    text-transform: uppercase; /* Deixa todo em maiúsculo para um look mais "news" */
    border-left: 8px solid #c4170c; /* Barra vermelha lateral igual ao padrão de portais */
    padding-left: 15px;
    margin-bottom: 30px;
    letter-spacing: -1px;
    line-height: 1;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    #titulo-categoria {
        font-size: 1.8rem;
        margin-top: 20px;
    }
}

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

/* Editorias */
.editoria h2 {
  margin-bottom: 10px;
  border-left: 4px solid #c4170c;
  padding-left: 8px;
  color: #c4170c;
}
.editoria-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.destaque a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.destaque img {
  width: 100%;
  height: 250px;             /* 🔹 altura fixa para todas as imagens de destaque */
  object-fit: cover;         /* cobre todo espaço sem distorcer */
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.destaque img:hover {
  transform: scale(1.03);
  filter: brightness(90%);
}

.editoria-lista li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.editoria-lista a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
}

/* Imagem das listinhas */
.editoria-lista img {
  width: 120px;              /* um pouco maior para dar destaque */
  height: 80px;              /* 🔹 altura fixa */
  object-fit: cover;         /* corta excesso sem distorcer */
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.editoria-lista span {
  font-size: 0.95rem;
  line-height: 1.2;
}

.editoria-lista a:hover span {
  color: #c4170c;
  text-decoration: underline;
}



/* Grid de cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  height: 200px; /* Defina uma altura fixa para todas as imagens dos cards */
  object-fit: cover; /* Faz a imagem cobrir todo o espaço, cortando o excesso sem distorcer */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.card img:hover { transform: scale(1.03); filter: brightness(90%); cursor: pointer; }
.card h2, .card h3, .card p { padding: 15px; }
.card h2, .card h3 { font-size: 18px; font-weight: bold; }
.card h2:hover, .card h3:hover { color: #c4170c; cursor: pointer; text-decoration: underline; transition: color 0.3s ease; }
.card p { font-size: 14px; color: #444; }

.datetime {
  font-size: 14px;
  color: #333;
  text-align: left;
  padding: 5px 15px;
  font-weight: 500;
}

  /* CÓDIGO DO POPUP 
    Fundo escuro */
/* POPUP */
.popup {
  display: none; /* escondido por padrão */
  position: fixed;
  z-index: 9999;
  inset: 0; /* substitui top/left/right/bottom */
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}

.popup-content {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  /*max-width: 400px;*/
  max-width: 60%;
  width: 90%;
  position: relative;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-content img {
  max-width: 100%;
  border-radius: 6px;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* Sidebar */
.sidebar-patrocinio {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-self: flex-start;
  position: sticky;
  top: 20px;

}


.sidebar-patrocinio h3 {
  font-size: 1.1rem;
  color: #c4170c;
  border-bottom: 2px solid #c4170c;
  padding-bottom: 6px;
  margin-bottom: 6px;
}
.sidebar-patrocinio img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.sidebar-patrocinio img:hover { transform: scale(1.03); filter: brightness(90%); cursor: pointer; }

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

.mais-noticias li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mais-noticias li a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

.mais-noticias li a:hover {
    color: #c4170c;
}

/*PÁGINA DE NOTICIAS*/
.noticia-layout {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.noticia-container {
  flex: 3;
}

.noticia-sidebar {
  flex: 1;
}

.noticia-img-container {
  text-align: center;
  margin-bottom: 20px;
}

.noticia-img-container img {
  max-width: 80%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.titulo-pagina-noticia {
  font-size: 2rem;
  margin-bottom: 1000px;
  color: #c4170c;
}

#data-publicacao {
  text-align: right;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
}

.noticia-conteudo {
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
  margin-bottom: 10%;
}

.noticia-ads {
  margin: 30px 0;
  text-align: center;
}

.noticia-ads img {
  max-width: 100%;
  height: auto;
}

/* Fontes de títulos decorativos (mantidos) */
h1.titulo-sublinhado {
  font-family: 'Roboto', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #333;
  margin-top: 5px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  position: relative;
}
h1.titulo-sublinhado::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #c4170c;
  border-radius: 2px;
}
@media screen and (max-width: 768px) {
  h1.titulo-sublinhado { font-size: 1.8rem; }
}

.noticia-footer {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5%;
}

/* Contato */
.contact-section { margin: 10px 0 30px; }
.contact-container { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.contact-form {
  flex: 1 1 500px;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 700px;
}
.contact-form h2 { font-size: 24px; color: #c4170c; margin-bottom: 20px; font-weight: bold; text-transform: uppercase; }
.contact-form form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
  padding: 12px 15px; font-size: 14px; border: 1px solid #ccc; border-radius: 8px; transition: border 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: #c4170c; outline: none; }
.contact-form button {
  background: #c4170c; color: white; padding: 12px; border: none; font-weight: bold; font-size: 15px;
  border-radius: 8px; cursor: pointer; transition: background 0.3s ease, transform 0.2s ease; align-self: flex-start;
}
.contact-form button:hover { background: #a7140a; transform: scale(1.02); }
.contact-ads {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcdcdc;
  border-radius: 12px;
  padding: 15px;
  max-width: 700px;
}

.contact-ads img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-ads {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border-radius: 12px;
  padding: 25px;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.ads-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 100%;
}

.ads-title {
  font-size: 40px;
  font-weight: bold;
  color: #c4170c;
}

.ads-text {
  font-size: 18px;
  color: #333;
}

.ads-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #c4170c;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.ads-button:hover {
  background-color: #a7140a;
}

.ads-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.ads-image:hover {
  transform: scale(1.05);
}
 

/* WhatsApp */
.whatsapp-float {
  position: fixed; width: 50px; height: 50px; bottom: 20px; right: 20px; background-color: #25D366; color: #fff;
  border-radius: 50%; text-align: center; font-size: 28px; box-shadow: 0 2px 6px rgba(0,0,0,0.3); z-index: 1000; line-height: 50px;
}
.whatsapp-float:hover { background-color: #1ebc5a; }

/* Social */
.social-media { display: flex; justify-content: center; gap: 15px; margin-top: 10px; }
.social-icon { text-decoration: none; font-size: 24px; color: #222; transition: color 0.3s ease; }
.social-icon:hover { color: #c4170c; }

footer { background: #000; color: #fff; padding: 20px; text-align: center; font-size: 14px; margin-top: 20px; }

/* Responsivo */
@media (max-width: 1024px) {
  .editoria-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar-patrocinio { position: static; margin-top: 20px; max-width: 420px; width: 100%; margin-left: auto; margin-right: auto; }
  .editoria-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav { display: none; flex-direction: column; background: #fff; position: absolute; top: 70px; left: 0; width: 100%; padding: 15px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); z-index: 999; }
  nav.active { display: flex; }
  .menu-toggle { display: block; }
  .slide-content h2 { font-size: 18px; }
  .slide-content p { font-size: 12px; } 
}

/* Garante que no celular o menu comece escondido e apareça com a classe active */
/* Ajuste definitivo para Menu Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block !important; /* Garante que o ícone ☰ apareça */
    cursor: pointer;
  }

  nav#mainNav {
    display: none; /* Esconde por padrão */
    flex-direction: column;
    position: absolute;
    top: 70px; /* Ajuste para ficar abaixo do seu logo */
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
  }

  /* Esta regra agora tem prioridade total */
  nav#mainNav.active {
    display: flex !important;
  }

  nav#mainNav ul {
    flex-direction: column;
    width: 100%;
  }

  nav#mainNav ul li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .menu-toggle { display: none; }
}

/* alinhar patrocinadores */
.sidebar-wrapper {
  align-self: flex-start; /* Alinha o wrapper no início */
  width: 100%; /* Garante que o wrapper ocupe o espaço disponível */
  margin-top: 40px; /* Pequeno ajuste para bater com o h2 das notícias */
  text-align: center;
  color: #c4170c;
  padding-top: 0px;
}

.sidebar-wrapper iframe {
  width: 100%;
  display: block; /* Remove espaços indesejados abaixo do iframe */
  border: none;
}

p {
  text-align: justify;
  text-indent: 30px;
}

/* Espaçamento entre banners */
.banner-link {
  display: block;
  margin-bottom: 20px;
  text-decoration: none;
}

.banner-link img {
  width: 100%;
  height: auto;
  border-radius: 8px; /* Cantos arredondados modernos */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee; /* Borda fininha para fotos claras */
}

/* Efeito de elevação ao passar o mouse */
.banner-link img:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.separator {
  border: 0;
  border-top: 1px solid #eee;
  margin: 25px 0;
}

/* Padronização dos cards na página de categoria e index */
.noticia-card img {
  width: 100%;
  height: 200px; /* Altura fixa para alinhar tudo */
  object-fit: cover; /* Faz a imagem preencher o espaço sem esticar */
  display: block;
  border-radius: 5px 5px 0 0;
}

.noticia-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-content {
  padding: 15px;
  flex-grow: 1;
}

.navegacao-container {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    gap: 15px;
}

.nav-box {
    flex: 1;
}

.nav-link {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
}

.nav-link small {
    color: #c4170c;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 5px;
}

.nav-link strong {
    font-size: 14px;
    line-height: 1.3;
}

#proxima-noticia {
    text-align: right;
}

@media (max-width: 600px) {
    .navegacao-container { flex-direction: column; }
    .nav-box { width: 100%; text-align: left !important; margin-bottom: 20px; }
}

/* Container da Navegação */
/* Container da Navegação Centralizado */
/* Container da Navegação Centralizado */
.navegacao-noticia {
    display: flex;
    justify-content: center; 
    align-items: stretch;
    gap: 20px;
    margin: 50px auto;
    padding: 20px 10px;
    border-top: 2px solid #eee;
    max-width: 800px;
}

.nav-box {
    flex: 1;
    min-width: 140px; /* Garante que não fique pequeno demais no mobile */
    max-width: 350px;
}

.nav-box a {
    text-decoration: none;
    color: #222;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-box a:hover {
    border-color: #c4170c;
    background: #fffcfc;
    transform: translateY(-2px);
}

/* Títulos "Anterior" e "Próxima" com as setas */
.nav-box span {
    font-size: 11px;
    font-weight: bold;
    color: #c4170c;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

/* Alinhamento Específico para o ANTERIOR */
#noticia-anterior a {
    text-align: left;
}
#noticia-anterior span {
    justify-content: flex-start;
}

/* Alinhamento Específico para o PRÓXIMA */
#proxima-noticia a {
    text-align: right;
}
#proxima-noticia span {
    justify-content: flex-end;
}

.nav-box strong {
    font-size: 13px;
    line-height: 1.4;
    display: block;
}

/* Ajuste Mobile: Mantém um ao lado do outro com ícones menores */
@media (max-width: 600px) {
    .navegacao-noticia {
        gap: 10px;
        padding: 20px 5px;
    }
    .nav-box a {
        padding: 8px;
    }
    .nav-box strong {
        font-size: 11px;
    }
}
/* Margens para o texto da notícia */
.conteudo-principal {
    padding: 0 20px; /* Margem interna para todo o conteúdo da notícia */
}

.texto-noticia {
    line-height: 1.7; /* Texto menos "apertado" */
    font-size: 18px;
    margin-bottom: 30px;
    color: #333;
}

#titulo-pagina-noticia {
    font-size: 32px;
    margin-bottom: 10px;
    margin-top: 20px;
    color: #c4170c;
}

/* Deixa os anúncios um pouco menores e organizados */
.sidebar .banner-link img {
    max-width: 100%;
    margin-bottom: 15px;
    border-radius: 5px;
    display: block;
}

/* CATEGORIAS*/
/* Remove sublinhado e cor azul dos links nos cards de categoria */
.link-noticia {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.noticia-card {
    transition: transform 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.noticia-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #222;
}

.noticia-card:hover h3 {
    color: #c4170c; /* Título fica vermelho no hover */
}

/* Ajuste da Grid de Categorias  AQUI AJUSTAMOS O TAMANHO DE CADA NOTICIA NA PA´GINA CATEGORIAS*/
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* --- ALINHAMENTO EXCLUSIVO PARA CATEGORIA.HTML --- */

/* Verifica se a sidebar está dentro da estrutura da página de categorias */
.layout section.conteudo-principal + .sidebar {
    padding-top: 0px; /* Ajuste este valor para alinhar perfeitamente com a primeira imagem */
}

/* Garante que os patrocinadores fiquem organizados em bloco */
#patrocinadores-container .banner-link {
    display: block;
    margin-bottom: 10px;
}

/* Padronização das imagens de patrocinadores na categoria (Opcional) */
.sidebar #patrocinadores-container img {
    width: 100%;
    height: auto;
        object-fit: contain;
    border-radius: 4px;
}


/* --- ALINHAMENTO ESPECÍFICO PARA A PÁGINA DE NOTÍCIA --- */

/* Isso empurra a barra lateral para baixo apenas quando ela está ao lado do conteúdo da notícia */
.conteudo-principal + .sidebar {
    padding-top: 80px; /* Altere este número para subir ou descer */
    text-align: center;
    color: #c4170c;
    
}

/* Isso atua diretamente no container dos patrocinadores */
#patrocinadores-container.sidebar-wrapper {
    margin-top: 35px !important; /* Aumente este número para subir ainda mais */
    padding-top: 0 !important;
    text-align: center; /* Alinha o texto centralizado como você pediu */
}

/* O prefixo .home-page garante que só funcione na index */
.home-page #patrocinadores-container.sidebar-wrapper {
    margin-top: 20px !important; 
    padding-top: 0 !important;
    text-align: center;
}

/* Garante que os banners fiquem separados e organizados */
.sidebar .banner-link {
    display: block;
    margin-bottom: 20px;
}

/* Estilo para o link no título da categoria */
.link-categoria {
    text-decoration: none; /* Remove o sublinhado */
    color: inherit;       /* Mantém a cor original do H2 (geralmente preto) */
    transition: color 0.3s ease;
}

.link-categoria:hover {
    color: #c4170c;       /* Muda para o vermelho do seu site ao passar o mouse */
    text-decoration: underline; /* Opcional: adiciona sublinhado apenas no hover */
}

/* Garante que o H2 tenha um cursor de clique */
.editoria h2 {
    cursor: pointer;
}

/* Remove a cor azul e o sublinhado dos links das categorias na Home */
.editoria h2 a {
    text-decoration: none;
    color: inherit; /* Faz o link usar a cor preta original do H2 */
    display: inline-block;
}

/* Efeito opcional: muda levemente a cor ao passar o mouse para o usuário saber que é um link */
.editoria h2 a:hover {
    color: #c4170c; /* Cor vermelha do seu site */
}


