/* ===========================================================
   RESET E BASE
   =========================================================== */

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Tipografia base */
body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.5;
  min-height: 100vh;
}

/* Imagens responsivas gerais */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container principal */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Importa fonte Roboto 700 para títulos */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap');

h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  margin-bottom: 0;
  text-transform: none;
}

/* ===========================================================
   CABEÇALHO E LOGO
   =========================================================== */

header img {
  max-width: 130px;
  height: auto;
}

/* ===========================================================
   CONTEÚDO PRINCIPAL
   =========================================================== */

.content-main {
  margin-top: 20px;
  flex: 1;
}

/* ===========================================================
   ANÚNCIOS
   =========================================================== */

.anuncios {
  margin: 20px 0;
  text-align: center;
  background-color: #A4A3A3;
  padding: 20px 0;
}

.anuncios .conteudo-anuncio {
  max-width: 950px;
  margin: 0 auto;
  width: 100%;
}

.banner-rotativo .anuncio-item {
  display: inline-block;
  width: 100%;
}

.banner-rotativo .anuncio-item img {
  width: 100%;
  height: auto;
}

/* Anúncios retangulares com fundo tracejado */
.anuncio-retangular {
  margin: 20px auto;
  max-width: 336px;
  text-align: center;
  min-height: 150px;
  background: repeating-linear-gradient(
    45deg,
    #e0e0e0,
    #e0e0e0 2px,
    transparent 2px,
    transparent 6px
  );
  border: 1px dashed #cccccc;
  color: #888888;
  font-style: italic;
  font-size: 14px;
  border-radius: 4px;
  padding: 10px;
}

.anuncio-retangular img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* ===========================================================
   CAPA E NOTÍCIAS PRINCIPAIS
   =========================================================== */

.noticias-principais {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Grade da capa com 2 colunas para desktop */
.grid-capa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Notícia grande capa */
.noticia-grande {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.noticia-imagem-grande img {
  width: 100%;
  max-width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.categoria-principal {
  padding: 10px;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--color-category-text, #cc0000);
}

.titulo-principal {
  font-size: 1.8rem;
  padding: 10px;
  color: var(--color-list-title, #222);
  line-height: 1.3;
  margin-top: 0;
}

.noticia-grande a {
  text-decoration: none;
  color: inherit;
}

/* Cores dinâmicas por categoria */
.cat-politica .categoria-principal {
  color: #004080;
}

.cat-esportes .categoria-principal {
  color: #008000;
}

.cat-entretenimento .categoria-principal {
  color: #cd1b1e;
}

/* ===========================================================
   NOTÍCIAS ABAIXO DA CAPA (LISTA HORIZONTAL)
   =========================================================== */

.noticias-ultimas-lista {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Item da lista de notícias horizontal */
.noticia-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

.noticia-horizontal .img-horizontal img {
  width: 320px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.noticia-horizontal .info-horizontal {
  flex: 1;
}

.noticia-horizontal .categoria {
  font-size: 0.95rem;
  color: #e63946;
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}

.noticia-horizontal h3 {
  font-size: 1.5rem;
  margin: 0;
}

.noticia-horizontal h3 a {
  text-decoration: none;
  color: #222;
}

/* Container das últimas notícias, esquerda e direita */
.ultimas-container {
  display: flex;
  gap: 20px;
}

.ultimas-esquerda {
  width: 65%;
}

.ultimas-direita {
  width: 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ===========================================================
   POLÍTICA
   =========================================================== */

.politica {
  margin-top: 40px;
}

.politica h2 {
  font-size: 2em;
  color: #004080;
  margin-bottom: 5px;
}

.noticias-politica,
.noticias-politica-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.noticia-box-politica {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.noticia-box-politica img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.noticia-box-politica h3 {
  font-size: 1.2em;
  margin: auto;
  color: #004080;
}

.noticia-box-politica a {
  text-decoration: none;
  color: inherit;
}

/* ===========================================================
   ESPORTES
   =========================================================== */

.esporte {
  margin-top: 40px;
}

.esporte h2 {
  font-size: 2em;
  color: #008000;
  margin-bottom: 5px;
}

.noticias-esporte,
.noticias-esporte-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.noticia-box-esporte {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.noticia-box-esporte img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.noticia-box-esporte h3 {
  font-size: 1.2em;
  margin: auto;
  color: #008000;
}

.noticia-box-esporte a {
  text-decoration: none;
  color: inherit;
}

/* ===========================================================
   REGIONAIS
   =========================================================== */

.regionais {
  margin-top: 40px;
}

.regionais h2 {
  font-size: 2em;
  color: #0371E0;
  margin-bottom: 5px;
}

.noticias-regionais,
.noticias-regionais-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.noticia-box-regionais {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.noticia-box-regionais img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.noticia-box-regionais h3 {
  font-size: 1.2em;
  margin: auto;
  color: #003366;
}

.noticia-box-regionais a {
  text-decoration: none;
  color: inherit;
}

/* Laterais regionais (horizontal) */
.noticia-box-lateral {
  display: flex;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.noticia-box-lateral img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  margin-right: 10px;
}

.noticia-box-lateral h3 {
  font-size: 1.2em;
  margin: 0;
  color: #333;
}

.noticia-box-lateral a {
  text-decoration: none;
  color: inherit;
}

.noticia-box-lateral .categoria {
  font-size: 0.75em;
  font-weight: bold;
  color: #cc0000;
  text-transform: uppercase;
}

/* ===========================================================
   PLACAR AO VIVO E TEMPO REAL
   =========================================================== */

.placar-tempo-real,
.placar-ao-vivo {
  max-width: 950px;
  margin: 30px auto;
  padding: 20px;
  border-radius: 10px;
  font-family: "Segoe UI", sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.placar-tempo-real {
  background-color: #ffffff;
  border: 1px solid #ddd;
}

.placar-tempo-real h2,
.placar-ao-vivo h2 {
  font-size: 1.8em;
  color: #cc0000;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.jogo-tempo-real,
.jogo-ao-vivo {
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  transition: background 0.3s;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.jogo-tempo-real:hover {
  background-color: #f0f0f0;
}

.jogo-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.jogo-info .status {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.8em;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
}

.status.ao-vivo {
  background-color: #e60000;
}

.status.encerrado {
  background-color: #777;
}

.status.em-breve {
  background-color: #09622d;
}

.jogo-times {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.time {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.time span {
  flex: 1;
  font-weight: 500;
}

.time strong {
  font-size: 1.2em;
}

.jogo-local-horario {
  margin-top: 10px;
  font-size: 0.85em;
  color: #666;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ===========================================================
   RESPONSIVIDADE
   =========================================================== */

/* Geral para telas até 1024px */
@media (max-width: 1024px) {
  .noticias-principais {
    grid-template-columns: 1fr 1fr;
  }

  .flex-grid {
    grid-template-columns: 1fr 1fr;
  }

  .noticias-laterais {
    grid-template-columns: 1fr;
  }

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

  .espaco-anuncios-laterais .anuncios-laterais {
    width: 100%;
  }
}

/* Para telas até 768px (tablets e celulares grandes) */
@media (max-width: 768px) {
  .grid-capa {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .titulo-principal {
    font-size: 1.8rem;
    padding: 8px;
  }

  .categoria-principal {
    font-size: 0.8rem;
    padding: 6px 8px;
  }

  .noticia-horizontal {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .noticia-horizontal .info-horizontal {
    flex: none;
    margin-top: 10px;
  }

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

  .ultimas-esquerda,
  .ultimas-direita {
    width: 100%;
  }

  /* Centraliza o conteúdo dentro da área direita */
  .ultimas-direita {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Ajusta tamanho do título para mobile */
  .noticia-horizontal h3 {
    font-size: 1.3rem;
  }

  .politica h2,
  .esporte h2,
  .regionais h2 {
    font-size: 1.6em;
  }

  .noticia-box-politica img,
  .noticia-box-esporte img,
  .noticia-box-regionais img {
    height: 150px;
  }

  .noticia-grande img,
  .noticia-box-lateral img,
  .noticia-box-politica img {
    width: 100%;
    height: auto;
  }

  .noticia-grande h1,
  .noticia-box-lateral h3,
  .noticia-box-politica h3 {
    font-size: 1em;
    margin: 10px 0;
  }
}

/* Para telas até 480px (celulares pequenos) */
@media (max-width: 480px) {
  .politica h2,
  .destaques h2 {
    font-size: 1.5em;
  }

  .noticia-grande h1,
  .flex-grid-item h3,
  .noticia-box-lateral h3,
  .noticia-box-politica h3 {
    font-size: 1em;
  }

  .destaques-secundarios .categoria,
  .destaques-terciarios .categoria {
    font-size: 11px;
  }

  .destaques-secundarios h3,
  .destaques-terciarios h3 {
    font-size: 16px;
  }

  .destaque-principal img {
    height: auto !important;
    max-height: 200px;
    width: 100% !important;
    object-fit: cover;
  }
}

/* ===========================================================
   FLEXBOX GERAL DE PAGINAÇÃO E WRAPPER
   =========================================================== */

html, body {
  height: 100%;
  margin: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.content-main {
  flex: 1;
}

/* Centraliza anúncios responsivos */
.ad-centralizado {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  width: 100%;
}

/* Ajusta tamanho do anúncio adsense para dispositivos menores */
@media (max-width: 768px) {
  .ad-centralizado ins.adsbygoogle {
    width: 300px !important;
    height: 250px !important;
  }
}




/* ========================== GRADE DE DESTAQUES ========================== */
.destaques {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
  background: none;
}

.destaque-principal {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: none;
  background: none;
}

.destaque-principal img {
  width: 680px;
  height: 400px; /* Limitador de altura aplicado */
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.destaque-info {
  margin-top: 15px;
  padding: 0 5px 5px;
  width: 100%;
  color: #000;
  background: none;
  border-radius: 0 0 8px 8px;
}

.destaque-info .categoria {
  display: none;
}

.destaque-info h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  color: #000;
  text-decoration: none;
}

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

/* ========================== NOTÍCIAS SECUNDÁRIAS E TERCIÁRIAS ========================== */

.destaques-secundarios img,
.destaques-terciarios img {
  width: 350px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.destaques-secundarios .info,
.destaques-terciarios .info {
  padding: 1px;
  background: none;
}

.destaques-secundarios .categoria,
.destaques-terciarios .categoria {
  font-size: 13px;
  font-weight: bold;
  color: #CD1B1E;
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  background: none;
}

.destaques-secundarios h3,
.destaques-terciarios h3 {
  font-size: 18px;
  margin: 0;
  font-weight: bold;
  color: #000;
  line-height: 1.6;
  letter-spacing: 0.1px;
  word-break: break-word;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

/* Linhas horizontais separadoras */
.destaques-secundarios article,
.destaques-terciarios article {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 10px;
  max-width: 360px;
  max-height: 380px;
  overflow: hidden;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Remove a linha inferior do último artigo */
.destaques-secundarios article:last-child,
.destaques-terciarios article:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Linha vertical entre blocos */
.destaques-secundarios article:not(:last-child),
.destaques-terciarios article:not(:last-child) {
  border-right: 1px solid #ddd;
  padding-right: 0;
  margin-right: 0;
}

.destaques-secundarios a,
.destaques-terciarios a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.destaques-secundarios a:hover,
.destaques-terciarios a:hover {
  color: #004aad;
}

/* ========================== RESPONSIVO ========================== */

@media (max-width: 1024px) {
  .destaques {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .destaque-principal {
    grid-column: span 2;
  }

  .destaques-secundarios article:not(:last-child),
  .destaques-terciarios article:not(:last-child) {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .destaque-principal img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .container,
  .destaques {
    padding-left: 1 !important;
    padding-right: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  .destaques {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .destaque-principal {
    grid-column: auto;
  }

  .destaque-principal img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
    display: block;
  }

  .destaque-info {
    padding: 20px;
  }

  .destaques-secundarios article:not(:last-child),
  .destaques-terciarios article:not(:last-child) {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .destaque-info {
    padding: 15px;
  }


  .destaque-info h2 {
    font-size: 20px;
  }

  .destaques-secundarios .categoria,
  .destaques-terciarios .categoria {
    font-size: 11px;
  }

  .destaques-secundarios h3,
  .destaques-terciarios h3 {
    font-size: 16px;
  }

  .destaque-principal img {
    height: auto !important;
    max-height: 200px;
    width: 100% !important;
    object-fit: cover;
  }
}
