/* =========================================================
   PÁGINA INDIVIDUAL DE NOTÍCIA
   Usa deliberadamente o MESMO fundo da listagem de Notícias.
   ========================================================= */
.article-news-page {
  background:
    radial-gradient(ellipse 78% 38% at 8% 4%, rgba(75, 183, 238, .31) 0%, rgba(75, 183, 238, .13) 42%, transparent 72%),
    radial-gradient(ellipse 74% 34% at 91% 5%, rgba(137, 205, 106, .27) 0%, rgba(137, 205, 106, .11) 43%, transparent 72%),
    radial-gradient(ellipse 62% 30% at 74% 13%, rgba(248, 220, 91, .18) 0%, transparent 70%),
    linear-gradient(180deg, #eef9fd 0%, #f8fcfb 18%, #fff 42%, #fbfcfc 72%, #f5fafc 100%) !important;
}

.article-page {
  padding: 50px 0 72px;
  background: transparent
}

.article-page .container {
  max-width: 1320px
}

.article-breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  font-size: .82rem;
  color: #647b89
}

.article-breadcrumb a {
  color: #315c72;
  text-decoration: none
}

.article-heading {
  max-width: 920px;
  margin-bottom: 30px
}

.article-heading h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 17px
}

.article-meta {
  font-family: "Montserrat", sans-serif;
  font-size: .86rem;
  font-weight: 650;
  color: #41687a
}

.article-hero {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 9px 28px rgba(6, 70, 111, .10)
}

.article-hero img {
  display: block;
  width: 100%;
  height: 510px;
  object-fit: cover;
  transition: opacity .2s ease
}

.article-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 14px 0 30px
}

.article-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer
}

.article-thumbs button.active {
  border-color: var(--blue)
}

.article-thumbs img {
  display: block;
  width: 100%;
  height: 105px;
  object-fit: cover
}

.article-copy {
  color: #435d6e;
  font-size: 1rem;
  line-height: 1.8
}

.article-copy p {
  margin: 0 0 20px
}

.article-copy .article-lead {
  font-family: "Montserrat", sans-serif;
  font-size: 1.16rem;
  line-height: 1.6;
  font-weight: 650;
  color: var(--ink)
}

.article-gallery {
  margin-top: 35px;
  padding: 25px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .60);
  box-shadow: 0 7px 24px rgba(6, 70, 111, .06)
}

.article-gallery h2,
.side-card h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.06rem;
  font-weight: 750;
  color: var(--ink);
  margin: 0 0 18px
}

.article-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px
}

.article-gallery-grid img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 7px
}

.article-bottom {
  border-top: 1px solid rgba(35, 92, 117, .18);
  margin-top: 28px;
  padding-top: 22px
}

.back-news {
  font-family: "Montserrat", sans-serif;
  font-size: .87rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none
}

.article-sidebar {
  position: sticky;
  top: 135px
}

.side-card {
  padding: 23px;
  border-radius: 12px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 7px 25px rgba(6, 70, 111, .07);
  backdrop-filter: blur(5px)
}

.recent-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(32, 87, 110, .10)
}

.recent-item:last-child {
  border-bottom: 0;
  padding-bottom: 0
}

.recent-item img {
  width: 100px;
  height: 74px;
  object-fit: cover;
  border-radius: 7px
}

.recent-item strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: .87rem;
  line-height: 1.35;
  color: var(--ink)
}

.recent-item time {
  display: block;
  font-size: .76rem;
  color: #728592;
  margin-top: 5px
}

.related-docs {
  background: rgba(232, 248, 238, .76)
}

.related-docs>a {
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
  color: var(--ink)
}

.doc-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #fff;
  font-size: .62rem;
  font-weight: 800;
  color: #d94747
}

.related-docs strong {
  display: block;
  font-size: .84rem
}

.related-docs small {
  display: block;
  color: #71838d;
  margin-top: 2px
}

.contact-card p {
  font-size: .86rem;
  line-height: 1.55;
  color: #5f7480
}

.contact-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  padding: 11px 14px;
  font-family: "Montserrat", sans-serif;
  font-size: .83rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none
}

@media(max-width:991px) {
  .article-sidebar {
    position: static
  }

  .article-hero img {
    height: 430px
  }
}

@media(max-width:767px) {
  .article-page {
    padding: 35px 0 50px
  }

  .article-heading {
    margin-bottom: 23px
  }

  .article-hero img {
    height: 300px
  }

  .article-thumbs {
    gap: 7px
  }

  .article-thumbs img {
    height: 72px
  }

  .article-gallery-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .article-gallery-grid img {
    height: 130px
  }
}

/* Protótipo: títulos dos cartões apontam para a mesma página individual. */
.news-title-link {
  color: inherit;
  text-decoration: none;
}

.news-title-link:hover {
  color: var(--blue);
}

/* Notícia individual — substituir breadcrumb por voltar às notícias */
.article-top-back {
  margin-bottom: 30px;
}

.article-top-back a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Montserrat", sans-serif;
  font-size: .87rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  transition: transform .18s ease, color .18s ease;
}

.article-top-back a:hover {
  transform: translateX(-3px);
}


/* Mesma animação nos links "Voltar às Notícias" do topo e do fim */
.back-news {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform .18s ease, color .18s ease;
}

.back-news:hover {
  transform: translateX(-3px);
}


