/* ========================================
   SEÇÃO DE ARTIGOS (HOME)
   ======================================== */

.section-articles {
  background: #fff;
  padding: 56px 0;
  text-align: center;
}

.section-articles h2 {
  font-family: var(--font-secondary);
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 10px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
  justify-content: center;
  gap: 30px;
  margin-top: 34px;
}

.article-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  border: 1px solid #f0ece6;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.article-card-media {
  height: 200px;
  overflow: hidden;
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-media img {
  transform: scale(1.05);
}

.article-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card-tag {
  align-self: flex-start;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.article-card-body h3 {
  font-family: var(--font-secondary);
  font-size: 19px;
  line-height: 1.35;
  color: var(--navy);
  margin: 0;
}

.article-card-body p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.article-card-link {
  margin-top: 6px;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 15px;
}

.article-card-link i {
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-link i {
  transform: translateX(4px);
}

/* ========================================
   PÁGINA DE ARTIGO / MATÉRIA
   ======================================== */

.article-page {
  background: #fff;
}

/* --- Hero full-width --- */
.article-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  background-color: var(--navy-dark);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 28%;
}

/* Imagem de capa por artigo */
.article-hero--inss {
  background-image: url("../assets/images/restituicao-inss-saude.jpg");
}

.article-hero--pensao {
  background-image: url("../assets/images/pensao-alimenticia.jpg");
  /* enquadra a família e joga o texto gravado na imagem para fora do corte */
  background-position: center 18%;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 63, 95, 0.5) 0%,
    rgba(11, 53, 80, 0.82) 60%,
    rgba(9, 48, 73, 0.95) 100%
  );
}

.article-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 52px;
  color: #fff;
}

.article-breadcrumb {
  font-size: 14px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.85);
}

.article-breadcrumb a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

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

.article-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.article-hero h1 {
  font-family: var(--font-secondary);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.22;
  max-width: 900px;
  margin: 0 0 18px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-meta i {
  color: var(--gold);
}

/* --- Corpo do artigo --- */
.article-content {
  background: linear-gradient(180deg, #ffffff 0%, #faf8f6 100%);
  padding: 64px 0 80px;
}

.article-layout {
  max-width: 860px;
  margin: 0 auto;
}

.article-body p {
  font-size: 17px;
  line-height: 1.75;
  color: #333;
  margin: 0 0 18px;
}

.article-figure {
  margin: 0 0 28px;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(14, 63, 95, 0.12);
}

.article-body h2 {
  font-family: var(--font-secondary);
  font-size: 22px;
  color: var(--navy);
  margin: 36px 0 14px;
  padding-left: 16px;
  border-left: 4px solid var(--gold);
}

.article-body ul {
  margin: 0 0 22px;
  padding-left: 4px;
  list-style: none;
}

.article-body li {
  position: relative;
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 14px;
  padding-left: 32px;
}

.article-body li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--gold-dark);
  position: absolute;
  left: 0;
  top: 2px;
}

.article-quote {
  border-left: 4px solid var(--gold);
  background: #f6f1e6;
  padding: 24px 28px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #4a4a4a;
  font-style: italic;
  border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow-light);
}

/* --- CTA --- */
.article-cta {
  margin: 48px 0 8px;
  padding: 40px 32px;
  background: linear-gradient(135deg, #0e3f5f 0%, #093857 100%);
  border-radius: 20px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.article-cta p {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  max-width: 620px;
  margin: 0 auto 22px;
}

/* --- Assinatura --- */
.article-signature {
  margin-top: 40px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #efe9e1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-light);
}

.article-signature .sig-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.article-signature strong {
  display: block;
  font-size: 18px;
  color: var(--navy);
}

.article-signature span {
  font-size: 15px;
  color: #666;
}

@media (max-width: 768px) {
  .article-hero {
    min-height: 360px;
  }

  .article-content {
    padding: 44px 0 56px;
  }

  .article-body p,
  .article-body li {
    font-size: 16px;
  }

  .article-body h2 {
    font-size: 21px;
  }

  .article-cta {
    padding: 30px 22px;
  }

  .article-cta p {
    font-size: 18px;
  }
}
