/* Blog: listagem, categorias, artigo e pré-visualização. Complementa pages.css. */
.blog-page .page-hero {
  min-height: 570px;
  padding: 86px max(7vw, calc((100vw - 1440px) / 2)) 72px;
  background:
    linear-gradient(90deg, transparent 0 49.85%, #ffffff08 49.85% 50%, transparent 50%),
    linear-gradient(0deg, transparent 0 49.85%, #ffffff08 49.85% 50%, transparent 50%),
    radial-gradient(circle at 78% 38%, #144bc855 0, #144bc818 19%, transparent 38%), var(--navy);
  background-size:
    96px 96px,
    96px 96px,
    auto,
    auto;
}
.blog-page .page-hero::before {
  content: '';
  position: absolute;
  top: 95px;
  right: 9vw;
  width: min(29vw, 420px);
  aspect-ratio: 1;
  border: 1px solid #00b1ff44;
  border-radius: 50%;
  box-shadow:
    inset 0 0 80px #00b1ff12,
    0 0 120px #144bc833;
}
.blog-page .page-hero h1 {
  max-width: 18ch;
  font-size: clamp(48px, 5.3vw, 82px);
}
.blog-page .page-hero .page-lead {
  max-width: 620px;
}
.blog-topics {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  color: #8fa8cf;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-topics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.blog-topics span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.blog-categories {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.blog-categories a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #ffffff35;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: #ffffff08;
  backdrop-filter: blur(8px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.blog-categories a:hover,
.blog-categories a[aria-current='page'] {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  transform: translateY(-1px);
}

.blog-listing > .page-section {
  width: min(100%, 1440px);
  margin-inline: auto;
}
.blog-featured {
  padding-top: 84px;
  padding-bottom: 84px;
}
.blog-featured .section-kicker,
.blog-listing-section .section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
}
.blog-featured .section-kicker::before,
.blog-listing-section .section-kicker::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--green);
}
.blog-listing-section {
  border-top: 1px solid #cbd7e9;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}
.blog-toolbar h2 {
  margin: 0;
}
.blog-search {
  display: none;
  flex-direction: column;
  gap: 6px;
  min-width: min(100%, 320px);
}
.blog-enhanced .blog-search {
  display: flex;
}
.blog-search label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.blog-search input {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  box-shadow: 0 8px 30px #0707350a;
}
.blog-search input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.blog-results {
  min-height: 1.7em;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.blog-empty-results {
  padding: 32px 0;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 24px;
}
.article-grid-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.article-card:hover,
.article-card:focus-within {
  transform: translateY(-5px);
  border-color: #144bc844;
  box-shadow: 0 24px 54px #07073518;
}
.article-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  overflow: hidden;
}
.article-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.article-card:hover .article-card-media img,
.article-card:focus-within .article-card-media img {
  transform: scale(1.035);
}
.article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px 26px;
}
.article-card-category {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color 0.2s ease;
}
.article-card h2,
.article-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.article-card-featured h2,
.article-card-featured h3 {
  font-size: clamp(25px, 2.2vw, 36px);
}
.article-card h2 a:hover,
.article-card h3 a:hover {
  color: var(--blue);
}
.article-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.article-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.article-card-arrow span {
  color: var(--blue);
  font-size: 20px;
  transition: transform 0.2s ease;
}
.article-card:hover .article-card-arrow span,
.article-card:focus-within .article-card-arrow span {
  transform: translate(3px, -3px);
}
@media (min-width: 900px) {
  .article-grid-featured .article-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    min-height: 430px;
  }
  .article-grid-featured .article-card:first-child .article-card-media {
    aspect-ratio: auto;
  }
  .article-grid-featured .article-card:first-child .article-card-body {
    justify-content: center;
    padding: clamp(32px, 4vw, 58px);
  }
}

.blog-load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  font-size: 14px;
}
.pagination ol {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.pagination a:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.pagination span[aria-current='page'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Artigo */
.blog-article .article-header {
  position: relative;
  overflow: hidden;
  padding: 58px 7vw 68px;
  background:
    radial-gradient(circle at 77% 36%, #144bc866, transparent 24%),
    linear-gradient(120deg, var(--navy) 0 68%, #0a174d 100%);
  color: #fff;
}
.blog-article .article-header::after {
  content: '';
  position: absolute;
  inset: 0 0 0 55%;
  background-image:
    linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}
.article-header-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin-inline: auto;
}
.article-heading-grid {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(220px, 1fr);
  align-items: end;
  gap: clamp(48px, 8vw, 120px);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #ffffffb3;
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: #ffffff66;
}
.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}
.blog-article h1 {
  max-width: 24ch;
  margin: 12px 0 18px;
  font-size: clamp(38px, 4.3vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.article-lead {
  max-width: 62ch;
  margin: 0 0 28px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: #ffffffd9;
}
.article-signal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 170px;
  padding: 24px 24px 26px;
  border: 1px solid #ffffff1c;
  border-radius: 18px;
  background: #ffffff08;
  backdrop-filter: blur(14px);
}
.article-signal span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.article-signal strong {
  max-width: 18ch;
  font-size: 17px;
  line-height: 1.45;
}
.article-signal i {
  position: absolute;
  right: 24px;
  bottom: 25px;
  width: 42px;
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 24px #00b1ff88;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.article-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.article-author {
  display: block;
  font-weight: 600;
}
.article-dates {
  color: #ffffffb3;
}
.article-cover {
  position: relative;
  margin: clamp(32px, 4vw, 56px) auto 0;
  padding: 0 7vw;
  max-width: 1280px;
}
.article-cover picture {
  display: block;
  padding: clamp(5px, 0.55vw, 8px);
  border: 1px solid #cbd6e8;
  border-radius: 27px;
  background: linear-gradient(145deg, #ffffff, #edf3fc);
  box-shadow:
    0 32px 90px #0707352b,
    0 10px 28px #144bc814;
}
.article-cover img {
  display: block;
  width: 100%;
  height: min(52vw, 600px);
  max-height: 600px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 19px;
}
.article-cover figcaption,
.article-body figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.article-content-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  justify-content: center;
  gap: clamp(48px, 7vw, 110px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 7vw 38px;
}
.article-body {
  min-width: 0;
  max-width: 760px;
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.8;
}
.article-body > p:first-child {
  margin-top: 0;
  font-size: 19px;
  line-height: 1.75;
}
.article-body > * + * {
  margin-top: 1.2em;
}
.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 2em;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.article-body h2 {
  font-size: clamp(27px, 2.4vw, 36px);
}
.article-body h3 {
  font-size: 22px;
}
.article-body h2[id],
.article-body h3[id] {
  scroll-margin-top: 116px;
}
.article-body h4 {
  font-size: 18px;
}
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}
.article-body li + li {
  margin-top: 0.4em;
}
.article-body blockquote {
  margin: 1.6em 0;
  padding: 28px 32px 28px 34px;
  border: 1px solid #144bc820;
  border-left: 5px solid var(--green);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(110deg, #e8f0ff, #fff);
  font-size: 21px;
  font-weight: 500;
  color: var(--navy);
}
.article-body blockquote p {
  margin: 0;
}
.article-body pre {
  overflow-x: auto;
  padding: 18px 20px;
  border: 1px solid #2a3b7a;
  border-radius: 14px;
  background: linear-gradient(145deg, #070735, #111f59);
  color: #eaf0ff;
  font-size: 14px;
  line-height: 1.6;
}
.article-body code {
  font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.article-body p code,
.article-body li code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #e6ecf7;
}
.article-body figure {
  margin: 2em 0;
}
.article-body figure img {
  display: block;
  width: 100%;
  max-height: 560px;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #e8eef8;
}
.article-aside {
  min-width: 0;
}
.article-aside-sticky {
  position: sticky;
  top: 28px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.article-toc,
.article-share {
  padding: 22px 0;
  border-top: 1px solid #c8d4e6;
}
.article-toc > p,
.article-share > p {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
}
.article-toc ol {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.article-toc li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.article-toc li::before {
  counter-increment: toc;
  content: '0' counter(toc);
  color: #8c9ab2;
  font-size: 9px;
  padding-top: 2px;
}
.article-toc a:hover {
  color: var(--blue);
}
.article-share > div {
  display: flex;
  gap: 8px;
}
.article-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #c8d4e6;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.article-share a:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.article-side-cta {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 22px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}
.article-side-cta::after {
  content: '';
  position: absolute;
  right: -25px;
  bottom: -30px;
  width: 90px;
  height: 90px;
  border: 18px solid #144bc8;
  border-radius: 50%;
}
.article-side-cta span,
.article-side-cta strong {
  position: relative;
  z-index: 1;
  display: block;
}
.article-side-cta span {
  color: #9eb0cf;
  font-size: 9px;
  letter-spacing: 0.1em;
}
.article-side-cta strong {
  max-width: 12ch;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.35;
}
.article-side-cta i {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 22px;
  color: var(--green);
  font-size: 22px;
  font-style: normal;
}
.article-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 7vw 72px;
}
.author-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(90deg, #fff, #f7faff), #fff;
  box-shadow: 0 18px 50px #0707350a;
}
.author-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.author-card h2 {
  margin: 4px 0 2px;
  font-size: 20px;
}
.author-role {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.author-card p {
  margin: 0;
  font-size: 14px;
}
.author-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 500;
}
.related {
  margin-top: 48px;
}
.related h2 {
  margin: 0;
}

/* Pré-visualização */
.preview-banner {
  margin: 0;
  padding: 10px 7vw;
  background: #fff3c4;
  color: #5b4300;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 800px) {
  .blog-page .page-hero {
    min-height: 0;
    padding: 54px 7vw 58px;
  }
  .blog-page .page-hero::before {
    top: 80px;
    right: -30vw;
    width: 80vw;
    opacity: 0.55;
  }
  .blog-topics {
    gap: 7px 14px;
  }
  .blog-article .article-header {
    padding: 40px 6vw 32px;
  }
  .article-heading-grid {
    display: block;
  }
  .article-signal {
    display: none;
  }
  .article-cover {
    margin-top: 28px;
    padding: 0 6vw;
  }
  .article-cover picture {
    padding: 4px;
    border-radius: 19px;
    box-shadow: 0 20px 54px #07073524;
  }
  .article-cover img {
    border-radius: 13px;
  }
  .article-content-shell {
    display: block;
    padding: 42px 6vw 16px;
  }
  .article-aside {
    margin-bottom: 34px;
  }
  .article-aside-sticky {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .article-side-cta {
    display: none;
  }
  .article-body {
    font-size: 16px;
  }
  .article-body > p:first-child {
    font-size: 17px;
  }
  .article-body h2[id],
  .article-body h3[id] {
    scroll-margin-top: 100px;
  }
  .author-card {
    flex-direction: column;
  }
  .article-grid {
    gap: 16px;
  }
  .article-grid-featured {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blog-categories a,
  .article-card {
    transition: none;
  }
  .blog-categories a:hover,
  .article-card:hover,
  .article-card:focus-within {
    transform: none;
  }
  .article-card-media img,
  .article-card-arrow span {
    transition: none;
  }
  .article-card:hover .article-card-media img,
  .article-card:focus-within .article-card-media img,
  .article-card:hover .article-card-arrow span,
  .article-card:focus-within .article-card-arrow span {
    transform: none;
  }
}
