/* ========================================================================
   NIMBER - GUIA PARA INVESTIDORES · v78
   Layout responsivo baseado no PDF, com Bootstrap para a estrutura geral,
   filtros funcionais, cards horizontais e paginação acessível.
   ======================================================================== */

.nimber-investor-guide-page {
  --container: 1476px;
  --guide-content-width: 1354px;
  --guide-ink: #172432;
  --guide-blue: #5186a7;
  --guide-light-blue: #b7d1e2;
  --guide-cyan: #00b8f0;
  color: var(--guide-ink);
  background: #fff;
}

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

html.js.nimber-hero-booting body.nimber-investor-guide-page .guide-hero__inner {
  opacity: 0;
  visibility: hidden;
}

/* Hero ------------------------------------------------------------------- */
.nimber-investor-guide-page .guide-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(300px, 20vw, 388px);
  padding: clamp(128px, 8.2vw, 158px) 0 clamp(58px, 4.4vw, 86px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(190, 231, 255, .34), transparent 30%),
    linear-gradient(100deg, #172b3a 0%, #2d5269 56%, #8fc8e5 100%);
}

.nimber-investor-guide-page .guide-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 25, 38, .25), rgba(22, 52, 70, .02) 58%, rgba(255, 255, 255, .09));
  pointer-events: none;
}

.nimber-investor-guide-page .guide-hero__inner {
  position: relative;
  z-index: 1;
  max-width: calc(var(--container-wide) + (var(--container-gutter) * 2));
}

.nimber-investor-guide-page .guide-hero h1 {
  width: min(100%, var(--guide-content-width));
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 2.9vw, 54px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  text-shadow: 0 10px 28px rgba(4, 24, 37, .16);
}

/* Conteúdo --------------------------------------------------------------- */
.nimber-investor-guide-page .guide-content {
  padding: clamp(58px, 5vw, 92px) 0 clamp(66px, 6vw, 108px);
  background: #fff;
}

.nimber-investor-guide-page .guide-content > .nimber-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(var(--container-wide) + (var(--container-gutter) * 2));
}

.nimber-investor-guide-page .guide-filters,
.nimber-investor-guide-page .guide-list,
.nimber-investor-guide-page .guide-pagination {
  width: 100%;
}

.nimber-investor-guide-page .guide-filters {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  margin-bottom: clamp(28px, 2.4vw, 40px);
  padding: 5px;
  border-radius: 14px;
  background: #f0f1f1;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

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

.nimber-investor-guide-page .guide-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  min-width: 140px;
  min-height: 38px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  color: #172432;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: color .28s ease, background-color .28s ease, box-shadow .28s ease, transform .28s ease;
}

.nimber-investor-guide-page .guide-filter:hover,
.nimber-investor-guide-page .guide-filter:focus-visible {
  background: rgba(81, 134, 167, .11);
}

.nimber-investor-guide-page .guide-filter.is-active {
  color: #fff;
  background: linear-gradient(105deg, #1c2b39, #4d86a9);
  box-shadow: 0 7px 15px rgba(34, 66, 88, .18);
}

.nimber-investor-guide-page .guide-list {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 1.8vw, 28px);
}

.nimber-investor-guide-page .guide-card {
  position: relative;
  width: 100%;
  min-width: 0;
}

.nimber-investor-guide-page .guide-card__link {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: clamp(335px, 27vw, 495px);
  overflow: hidden;
  border-radius: clamp(20px, 1.55vw, 28px);
  color: #fff;
  background: #1c3444;
  box-shadow: 0 10px 26px rgba(22, 42, 56, .08);
  text-decoration: none;
  transform: translateZ(0);
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), box-shadow .42s ease;
}

.nimber-investor-guide-page .guide-card__image,
.nimber-investor-guide-page .guide-card__overlay,
.nimber-investor-guide-page .guide-card__body {
  position: absolute;
  inset: 0;
}

.nimber-investor-guide-page .guide-card__image {
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 56%;
  transform: scale(1.008);
  transition: transform .8s cubic-bezier(.22, 1, .36, 1), filter .6s ease;
}

.nimber-investor-guide-page .guide-card__overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 38, 53, .96) 0%, rgba(17, 38, 53, .88) 22%, rgba(17, 38, 53, .54) 51%, rgba(17, 38, 53, .08) 78%),
    linear-gradient(0deg, rgba(12, 27, 38, .36), rgba(12, 27, 38, 0) 48%);
  pointer-events: none;
}

.nimber-investor-guide-page .guide-card__body {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(30px, 2.4vw, 44px) clamp(30px, 2.6vw, 50px) clamp(28px, 2.35vw, 44px);
}

.nimber-investor-guide-page .guide-card__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(150px, 12vw, 205px);
  min-height: 32px;
  padding: 7px 24px;
  border-radius: 999px;
  color: #172432;
  background: rgba(245, 249, 251, .96);
  box-shadow: 0 5px 16px rgba(17, 38, 53, .12);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .28em;
  line-height: 1;
  text-transform: uppercase;
}

.nimber-investor-guide-page .guide-card__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(45%, 510px);
}

.nimber-investor-guide-page .guide-card__title {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-size: clamp(17px, 1.15vw, 21px);
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.28;
}

.nimber-investor-guide-page .guide-card__summary {
  display: block;
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.48;
}

.nimber-investor-guide-page .guide-card__meta {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 10px 14px;
  margin-top: clamp(20px, 1.55vw, 30px);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}

.nimber-investor-guide-page .guide-card__avatar {
  display: block;
  width: clamp(34px, 2.55vw, 46px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #b8d3e4;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .3);
}

.nimber-investor-guide-page .guide-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: inherit;
  object-fit: cover;
}

.nimber-investor-guide-page .guide-card__author {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nimber-investor-guide-page .guide-card__date {
  padding-left: 13px;
  border-left: 1px solid rgba(255, 255, 255, .28);
  white-space: pre-line;
}

@media (hover: hover) and (pointer: fine) {
  .nimber-investor-guide-page .guide-card__link:hover,
  .nimber-investor-guide-page .guide-card__link:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(22, 42, 56, .17);
  }

  .nimber-investor-guide-page .guide-card__link:hover .guide-card__image,
  .nimber-investor-guide-page .guide-card__link:focus-visible .guide-card__image {
    transform: scale(1.045);
    filter: saturate(1.04) contrast(1.03);
  }
}

/* Paginação -------------------------------------------------------------- */
.nimber-investor-guide-page .guide-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: clamp(38px, 3.7vw, 64px);
}

.nimber-investor-guide-page .guide-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(6px, .75vw, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nimber-investor-guide-page .guide-pagination ul.page-numbers > li {
  display: flex;
  margin: 0;
}

.nimber-investor-guide-page .guide-pagination a.page-numbers,
.nimber-investor-guide-page .guide-pagination span.page-numbers,
.nimber-investor-guide-page .guide-page,
.nimber-investor-guide-page .guide-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #172432;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease, transform .25s ease, opacity .25s ease;
}

.nimber-investor-guide-page .guide-pagination a.prev.page-numbers,
.nimber-investor-guide-page .guide-pagination a.next.page-numbers,
.nimber-investor-guide-page .guide-page-arrow {
  flex-basis: 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  aspect-ratio: auto;
  border-radius: 999px;
}

.nimber-investor-guide-page .guide-pagination span.current,
.nimber-investor-guide-page .guide-page.is-current {
  color: #fff;
  background: #172432;
}

.nimber-investor-guide-page .guide-pagination span.dots {
  cursor: default;
}

.nimber-investor-guide-page .guide-pagination a.page-numbers:hover,
.nimber-investor-guide-page .guide-pagination a.page-numbers:focus-visible,
.nimber-investor-guide-page .guide-page:hover,
.nimber-investor-guide-page .guide-page:focus-visible {
  background: rgba(23, 36, 50, .09);
  transform: translateY(-1px);
}

.nimber-investor-guide-page .guide-pagination span.current:hover,
.nimber-investor-guide-page .guide-pagination span.current:focus-visible,
.nimber-investor-guide-page .guide-page.is-current:hover,
.nimber-investor-guide-page .guide-page.is-current:focus-visible {
  background: #172432;
  transform: none;
}

/* Responsividade --------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .nimber-investor-guide-page .guide-card__copy {
    width: min(56%, 520px);
  }
}

@media (max-width: 991.98px) {
  .nimber-investor-guide-page .guide-hero {
    min-height: 310px;
    padding-top: 128px;
  }

  .nimber-investor-guide-page .guide-filters {
    justify-content: flex-start;
    padding-inline: 6px;
  }

  .nimber-investor-guide-page .guide-filter {
    min-width: 138px;
  }

  .nimber-investor-guide-page .guide-card__link {
    min-height: clamp(340px, 49vw, 440px);
  }

  .nimber-investor-guide-page .guide-card__copy {
    width: min(65%, 520px);
  }
}

@media (max-width: 767.98px) {
  .nimber-investor-guide-page .guide-hero {
    min-height: 270px;
    padding: 118px 0 48px;
  }

  .nimber-investor-guide-page .guide-hero h1 {
    font-size: clamp(30px, 8.2vw, 39px);
  }

  .nimber-investor-guide-page .guide-content {
    padding-top: 42px;
  }

  .nimber-investor-guide-page .guide-filters {
    width: calc(100% + var(--container-gutter));
    margin-right: calc(var(--container-gutter) * -1);
    border-radius: 12px 0 0 12px;
  }

  .nimber-investor-guide-page .guide-card__link {
    min-height: 470px;
  }

  .nimber-investor-guide-page .guide-card__image {
    object-position: 54% center;
  }

  .nimber-investor-guide-page .guide-card__overlay {
    background:
      linear-gradient(0deg, rgba(13, 31, 44, .97) 0%, rgba(13, 31, 44, .86) 47%, rgba(13, 31, 44, .18) 82%),
      linear-gradient(90deg, rgba(13, 31, 44, .2), rgba(13, 31, 44, 0));
  }

  .nimber-investor-guide-page .guide-card__body {
    padding: 24px;
  }

  .nimber-investor-guide-page .guide-card__category {
    min-width: 132px;
    min-height: 30px;
    padding-inline: 18px;
  }

  .nimber-investor-guide-page .guide-card__copy {
    width: 100%;
  }

  .nimber-investor-guide-page .guide-card__title {
    font-size: 18px;
  }

  .nimber-investor-guide-page .guide-card__summary {
    max-width: 440px;
    font-size: 18px;
  }

  .nimber-investor-guide-page .guide-card__meta {
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
  }

  .nimber-investor-guide-page .guide-card__date {
    grid-column: 2;
    padding-left: 0;
    border-left: 0;
  }

  .nimber-investor-guide-page .guide-pagination {
    overflow-x: auto;
    justify-content: center;
    padding: 3px 0 10px;
    scrollbar-width: none;
  }

  .nimber-investor-guide-page .guide-pagination ul.page-numbers {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 3px;
    min-width: max-content;
    margin-inline: auto;
  }

  .nimber-investor-guide-page .guide-pagination::-webkit-scrollbar {
    display: none;
  }

  .nimber-investor-guide-page .guide-pagination a.prev.page-numbers,
  .nimber-investor-guide-page .guide-pagination a.next.page-numbers,
  .nimber-investor-guide-page .guide-page-arrow {
    flex: 0 0 44px;
  }

  .nimber-investor-guide-page .guide-pagination a.page-numbers,
  .nimber-investor-guide-page .guide-pagination span.page-numbers,
  .nimber-investor-guide-page .guide-page {
    flex: 0 0 34px;
  }
}

@media (max-width: 419.98px) {
  .nimber-investor-guide-page .guide-card__link {
    min-height: 445px;
  }

  .nimber-investor-guide-page .guide-card__body {
    padding: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nimber-investor-guide-page .guide-card__link,
  .nimber-investor-guide-page .guide-card__image,
  .nimber-investor-guide-page .guide-filter,
  .nimber-investor-guide-page .guide-page,
  .nimber-investor-guide-page .guide-page-arrow {
    transition: none !important;
  }
}
