/* Reset simplificado */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Corpo */
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f1f2;
  color: #222222;
  line-height: 1.7;
  font-size: 16px;
  padding-top: 115px;
}
/* Top bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 40px;
  width: 100%;
  z-index: 1100;
  background-color: #bf2f35;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* Navbar */
.navbar-custom {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 1099;
  background-color: #1b374f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
main.container {
  margin-top: 20px;
  max-width: 1200px;
}
/* Navbar itens */
.navbar-custom .navbar-brand {
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: #ffffff !important;
  text-transform: uppercase;
}
.navbar-custom .navbar-nav .nav-link {
  color: #cdd2d6;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease, background 0.3s ease;
}
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
  color: #bf2f35;
  background-color: #152b45;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(191, 47, 53, 0.5);
}
/* Botões personalizados */
.btn-custom {
  background-color: #bf2f35;
  border: none;
  color: #ffffff;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  letter-spacing: 0.07em;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 6px rgba(191, 47, 53, 0.45);
}
.btn-custom:hover,
.btn-custom:focus {
  background-color: #961f26;
  box-shadow: 0 6px 14px rgba(191, 47, 53, 0.75);
  color: #fff;
  outline: none;
}
/* Ticker de notícias */
.ticker-wrap {
  position: relative;
  width: 100%;
  background: #22273b;
  color: #fff;
  overflow: hidden;
  height: 39px;
  z-index: 1095;
  border-bottom: 2px solid #bf2f35;
}
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-scroll 90s linear infinite;
  font-size: 1.05rem;
  line-height: 39px;
}
.ticker-content a {
  color: #fff;
  text-decoration: none;
  margin-right: 38px;
  font-weight: 600;
}
.ticker-content a:hover {
  color: #fff;
  text-decoration: underline;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
/* Notícia destaque */
.card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
}
.card-img-top {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-bottom: 6px solid #bf2f35;
  transition: transform 0.4s ease;
}
.card-img-top:hover {
  transform: scale(1.02);
}
.card-body {
  padding: 1.5rem 2rem;
}
/* Destaque título: sem sublinhado */
.highlight-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: #bf2f35;
  margin-bottom: 0.25rem;
  line-height: 1.15;
  text-transform: uppercase;
  text-decoration: none;
}
.highlight-title:hover,
.highlight-title:focus {
  text-decoration: underline;
  cursor: pointer;
  outline: none;
}
/* Grid estilo imageboard/masonry */
.imageboard {
  column-count: 3;
  column-gap: 1.5em;
}
@media (max-width: 992px) {
  .imageboard { column-count: 2; }
}
@media (max-width: 600px) {
  .imageboard { column-count: 1; }
}
.imageboard article {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.4em 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
  overflow: hidden;
  transition: transform 0.3s;
}
.imageboard article:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 36px rgba(191,47,53,0.20);
}
.imageboard .card-img-top {
  max-height: 250px;
  min-height: 150px;
  object-fit: cover;
  border-bottom: 4px solid #bf2f35;
}
.imageboard .card-body {
  padding: 1em 1.5em;
}
.imageboard .card-title {
  font-size: 1.2rem;
  color: #bf2f35;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.imageboard .card-title:hover {
  text-decoration: underline;
}
.imageboard .card-subtitle {
  color: #444;
  font-size: 0.98rem;
  margin-top: 0.3rem;
}
.card .card-title {
  font-weight: 900;
  font-size: 1.25rem;
  color: #bf2f35;
  text-decoration: none;
}
.card .card-title:hover,
.card .card-title:focus {
  text-decoration: underline;
  color: #961f26;
  outline: none;
  cursor: pointer;
}
.card .card-subtitle {
  color: #555;
  font-size: 0.95rem;
  margin-top: 0.3rem;
}
.card-text {
  font-size: 1.1rem;
  color: #444444;
  white-space: pre-line;
}
/* Rodapé notícia destaque */
.card-footer {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 2rem 1.2rem 2rem;
  font-size: 0.9rem;
  font-style: italic;
  color: #777777;
  border-top: 1px solid #e8e8e8;
}
/* Filtro categorias */
.btn-sm.btn-custom {
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  margin: 5px 4px 8px 0;
  text-transform: capitalize;
  box-shadow: 0 2px 8px rgba(191, 47, 53, 0.4);
  transition: all 0.3s ease;
}
.btn-sm.btn-custom:hover {
  background-color: #961f26;
  box-shadow: 0 5px 18px rgba(191, 47, 53, 0.8);
  transform: scale(1.1);
}
/* Rodapé */
footer {
  background-color: #1b374f;
  color: #d0d3d4;
  padding: 1.1rem 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-top: 4rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.25);
}
/* Responsividade */
@media (max-width: 992px) {
  main.container {
    margin-top: 140px;
    padding: 0 1.5rem;
  }
  .card-img-top {
    height: 300px;
  }
  .highlight-title {
    font-size: 1.8rem;
  }
  .card .card-title {
    font-size: 1.1rem;
  }
}
@media (max-width: 576px) {
  body {
    padding-top: 115px;
  }
  .top-bar {
    height: auto;
    min-height: 48px; /* aumenta altura mínima para não sobrepor */
    flex-direction: column;
    font-size: 0.85rem;
    gap: 0.3rem;
    padding: 0.8rem 1rem;
    align-items: flex-start; /* alinha à esquerda para encaixar melhor */
  }
  .navbar-custom .navbar-brand {
    font-size: 1.4rem;
  }
  .card-img-top,
  .imageboard .card-img-top {
    height: 200px;
  }
  .highlight-title {
    font-size: 1.4rem;
  }
  .card .card-title,
  .imageboard .card-title {
    font-size: 1rem;
  }
}
/* Correções extras de contraste, espaçamento e foco */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid #bf2f35 !important;
  box-shadow: 0 0 0 2px #ffe4e6;
}
::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-thumb {
  background: #bf2f35;
  border-radius: 5px;
}
