/* Links com hover padrão */
.hover-link {
  text-decoration: none;
  color: #aa1916;
  transition: text-decoration 0.2s ease;
}


/* Classe para remover borda */
.sem-borda {
  border: none !important;
  box-shadow: none;
  /* opcional: remove sombra padrão */
}

/* zoom na imagem */
.imagem-aproximar {
  transition: transform 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.imagem-aproximar:hover {
  transform: scale(1.03);
}


.justificado {
  text-align: justify;
}

.underline-noticia:hover {
  text-decoration: underline;
}

.carousel-caption h4,
.carousel-caption p {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.85);
}


.status-positivo {
  background-color: green;
  color: white;
  padding: 5px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
}

.status-negativo {
  background-color: #aa1916;
  color: white;
  padding: 5px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
}

.status-positivo svg,
.status-negativo svg {
  width: 16px;
  height: 16px;
  fill: white;
}

#regularMarketChangePercent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 15px;
  color: white;
  font-weight: bold;
}

/* Remove sublinhado de todo o link por padrão */
.noticia-pequena a {
  text-decoration: none;
  color: inherit;
  /* mantém a cor original */
}

/* Sublinha somente o título ao passar o mouse sobre ele */
.noticia-pequena a:hover .card-title {
  text-decoration: underline;
}

/* Sublinha somente a categoria ao passar o mouse sobre ela */
.noticia-pequena a:hover .category {
  text-decoration: underline;
}


/* Remove sublinhado padrão dos links */
.noticia-inicio a {
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  display: inline;
}

/* Sublinha apenas o título ao passar o mouse */
.noticia-inicio a:hover .card-title {
  text-decoration: underline;
  color: inherit;
  /* mantém cor se não quiser alterar */
}

/* Sublinha apenas a categoria ao passar o mouse */
.noticia-inicio a:hover .category {
  text-decoration: underline;
  color: inherit;
}



.card-header-custom {
  background-color: #274964;
  /* azul escuro */
  color: white;
  position: relative;
  text-align: center;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  height: 65px;
  line-height: 1.3;
}

/* Triângulo (seta) embaixo do header */
.card-header-custom::after {
  content: "";
  position: absolute;
  bottom: -10px;
  /* posiciona fora do header */
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #274964;
  width: 0;
  height: 0;
}

.card-value {
  font-size: 1.7rem;
  color: #3498db;
  /* azul claro */
  font-weight: 300;
  margin-bottom: 0;
}

.card-subtitle {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.1rem;
}

.card-subtitle a {
  text-decoration: none;
  color: #3498db;
}

.badge {
  background-color: rgb(241, 189, 16);
  color: #272727;
}

.card-subtitle a:hover {
  text-decoration: underline;
  color: #aa1916;
}

.card-small-text {
  font-size: 0.75rem;
  color: #888;
}

.sombra {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bg-azul th {
  background-color: #274964 !important;
  color: white;
}

.table.tabela-custom td:first-child a {
  color: #060690;
  text-decoration: none;
  font-weight: 500;
}

.table.tabela-custom td:first-child a:hover {
  color: #aa1916;
  text-decoration: underline;
}


.table td,
.table th {
  vertical-align: middle;
}



.popup-termos {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 450px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  z-index: 999999;
}

.popup-termos-content p {
  margin: 0 0 10px;
  font-size: 14px;
  text-align: center;
}

.popup-termos-botoes {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.popup-termos-content a {
  color: #060690;
  text-decoration: none;
}

.popup-termos-content a:hover {
  color: #aa1916;
  text-decoration: underline;
}


/* Botão */
.btn-danger {
  background: linear-gradient(90deg, #d60000, #a80000);
  border: none;
  font-weight: bold;
  transition: all .25s ease;
  border-radius: 8px;
}

.btn-danger:hover {
  background: linear-gradient(90deg, #ff0000, #c50000);
  transform: scale(1.04);
}