/* =============== BLOG STYLES =============== */

/* Hero Section */
.lei-blog-hero {
  width: 100%;
  padding-block: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 1.5rem);
  padding-inline: clamp(1rem, 4vw, 1.5rem);
  text-align: center;
  position: relative;
  background: 
    radial-gradient(
      circle at top,
      rgba(5, 8, 20, 0.85) 0%,
      rgba(2, 6, 23, 0.9) 60%,
      rgba(0, 0, 0, 0.95) 100%
    ),
    url('https://images.unsplash.com/photo-1553877522-43269d4ea984?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
  background-blend-mode: overlay;
  overflow: hidden;
  /* Compensar padding-top do body para eliminar espaço entre header fixo e hero */
  margin-top: -75px;
  padding-top: calc(clamp(2rem, 4vw, 3rem) + 75px);
}

@media (min-width: 768px) {
  .lei-blog-hero {
    margin-top: -80px;
    padding-top: calc(clamp(2rem, 4vw, 3rem) + 80px);
  }
}

.lei-blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(
      circle at top,
      rgba(5, 8, 20, 0.7) 0%,
      rgba(2, 6, 23, 0.8) 50%,
      rgba(0, 0, 0, 0.9) 100%
    );
  z-index: 0;
}

.lei-blog-hero > * {
  position: relative;
  z-index: 1;
}

.lei-blog-hero h1 {
  font: 800 clamp(2rem, 5vw, 3rem) / 1.2 "Lexend", system-ui;
  color: var(--lei-yellow);
  margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.lei-blog-hero p {
  font: 500 clamp(1rem, 2vw, 1.25rem) / 1.6 "Lexend", system-ui;
  color: var(--lei-text-muted);
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Filtros de Categoria */
.lei-blog-filters {
  width: 100%;
  padding-block: clamp(0.75rem, 1.5vw, 1.25rem);
  padding-inline: clamp(1rem, 4vw, 1.5rem);
  margin-top: clamp(-0.5rem, -1vw, -0.25rem);
  background: radial-gradient(
    circle at top,
    #050814 0%,
    #020617 60%,
    #000 100%
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.lei-blog-filters__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1vw, 0.8rem);
  justify-content: center;
  align-items: center;
}

.lei-blog-filter-btn {
  padding: clamp(0.5rem, 1vw, 0.7rem) clamp(1rem, 2vw, 1.4rem);
  border-radius: 999px;
  font: 600 clamp(0.85rem, 1.1vw, 0.95rem) / 1 "Lexend", system-ui;
  color: var(--lei-text-muted);
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lei-blog-filter-btn:hover {
  background: rgba(253, 205, 7, 0.15);
  border-color: rgba(253, 205, 7, 0.5);
  color: var(--lei-yellow);
  transform: translateY(-1px);
}

.lei-blog-filter-btn--active {
  background: rgba(253, 205, 7, 0.2);
  border-color: var(--lei-yellow);
  color: var(--lei-yellow);
  font-weight: 700;
}

@media (max-width: 640px) {
  .lei-blog-filters__container {
    gap: 0.5rem;
  }
  
  .lei-blog-filter-btn {
    padding: 0.5rem 1rem;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
  }
}

/* Grid de Cards */
.lei-blog-grid {
  width: 100%;
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem);
  padding-inline: clamp(1rem, 4vw, 1.5rem);
  background: radial-gradient(
    circle at top,
    #050814 0%,
    #020617 60%,
    #000 100%
  );
}

.lei-blog-grid__container {
  max-width: 1200px;
  margin: 0 auto;
}

.lei-blog-grid__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: clamp(1.2rem, 2.5vw, 1.6rem);
}

/* Card */
.lei-blog-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}

.lei-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.75);
  border-color: rgba(253, 205, 7, 0.7);
}

.lei-blog-card__link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Image Wrap */
.lei-blog-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
  flex-shrink: 0;
}

.lei-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform 0.2s ease-out, filter 0.2s ease-out;
}

.lei-blog-card:hover .lei-blog-card__image img {
  transform: scale(1.03);
  filter: saturate(1.15);
}

.lei-blog-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.1)
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Category Badge */
.lei-blog-card__category {
  position: absolute;
  left: clamp(0.6rem, 1.2vw, 0.8rem);
  top: clamp(0.5rem, 1vw, 0.7rem);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font: 800 clamp(0.65rem, 0.9vw, 0.68rem) / 1 "Lexend", system-ui;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.95);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  z-index: 10;
  pointer-events: auto;
}

.lei-blog-card__category:hover {
  background: rgba(253, 205, 7, 0.2);
  border-color: rgba(253, 205, 7, 0.8);
}

/* Content */
.lei-blog-card__content {
  padding: clamp(0.7rem, 1.2vw, 0.8rem) clamp(0.8rem, 1.2vw, 0.9rem) clamp(0.8rem, 1.2vw, 0.9rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.3rem, 0.6vw, 0.4rem);
  flex: 1;
}

.lei-blog-card__title {
  font: 600 clamp(0.85rem, 1.2vw, 0.9rem) / 1.3 "Lexend", system-ui;
  color: var(--lei-yellow);
  margin: 0;
}

.lei-blog-card__excerpt {
  font: 500 clamp(0.75rem, 1vw, 0.8rem) / 1.6 "Lexend", system-ui;
  color: var(--lei-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lei-blog-card__date {
  display: none; /* Oculto visualmente, mas mantido no HTML para SEO */
}

/* Página Individual de Artigo */
.lei-blog-article {
  width: 100%;
  padding-block: 0;
  padding-inline: 0;
  background: radial-gradient(
    circle at top,
    #050814 0%,
    #020617 60%,
    #000 100%
  );
}

/* Hero Section do Artigo - com imagem de fundo */
.lei-blog-article-hero {
  width: 100%;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  padding-inline: clamp(1rem, 4vw, 1.5rem);
  position: relative;
  /* Compensar padding-top do body para eliminar espaço entre header fixo e hero */
  margin-top: -75px;
  padding-top: calc(clamp(3rem, 6vw, 4.5rem) + 75px);
  /* Força ampliação da imagem mesmo se pequena - o fade vai disfarçar a qualidade */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: clamp(280px, 40vw, 400px);
  /* Suaviza a transição para o conteúdo */
  background-attachment: scroll;
}

@media (min-width: 768px) {
  .lei-blog-article-hero {
    margin-top: -80px;
    padding-top: calc(clamp(3rem, 6vw, 4.5rem) + 80px);
  }
}

.lei-blog-article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(
      circle at top,
      rgba(5, 8, 20, 0.85) 0%,
      rgba(2, 6, 23, 0.9) 50%,
      rgba(0, 0, 0, 0.95) 100%
    );
  z-index: 0;
}

.lei-blog-article-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 200px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 20, 0) 0%,
    rgba(5, 8, 20, 0.3) 30%,
    rgba(2, 6, 23, 0.6) 60%,
    rgba(2, 6, 23, 0.85) 80%,
    rgba(2, 6, 23, 1) 100%
  );
  z-index: 1;
}

.lei-blog-article-hero > * {
  position: relative;
  z-index: 2;
}

.lei-blog-article__container {
  max-width: 900px;
  margin: 0 auto;
}

.lei-blog-article__content-section {
  width: 100%;
  padding-top: clamp(1rem, 2vw, 1.5rem); /* Mesma distância do título para o autor */
  padding-bottom: clamp(1rem, 2vw, 1.5rem); /* Reduzido para aproximar a seção relacionada */
  padding-inline: clamp(1rem, 4vw, 1.5rem);
  /* Traz a caixa branca para cima, sobrepondo o fade do hero */
  position: relative;
  z-index: 3; /* Fica acima do fade do hero (z-index: 1) e do conteúdo do hero (z-index: 2) */
  /* Valor padrão para títulos de duas linhas (mantém distância atual) */
  margin-top: clamp(-8.5rem, -12vw, -10rem);
}

/* Quando o título tem apenas uma linha, aproximar mais o artigo do autor */
.lei-blog-article__content-section--single-line {
  margin-top: clamp(-10rem, -14vw, -11.5rem); /* Mais próximo para títulos de uma linha */
}

/* Quando o título tem duas ou mais linhas, manter distância padrão */
.lei-blog-article__content-section--multi-line {
  margin-top: clamp(-8.5rem, -12vw, -10rem); /* Distância padrão para títulos longos */
}

/* Breadcrumb - dentro do hero */
.lei-blog-article-hero .lei-blog-breadcrumb {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  font: 500 clamp(0.8rem, 1vw, 0.9rem) / 1.5 "Lexend", system-ui;
  color: rgba(203, 213, 225, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.lei-blog-article-hero .lei-blog-breadcrumb a {
  color: var(--lei-yellow);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.lei-blog-article-hero .lei-blog-breadcrumb a:hover {
  color: var(--lei-green);
}

.lei-blog-article-hero .lei-blog-breadcrumb span {
  margin: 0 0.5rem;
  color: rgba(203, 213, 225, 0.6);
}

.lei-blog-breadcrumb a {
  color: var(--lei-yellow);
  text-decoration: none;
  transition: color 0.15s ease;
}

.lei-blog-breadcrumb a:hover {
  color: var(--lei-green);
}

.lei-blog-breadcrumb span {
  margin: 0 0.5rem;
  color: rgba(148, 163, 184, 0.5);
}

/* Article Header - dentro do hero */
.lei-blog-article-hero .lei-blog-article__header {
  margin-bottom: 0;
  text-align: center;
}

.lei-blog-article__category {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(253, 205, 7, 0.6);
  font: 800 clamp(0.7rem, 0.9vw, 0.75rem) / 1 "Lexend", system-ui;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lei-yellow);
  margin-bottom: clamp(0.8rem, 1.5vw, 1rem);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lei-blog-article__category:hover {
  background: rgba(253, 205, 7, 0.2);
  border-color: rgba(253, 205, 7, 0.9);
  box-shadow: 0 4px 12px rgba(253, 205, 7, 0.4);
}

.lei-blog-article__title {
  font: 800 clamp(1.8rem, 4vw, 2.5rem) / 1.2 "Lexend", system-ui;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.lei-blog-article-hero .lei-blog-article__title {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.lei-blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
  font: 500 clamp(0.8rem, 1vw, 0.9rem) / 1.5 "Lexend", system-ui;
  color: var(--lei-text-muted);
  margin-top: 0;
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem); /* Margin-bottom fixo após o autor para manter distância consistente */
}

.lei-blog-article-hero .lei-blog-article__meta {
  justify-content: center;
  color: rgba(203, 213, 225, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.lei-blog-article__meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Article Content - Container Branco para Legibilidade (baseado em pesquisas científicas) */
/* Fundo claro é superior para leitura longa (pesquisas WCAG, Kindle, legibilidade) */
.lei-blog-article__content-wrapper {
  background: #FFFFFF;
  border-radius: 16px;
  /* Garante que o border-radius superior seja visível mesmo sobrepondo o hero */
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  /* Aumentado para 900px para evitar parágrafos muito largos e melhorar legibilidade */
  /* Ainda mantém 60-75 caracteres por linha, ideal para leitura */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  /* Garantir que o container não ultrapasse os limites */
  overflow: hidden;
}

/* Article Content - Tipografia otimizada para leitura longa */
.lei-blog-article__content {
  /* Fonte serif (Merriweather) para leitura longa - baseado em pesquisas do Kindle */
  font: 400 clamp(16px, 1.1vw, 18px) / 1.6 "Merriweather", Georgia, serif;
  /* Cor escura sobre fundo claro - contraste 21:1 (WCAG AAA) */
  color: #1F2937;
  /* Largura controlada para 60-70 caracteres por linha (ideal para leitura) */
  max-width: 100%;
}

.lei-blog-article__content h2,
.lei-blog-article__content h3,
.lei-blog-article__content h4 {
  font-family: "Lexend", system-ui, sans-serif;
  font-weight: 700;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.lei-blog-article__content h2 {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
}

.lei-blog-article__content h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
}

.lei-blog-article__content h4 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
}

.lei-blog-article__content p {
  margin-bottom: 1.75rem !important; /* Força espaçamento mesmo com estilos inline do WordPress */
  line-height: 1.6;
  margin-top: 0 !important; /* Remove margin-top inline que pode causar problemas */
}

/* Garantir espaçamento mesmo quando há estilos inline do WordPress */
.lei-blog-article__content p[style*="margin-bottom: 0"],
.lei-blog-article__content p[style*="margin-bottom:0"] {
  margin-bottom: 1.75rem !important;
}

.lei-blog-article__content a {
  color: #2563EB;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.lei-blog-article__content a:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

/* Links de CTA (Formação G.L.I. e Clique Aqui!) - manter amarelo da marca */
.lei-blog-article__content a.lei-blog-cta-link {
  color: var(--lei-yellow);
  font-weight: 600;
}

.lei-blog-article__content a.lei-blog-cta-link:hover {
  color: var(--lei-green);
}

.lei-blog-article__content strong {
  font-weight: 700;
  color: #111827;
}

.lei-blog-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem auto;
  display: block;
}

.lei-blog-article__content ul,
.lei-blog-article__content ol {
  margin: 1.75rem 0;
  padding-left: 2rem;
}

.lei-blog-article__content li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.lei-blog-article__content figure {
  margin: 2rem auto;
  text-align: center;
}

.lei-blog-article__content figure img {
  margin: 0 auto;
  display: block;
}

.lei-blog-article__content figcaption {
  font: 500 clamp(0.85rem, 1vw, 0.95rem) / 1.5 "Lexend", system-ui;
  color: #6B7280;
  text-align: center;
  margin-top: 0.8rem;
}

/* YouTube Player - Design Elegante e Centralizado */
.lei-blog-youtube-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 2.5rem auto;
  display: block;
  text-align: center;
}

.lei-blog-youtube-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* Aspect ratio 16:9 para manter proporção */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #000;
  display: block;
}

.lei-blog-youtube-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* Responsividade */
@media (max-width: 992px) {
  .lei-blog-grid__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .lei-blog-hero,
  .lei-blog-grid {
    padding-inline: clamp(0.8rem, 3vw, 1.2rem);
  }

  /* Hero do Artigo - ajustes tablet */
  .lei-blog-article-hero {
    min-height: clamp(260px, 45vw, 360px);
    padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  }
}

@media (max-width: 640px) {
  .lei-blog-grid__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.2rem, 2.5vw, 1.5rem);
  }

  .lei-blog-article__meta {
    flex-direction: column;
    gap: 0.6rem;
  }
  
  .lei-blog-hero,
  .lei-blog-grid,
  .lei-blog-article {
    padding-inline: clamp(0.75rem, 4vw, 1rem);
  }
  
  .lei-blog-card__category {
    font-size: clamp(0.6rem, 0.8vw, 0.65rem);
    padding: 0.2rem 0.5rem;
  }

  /* Container branco - ajustes mobile */
  .lei-blog-article__content-wrapper {
    padding: clamp(1.5rem, 4vw, 2rem);
    margin-top: 0; /* Removido margin-top pois já está no content-section */
    border-radius: 12px;
  }

  /* Seção de conteúdo - ajustes mobile */
  /* No mobile, precisa de mais distância para não cobrir categoria e título */
  .lei-blog-article__content-section {
    padding-top: clamp(1.5rem, 3vw, 2rem); /* Mais espaço no mobile */
    margin-top: clamp(-2rem, -3vw, -2.5rem); /* Distância maior no mobile para não cobrir elementos do hero */
  }

  /* Hero do Artigo - ajustes mobile */
  .lei-blog-article-hero {
    min-height: clamp(240px, 50vw, 320px);
    padding-block: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2rem);
  }

  .lei-blog-article-hero .lei-blog-article__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .lei-blog-article-hero .lei-blog-article__meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* YouTube Player - ajustes mobile */
  .lei-blog-youtube-wrapper {
    margin: 2rem auto;
  }

  .lei-blog-youtube-container {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .lei-blog-youtube-player {
    border-radius: 8px;
  }
}

/* Paginação */
.lei-blog-pagination {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.lei-blog-pagination__container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1vw, 0.8rem);
  flex-wrap: nowrap;
}

.lei-blog-pagination__link,
.lei-blog-pagination__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 clamp(0.6rem, 1vw, 0.8rem);
  border-radius: 8px;
  font: 600 clamp(0.85rem, 1.1vw, 0.9rem) / 1 "Lexend", system-ui;
  text-decoration: none;
  color: var(--lei-text-muted);
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lei-blog-pagination__link--prev {
  order: -1;
}

.lei-blog-pagination__link--next {
  order: 1;
}

.lei-blog-pagination__link:hover {
  background: rgba(253, 205, 7, 0.15);
  border-color: rgba(253, 205, 7, 0.5);
  color: var(--lei-yellow);
  transform: translateY(-1px);
}

.lei-blog-pagination__link--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.lei-blog-pagination__link button,
.lei-blog-pagination__link[type="button"] {
  background: inherit;
  border: inherit;
  color: inherit;
  font: inherit;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

.lei-blog-pagination__link--disabled button,
.lei-blog-pagination__link--disabled[type="button"] {
  cursor: not-allowed;
}

.lei-blog-pagination__number {
  color: var(--lei-text-main);
}

.lei-blog-pagination__number:hover {
  background: rgba(253, 205, 7, 0.15);
  border-color: rgba(253, 205, 7, 0.5);
  color: var(--lei-yellow);
}

.lei-blog-pagination__number--current {
  background: rgba(253, 205, 7, 0.2);
  border-color: var(--lei-yellow);
  color: var(--lei-yellow);
  font-weight: 700;
  cursor: default;
}

.lei-blog-pagination__numbers {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 0.6vw, 0.5rem);
  flex-wrap: nowrap;
  order: 0;
}

.lei-blog-pagination__ellipsis {
  padding: 0 0.5rem;
  color: var(--lei-text-muted);
  font: 600 0.9rem / 1 "Lexend", system-ui;
}

@media (max-width: 640px) {
  .lei-blog-pagination__container {
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .lei-blog-pagination__link,
  .lei-blog-pagination__number {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
  }
  
  .lei-blog-pagination__numbers {
    flex-basis: 100%;
    justify-content: center;
    order: 2;
  }
  
  .lei-blog-pagination__link--prev {
    order: 1;
  }
  
  .lei-blog-pagination__link--next {
    order: 3;
  }
}

/* =============== BANNER FIXO SCRUM =============== */

.lei-scrum-cta-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  background: radial-gradient(circle at top left, #0f172a 0%, #020617 55%, #050814 100%);
  border-top: 1px solid rgba(253, 205, 7, 0.35);
  box-shadow: 0 -8px 35px rgba(0, 0, 0, 0.55);
  z-index: 99999;
  font-family: "Lexend", system-ui, sans-serif;
  color: #fff !important;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lei-scrum-cta-wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: clamp(0.7rem, 1.5vw, 0.8rem) clamp(0.75rem, 2vw, 1rem);
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1rem);
  position: relative;
}

.lei-scrum-cta-text {
  flex: 1.6;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lei-scrum-cta-eyebrow,
.lei-scrum-cta-title,
.lei-scrum-cta-sub {
  margin: 0 !important;
  padding: 0;
}

.lei-scrum-cta-eyebrow {
  display: inline-flex;
  padding: clamp(0.15rem, 0.5vw, 0.2rem) clamp(0.6rem, 1.5vw, 0.7rem);
  border-radius: 999px;
  font-size: clamp(0.7rem, 1.2vw, 0.75rem);
  border: 1px solid rgba(253, 205, 7, 0.6);
  color: #fdcd07 !important;
  box-shadow: 0 0 8px rgba(253, 205, 7, 0.4);
  width: fit-content;
}

.lei-scrum-cta-title {
  color: #f9fafb !important;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.25;
}

.lei-scrum-cta-sub {
  color: #e5e7eb !important;
  font-size: clamp(0.8rem, 1.3vw, 0.85rem);
  line-height: 1.4;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.lei-scrum-cta-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.lei-scrum-cta-btn {
  padding: clamp(0.5rem, 1.2vw, 0.55rem) clamp(1rem, 2.5vw, 1.3rem);
  border-radius: 999px;
  background: #fdcd07;
  color: #020617 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.5vw, 0.88rem);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lei-scrum-cta-btn:hover {
  background: #22c55e;
  color: #020617 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.8);
}

.lei-scrum-cta-note {
  font-size: clamp(0.7rem, 1.2vw, 0.75rem);
  color: #cbd5e1 !important;
}

.lei-scrum-cta-close {
  position: absolute;
  top: clamp(0.35rem, 1vw, 0.4rem);
  right: clamp(0.4rem, 1.2vw, 0.5rem);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0;
  width: clamp(20px, 2vw, 22px);
  height: clamp(20px, 2vw, 22px);
  border-radius: 50%;
  color: #fff !important;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.85rem, 1.2vw, 0.9rem);
  line-height: 1;
}

.lei-scrum-cta-close:hover {
  background: rgba(30, 58, 138, 0.9);
  transform: translateY(-1px);
}

/* Mobile */
/* Artigos Relacionados - Seção Elegante */
.lei-blog-related {
  width: 100%;
  padding-top: clamp(0.5rem, 1.5vw, 1rem); /* Muito reduzido para aproximar do artigo */
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  padding-inline: clamp(1rem, 4vw, 1.5rem);
  background: radial-gradient(
    circle at top,
    #050814 0%,
    #020617 60%,
    #000 100%
  );
  margin-top: clamp(-1.5rem, -3vw, -1rem); /* Sobrepor mais o conteúdo do artigo para aproximar */
}

.lei-blog-related__container {
  max-width: 1200px;
  margin: 0 auto;
}

.lei-blog-related__title-section {
  font: 800 clamp(1.5rem, 3vw, 2rem) / 1.2 "Lexend", system-ui;
  color: var(--lei-yellow);
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  position: relative;
}

.lei-blog-related__title-section::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(60px, 10vw, 80px);
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--lei-yellow),
    transparent
  );
  border-radius: 2px;
}

.lei-blog-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  max-width: 1000px;
  margin: 0 auto;
}

.lei-blog-related__card {
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.96),
    rgba(2, 6, 23, 0.98)
  );
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lei-blog-related__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  border-color: rgba(253, 205, 7, 0.6);
}

.lei-blog-related__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lei-blog-related__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
  flex-shrink: 0;
  min-height: 200px; /* Garantir altura mínima para visualização */
}

.lei-blog-related__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block !important; /* Garantir que a imagem seja exibida */
  position: absolute; /* Mudar para absolute para garantir que fique acima do overlay */
  top: 0;
  left: 0;
  z-index: 2; /* Acima do overlay */
  opacity: 1 !important; /* Garantir que a imagem seja visível */
}

.lei-blog-related__card:hover .lei-blog-related__image img {
  transform: scale(1.08);
}

.lei-blog-related__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.15),
    rgba(15, 23, 42, 0)
  );
  pointer-events: none;
  z-index: 1; /* Abaixo da imagem */
  opacity: 0.6; /* Reduzir opacidade para não esconder a imagem */
}

.lei-blog-related__content {
  padding: clamp(1rem, 2vw, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  flex: 1;
}

.lei-blog-related__category {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(253, 205, 7, 0.15);
  border: 1px solid rgba(253, 205, 7, 0.5);
  font: 700 clamp(0.65rem, 0.9vw, 0.7rem) / 1 "Lexend", system-ui;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lei-yellow);
  margin-bottom: 0.25rem;
}

.lei-blog-related__title {
  font: 600 clamp(0.95rem, 1.4vw, 1.1rem) / 1.3 "Lexend", system-ui;
  color: var(--lei-yellow); /* Títulos em amarelo */
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lei-blog-related__excerpt {
  font: 400 clamp(0.8rem, 1.1vw, 0.9rem) / 1.6 "Lexend", system-ui;
  color: var(--lei-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Responsividade - Artigos Relacionados */
@media (max-width: 992px) {
  .lei-blog-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.2rem, 2.5vw, 1.5rem);
  }
}

@media (max-width: 640px) {
  .lei-blog-related {
    padding-top: clamp(2rem, 4vw, 2.5rem); /* Mais espaço no mobile para não colar */
    padding-bottom: clamp(2rem, 4vw, 3rem);
    margin-top: 0; /* Remover sobreposição no mobile */
  }

  .lei-blog-related__title-section {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
  }

  .lei-blog-related__grid {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.25rem);
  }
}

@media (max-width: 780px) {
  .lei-scrum-cta-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(0.8rem, 2vw, 0.85rem) clamp(0.75rem, 2vw, 1rem);
    gap: 0.45rem;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .lei-scrum-cta-title {
    font-size: clamp(0.95rem, 2.5vw, 1rem);
  }

  .lei-scrum-cta-sub {
    font-size: clamp(0.78rem, 2vw, 0.82rem);
    line-height: 1.35;
  }

  .lei-scrum-cta-actions {
    width: 100%;
    align-items: stretch;
    text-align: left;
  }

  .lei-scrum-cta-btn {
    width: 100%;
    text-align: center;
    padding: clamp(0.6rem, 2vw, 0.65rem) clamp(0.9rem, 3vw, 1rem);
  }

  .lei-scrum-cta-note {
    text-align: left;
    font-size: clamp(0.7rem, 2vw, 0.72rem);
  }

  .lei-scrum-cta-close {
    top: clamp(0.3rem, 1vw, 0.35rem);
    right: clamp(0.35rem, 1vw, 0.4rem);
  }
}

