/* ========================================================================
   NIMBER - BLOG SINGLE
   Estrutura principal baseada em Bootstrap.
   Container útil: 1476px; padding lateral externo não incluído no limite.
   ======================================================================== */

.nimber-blog-single-page {
  --container: 1476px;
  --single-gutter: clamp(20px, 3vw, 48px);
  --single-ink: #172432;
  --single-deep: #1e2d3a;
  --single-blue: #5186a7;
  --single-cyan: #00b9f2;
  --single-teal: #00d4ad;
  --single-soft: #f0f1f1;
  --single-radius: clamp(20px, 1.7vw, 30px);
  --guide-single-radius: clamp(20px, 1.65vw, 30px);
  color: var(--single-ink);
  background: #fff;
}

.nimber-blog-single-page .blog-single-container {
  width: 100%;
  max-width: calc(var(--container) + (var(--single-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--single-gutter);
}

body.nimber-blog-single-page .site-header::before,
body.nimber-blog-single-page .site-header.is-scrolled::before {
  border-bottom-color: rgba(81, 134, 167, .10);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 28px rgba(23, 36, 50, .06);
  opacity: 1;
}

html.js.nimber-hero-booting body.nimber-blog-single-page .single-post-hero__copy,
html.js.nimber-hero-booting body.nimber-blog-single-page .single-post-hero__media {
  opacity: 0;
  visibility: hidden;
}

/* Hero ------------------------------------------------------------------- */
.nimber-blog-single-page .single-post-hero {
  --single-hero-frame: clamp(6px, .55vw, 10px);
  --single-hero-image-height: clamp(300px, 33.55vw, 589px);
  --single-hero-white-tail: clamp(112px, 17vw, 300px);
  position: relative;
  min-height: 0;
  padding-top: clamp(148px, 10.2vw, 190px);
  color: #fff;
  background: #fff;
  isolation: isolate;
}

.nimber-blog-single-page .single-post-hero::before,
.nimber-blog-single-page .single-post-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 var(--single-hero-white-tail);
  pointer-events: none;
}

.nimber-blog-single-page .single-post-hero::before {
  z-index: 0;
  background:
    radial-gradient(circle at 84% 17%, rgba(103, 183, 226, .66), transparent 34%),
    linear-gradient(112deg, #173040 0%, #254d65 54%, #4e89aa 100%);
}

.nimber-blog-single-page .single-post-hero::after {
  z-index: 0;
  background:
    radial-gradient(circle at 18% 100%, rgba(0, 185, 239, .13), transparent 38%),
    linear-gradient(180deg, rgba(18, 46, 63, .06) 0%, rgba(18, 46, 63, .30) 100%);
}

.nimber-blog-single-page .single-post-hero > .blog-single-container {
  position: relative;
  z-index: 1;
  max-width: calc(var(--container-wide) + (var(--single-gutter) * 2));
}

.nimber-blog-single-page .single-post-hero__copy {
  width: 100%;
  max-width: 1314px;
  padding: 0 var(--single-hero-frame) clamp(28px, 2.6vw, 44px);
}

.nimber-blog-single-page .single-post-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 38px;
  margin-bottom: 25px;
  padding: 8px 24px;
  border-radius: 999px;
  color: #172432;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 20px rgba(10, 37, 52, .12);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}

.nimber-blog-single-page .single-post-hero h1 {
  max-width: 1180px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.nimber-blog-single-page .single-post-hero__media {
  position: relative;
  z-index: 2;
  width: 100%;
  height: calc(var(--single-hero-image-height) + (var(--single-hero-frame) * 2));
  max-height: calc(589px + (var(--single-hero-frame) * 2));
  margin: 0 !important;
  padding: var(--single-hero-frame);
  overflow: hidden;
  border-radius: var(--guide-single-radius);
  background: linear-gradient(180deg, #f2f4f5 0%, #dde8ef 42%, #adcbe0 100%);
  box-shadow:
    0 0 18px rgba(0, 185, 239, .28),
    0 26px 42px rgba(8, 39, 58, .18);
  isolation: isolate;
}

.nimber-blog-single-page .single-post-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: 589px;
  border-radius: calc(var(--guide-single-radius) - var(--single-hero-frame));
  object-fit: cover;
  object-position: center;
}

/* Article meta/content ---------------------------------------------------- */
.nimber-blog-single-page .single-post-body {
  /*
   * A imagem do Hero agora ocupa espaço real no documento. Assim, a seção
   * começa com um respiro editorial pequeno e previsível, independentemente
   * da quantidade de linhas do título ou do tamanho final da imagem.
   */
  padding: clamp(22px, 2.2vw, 36px) 0 clamp(70px, 7vw, 115px);
  background: #fff;
}

.nimber-blog-single-page .single-post-body > .blog-single-container {
  max-width: calc(var(--container-wide) + (var(--single-gutter) * 2));
}

.nimber-blog-single-page .single-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 0 26px;
  border-bottom: 1px solid rgba(81, 134, 167, .30);
}

.nimber-blog-single-page .single-post-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nimber-blog-single-page .single-post-author img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(23, 36, 50, .10);
}

.nimber-blog-single-page .single-post-author p,
.nimber-blog-single-page .single-post-author time {
  margin: 0;
  color: var(--single-ink);
  font-size: 18px;
  line-height: 1.45;
}

.nimber-blog-single-page .single-post-author strong { font-weight: 900; }

.nimber-blog-single-page .single-post-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 190px;
  min-height: 45px;
  padding: 10px 26px;
  border-radius: 999px;
  color: #fff;
  background: #1d2c3a;
  box-shadow: 0 9px 20px rgba(29, 44, 58, .16);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
}

.nimber-blog-single-page .single-post-back:hover,
.nimber-blog-single-page .single-post-back:focus-visible {
  color: #fff;
  background: #2d5269;
  box-shadow: 0 13px 28px rgba(29, 64, 84, .22);
  transform: translateY(-2px);
}

.nimber-blog-single-page .single-post-content {
  padding-top: clamp(54px, 5vw, 78px);
}

.nimber-blog-single-page .single-post-content p {
  margin: 0 0 26px;
  color: #263541;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.72;
}

.nimber-blog-single-page .single-post-content h2 {
  margin: 31px 0 12px;
  color: var(--single-ink);
  font-size: clamp(17px, 1.15vw, 21px);
  font-weight: 600;
  line-height: 1.4;
}

.nimber-blog-single-page .single-post-inline {
  margin: clamp(52px, 5vw, 78px) 0 clamp(44px, 4vw, 65px);
  overflow: hidden;
  border-radius: var(--single-radius);
  box-shadow: 0 15px 34px rgba(24, 49, 66, .10);
}

.nimber-blog-single-page .single-post-inline img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Related posts ----------------------------------------------------------- */
.nimber-blog-single-page .related-posts {
  padding: 0 0 clamp(120px, 10vw, 190px);
  background: #fff;
}

.nimber-blog-single-page .related-posts > .blog-single-container {
  max-width: calc(var(--container-wide) + (var(--single-gutter) * 2));
}

.nimber-blog-single-page .related-posts__title {
  margin: 0 0 clamp(36px, 4vw, 58px);
  color: var(--single-ink);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 400;
  letter-spacing: -.035em;
}

.nimber-blog-single-page .related-posts__title strong {
  color: var(--single-blue);
  font-weight: 900;
}

.nimber-blog-single-page .related-posts__grid > .col {
  display: flex;
}

.nimber-blog-single-page .related-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--single-radius);
  background: var(--single-soft);
  box-shadow: 0 10px 28px rgba(24, 49, 66, .06);
  transition: box-shadow .35s ease, border-color .35s ease;
}

.nimber-blog-single-page .related-card:hover {
  box-shadow: 0 18px 42px rgba(24, 49, 66, .11);
}

.nimber-blog-single-page .related-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.nimber-blog-single-page .related-card__media {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 495 / 420;
  overflow: hidden;
  border-radius: var(--single-radius) var(--single-radius) 0 0;
  background: #dce5e9;
}

.nimber-blog-single-page .related-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

/* Mesmo reflexo diagonal utilizado nos cards da página Blog. */
.nimber-blog-single-page .related-card__media::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 0;
  pointer-events: none;
  background-color: rgba(255, 255, 255, .3);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nimber-blog-single-page .related-card__pill {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 31px;
  margin: auto;
  padding: 7px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #3c6a85, #5793b6);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .2em;
  text-align: center;
  text-transform: uppercase;
  transform: none;
}

.nimber-blog-single-page .related-card__body {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  min-height: 126px;
  padding: clamp(24px, 2vw, 34px) clamp(24px, 2.2vw, 38px) clamp(28px, 2.4vw, 42px);
}

.nimber-blog-single-page .related-card__body h3 {
  margin: 0;
  color: var(--single-ink);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: -.012em;
}

@media (hover: hover) and (pointer: fine) {
  .nimber-blog-single-page .related-card:hover .related-card__media img {
    transform: scale(1.045);
  }

  .nimber-blog-single-page .related-card:hover .related-card__media::after {
    height: 250%;
    background-color: transparent;
    transition: height 600ms linear, background-color 600ms linear;
  }
}

/* Investor CTA ------------------------------------------------------------ */
.nimber-blog-single-page .single-investor-cta {
  position: relative;
  min-height: clamp(330px, 28vw, 470px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #102533;
  isolation: isolate;
  box-shadow: 0 -18px 34px rgba(18, 47, 65, .09), 0 18px 34px rgba(18, 47, 65, .09);
}

.nimber-blog-single-page .single-investor-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(9, 29, 42, .12);
}

.nimber-blog-single-page .single-investor-cta__background {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.nimber-blog-single-page .single-investor-cta__content { padding-block: 76px; }

.nimber-blog-single-page .single-investor-cta h2 {
  margin: 0 0 32px;
  color: #fff;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 400;
  letter-spacing: -.035em;
}

.nimber-blog-single-page .single-investor-cta h2 strong { font-weight: 900; }

.nimber-blog-single-page .single-investor-cta .button {
  min-width: 230px;
  min-height: 48px;
  padding-inline: 28px;
  font-size: 11px;
}

.nimber-blog-single-page .single-investor-cta .button--gradient {
  border: 1px solid rgba(166, 244, 255, .72);
  box-shadow:
    0 0 0 1px rgba(0, 216, 190, .16),
    0 0 12px rgba(0, 219, 191, .58),
    0 0 28px rgba(0, 185, 242, .48),
    0 10px 24px rgba(0, 65, 89, .28);
  animation: single-neon-pulse 2.8s ease-in-out infinite;
}

.nimber-blog-single-page .single-investor-cta .button--gradient:hover,
.nimber-blog-single-page .single-investor-cta .button--gradient:focus-visible {
  box-shadow:
    0 0 0 1px rgba(193, 249, 255, .28),
    0 0 16px rgba(0, 219, 191, .78),
    0 0 38px rgba(0, 185, 242, .66),
    0 14px 30px rgba(0, 65, 89, .32);
}

@keyframes single-neon-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(0, 216, 190, .14),
      0 0 10px rgba(0, 219, 191, .48),
      0 0 24px rgba(0, 185, 242, .40),
      0 10px 24px rgba(0, 65, 89, .26);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(193, 249, 255, .22),
      0 0 16px rgba(0, 219, 191, .72),
      0 0 36px rgba(0, 185, 242, .60),
      0 12px 28px rgba(0, 65, 89, .30);
  }
}

/* Newsletter -------------------------------------------------------------- */
.nimber-blog-single-page .newsletter--blog-single {
  padding: clamp(72px, 7vw, 110px) 0 clamp(85px, 8vw, 128px);
  background: #fff;
}

.nimber-blog-single-page .newsletter--blog-single .newsletter__box {
  max-width: 100%;
  margin-inline: auto;
}

.nimber-blog-single-page .newsletter--blog-single h2 strong {
  color: #00b9f2;
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .nimber-blog-single-page { --single-gutter: clamp(20px, 3.5vw, 36px); }
  .nimber-blog-single-page .single-post-hero {
    --single-hero-image-height: clamp(300px, 36vw, 470px);
    --single-hero-white-tail: clamp(112px, 18vw, 220px);
    padding-top: clamp(138px, 12vw, 168px);
  }
}

@media (max-width: 991.98px) {
  .nimber-blog-single-page .single-post-hero {
    --single-hero-image-height: clamp(280px, 42vw, 390px);
    --single-hero-white-tail: clamp(104px, 20vw, 180px);
    padding-top: 136px;
  }

  .nimber-blog-single-page .single-post-hero__copy { padding-bottom: 32px; }
  .nimber-blog-single-page .single-post-body { padding-top: 26px; }
  .nimber-blog-single-page .single-investor-cta { min-height: 340px; }
  .nimber-blog-single-page .single-investor-cta__content { padding-block: 64px; }
}

@media (max-width: 767.98px) {
  .nimber-blog-single-page { --single-gutter: 20px; }

  .nimber-blog-single-page .single-post-hero {
    --single-hero-frame: 6px;
    --single-hero-image-height: clamp(250px, 58vw, 420px);
    --single-hero-white-tail: clamp(96px, 24vw, 150px);
    padding-top: 116px;
  }

  .nimber-blog-single-page .single-post-hero::before {
    background:
      radial-gradient(circle at 85% 12%, rgba(78, 149, 188, .65), transparent 42%),
      linear-gradient(132deg, #173040 0%, #315d76 100%);
  }

  .nimber-blog-single-page .single-post-category {
    min-width: 126px;
    min-height: 34px;
    margin-bottom: 20px;
    font-size: 9px;
  }

  .nimber-blog-single-page .single-post-hero h1 {
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.12;
  }

  .nimber-blog-single-page .single-post-hero__media {
    width: 100%;
    margin: 0 !important;
  }

  .nimber-blog-single-page .single-post-body { padding-top: 22px; }

  .nimber-blog-single-page .single-post-meta {
    align-items: flex-start;
    gap: 20px;
  }

  .nimber-blog-single-page .single-post-author img {
    width: 50px;
    height: 50px;
  }

  .nimber-blog-single-page .single-post-back {
    min-width: 132px;
    min-height: 42px;
    padding-inline: 19px;
    letter-spacing: .18em;
  }

  .nimber-blog-single-page .single-post-content { padding-top: 42px; }
  .nimber-blog-single-page .single-post-content p { font-size: 18px; line-height: 1.68; }
  .nimber-blog-single-page .single-post-inline { border-radius: 18px; }
  .nimber-blog-single-page .related-card__body { min-height: 110px; }
  .nimber-blog-single-page .newsletter--blog-single .newsletter__box { border-radius: 22px; }
}

@media (max-width: 479.98px) {
  .nimber-blog-single-page .single-post-hero {
    --single-hero-frame: 5px;
    --single-hero-image-height: clamp(230px, 70vw, 300px);
    --single-hero-white-tail: clamp(88px, 28vw, 118px);
    padding-top: 104px;
  }

  .nimber-blog-single-page .single-post-hero__copy { padding-bottom: 26px; }
  .nimber-blog-single-page .single-post-hero h1 { font-size: clamp(28px, 8.4vw, 36px); }
  .nimber-blog-single-page .single-post-meta { flex-direction: column; }
  .nimber-blog-single-page .single-post-back { align-self: flex-end; }
  .nimber-blog-single-page .single-post-hero__media { margin-bottom: 0 !important; }
  .nimber-blog-single-page .single-post-body { padding-top: 20px; }
  .nimber-blog-single-page .single-post-inline img {
    min-height: 170px;
    object-fit: cover;
    object-position: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nimber-blog-single-page .single-investor-cta .button--gradient { animation: none; }
  .nimber-blog-single-page .related-card__media img,
  .nimber-blog-single-page .single-post-back { transition: none; }
}

/* Conteúdo nativo do WordPress ------------------------------------------- */
.nimber-blog-single-page .single-post-content > :first-child { margin-top: 0; }
.nimber-blog-single-page .single-post-content > :last-child { margin-bottom: 0; }

.nimber-blog-single-page .single-post-content h3,
.nimber-blog-single-page .single-post-content h4,
.nimber-blog-single-page .single-post-content h5,
.nimber-blog-single-page .single-post-content h6 {
  margin: 28px 0 12px;
  color: var(--single-ink);
  font-weight: 700;
  line-height: 1.4;
}

.nimber-blog-single-page .single-post-content ul,
.nimber-blog-single-page .single-post-content ol {
  margin: 0 0 28px;
  padding-left: 1.4em;
  color: #263541;
  font-size: 18px;
  line-height: 1.72;
}

.nimber-blog-single-page .single-post-content li + li { margin-top: 8px; }

.nimber-blog-single-page .single-post-content a {
  color: #177fa7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nimber-blog-single-page .single-post-content blockquote {
  margin: 38px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--single-cyan);
  border-radius: 0 18px 18px 0;
  background: #f2f7f9;
}

.nimber-blog-single-page .single-post-content blockquote p:last-child { margin-bottom: 0; }

.nimber-blog-single-page .single-post-content figure,
.nimber-blog-single-page .single-post-content .wp-block-image {
  margin: clamp(42px, 4vw, 68px) 0;
}

.nimber-blog-single-page .single-post-content figure img,
.nimber-blog-single-page .single-post-content .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--single-radius);
}

.nimber-blog-single-page .single-post-content figcaption {
  margin-top: 10px;
  color: #60798b;
  font-size: 14px;
  text-align: center;
}
