/* =========================
   BASE
========================= */
body,
.site,
.site-content,
#page,
main,
.wp-site-blocks {
  background-color: #ffffff !important;
}

/* =========================
   CARDS DE ARTIGOS
========================= */
.uagb-post__inner-wrap {
  background-color: #0064f5 !important;
  border: 1px solid rgba(0, 51, 176, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 26px rgba(0, 15, 68, 0.07) !important;
  overflow: hidden !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease !important;
}

.uagb-post__inner-wrap:hover {
  transform: none !important;
  box-shadow: 0 16px 36px rgba(0, 15, 68, 0.12) !important;
}

.uagb-post__inner-wrap,
.uagb-post__inner-wrap .uagb-post__title,
.uagb-post__inner-wrap .uagb-post__title a,
.uagb-post__inner-wrap * {
  color: #ffffff !important;
}

/* =========================
   CATEGORIAS
========================= */
.uagb-post__inner-wrap .uagb-post__taxonomy,
.uagb-post__inner-wrap .wp-block-post-terms,
.uagb-post__inner-wrap a[rel="category tag"],
.uagb-post__inner-wrap .post-categories a,
.uagb-post__inner-wrap .cat-links a {
  display: inline-block !important;
  margin: 5px 5px 5px 0 !important;
  padding: 5px 15px !important;
  background-color: #0033b0 !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.uagb-post__inner-wrap .uagb-post__taxonomy:hover,
.uagb-post__inner-wrap .wp-block-post-terms a:hover {
  background-color: #002080 !important;
}

/* =========================
   BOTÕES "LER TEXTO"
========================= */
.uagb-post__inner-wrap .wp-block-button__link,
.uagb-post__inner-wrap a.wp-block-button__link {
  display: inline-block !important;
  width: auto !important;
  padding: 10px 30px !important;
  background-color: #ffffff !important;
  border: 2px solid #ffffff !important;
  border-radius: 25px !important;
  color: #0066cc !important;
  font-weight: 600 !important;
  text-align: center !important;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease !important;
}

.uagb-post__inner-wrap .wp-block-button__link:hover,
.uagb-post__inner-wrap a.wp-block-button__link:hover {
  background-color: #77df40 !important;
  border-color: #77df40 !important;
  color: #0066cc !important;
}

/* =========================
   TÍTULOS DAS SEÇÕES
========================= */
h2,
h2.uagb-heading-text,
.wp-block-heading,
h2.wp-block-heading {
  margin-bottom: 2.5rem !important;
  padding-left: 20px !important;
  border-left: 6px solid #77df40 !important;
  color: #0033B0 !important;
  font-family: "Agibank Sans", "Montserrat", sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px !important;
  text-align: left !important;
  transition: border-left-color 0.3s ease !important;
}

h2:hover {
  border-left-color: #0066cc !important;
}
/* =========================
   PAGINAÇÃO
========================= */
.page-numbers,
nav.pagination .page-numbers,
.pagination .page-numbers,
.ast-pagination .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 48px !important;
  height: 48px !important;
  margin: 0 6px !important;
  padding: 0 16px !important;
  background: #ffffff !important;
  border: 1px solid #d9e6ff !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 8px rgba(0, 100, 245, 0.08) !important;
  color: #0064f5 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

.page-numbers:hover,
nav.pagination .page-numbers:hover,
.pagination .page-numbers:hover {
  transform: translateY(-1px) !important;
  background: #0064f5 !important;
  border-color: #0064f5 !important;
  box-shadow: 0 8px 18px rgba(0, 100, 245, 0.18) !important;
  color: #ffffff !important;
}

.page-numbers.current,
nav.pagination .page-numbers.current,
.pagination .page-numbers.current {
  background: #0064f5 !important;
  border-color: #0064f5 !important;
  box-shadow: 0 8px 18px rgba(0, 100, 245, 0.2) !important;
  color: #ffffff !important;
}

.page-numbers.next,
.page-numbers.prev,
nav.pagination .next,
nav.pagination .prev {
  min-width: auto !important;
  padding: 0 20px !important;
}

nav.pagination,
.pagination,
.ast-pagination {
  margin-top: 32px !important;
  text-align: center !important;
}

/* =========================
   ÚLTIMAS DO BLOG DO AGI
========================= */
.ultimas-grid .uagb-post__inner-wrap {
  border: 1px solid transparent !important;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease !important;
}

.ultimas-grid .uagb-post__inner-wrap:hover {
  transform: translateY(-3px) !important;
  background-color: #ffffff !important;
  border-color: rgba(0, 51, 176, 0.12) !important;
  box-shadow: 0 12px 24px rgba(0, 15, 68, 0.12) !important;
}

.ultimas-grid .uagb-post__inner-wrap:hover *,
.ultimas-grid .uagb-post__inner-wrap:hover .uagb-post__title,
.ultimas-grid .uagb-post__inner-wrap:hover .uagb-post__title a,
.ultimas-grid .uagb-post__inner-wrap:hover .uagb-post__excerpt,
.ultimas-grid .uagb-post__inner-wrap:hover .uagb-post__meta,
.ultimas-grid .uagb-post__inner-wrap:hover p,
.ultimas-grid .uagb-post__inner-wrap:hover span,
.ultimas-grid .uagb-post__inner-wrap:hover a {
  color: #0033b0 !important;
}

.ultimas-grid .uagb-post__inner-wrap:hover .uagb-post__taxonomy,
.ultimas-grid .uagb-post__inner-wrap:hover .wp-block-post-terms,
.ultimas-grid .uagb-post__inner-wrap:hover a[rel="category tag"],
.ultimas-grid .uagb-post__inner-wrap:hover .post-categories a,
.ultimas-grid .uagb-post__inner-wrap:hover .cat-links a {
  background-color: #eef4ff !important;
  color: #0033b0 !important;
}

.ultimas-grid .uagb-post__taxonomy,
.ultimas-grid .wp-block-post-terms,
.ultimas-grid a[rel="category tag"],
.ultimas-grid .post-categories a,
.ultimas-grid .cat-links a,
.ultimas-grid .wp-block-button__link,
.ultimas-grid a.wp-block-button__link {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease !important;
}

.ultimas-grid .uagb-post__inner-wrap:hover .wp-block-button__link,
.ultimas-grid .uagb-post__inner-wrap:hover a.wp-block-button__link {
  background-color: #0033b0 !important;
  border-color: #0033b0 !important;
  color: #ffffff !important;
}

.ultimas-grid .uagb-post__inner-wrap:hover .wp-block-button__link:hover,
.ultimas-grid .uagb-post__inner-wrap:hover a.wp-block-button__link:hover {
  background-color: #77df40 !important;
  border-color: #77df40 !important;
  color: #0033b0 !important;
}

/* fundo cinza suave atrás da seção Últimas do Blog do Agi */
.ultimas-grid {
  margin: 32px 0 !important;
  padding: 28px 22px !important;
  background: #f3f4f6 !important;
  border-radius: 28px !important;
}
/* =========================
   H1 DOS ARTIGOS
========================= */
body.single h1,
body.single-post h1,
body.single .entry-title {
  position: relative;
  margin-bottom: 1.5rem;
  padding-bottom: 15px;
  border-bottom: 3px solid #77df40;
  color: #0033b0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

body.single h1::after,
body.single-post h1::after,
body.single .entry-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: #0066cc;
}
/* =========================
   TUDO EMPRÉSTIMO
========================= */
.tudo-emprestimo-grid {
  margin: 32px 0 !important;
  padding: 28px 22px !important;
  background: #c9ff90 !important;
  border-radius: 28px !important;
}

.lojas-app {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
}

.lojas-app > * {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: max-content !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lojas-app img {
  display: block !important;
  max-width: 180px !important;
  height: auto !important;
}
/* =========================
   RESULTADOS DE BUSCA
========================= */
/* card de resultado - refinado */
body.search article,
body.search-results article,
body.search .post,
body.search-results .post {
  margin-bottom: 22px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid #e4ebf5 !important;
  border-radius: 22px !important;
  box-shadow: 0 8px 20px rgba(0, 15, 68, 0.08) !important;
}

/* título do card */
body.search .entry-title,
body.search-results .entry-title,
body.search .entry-title h2,
body.search-results .entry-title h2 {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #001b6b !important;
  font-size: clamp(1.2rem, 1.9vw, 1.7rem) !important;
  font-weight: 500 !important;
  line-height: 1.16 !important;
}

body.search .entry-title a,
body.search-results .entry-title a {
  color: #001b6b !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

body.search .entry-title a:hover,
body.search-results .entry-title a:hover {
  color: #0064f5 !important;
}
/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  h2,
  h2.uagb-heading-text,
  .wp-block-heading,
  h2.wp-block-heading {
    margin-bottom: 1.5rem !important;
    padding-left: 15px !important;
    border-left: 4px solid #77df40 !important;
    font-size: 1.8rem !important;
  }

  .uagb-post__inner-wrap {
    margin-bottom: 20px !important;
  }

  .uagb-post__inner-wrap .wp-block-button__link,
  .uagb-post__inner-wrap a.wp-block-button__link {
    padding: 8px 20px !important;
    font-size: 14px !important;
  }

  .uagb-post__inner-wrap .uagb-post__taxonomy,
  .uagb-post__inner-wrap .wp-block-post-terms a {
    padding: 4px 12px !important;
    font-size: 12px !important;
  }

  .page-numbers,
  nav.pagination .page-numbers,
  .pagination .page-numbers,
  .ast-pagination .page-numbers {
    margin: 0 6px 12px !important;
  }

  .page-numbers.next,
  nav.pagination .next,
  .pagination .next,
  .ast-pagination .next {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 140px !important;
    margin-top: 10px !important;
  }

  .uagb-block-5f5c95b9 {
    margin: 28px 12px !important;
    padding: 20px 16px 14px !important;
    border-radius: 18px !important;
    text-align: center !important;
  }

  .uagb-block-5f5c95b9 h2,
  .uagb-block-5f5c95b9 h2.uagb-heading-text {
    width: 100% !important;
    margin-right: auto !important;
    margin-bottom: 4px !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    border-left: none !important;
    font-size: 1.8rem !important;
    line-height: 0.96 !important;
    text-align: center !important;
  }

  .uagb-block-5f5c95b9 p {
    margin-bottom: 0 !important;
    font-size: 0.95rem !important;
  }

  .uagb-block-5f5c95b9 .wp-block-image {
    margin-top: -8px !important;
    margin-right: auto !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
  }

  body.search h2,
  body.archive h2 {
    font-size: 1.2rem !important;
  }


  body.single h1,
  body.single-post h1,
  body.single .entry-title {
    padding-bottom: 12px !important;
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }

  body.single h1::after,
  body.single-post h1::after,
  body.single .entry-title::after {
    width: 60px !important;
  }

  html,
  body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  #page,
  .site,
  .site-content {
    overflow-x: hidden !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }

  .uagb-block-2cd0e2bc {
    margin-top: 40px !important;
  }
	
  .tudo-emprestimo-grid {
    margin: 20px 0 !important;
    padding: 20px 15px !important;
    border-radius: 20px !important;
  }
	

  .web-stories-list {
    margin-bottom: 28px !important;
  }

  .wp-block-uagb-advanced-heading.uagb-block-851ed8c9 {
    margin-top: 28px !important;
    margin-bottom: 20px !important;
  }

  .ultimas-grid {
    margin-top: 0 !important;
  }

  .ultimas-grid .uagb-post__inner-wrap:hover {
    transform: none !important;
    background-color: #0064f5 !important;
    border-color: transparent !important;
    box-shadow: 0 10px 26px rgba(0, 15, 68, 0.07) !important;
  }
  .ultimas-grid .uagb-post__inner-wrap:hover .uagb-post__taxonomy,
  .ultimas-grid .uagb-post__inner-wrap:hover .wp-block-post-terms,
  .ultimas-grid .uagb-post__inner-wrap:hover a[rel="category tag"],
  .ultimas-grid .uagb-post__inner-wrap:hover .post-categories a,
  .ultimas-grid .uagb-post__inner-wrap:hover .cat-links a {
    background-color: #0033b0 !important;
    color: #ffffff !important;
  }

  .ultimas-grid .uagb-post__inner-wrap:hover .wp-block-button__link,
  .ultimas-grid .uagb-post__inner-wrap:hover a.wp-block-button__link,
  .ultimas-grid .uagb-post__inner-wrap:hover .wp-block-button__link:hover,
  .ultimas-grid .uagb-post__inner-wrap:hover a.wp-block-button__link:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #0066cc !important;
  }

  /* Stories mobile */

  .web-stories-list {
    margin-bottom: 8px !important;
  }

  .web-stories-list ~ .wp-block-heading,
  .web-stories-list ~ .uagb-block-f8dfd415,
  .web-stories-list ~ .ultimas-grid {
    margin-top: 8px !important;
  }
}

@media (max-width: 480px) {
  h2,
  h2.uagb-heading-text,
  .wp-block-heading {
    padding-left: 12px !important;
    border-left: 3px solid #77df40 !important;
    font-size: 1.5rem !important;
  }

  .uagb-block-5f5c95b9 h2 {
    font-size: 1.5rem !important;
  }

  .uagb-post__inner-wrap .wp-block-button__link {
    padding: 6px 15px !important;
    font-size: 13px !important;
  }
	
  .web-stories-list {
    margin-bottom: 24px !important;
  }

  .wp-block-uagb-advanced-heading.uagb-block-851ed8c9 {
    margin-top: 50px !important;
    margin-bottom: 18px !important;
  }
}
/* ==========================================
   TUDO SOBRE EMPRÉSTIMO — MOBILE ESTÁVEL
========================================== */
@media (max-width: 768px) {
  .tudo-emprestimo-grid .uagb-post__inner-wrap {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .tudo-emprestimo-grid .uagb-post__image {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    flex: 0 0 auto !important;
  }

  .tudo-emprestimo-grid .uagb-post__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .tudo-emprestimo-grid .uagb-post__title,
  .tudo-emprestimo-grid .uagb-post__excerpt,
  .tudo-emprestimo-grid .uagb-post__cta,
  .tudo-emprestimo-grid .wp-block-button {
    position: static !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .tudo-emprestimo-grid .uagb-post__title {
    margin-bottom: 12px !important;
  }

  .tudo-emprestimo-grid .wp-block-button,
  .tudo-emprestimo-grid .uagb-post__cta {
    margin-top: 14px !important;
  }

  .tudo-emprestimo-grid .wp-block-button__link,
  .tudo-emprestimo-grid a.wp-block-button__link {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
}

@media (max-width: 480px) {
  .tudo-emprestimo-grid .uagb-post__image {
    aspect-ratio: 16 / 11 !important;
  }

  .tudo-emprestimo-grid .uagb-post__title {
    margin-bottom: 10px !important;
  }

  .tudo-emprestimo-grid .wp-block-button__link,
  .tudo-emprestimo-grid a.wp-block-button__link {
    font-size: 13px !important;
    padding: 8px 14px !important;
  }
}
/* MOBILE — remove mudança de cor ao tocar nos cards da seção Últimas do Blog do Agi */
@media (max-width: 768px) {
  .ultimas-grid .uagb-post__inner-wrap:hover *,
  .ultimas-grid .uagb-post__inner-wrap:hover .uagb-post__title,
  .ultimas-grid .uagb-post__inner-wrap:hover .uagb-post__title a,
  .ultimas-grid .uagb-post__inner-wrap:hover .uagb-post__excerpt,
  .ultimas-grid .uagb-post__inner-wrap:hover .uagb-post__meta,
  .ultimas-grid .uagb-post__inner-wrap:hover p,
  .ultimas-grid .uagb-post__inner-wrap:hover span,
  .ultimas-grid .uagb-post__inner-wrap:hover a {
    color: #ffffff !important;
  }

  .ultimas-grid .uagb-post__inner-wrap:hover .uagb-post__taxonomy,
  .ultimas-grid .uagb-post__inner-wrap:hover .wp-block-post-terms,
  .ultimas-grid .uagb-post__inner-wrap:hover a[rel="category tag"],
  .ultimas-grid .uagb-post__inner-wrap:hover .post-categories a,
  .ultimas-grid .uagb-post__inner-wrap:hover .cat-links a {
    background-color: #0033b0 !important;
    color: #ffffff !important;
  }

  .ultimas-grid .uagb-post__inner-wrap:hover .wp-block-button__link,
  .ultimas-grid .uagb-post__inner-wrap:hover a.wp-block-button__link,
  .ultimas-grid .uagb-post__inner-wrap:hover .wp-block-button__link:hover,
  .ultimas-grid .uagb-post__inner-wrap:hover a.wp-block-button__link:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #0066cc !important;
  }
}
/* H2 dos artigos — UX refinada */
body.single h2,
body.single-post h2,
body.single .entry-content h2,
body.single-post .entry-content h2 {
  margin-top: 2.3rem !important;
  margin-bottom: 0.95rem !important;
  padding-left: 16px !important;
  border-left: 5px solid #77df40 !important;
  color: #0033b0 !important;
  font-family: "Agibank Sans", "Montserrat", sans-serif !important;
  font-size: 1.7rem !important;
  font-weight: 700 !important;
  line-height: 1.16 !important;
  letter-spacing: -0.02em !important;
  text-wrap: balance !important;
}

@media (max-width: 768px) {
  body.single h2,
  body.single-post h2,
  body.single .entry-content h2,
  body.single-post .entry-content h2 {
    margin-top: 1.8rem !important;
    margin-bottom: 0.8rem !important;
    padding-left: 14px !important;
    border-left: 4px solid #77df40 !important;
    font-size: 1.38rem !important;
    line-height: 1.18 !important;
  }
}
/* =========================================================
   TABLE OF CONTENTS — UAGB
   Versão mais leve
========================================================= */

body.single .uagb-toc__wrap,
body.single-post .uagb-toc__wrap {
  background: #ffffff !important;
  border: 1px solid #d9e1ea !important;
  border-radius: 22px !important;
  box-shadow: 0 6px 18px rgba(0, 15, 68, 0.06) !important;
  padding: 28px 32px !important;
  margin: 28px 0 !important;
  font-family: "Agibank Sans", "Montserrat", sans-serif !important;
}

/* título */
body.single .uagb-toc__title,
body.single-post .uagb-toc__title {
  color: #000f44 !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: "Agibank Sans", "Montserrat", sans-serif !important;
}

/* lista */
body.single .uagb-toc__list-wrap,
body.single-post .uagb-toc__list-wrap {
  margin: 0 !important;
  padding: 0 !important;
}

body.single .uagb-toc__list,
body.single-post .uagb-toc__list {
  margin: 0 !important;
  padding-left: 28px !important;
}

/* itens */
body.single .uagb-toc__list > li,
body.single-post .uagb-toc__list > li,
body.single .uagb-toc__list li,
body.single-post .uagb-toc__list li {
  color: #0033b0 !important;
  margin-bottom: -15px !important;
  padding-left: 2px !important;
  font-family: "Agibank Sans", "Montserrat", sans-serif !important;
}

/* bolinhas / números */
body.single .uagb-toc__list > li::marker,
body.single-post .uagb-toc__list > li::marker,
body.single .uagb-toc__list li::marker,
body.single-post .uagb-toc__list li::marker {
  color: #77df40 !important;
  font-weight: 600 !important;
}

/* links */
body.single .uagb-toc-link__trigger,
body.single-post .uagb-toc-link__trigger {
  color: #0033b0 !important;
  text-decoration: none !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  transition: color 0.2s ease !important;
  font-family: "Agibank Sans", "Montserrat", sans-serif !important;
}

/* hover */
body.single .uagb-toc-link__trigger:hover,
body.single-post .uagb-toc-link__trigger:hover {
  color: #0033b0 !important;
  text-decoration: underline !important;
}
/* mobile */
@media (max-width: 768px) {
  body.single .uagb-toc__wrap,
  body.single-post .uagb-toc__wrap {
    padding: 16px 16px !important;
    border-radius: 18px !important;
    margin: 22px 0 !important;
  }

  body.single .uagb-toc__title,
  body.single-post .uagb-toc__title {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
  }

  body.single .uagb-toc__list,
  body.single-post .uagb-toc__list {
    padding-left: 22px !important;
  }

  body.single .uagb-toc__list > li,
  body.single-post .uagb-toc__list > li,
  body.single .uagb-toc__list li,
  body.single-post .uagb-toc__list li {
    margin-bottom: 5px !important;
  }

  body.single .uagb-toc-link__trigger,
  body.single-post .uagb-toc-link__trigger {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1.32 !important;
  }
}

/* ==========================================
   NEWSLETTER — CTA FORTE ESTREITA
========================================== */
#blog_subscription-3,
.widget_blog_subscription.jetpack_subscription_widget {
  width: 88% !important;
  max-width: 300px !important;
  margin: 0 auto !important;
  padding: 18px 16px 16px !important;
  background: #0033b0 !important;
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 22px rgba(0, 15, 68, 0.09) !important;
  overflow: hidden !important;
}

#blog_subscription-3::before,
.widget_blog_subscription.jetpack_subscription_widget::before {
  content: none !important;
}

#blog_subscription-3 .widget-title,
.widget_blog_subscription .widget-title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #ffffff !important;
  font-family: "Agibank Sans", "Montserrat", sans-serif !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  max-width: 100% !important;
  text-align: left !important;
}

#blog_subscription-3 p,
#blog_subscription-3 label,
.widget_blog_subscription p,
.widget_blog_subscription label {
  margin: 0 0 8px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.84rem !important;
  line-height: 1.4 !important;
}

#blog_subscription-3 .wp-block-jetpack-subscriptions__container,
.widget_blog_subscription .wp-block-jetpack-subscriptions__container {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

#blog_subscription-3 input[type="email"],
#blog_subscription-3 input[type="text"],
.widget_blog_subscription input[type="email"],
.widget_blog_subscription input[type="text"] {
  width: 100% !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #243041 !important;
  font-size: 0.88rem !important;
  box-shadow: none !important;
}

#blog_subscription-3 input[type="email"]::placeholder,
#blog_subscription-3 input[type="text"]::placeholder,
.widget_blog_subscription input[type="email"]::placeholder,
.widget_blog_subscription input[type="text"]::placeholder {
  color: #98a2b3 !important;
}

#blog_subscription-3 input[type="email"]:focus,
#blog_subscription-3 input[type="text"]:focus,
.widget_blog_subscription input[type="email"]:focus,
.widget_blog_subscription input[type="text"]:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(119, 223, 64, 0.22) !important;
}

#blog_subscription-3 input[type="submit"],
#blog_subscription-3 button,
.widget_blog_subscription input[type="submit"],
.widget_blog_subscription button {
  width: 100% !important;
  min-height: 42px !important;
  margin-top: 2px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #77df40 !important;
  color: #163300 !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, filter 0.2s ease !important;
}

#blog_subscription-3 input[type="submit"]:hover,
#blog_subscription-3 button:hover,
.widget_blog_subscription input[type="submit"]:hover,
.widget_blog_subscription button:hover {
  transform: translateY(-1px) !important;
  filter: brightness(0.98) !important;
}

/* mobile */
@media (max-width: 768px) {
  #blog_subscription-3,
  .widget_blog_subscription.jetpack_subscription_widget {
    width: 100% !important;
    max-width: none !important;
    padding: 16px 14px 14px !important;
    border-radius: 18px !important;
  }

  #blog_subscription-3 .widget-title,
  .widget_blog_subscription .widget-title {
    font-size: 1rem !important;
    margin-bottom: 8px !important;
  }

  #blog_subscription-3 p,
  #blog_subscription-3 label,
  .widget_blog_subscription p,
  .widget_blog_subscription label {
    font-size: 0.8rem !important;
    margin-bottom: 7px !important;
  }

  #blog_subscription-3 input[type="email"],
  #blog_subscription-3 input[type="text"],
  .widget_blog_subscription input[type="email"],
  .widget_blog_subscription input[type="text"],
  #blog_subscription-3 input[type="submit"],
  #blog_subscription-3 button,
  .widget_blog_subscription input[type="submit"],
  .widget_blog_subscription button {
    min-height: 40px !important;
    font-size: 0.86rem !important;
  }
}
/* =========================================================
   SIDEBAR DOS ARTIGOS — STICKY SEM SCROLL INTERNO
   Versão neutra para não desalinhar os widgets
========================================================= */

:root {
  --agi-sidebar-top: 118px;
}

/* desktop */
@media (min-width: 1025px) {
  .single-post #secondary.widget-area.secondary {
    position: relative !important;
  }

  /* remove scroll interno apenas do container principal */
  .single-post #secondary.widget-area.secondary > .sidebar-main,
  .single-post #secondary.widget-area.secondary > .sidebar-main[style] {
    position: sticky !important;
    top: var(--agi-sidebar-top) !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overscroll-behavior: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* mantém widgets no fluxo natural, sem mexer na largura */
  .single-post #secondary.widget-area.secondary .widget {
    margin-bottom: 18px !important;
  }

  /* evita qualquer scroll herdado só nos widgets principais */
  .single-post #secondary.widget-area.secondary .widget,
  .single-post #secondary.widget-area.secondary .widget > div {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* tablet e mobile */
@media (max-width: 1024px) {
  .single-post #secondary.widget-area.secondary > .sidebar-main,
  .single-post #secondary.widget-area.secondary > .sidebar-main[style] {
    position: static !important;
    top: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
/* H3 dos artigos — UX refinada */
body.single h3,
body.single-post h3,
body.single .entry-content h3,
body.single-post .entry-content h3 {
  margin-top: 1.8rem !important;
  margin-bottom: 0.7rem !important;
  color: #0033b0 !important;
  font-family: "Agibank Sans", "Montserrat", sans-serif !important;
  font-size: 1.24rem !important;
  font-weight: 600 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.01em !important;
}

@media (max-width: 768px) {
  body.single h3,
  body.single-post h3,
  body.single .entry-content h3,
  body.single-post .entry-content h3 {
    margin-top: 1.5rem !important;
    margin-bottom: 0.6rem !important;
    font-size: 1.05rem !important;
    line-height: 1.24 !important;
  }
}
/* =========================================================
   CATEGORIAS / ARQUIVOS — MESMO LAYOUT DA BUSCA
========================================================= */

/* card de resultado */
body.archive article,
body.archive .post {
  margin-bottom: 22px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid #e4ebf5 !important;
  border-radius: 22px !important;
  box-shadow: 0 8px 20px rgba(0, 15, 68, 0.08) !important;
}

/* área do conteúdo textual */
body.archive article .entry-header {
  position: relative !important;
  padding-left: 0 !important;
}

/* título do card */
body.archive .entry-title,
body.archive .entry-title h2 {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #001b6b !important;
  font-size: clamp(1.2rem, 1.9vw, 1.7rem) !important;
  font-weight: 500 !important;
  line-height: 1.16 !important;
}

body.archive .entry-title a {
  color: #001b6b !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

body.archive .entry-title a:hover {
  color: #0064f5 !important;
}

/* data */
body.archive .entry-meta,
body.archive .posted-on {
  margin-top: 0 !important;
  color: #0064f5 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* remove linhas/recuos herdados */
body.archive article .entry-header::before,
body.archive article .entry-summary::before {
  content: none !important;
}

body.archive article .entry-meta,
body.archive article .entry-meta *,
body.archive article .posted-on {
  margin-left: 0 !important;
  padding-left: 0 !important;
  left: auto !important;
  text-indent: 0 !important;
  transform: none !important;
}

/* mantém o título alinhado */
body.archive .entry-title {
  margin-bottom: 10px !important;
}

/* mobile */
@media (max-width: 768px) {
  body.archive .entry-title,
  body.archive .entry-title h2 {
    font-size: 1.2rem !important;
    line-height: 1.25 !important;
  }
}
/* =========================================================
   TÍTULO PRINCIPAL DAS PÁGINAS DE CATEGORIA / BUSCA
   Visual moderno e mais próximo dos cards
========================================================= */

body.category h1,
body.archive h1,
body.search h1,
body.search-results h1,
body.category .page-title,
body.archive .page-title,
body.search .page-title,
body.search-results .page-title,
body.category .archive-title,
body.archive .archive-title,
body.search .archive-title,
body.search-results .archive-title {
  position: relative !important;
  display: block !important;
  margin: 0 0 0rem !important;
  padding: 0 0 0.65rem !important;
  border: 0 !important;
  color: #0033b0 !important;
  font-family: "Agibank Sans", "Montserrat", sans-serif !important;
  font-size: clamp(2rem, 3.2vw, 3rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
  text-align: center !important;
  text-wrap: balance !important;
}

/* linha verde sólida abaixo do título */
body.category h1::after,
body.archive h1::after,
body.search h1::after,
body.search-results h1::after,
body.category .page-title::after,
body.archive .page-title::after,
body.search .page-title::after,
body.search-results .page-title::after,
body.category .archive-title::after,
body.archive .archive-title::after,
body.search .archive-title::after,
body.search-results .archive-title::after {
  content: "" !important;
  display: block !important;
  width: 350px !important;
  height: 4px !important;
  margin: 16px auto 0 !important;
  border-radius: 999px !important;
  background: #77df40 !important;
  opacity: 1 !important;
}

/* remove estilos herdados que possam brigar */
body.category .entry-title,
body.archive .entry-title,
body.search .entry-title,
body.search-results .entry-title {
  border: 0 !important;
}

/* mobile */
@media (max-width: 768px) {
  body.category h1,
  body.archive h1,
  body.search h1,
  body.search-results h1,
  body.category .page-title,
  body.archive .page-title,
  body.search .page-title,
  body.search-results .page-title,
  body.category .archive-title,
  body.archive .archive-title,
  body.search .archive-title,
  body.search-results .archive-title {
    margin-bottom: 1rem !important;
    padding-bottom: 0.55rem !important;
    font-size: 1.9rem !important;
    line-height: 1.1 !important;
  }

  body.category h1::after,
  body.archive h1::after,
  body.search h1::after,
  body.search-results h1::after,
  body.category .page-title::after,
  body.archive .page-title::after,
  body.search .page-title::after,
  body.search-results .page-title::after,
  body.category .archive-title::after,
  body.archive .archive-title::after,
  body.search .archive-title::after,
  body.search-results .archive-title::after {
    width: 56px !important;
    height: 3px !important;
    margin-top: 8px !important;
  }
}
/* Aproxima os botões de loja do texto "Faça o download do aplicativo" */
.uagb-block-de0a3ffd p.has-text-align-center {
  margin-bottom: -15px !important;
}

.lojas-app {
  margin-top: 0 !important;
  gap: 10px !important;
}
/* Estiliza o "Faça o download do aplicativo e abra sua conta" */
.uagb-block-de0a3ffd p.has-text-align-center {
  color: #0033b0 !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  line-height: 1.15 !important;
}
/* Mobile — imagem de capa do artigo sem margens laterais */
@media (max-width: 768px) {
  body.single-post .post .post-thumb,
  body.single-post .post .wp-post-image,
  body.single-post .ast-single-post-featured-section,
  body.single-post .ast-single-post-featured-section .post-thumb,
  body.single-post .ast-single-post-featured-section img,
  body.single-post .inside-article .post-thumb,
  body.single-post .inside-article .post-thumb img {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-radius: 0 !important;
  }

  body.single-post .post .post-thumb img,
  body.single-post .inside-article .post-thumb img,
  body.single-post .ast-single-post-featured-section img,
  body.single-post .wp-post-image {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    object-fit: cover !important;
  }
}
/* Corpo do artigo — UX refinada */
body.single .entry-content,
body.single-post .entry-content,
body.single .entry-content p,
body.single-post .entry-content p,
body.single .entry-content li,
body.single-post .entry-content li {
  color: #1f2937 !important;
  font-size: 1.12rem !important;
  line-height: 1.82 !important;
  letter-spacing: -0.005em !important;
}

body.single .entry-content p,
body.single-post .entry-content p {
  margin-bottom: 1.35rem !important;
}

body.single .entry-content ul,
body.single-post .entry-content ul,
body.single .entry-content ol,
body.single-post .entry-content ol {
  margin-bottom: 1.35rem !important;
}

@media (max-width: 768px) {
  body.single .entry-content,
  body.single-post .entry-content,
  body.single .entry-content p,
  body.single-post .entry-content p,
  body.single .entry-content li,
  body.single-post .entry-content li {
    color: #1f2937 !important;
    font-size: 1rem !important;
    line-height: 1.78 !important;
  }

  body.single .entry-content p,
  body.single-post .entry-content p {
    margin-bottom: 1.2rem !important;
  }
}
/* =========================================================
   BANNER CARROSSEL — BASE LIMPA E ESTÁVEL
   Astra + UAGB Post Carousel
   Escopo fechado para reduzir risco de conflito
========================================================= */

/* container geral */
body.home .wp-block-uagb-post-carousel {
  position: relative !important;
  margin: 0 auto 32px !important;
}

/* card do slide */
body.home .wp-block-uagb-post-carousel article.uagb-post__inner-wrap,
body.home .wp-block-uagb-post-carousel .uagb-post__inner-wrap {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  min-height: 560px !important;
  padding: 48px !important;
  background: #0d2b84 !important;
  border: 0 !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

/* overlay único, cobrindo toda a imagem */
body.home .wp-block-uagb-post-carousel .uagb-post__image::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: linear-gradient(
    to top,
    rgba(5, 20, 74, 0.92) 0%,
    rgba(5, 20, 74, 0.58) 42%,
    rgba(5, 20, 74, 0.16) 100%
  ) !important;
}

/* byline/metadados escondidos no hero */
body.home .wp-block-uagb-post-carousel .uagb-post-grid-byline,
body.home .wp-block-uagb-post-carousel .uagb-post__meta {
  display: none !important;
}

/* título */
body.home .wp-block-uagb-post-carousel h2.uagb-post__title {
  position: relative !important;
  display: block !important;
  width: min(100%, 900px) !important;
  margin: 0 0 24px !important;
  padding: 0 0 0 24px !important;
  background: transparent !important;
  border: 0 !important;
  color: #ffffff !important;
  font-size: clamp(2rem, 4vw, 3.7rem) !important;
  font-weight: 700 !important;
  line-height: 0.98 !important;
  text-align: left !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 3px 10px rgba(0, 15, 68, 0.45) !important;
  box-shadow: none !important;
  overflow-wrap: break-word !important;
}

/* faixa verde única */
body.home .wp-block-uagb-post-carousel h2.uagb-post__title::before {
  content: "" !important;
  position: absolute !important;
  top: 0.30em !important;
  bottom: 0.05em !important;
  left: 0 !important;
  width: 6px !important;
  border-radius: 999px !important;
  background: #77df40 !important;
}

/* CTA */
body.home .wp-block-uagb-post-carousel .uagb-post__cta,
body.home .wp-block-uagb-post-carousel .wp-block-button {
  display: block !important;
  margin: 0 !important;
}

body.home .wp-block-uagb-post-carousel .uagb-post__cta .wp-block-button__link,
body.home .wp-block-uagb-post-carousel .wp-block-button__link,
body.home .wp-block-uagb-post-carousel a.wp-block-button__link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  padding: 0 26px !important;
  width: auto !important;
  border: 0px solid #ffffff !important;
  border-radius: 999px !important;
  background: #0064F5 !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.home .wp-block-uagb-post-carousel .uagb-post__cta .wp-block-button__link:hover,
body.home .wp-block-uagb-post-carousel .wp-block-button__link:hover,
body.home .wp-block-uagb-post-carousel a.wp-block-button__link:hover {
  background: #FFFFFF !important;
  border-color: #77df40 !important;
  color: #0064F5 !important;
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width: 921px) {
  body.home .wp-block-uagb-post-carousel article.uagb-post__inner-wrap,
  body.home .wp-block-uagb-post-carousel .uagb-post__inner-wrap {
    min-height: 440px !important;
    padding: 28px 24px 30px !important;
    border-radius: 20px !important;
  }

  body.home .wp-block-uagb-post-carousel h2.uagb-post__title {
    width: 100% !important;
    margin-bottom: 20px !important;
    padding-left: 18px !important;
    font-size: clamp(1.7rem, 5vw, 2.4rem) !important;
    line-height: 1.1 !important;
  }

  body.home .wp-block-uagb-post-carousel h2.uagb-post__title::before {
    width: 5px !important;
  }

  body.home .wp-block-uagb-post-carousel .uagb-post__cta .wp-block-button__link,
  body.home .wp-block-uagb-post-carousel .wp-block-button__link,
  body.home .wp-block-uagb-post-carousel a.wp-block-button__link {
    min-height: 48px !important;
    padding: 0 22px !important;
    font-size: 0.95rem !important;
  }
}

/* =========================================================
   CELULAR
   Adaptação suave, sem ser agressiva
========================================================= */
@media (max-width: 640px) {
  body.home .wp-block-uagb-post-carousel {
    margin-bottom: 24px !important;
  }

  body.home .wp-block-uagb-post-carousel article.uagb-post__inner-wrap,
  body.home .wp-block-uagb-post-carousel .uagb-post__inner-wrap {
    min-height: 360px !important;
    padding: 22px 18px 24px !important;
    border-radius: 16px !important;
  }

  body.home .wp-block-uagb-post-carousel h2.uagb-post__title {
    width: 100% !important;
    max-width: 92% !important;
    margin-bottom: 16px !important;
    padding-left: 16px !important;
    font-size: 1.45rem !important;
    line-height: 1.14 !important;
    letter-spacing: -0.01em !important;
  }

  body.home .wp-block-uagb-post-carousel h2.uagb-post__title::before {
    width: 4px !important;
  }

  body.home .wp-block-uagb-post-carousel .uagb-post__cta .wp-block-button__link,
  body.home .wp-block-uagb-post-carousel .wp-block-button__link,
  body.home .wp-block-uagb-post-carousel a.wp-block-button__link {
    min-height: 44px !important;
    padding: 0 18px !important;
    font-size: 0.9rem !important;
  }

  body.home .wp-block-uagb-post-carousel .slick-prev,
  body.home .wp-block-uagb-post-carousel .slick-next {
    display: none !important;
  }
}

/* =========================================================
   CELULARES MUITO PEQUENOS
========================================================= */
@media (max-width: 390px) {
  body.home .wp-block-uagb-post-carousel article.uagb-post__inner-wrap,
  body.home .wp-block-uagb-post-carousel .uagb-post__inner-wrap {
    min-height: 340px !important;
    padding: 20px 16px 22px !important;
  }

  body.home .wp-block-uagb-post-carousel h2.uagb-post__title {
    font-size: 1.28rem !important;
    line-height: 1.15 !important;
    padding-left: 14px !important;
  }

  body.home .wp-block-uagb-post-carousel .uagb-post__cta .wp-block-button__link,
  body.home .wp-block-uagb-post-carousel .wp-block-button__link,
  body.home .wp-block-uagb-post-carousel a.wp-block-button__link {
    min-height: 42px !important;
    padding: 0 16px !important;
    font-size: 0.86rem !important;
  }
}