/* ============================
   GERAL
============================ */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  text-decoration: underline;
}

/* ============================
   SEÇÕES
============================ */
.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #0776BA;
}

.navy-line {
  width: 60px;
  height: 3px;
  background-color: #0776BA;
  margin: 20px auto;
}

/* ============================
   CARDS DE NOTÍCIAS
============================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e7eaec;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.news-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.news-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  flex: 1;
}

.news-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.news-title a {
  color: #0776BA;
  text-decoration: none;
}
.news-title a:hover {
  color: #086aa6;
  text-decoration: underline;
}

.news-excerpt {
  margin: 0;
  color: #6a6a6a;
  line-height: 1.5;
  font-size: 14px;
}

.news-meta {
  font-size: 12px;
  color: #9aa0a6;
}
.news-meta .sep {
  margin: 0 6px;
}

.news-actions {
  display: flex;
  justify-content: center;
  padding: 12px 16px 18px;
  border-top: 1px solid #f0f0f0;
}
.news-card .btn {
  min-width: 120px;
  font-weight: 600;
}

/* ============================
   BOTÕES
============================ */

/* ============================
   BADGES
============================ */
.badge {
  display: inline-block;
  padding: 0.4em 0.7em;
  font-size: 75%;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.4rem;
}

.badge-warning {
  background-color: #f0ad4e;
}


/* Botão primário com efeito CTA */
.btn-primary {
  position: relative;
  color: #fff;
  background-color: var(--primary, #0776BA);
  border: 1px solid var(--primary, #0776BA);
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  overflow: hidden;
  background-image: linear-gradient(to top, var(--secondary, #86C442), var(--secondary, #86C442));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0%;
  transition: background-size .3s ease, color .3s ease, border-color .25s ease, transform .2s ease;
  will-change: background-size;
}

.btn-primary:hover {
  background-size: 100% 100%;   /* efeito de preenchimento bottom → top */
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
}
