/* ================================================================
   BLOG — Estilos específicos do blog
   Header, footer e base visual vêm de navbar.css + page-base.css
   ================================================================ */

body {
  margin: 0;
  font-family: 'ITC Avant Garde Gothic Std', 'Avant Garde', 'Century Gothic', Verdana, sans-serif;
  color: #10145B;
  background:
    radial-gradient(circle at 12% -10%, rgba(223, 154, 52, 0.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(33, 74, 255, 0.10), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.blog-main-section {
  position: relative;
  overflow: clip;
}

/* ---------- Blog controls ---------- */
.blog-controls {
  border-radius: 18px;
  border: 1px solid rgba(18, 40, 75, 0.10);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  padding: 20px;
  display: grid;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(9, 25, 51, 0.06);
}

.blog-search-box {
  display: grid;
  gap: 6px;
}

.blog-search-box label {
  font-family: 'ITC Avant Garde Gothic Std', 'Avant Garde', 'Century Gothic', Verdana, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #10145B;
  font-weight: 600;
}

.blog-search-box input {
  width: 100%;
  border: 1px solid rgba(18, 40, 75, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 14px;
  color: #10145B;
  font-family: 'ITC Avant Garde Gothic Std', 'Avant Garde', 'Century Gothic', Verdana, sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.blog-search-box input:focus {
  outline: none;
  border-color: rgba(223, 154, 52, 0.6);
  box-shadow: 0 0 0 3px rgba(223, 154, 52, 0.15);
}

/* ---------- Category chips ---------- */
.blog-category-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  padding-inline: 2px;
  scroll-padding-inline: 2px;
}

.blog-category-chips::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid rgba(18, 40, 75, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #10145B;
  font-family: 'ITC Avant Garde Gothic Std', 'Avant Garde', 'Century Gothic', Verdana, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.category-chip:hover {
  border-color: rgba(17, 56, 106, 0.38);
  color: #10145B;
  background: #ebeff8;
  transform: translateY(-1px);
}

.category-chip:active {
  transform: translateY(0);
}

.category-chip:focus-visible {
  outline: 2px solid rgba(223, 154, 52, 0.7);
  outline-offset: 2px;
}

.category-chip.active {
  border-color: transparent;
  color: #10145B;
  background: linear-gradient(135deg, #DF9A34, #DF9A34);
  box-shadow: 0 4px 12px rgba(223, 154, 52, 0.3);
}

/* ---------- Featured story ---------- */
.blog-featured {
  position: relative;
}

.blog-featured-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(18, 40, 75, 0.14);
  background:
    radial-gradient(circle at 12% -12%, rgba(33, 74, 255, 0.22), transparent 38%),
    radial-gradient(circle at 88% 112%, rgba(223, 154, 52, 0.22), transparent 42%),
    linear-gradient(154deg, rgba(255, 255, 255, 0.98), rgba(245, 240, 231, 0.96));
  box-shadow:
    0 24px 46px rgba(9, 25, 51, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  overflow: hidden;
  display: grid;
  min-height: clamp(260px, 42vw, 420px);
}

.blog-featured-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(223, 154, 52, 0.25), transparent 44%),
    linear-gradient(138deg, #10145B, #214AFF);
}

.blog-featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 22, 44, 0.02), rgba(9, 22, 44, 0.28)),
    radial-gradient(circle at 8% 8%, rgba(255, 223, 170, 0.18), transparent 36%);
}

.blog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.01);
}

.blog-featured-copy {
  padding: clamp(18px, 2.8vw, 30px);
  display: grid;
  align-content: start;
  gap: 12px;
}

.blog-featured-kicker {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(223, 154, 52, 0.56);
  background: rgba(223, 154, 52, 0.18);
  color: #DF9A34;
  font-family: 'ITC Avant Garde Gothic Std', 'Avant Garde', 'Century Gothic', Verdana, sans-serif;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  padding: 7px 13px;
}

.blog-featured-meta {
  margin: 0;
  color: #10145B;
  font-family: 'ITC Avant Garde Gothic Std', 'Avant Garde', 'Century Gothic', Verdana, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.67rem;
  font-weight: 700;
}

.blog-featured-copy h3 {
  margin: 0;
  color: #10145B;
  font-size: clamp(1.22rem, 2.5vw, 1.82rem);
  line-height: 1.15;
  font-family: 'ITC Avant Garde Gothic Std', 'Avant Garde', 'Century Gothic', Verdana, sans-serif;
  text-wrap: balance;
}

.blog-featured-copy p {
  margin: 0;
  color: #10145B;
  font-size: 1rem;
  line-height: 1.62;
  max-width: 58ch;
}

.blog-featured-divider {
  width: min(160px, 38%);
  height: 1px;
  background: linear-gradient(90deg, rgba(223, 154, 52, 0.7), rgba(223, 154, 52, 0.1));
}

.blog-featured-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.blog-featured-actions .hs-btn-gold,
.blog-featured-actions .hs-btn-ghost {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 0.74rem;
}

.blog-featured-actions .blog-featured-open {
  cursor: pointer;
}

.blog-featured-actions .blog-featured-browse {
  border-color: rgba(18, 40, 75, 0.24);
  color: #10145B;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: none;
}

.blog-featured-actions .blog-featured-browse:hover {
  border-color: rgba(223, 154, 52, 0.64);
  color: #10145B;
  background: rgba(255, 255, 255, 0.96);
}

.blog-featured-actions .hs-btn-gold:focus-visible,
.blog-featured-actions .hs-btn-ghost:focus-visible {
  outline: 2px solid rgba(223, 154, 52, 0.72);
  outline-offset: 2px;
}

.blog-featured-empty {
  min-height: 0;
}

.blog-featured-empty .blog-featured-media {
  display: none;
}

.blog-featured-empty .blog-featured-copy {
  padding: clamp(20px, 3vw, 30px);
}

.blog-featured-empty .blog-featured-copy p {
  max-width: 68ch;
}

/* ---------- Content grid ---------- */
.blog-content-grid {
  display: grid;
  gap: 22px;
}

/* ---------- Posts grid ---------- */
.blog-posts-grid {
  display: grid;
  gap: 14px;
}

.posts-empty {
  border-radius: 16px;
  border: 1px solid rgba(18, 40, 75, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: #10145B;
  padding: 20px;
  font-size: 0.92rem;
}

/* ---------- Post card ---------- */
.post-card {
  border-radius: 18px;
  border: 1px solid rgba(18, 40, 75, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(9, 25, 51, 0.10);
  overflow: hidden;
  display: grid;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(9, 25, 51, 0.14);
  border-color: rgba(223, 154, 52, 0.3);
}

.post-card.is-active {
  border-color: rgba(33, 74, 255, 0.36);
  box-shadow: 0 18px 40px rgba(20, 60, 110, 0.16);
}

.post-card-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: #ebeff8;
}

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

.post-card:hover .post-card-media img {
  transform: scale(1.03);
}

.post-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  background: rgba(8, 25, 50, 0.72);
  color: #ebeff8;
  border: 1px solid rgba(200, 220, 248, 0.52);
  backdrop-filter: blur(4px);
  font-family: 'ITC Avant Garde Gothic Std', 'Avant Garde', 'Century Gothic', Verdana, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 9px;
}

.post-card-body {
  padding: 14px;
  display: grid;
  gap: 9px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #10145B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
  font-weight: 600;
}

.post-card h3 {
  margin: 0;
  font-size: 1.02rem;
  font-family: 'ITC Avant Garde Gothic Std', 'Avant Garde', 'Century Gothic', Verdana, sans-serif;
  font-weight: 700;
  color: #10145B;
  line-height: 1.32;
}

.post-card p {
  margin: 0;
  color: #10145B;
  line-height: 1.48;
  font-size: 0.93rem;
}

.post-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
  border-top: 1px solid rgba(18, 40, 75, 0.06);
}

.post-actions button,
.post-actions a {
  border: 0;
  background: none;
  color: #10145B;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: 'ITC Avant Garde Gothic Std', 'Avant Garde', 'Century Gothic', Verdana, sans-serif;
  transition: color 0.22s ease;
}

.post-actions button:hover,
.post-actions a:hover {
  color: #DF9A34;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-actions a {
  color: #214AFF;
}

.post-actions a:hover {
  color: #DF9A34;
}

.post-actions button:focus-visible,
.post-actions a:focus-visible {
  outline: 2px solid rgba(223, 154, 52, 0.7);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Article viewer ---------- */
.blog-article-viewer {
  border-radius: 20px;
  border: 1px solid rgba(143, 181, 232, 0.24);
  background:
    radial-gradient(circle at 12% -8%, rgba(223, 154, 52, 0.2), transparent 34%),
    linear-gradient(160deg, #10145B 0%, #10145B 50%, #10145B 100%);
  color: rgba(236, 244, 255, 0.96);
  padding: 24px;
  box-shadow: 0 20px 48px rgba(5, 12, 30, 0.32);
  position: sticky;
  top: calc(var(--navbar-h, 120px) + 14px);
  height: fit-content;
}

.blog-article-viewer h2 {
  margin: 0 0 10px;
  color: #ebeff8;
  font-size: 1.24rem;
  font-family: 'ITC Avant Garde Gothic Std', 'Avant Garde', 'Century Gothic', Verdana, sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

#viewer-meta {
  margin: 0 0 14px;
  color: rgba(201, 219, 243, 0.76);
  font-size: 0.74rem;
  font-family: 'ITC Avant Garde Gothic Std', 'Avant Garde', 'Century Gothic', Verdana, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

#viewer-content p,
#viewer-content li {
  color: rgba(224, 236, 255, 0.9);
  line-height: 1.6;
}

.viewer-cover {
  margin: 0 0 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(188, 211, 242, 0.32);
  background: rgba(255, 255, 255, 0.06);
  aspect-ratio: 16 / 9;
}

.viewer-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#viewer-content ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

#viewer-content li + li {
  margin-top: 6px;
}

.blog-article-viewer .hs-btn-gold {
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  justify-content: center;
  padding: 14px 20px;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  overflow-wrap: break-word;
}

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .blog-featured-card {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .blog-featured-media {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

@media (min-width: 920px) {
  .blog-content-grid {
    grid-template-columns: 1.24fr 0.76fr;
  }

  .blog-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .blog-controls {
    padding: 14px;
  }

  .blog-featured-card {
    border-radius: 20px;
  }

  .blog-featured-copy {
    gap: 10px;
  }

  .blog-featured-copy h3 {
    font-size: clamp(1.14rem, 4vw, 1.42rem);
  }

  .blog-featured-copy p {
    font-size: 0.95rem;
    line-height: 1.56;
  }

  .blog-article-viewer {
    position: static;
    padding: 18px;
  }

  .post-actions {
    justify-content: space-between;
  }
}

/* ---------- Rich article body ---------- */
#viewer-content .blog-rich-body h2 {
  font-size: 1.08rem;
  margin: 28px 0 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(188, 211, 242, 0.14);
  color: #DF9A34;
  font-family: 'ITC Avant Garde Gothic Std', 'Avant Garde', 'Century Gothic', Verdana, sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

#viewer-content .blog-rich-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

#viewer-content .blog-rich-body h3 {
  font-size: 0.94rem;
  margin: 20px 0 8px;
  color: #ebeff8;
  font-weight: 700;
  font-family: 'ITC Avant Garde Gothic Std', 'Avant Garde', 'Century Gothic', Verdana, sans-serif;
}

#viewer-content .blog-rich-body p {
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.68;
}

#viewer-content .blog-rich-body strong {
  color: #ebeff8;
  font-weight: 700;
}

#viewer-content .blog-rich-body em {
  font-style: italic;
  color: rgba(224, 236, 255, 0.96);
}

#viewer-content .blog-rich-body figure.blog-fig {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(188, 211, 242, 0.22);
}

#viewer-content .blog-rich-body figure.blog-fig img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

#viewer-content .blog-rich-body figcaption {
  padding: 8px 14px;
  font-size: 0.76rem;
  color: rgba(201, 219, 243, 0.62);
  font-style: italic;
  background: rgba(0, 0, 0, 0.22);
  line-height: 1.4;
}

#viewer-content .blog-rich-body .blog-callout {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 3px solid #DF9A34;
  background: rgba(223, 154, 52, 0.1);
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  line-height: 1.56;
  color: rgba(224, 236, 255, 0.92);
}

#viewer-content .blog-rich-body .blog-callout--info {
  border-left-color: #214AFF;
  background: rgba(33, 74, 255, 0.1);
}

#viewer-content .blog-rich-body .blog-callout--warning {
  border-left-color: #e6843c;
  background: rgba(230, 132, 60, 0.1);
}

#viewer-content .blog-rich-body blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(33, 74, 255, 0.5);
  background: rgba(33, 74, 255, 0.08);
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

#viewer-content .blog-rich-body blockquote p {
  margin: 0;
}

#viewer-content .blog-rich-body blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.76rem;
  color: rgba(201, 219, 243, 0.62);
  font-style: normal;
}

#viewer-content .blog-rich-body ul,
#viewer-content .blog-rich-body ol {
  margin: 14px 0;
  padding-left: 22px;
}

#viewer-content .blog-rich-body li {
  margin-bottom: 8px;
  font-size: 0.94rem;
  line-height: 1.56;
}

#viewer-content .blog-rich-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(223, 154, 52, 0.44), rgba(223, 154, 52, 0.04));
  margin: 24px 0;
}

#viewer-content .blog-rich-body .blog-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}

#viewer-content .blog-rich-body .blog-stat {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(188, 211, 242, 0.12);
  text-align: center;
}

#viewer-content .blog-rich-body .blog-stat-value {
  display: block;
  font-size: 1.32rem;
  font-weight: 700;
  color: #DF9A34;
  line-height: 1.2;
}

#viewer-content .blog-rich-body .blog-stat-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(201, 219, 243, 0.68);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 560px) {
  .blog-featured-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .blog-featured-actions .hs-btn-gold,
  .blog-featured-actions .hs-btn-ghost {
    width: 100%;
    justify-content: center;
    padding-inline: 10px;
  }
}
