/* ========================================================================
   NIMBER - BLOG
   Página construída sobre Bootstrap, com componentes Nimber isolados.
   Container útil: 1476px + padding lateral externo.
   ======================================================================== */

.nimber-blog-page {
  --container: 1476px;
  --blog-gutter: clamp(20px, 3vw, 48px);
  --blog-ink: #172432;
  --blog-footer: #1d2c3a;
  --blog-cyan: #00b9f2;
  --blog-teal: #00d4ad;
  --blog-soft: #f0f1f1;
  --blog-radius: clamp(20px, 1.7vw, 30px);
  color: var(--blog-ink);
}

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

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

/* Header sólido no Blog --------------------------------------------------- */
body.nimber-blog-page .site-header::before,
body.nimber-blog-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-page .blog-hero__title,
html.js.nimber-hero-booting body.nimber-blog-page .blog-search {
  opacity: 0;
  visibility: hidden;
}

/* Hero ------------------------------------------------------------------- */
.nimber-blog-page .blog-hero {
  position: relative;
  min-height: 430px;
  padding-top: 146px;
  overflow: hidden;
  color: #fff;
  background: #183040;
  isolation: isolate;
}

.nimber-blog-page .blog-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 37, 51, .94) 0%, rgba(22, 46, 62, .78) 46%, rgba(57, 118, 151, .64) 100%);
}

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

.nimber-blog-page .blog-hero__row {
  min-height: 284px;
  padding-block: 48px;
}

.nimber-blog-page .blog-hero__title {
  color: #fff;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 500;
  letter-spacing: -.03em;
}

.nimber-blog-page .blog-search {
  width: 100%;
  max-width: 930px;
  margin-left: auto;
}

.nimber-blog-page .blog-search__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  align-items: center;
  gap: 18px;
}

.nimber-blog-page .blog-search input {
  width: 100%;
  height: 70px;
  padding: 0 38px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  color: var(--blog-ink);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 36px rgba(8, 28, 41, .12);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .24em;
  outline: none;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.nimber-blog-page .blog-search input::placeholder {
  color: #8b969f;
  opacity: 1;
}

.nimber-blog-page .blog-search input:focus {
  border-color: var(--blog-cyan);
  box-shadow: 0 0 0 4px rgba(0, 185, 242, .2), 0 18px 36px rgba(8, 28, 41, .16);
}

.nimber-blog-page .blog-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 50%;
  color: #172432;
  background: #c8dcec;
  box-shadow: 0 16px 30px rgba(8, 28, 41, .18);
  cursor: pointer;
  transition: transform .25s ease, background-color .25s ease;
}

.nimber-blog-page .blog-search button:hover,
.nimber-blog-page .blog-search button:focus-visible {
  transform: translateY(-2px);
  background: #fff;
}

/* Headings ---------------------------------------------------------------- */
.nimber-blog-page .blog-section-heading {
  margin-bottom: clamp(34px, 4vw, 58px);
}

.nimber-blog-page .blog-section-heading h2 {
  margin: 0;
  color: var(--blog-ink);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 500;
  letter-spacing: -.035em;
}

.nimber-blog-page .blog-section-heading em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

/* Featured ---------------------------------------------------------------- */
.nimber-blog-page .blog-featured {
  padding: clamp(80px, 8vw, 132px) 0 clamp(62px, 6vw, 96px);
  background: #fff;
}

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

.nimber-blog-page .featured-card {
  height: 100%;
  min-height: clamp(410px, 34vw, 590px);
  border-radius: var(--blog-radius);
  overflow: hidden;
  background: #edf1f3;
  box-shadow: 0 16px 38px rgba(24, 49, 66, .08);
}

.nimber-blog-page .featured-card__link {
  position: relative;
  display: block;
  height: 100%;
  min-height: inherit;
  color: inherit;
  overflow: hidden;
}

.nimber-blog-page .featured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform .75s cubic-bezier(.22, 1, .36, 1);
}

.nimber-blog-page .featured-card--wide img { object-position: center; }
.nimber-blog-page .featured-card--tall img { object-position: center 36%; }

.nimber-blog-page .featured-card__link:hover img { transform: scale(1.025); }

.nimber-blog-page .blog-category-pill {
  position: absolute;
  z-index: 2;
  top: clamp(22px, 2vw, 34px);
  left: clamp(22px, 2.2vw, 42px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 35px;
  padding: 8px 22px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--blog-teal), var(--blog-cyan));
  box-shadow: 0 8px 18px rgba(0, 163, 202, .16);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

/* Cor específica do texto nas pills dos cards em destaque. */
.nimber-blog-page .featured-card .blog-category-pill {
  color: #172432;
}

.nimber-blog-page .featured-card__copy {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 2.5vw, 48px);
  bottom: clamp(28px, 3vw, 54px);
  left: clamp(22px, 2.5vw, 48px);
  max-width: 620px;
}

.nimber-blog-page .featured-card--tall .featured-card__copy { max-width: 410px; }

.nimber-blog-page .featured-card__copy h3 {
  margin: 0 0 14px;
  color: #1E2833;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.025em;
}

.nimber-blog-page .featured-card__copy p {
  max-width: 560px;
  margin: 0;
  color: #5186a7;
  font-size: 18px;
  line-height: 1.55;
}

/* Filters ----------------------------------------------------------------- */
.nimber-blog-page .blog-articles {
  padding: 0 0 clamp(90px, 9vw, 150px);
}

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

.nimber-blog-page .blog-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.7vw, 30px);
  margin: 0 0 clamp(50px, 5vw, 82px);
  padding: 4px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nimber-blog-page .blog-filters::-webkit-scrollbar { display: none; }

.nimber-blog-page .blog-filter {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  color: #172432;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

.nimber-blog-page .blog-filter:hover { color: #5088aa; }

.nimber-blog-page .blog-filter.is-active {
  min-width: 150px;
  color: #fff;
  background: #1d2c3a;
  box-shadow: 0 8px 18px rgba(29, 44, 58, .14);
}

/* Article cards ----------------------------------------------------------- */
.nimber-blog-page .blog-grid { align-items: stretch; }

.nimber-blog-page .blog-grid__item[hidden] { display: none !important; }

.nimber-blog-page .blog-grid__item { display: flex; }

.nimber-blog-page .blog-page-card { width: 100%; }

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

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

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

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

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

/* Reflexo diagonal inspirado no efeito .image-anime do template original.
   Fica restrito aos cards da grade do Blog e não interfere nas pills. */
.nimber-blog-page .blog-page-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);
}

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

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

.nimber-blog-page .blog-page-card .blog-category-pill {
  top: 20px;
  left: 20px;
  min-width: 132px;
  min-height: 31px;
  margin: auto;
  padding: 7px 18px;
  display: flex;
  justify-content: center;
  text-align: center;
  transform: none;
  background: linear-gradient(90deg, #3c6a85, #5793b6);
  font-size: 9px;
}

.nimber-blog-page .blog-page-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-page .blog-page-card__body h3 {
  margin: 0;
  color: #172432;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: -.012em;
}

.nimber-blog-page .blog-empty {
  margin: 70px 0 0;
  text-align: center;
  color: #537085;
  font-size: 18px;
}

/* Pagination -------------------------------------------------------------- */
.nimber-blog-page .blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 18px);
  margin-top: clamp(62px, 7vw, 108px);
}

.nimber-blog-page .blog-pagination a,
.nimber-blog-page .blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 42px;
  color: #172432;
  border-radius: 50%;
  font-size: 12px;
  transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

.nimber-blog-page .blog-pagination a:hover { color: var(--blog-cyan); }

.nimber-blog-page .blog-pagination a.is-current {
  width: 42px;
  color: #fff;
  background: #000;
}

.nimber-blog-page .blog-pagination__arrow {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  color: #fff !important;
  background: #000;
}

.nimber-blog-page .blog-pagination__arrow:hover { transform: translateY(-2px); background: #1d2c3a; }

/* Investor CTA ------------------------------------------------------------ */
.nimber-blog-page .blog-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-page .blog-investor-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(9, 29, 42, .12);
}

.nimber-blog-page .blog-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-page .blog-investor-cta__content { padding-block: 76px; }

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

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

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

.nimber-blog-page .blog-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: blog-neon-pulse 2.8s ease-in-out infinite;
}
.nimber-blog-page .blog-investor-cta .button--gradient:hover,
.nimber-blog-page .blog-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 blog-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-page .newsletter--blog {
  padding: clamp(72px, 7vw, 110px) 0 clamp(85px, 8vw, 128px);
  background: #fff;
}

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

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

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .nimber-blog-page {
    --blog-gutter: clamp(20px, 3.5vw, 36px);
  }

  .nimber-blog-page .blog-hero { min-height: 390px; }
  .nimber-blog-page .blog-hero__row { min-height: 244px; }
  .nimber-blog-page .featured-card { min-height: 480px; }
  .nimber-blog-page .blog-page-card__body { min-height: 118px; }
}

@media (max-width: 991.98px) {
  .nimber-blog-page .blog-hero {
    min-height: 460px;
    padding-top: 118px;
  }

  .nimber-blog-page .blog-hero__row {
    min-height: 342px;
    padding-block: 54px;
  }

  .nimber-blog-page .blog-search { max-width: none; }
  .nimber-blog-page .featured-card { min-height: 500px; }
  .nimber-blog-page .featured-card--tall { min-height: 520px; }

  .nimber-blog-page .blog-filters {
    justify-content: flex-start;
    margin-inline: calc(var(--blog-gutter) * -1);
    padding-inline: var(--blog-gutter);
  }

}

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

  .nimber-blog-page .blog-hero {
    min-height: 430px;
    padding-top: 96px;
  }

  .nimber-blog-page .blog-hero__row {
    min-height: 334px;
    padding-block: 46px 54px;
  }

  .nimber-blog-page .blog-hero__title { text-align: center; }

  .nimber-blog-page .blog-search__field {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 12px;
  }

  .nimber-blog-page .blog-search input {
    height: 58px;
    padding-inline: 24px;
    font-size: 16px;
    letter-spacing: .17em;
  }

  .nimber-blog-page .blog-search button {
    width: 58px;
    height: 58px;
  }

  .nimber-blog-page .blog-featured { padding-top: 68px; }
  .nimber-blog-page .featured-card,
  .nimber-blog-page .featured-card--tall { min-height: 455px; }
  .nimber-blog-page .featured-card__copy { bottom: 28px; }
  .nimber-blog-page .featured-card__copy h3 { font-size: 20px; }

  .nimber-blog-page .blog-filters { margin-bottom: 42px; }
  .nimber-blog-page .blog-filter { padding-inline: 16px; }
  .nimber-blog-page .blog-page-card__body { min-height: 110px; }

  .nimber-blog-page .blog-pagination {
    gap: 5px;
    flex-wrap: wrap;
  }

  .nimber-blog-page .blog-pagination a,
  .nimber-blog-page .blog-pagination span {
    min-width: 24px;
    height: 38px;
    font-size: 11px;
  }

  .nimber-blog-page .blog-pagination__arrow {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }

  .nimber-blog-page .blog-investor-cta { min-height: 340px; }
  .nimber-blog-page .blog-investor-cta__content { padding-block: 64px; }
  .nimber-blog-page .newsletter--blog .newsletter__box { border-radius: 22px; }
}

@media (max-width: 479.98px) {
  .nimber-blog-page .blog-hero__background { object-position: 38% center; }
  .nimber-blog-page .featured-card,
  .nimber-blog-page .featured-card--tall { min-height: 430px; }
  .nimber-blog-page .featured-card__copy p { font-size: 18px; }
  .nimber-blog-page .blog-category-pill { min-width: 126px; }
}

@media (hover: none) {
  .nimber-blog-page .featured-card__link:hover img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nimber-blog-page .blog-investor-cta .button--gradient {
    animation: none;
  }

  .nimber-blog-page *,
  .nimber-blog-page *::before,
  .nimber-blog-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* WordPress --------------------------------------------------------------- */
.nimber-blog-page .blog-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nimber-blog-page .blog-pagination span.is-current {
  width: 42px;
  color: #fff;
  background: #000;
}

.nimber-blog-page .blog-pagination .dots {
  width: auto;
  min-width: 18px;
  border-radius: 0;
}

.nimber-blog-page .blog-page-card__media > img,
.nimber-blog-page .featured-card__link > img {
  display: block;
}
