.noticias-horizontais {
  margin: var(--space-2, 16px) auto 0;  /* centraliza e usa escala */
  position: relative;
  padding-left: var(--space-5, 40px);   /* espaço para as faixas */
  width: 80%;
   /* centraliza textos e o "Veja mais" */
}

/* Centraliza o topo "Veja mais" */
.noticias-h-top {
  width: 85%;
}

/* Centraliza a grade e evita que os cards “estiquem” demais */
.noticias-h-grid {
  justify-content: center; /* centra as colunas quando houver espaço */
}

.noticia-h-card {
  margin-left: auto;
  margin-right: auto;
}

/* Faixas verticais estáticas à esquerda (ordem invertida) */
.noticias-horizontais::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30px; /* 3 faixas de 10px */
  background-image: linear-gradient(
    to right,
    var(--brand-blue-500, #0757e9) 0 10px,     /* azul */
    var(--brand-blue-600, #0751d9) 10px 20px,  /* azul escuro */
    var(--brand-orange, #ffb400) 20px 30px     /* amarelo */
  );
  pointer-events: none;
}

.noticias-h-grid {
  display: grid;
  gap: var(--space-3, 24px);
  grid-template-columns: repeat(4, 1fr);
}

.noticia-h-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  color: inherit;
  transition: color .2s ease;
}

/* Remover qualquer fundo/overlay no hover dos cards horizontais */
.noticias-horizontais .noticia-h-card,
.noticias-horizontais .noticia-h-card:hover,
.noticias-horizontais .noticia-h-card:focus {
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none;
}

/* Neutraliza pseudo-elementos de overlay, se houver */
.noticias-horizontais .noticia-h-card::before,
.noticias-horizontais .noticia-h-card:hover::before,
.noticias-horizontais .noticia-h-media::before,
.noticias-horizontais .noticia-h-media:hover::before,
.noticias-horizontais .noticia-h-body::before,
.noticias-horizontais .noticia-h-body:hover::before {
  content: none !important;
  background: transparent !important;
  display: none !important;
}

.noticia-h-media {
  position: relative;
  width: 100%;
  aspect-ratio: 376 / 251;
  overflow: hidden;
}

.noticia-h-media img,
.noticia-h-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.noticia-h-placeholder {
  background: linear-gradient(135deg, #e9eef7, #f6f8fc);
}

.noticia-h-tag {
  display: inline-block;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 34px;
  letter-spacing: -0.03em;
  color: var(--brand-blue-700, #065EFF);
}

.noticia-h-accent {
  width: 120px; /* mantém proporção do layout */
  height: 3px;  /* fino, não altera */
  background: var(--brand-orange, #FFB400);
  margin: -6px 0 var(--space-1, 8px) 0; /* aproxima da tag, base 8 */
}

.noticia-h-title {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 30px;
  color: var(--text-dark, #333955);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines to show */
          line-clamp: 3; 
  -webkit-box-orient: vertical;
}

.noticia-h-card:hover .noticia-h-title,
.noticia-h-card:focus .noticia-h-title,
.noticia-h-card:hover .noticia-h-tag,
.noticia-h-card:focus .noticia-h-tag {
  color: var(--brand-blue-700, #065EFF);
}

/* Centraliza a retranca (tag-container) apenas nas notícias horizontais */
.noticias-horizontais .noticia-h-body .tag-container {
  display: table;
  margin: 0 auto;
}

/* Efeito sutil na imagem das notícias horizontais */
.noticia-h-media img {
  transition: transform .25s ease, filter .25s ease;
  will-change: transform;
}
.noticia-h-card:hover .noticia-h-media img,
.noticia-h-card:focus-visible .noticia-h-media img {
  transform: scale(1.02);
  filter: saturate(1.03) brightness(1.02);
}

/* Acessibilidade: reduz movimento */
@media (prefers-reduced-motion: reduce) {
  .noticia-h-media img {
    transition: filter .12s linear;
  }
  .noticia-h-card:hover .noticia-h-media img,
  .noticia-h-card:focus-visible .noticia-h-media img {
    transform: none;
    filter: brightness(1.03);
  }
}

/* Responsividade */
@media (min-width: 992px) {
  .noticias-h-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .noticias-h-grid {
    grid-template-columns: none;
  }

  .noticia-h-body{
    padding: 10px 0 0 0 !important;
    align-items: center;
  }
}

@media (max-width: 767.98px) {
  .noticias-horizontais {
    width: 100%;
    padding-left: 0;
    margin: 0;
  }
  
  /* Faixa horizontal colorida acima das notícias no mobile */
  .noticias-horizontais::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -20px;
    height: 6px;
    background: linear-gradient(
      to right,
      var(--brand-blue-500, #0757e9) 0 33.33%,
      var(--brand-blue-600, #0751d9) 33.33% 66.66%,
      var(--brand-orange, #ffb400) 66.66% 100%
    );
    pointer-events: none;
    width: 100%;
  }
  
  /* Ocultar tags no mobile */
  .noticias-horizontais .tag-container,
  .noticias-horizontais .noticia-h-tag,
  .noticias-horizontais .noticia-h-accent {
    display: none !important;
  }
  
  /* Grid empilhado no mobile */
  .noticias-h-grid {
    display: block;
    gap: 0;
    grid-auto-flow: none;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }
  
  /* Cards móveis empilhados */
  .noticia-h-card {
    display: block;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: none;
    scroll-snap-align: none;
  }
  
  /* Imagem mobile */
  .noticia-h-media {
    aspect-ratio: 16 / 9;
    margin-bottom: 0;
  }
  
  .noticia-h-media img {
    border-radius: 0;
  }
  
  /* Conteúdo mobile */
  .noticia-h-body {
    padding: 16px;
  }
  
  /* Título mobile */
  .noticia-h-title {
    font-size: 18px;
    line-height: 24px;
    margin: 0;
    text-align: left;
  }
  
  /* Remover centralização de tags no mobile */
  .noticias-horizontais .noticia-h-body .tag-container {
    display: none !important;
    margin: 0;
  }
  
  /* Ajustar top "Veja mais" no mobile */
  .noticias-h-top {
    width: 100%;
    margin-top: var(--space-4, 32px);
    margin-bottom: var(--space-3, 24px);
  }
}

/* Manter comportamento original no desktop */
@media (min-width: 768px) {
  .noticias-horizontais {
    margin: var(--space-2, 16px) auto 0;
    position: relative;
    padding-left: var(--space-5, 40px);
    width: 80%;
  }
  
  /* Faixas verticais no desktop */
  .noticias-horizontais::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background-image: linear-gradient(
      to right,
      var(--brand-blue-500, #0757e9) 0 10px,
      var(--brand-blue-600, #0751d9) 10px 20px,
      var(--brand-orange, #ffb400) 20px 30px
    );
    pointer-events: none;
  }
  
  .noticias-h-grid {
    display: grid;
    gap: var(--space-3, 24px);
    justify-content: center;
  }
  
  .noticia-h-card {
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
}

