/* =========================
   BASE GERAL
========================= */

body {
  font-family: "Noto Sans SC", Arial, sans-serif;
  background: #f5f7f9;
  margin: 0;
  padding: 0;
  color: #0b1f24;
}

.container {
  width: 92%;
  max-width: 1280px;
  margin: auto;
}

/* =========================
   HEADER
========================= */

.news-header {
  background: linear-gradient(180deg, #146472, #0F4C5C);
  color: #ffffff;
  padding: 28px 0;
  box-shadow: 0 8px 22px rgba(0,0,0,0.14);
}


.news-header h1 {
  margin: 0;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.3px;
}


.lang-switch {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}

.lang-switch a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 10px;
  opacity: 0.85;
  font-weight: 600;
  transition: 0.2s;
}

.lang-switch a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =========================
   GRID DE NOTÍCIAS
========================= */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 50px;
  margin-bottom: 60px;
}

/* =========================
   CARD DE NOTÍCIA
========================= */

.news-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.14);
}

/* IMAGEM */

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #dfe8ea, #f5f7f9);
}

/* TEXTO */

.news-card h2 {
  font-size: 18px;
  padding: 18px 18px 6px 18px;
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: #0F4C5C;
}

.news-meta {
  font-size: 13px;
  color: #6b7c85;
  padding: 0 18px;
  margin-bottom: 6px;
}

.news-card p {
  padding: 0 18px;
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
  color: #1d2c31;
}

/* LINK */

.news-card a {
  display: inline-block;
  margin: 14px 18px 18px 18px;
  text-decoration: none;
  color: #0F4C5C;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s;
}

.news-card a:hover {
  color: #08343d;
}

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

@media (max-width: 768px) {

  .news-header h1 {
    font-size: 22px;
  }

  .news-card img {
    height: 180px;
  }

  .news-card h2 {
    font-size: 16px;
  }

  .news-card p {
    font-size: 14px;
  }

}
/* =========================
   BOTÃO VOLTAR AO SITE
========================= */

.news-top-actions {
  text-align: center;
  margin-top: 12px;
}

.back-site-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.35);
  transition: all 0.25s;
}

.back-site-btn:hover {
  background: #ffffff;
  color: #0F4C5C;
}
/* =========================
   CORREÇÃO DEFINITIVA MOBILE
========================= */

@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .container {
    width: 94%;
  }

  .news-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
    padding-bottom: 40px;
  }

  .news-card {
    border-radius: 10px;
  }

  .news-card img {
    height: 160px;
  }

  .news-card h2 {
    font-size: 16px;
  }

  .news-card p {
    font-size: 14px;
  }

  .news-top-actions {
    margin-top: 14px;
  }

  .back-site-btn {
    font-size: 13px;
    padding: 9px 16px;
  }
}
/* ========= RESET BÁSICO ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========= BODY ========= */
body {
  font-family: Inter, Arial, sans-serif;
  background: #f4f7f9;
  color: #1a1a1a;
  line-height: 1.7;
}

/* ========= CONTAINER ========= */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========= HEADER DA NOTÍCIA ========= */
.news-header {
  background: linear-gradient(135deg, #0F4C5C, #083842);
  color: #ffffff;
  padding: 60px 20px 50px;
  margin-bottom: 40px;
}

.news-header h1 {
  font-size: 2.1rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.news-meta {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ========= BOTÃO VOLTAR ========= */
.news-top-actions {
  margin-top: 20px;
}

.back-site-btn {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.2s ease;
}

.back-site-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* ========= CORPO DA NOTÍCIA ========= */
.news-article {
  background: #ffffff;
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  margin-bottom: 80px;
}

/* ========= IMAGEM ========= */
.news-article img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 28px;
}

/* ========= PARÁGRAFOS ========= */
.news-article p {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: #2a2a2a;
}

/* ========= LINK DE VOLTAR NO TEXTO ========= */
.news-article a {
  color: #0F4C5C;
  font-weight: 600;
  text-decoration: none;
}

.news-article a:hover {
  text-decoration: underline;
}

/* ========= MOBILE ========= */
@media (max-width: 768px) {

  .news-header {
    padding: 40px 16px 32px;
  }

  .news-header h1 {
    font-size: 1.6rem;
  }

  .news-article {
    padding: 26px 20px;
  }

  .news-article img {
    max-height: 260px;
  }
}
.btn-voltar {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;

  background: #ffffff;
  color: #0F4C5C;

  border: 1px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);

  transition: all 0.2s ease;
}

.btn-voltar:hover {
  background: #0F4C5C;
  color: #fff;
  border-color: #0F4C5C;
}
