/* =============================================================================
   BLOG STYLE v4 — Gold Accent Edition
   Dr. Rafael Bruns — rafaelbruns.com.br

   Paleta alinhada com homepage (redesign.css) + preview-gold.html
   Compativel com HTML do WordPress (entry-content, entry-title, etc)
   + rb-article component system (posts com HTML customizado)
   ============================================================================= */

/* --- CSS Variables (Gold Palette) --- */
:root {
  --navy: #032561;
  --navy-dark: #021B45;
  --navy-glow: rgba(3,37,97,.08);
  --blue-500: #1A5BBF;
  --blue-400: #3B7DD8;
  --blue-200: #B8D4F8;
  --blue-100: #DCE8F8;
  --gray-900: #1A1A2E;
  --gray-700: #444444;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --terra: #C9A84C;
  --terra-light: #F0E6C8;
  --terra-bg: #FAF6EC;
  --green: #108272;
  --green-hover: #0B6B3A;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.04);
  --shadow: 0 4px 20px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10);
  --shadow-glow: 0 8px 32px rgba(3,37,97,.12);
  --ease: cubic-bezier(.22,.61,.36,1);
  --duration: .35s;
}

/* =============================================================================
   PROGRESS BAR — Leitura
   ============================================================================= */
.rb-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue-400), var(--terra));
  z-index: 10001;
  transition: width 80ms linear;
  pointer-events: none;
}
.rb-progress::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4));
  filter: blur(3px);
}

/* =============================================================================
   BREADCRUMBS
   ============================================================================= */
p#breadcrumbs {
  padding-top: 40px;
  padding-bottom: 40px;
}
p#breadcrumbs a {
  color: var(--gray-500);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color .2s;
}
p#breadcrumbs a:hover {
  color: var(--navy);
}
p#breadcrumbs span {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
}

/* =============================================================================
   ENTRY TITLE
   ============================================================================= */
h1.entry-title {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  text-align: center;
  line-height: 1.15;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}
@media (max-width: 768px) {
  h1.entry-title {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.2;
  }
}

/* =============================================================================
   SUBTITULO
   ============================================================================= */
.subtitulo h2 {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 30px;
  font-size: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* =============================================================================
   ENTRY META
   ============================================================================= */
.entry-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  margin-bottom: 30px;
  font-size: 0.9rem;
}
span.posted-on, span.views {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

/* =============================================================================
   POST THUMBNAIL
   ============================================================================= */
.post-thumbnail {
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: box-shadow var(--duration) var(--ease);
}
.post-thumbnail:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.14);
}
.post-thumbnail img {
  width: 100%;
  height: auto;
  transition: transform .6s var(--ease);
}
.post-thumbnail:hover img {
  transform: scale(1.03);
}

/* =============================================================================
   HEADER GRID
   ============================================================================= */
.row.header-grid {
  margin-bottom: 60px;
}
.row.header-grid header {
  margin-bottom: 30px;
}

/* =============================================================================
   ENTRY CONTENT — Editorial typography
   ============================================================================= */
.entry-content {
  padding: 60px 0;
  max-width: 700px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .entry-content {
    padding: 16px 0;
  }
}
.entry-content p {
  color: var(--gray-700);
  font-size: 1.125rem;
  line-height: 1.85;
  margin-bottom: 1.2em;
}
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: 'Quicksand', sans-serif;
  letter-spacing: -0.01em;
  margin: 48px 0 20px;
  color: var(--navy);
  line-height: 1.2;
  scroll-margin-top: 130px;
}
.entry-content h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-100);
}
.entry-content h3 { font-size: 1.75em; }
.entry-content h4 { font-size: 1.5em; }
.entry-content h5 { font-size: 1.375rem; }
.entry-content h6 { font-size: 1.25rem; }
.entry-content b { font-weight: 700; }
.entry-content a {
  font-weight: bold;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(3,37,97,.2);
  text-underline-offset: .18em;
  text-decoration-thickness: .08em;
  transition: text-decoration-color .2s, color .2s;
}
.entry-content a:hover {
  text-decoration-color: var(--navy);
  color: var(--blue-500);
}

/* Lists */
.entry-content ul {
  padding-left: 30px;
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.entry-content ul li::marker { color: var(--terra); }
.entry-content ul ul, .entry-content ul ol { padding-left: 2px; }
.entry-content ul ul ul ul, .entry-content ul ol ol { padding-left: 2px; }
.entry-content ol {
  padding-left: 15px;
  font-size: 1.125rem;
  line-height: 30px;
  margin-bottom: 0;
}
.entry-content ol li::marker { color: var(--navy); }
.entry-content ul li, .entry-content ol li {
  padding-bottom: 16px;
  color: var(--gray-700);
}

/* =============================================================================
   BLOCKQUOTE — Gold accent
   ============================================================================= */
.entry-content blockquote {
  background: linear-gradient(135deg, var(--terra-bg), rgba(255,255,255,.6));
  border-radius: var(--radius);
  padding: 40px 48px 40px 60px;
  text-align: left;
  margin: 32px 0;
  position: relative;
  border-left: 4px solid var(--terra);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease);
}
.entry-content blockquote:hover {
  box-shadow: var(--shadow);
}
.entry-content blockquote::before {
  content: "\201C";
  position: absolute;
  left: 14px;
  top: 8px;
  font-size: 4rem;
  line-height: 1;
  color: #C9A84C;
  font-family: Georgia, serif;
  opacity: 0.15;
  pointer-events: none;
}
.entry-content blockquote p,
.entry-content blockquote span,
.entry-content blockquote h2,
.entry-content blockquote h3,
.entry-content blockquote h4,
.entry-content blockquote h5,
.entry-content blockquote h6 {
  margin: 0 !important;
  padding-top: 0 !important;
  border-bottom: none;
}

.col-md-8.content-blog-post { padding-left: 80px; }

/* =============================================================================
   AUTHOR BOX — Enhanced with gradient
   ============================================================================= */
.author-blog {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(135deg, var(--blue-100), var(--gray-50));
  border: 1px solid rgba(3,37,97,.08);
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.author-blog:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.author-blog .avatar {
  margin-right: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--navy);
  flex-shrink: 0;
}
.author-blog .author-info p {
  padding-bottom: 0 !important;
  margin-bottom: 0;
  color: var(--gray-700);
}
.author-blog .author-info .fn,
.author-blog .author-info strong {
  color: var(--navy);
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
}

/* =============================================================================
   COMMENTS — Enhanced form and cards
   ============================================================================= */
.comentario-titulo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  border: 1px solid rgba(3,37,97,.12);
  padding: 12px 16px;
  border-radius: var(--radius);
  transition: box-shadow var(--duration) var(--ease);
}
.comentario-titulo:hover {
  box-shadow: var(--shadow-sm);
}
.comentario-titulo h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 18px;
  color: var(--navy);
  max-width: 200px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
  margin-bottom: 0;
  margin-right: 15px;
  border-right: 2px solid var(--terra);
  height: 40px;
}
.comentario-titulo span {
  color: var(--gray-500);
  font-size: 1rem;
}
.comentario-titulo span.required-span { color: #FF0000; }
.content-grid #comments { padding-top: 60px; }

/* Comment form */
.comentarios-blog p.comment-form-author,
.comentarios-blog p.comment-form-email {
  width: 50%;
  display: block;
  margin-bottom: 15px;
}
.comentarios-blog p.comment-form-comment {
  width: 100%;
  display: block;
  margin-bottom: 15px;
}
.comentarios-blog p.comment-form-author label,
.comentarios-blog p.comment-form-comment label,
.comentarios-blog p.comment-form-email label {
  display: block;
  width: 100%;
  color: var(--gray-500);
  font-weight: bold;
  margin-bottom: 6px;
}
.comentarios-blog p.comment-form-author input,
.comentarios-blog .comment-form-email input {
  width: 100%;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1px solid rgba(3,37,97,.12);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s;
}
.comentarios-blog p.comment-form-author input:focus,
.comentarios-blog .comment-form-email input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59,125,216,.15);
  outline: none;
}
.comentarios-blog form#commentform {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  padding: 15px;
}
.comentarios-blog textarea#comment {
  width: 100%;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1px solid rgba(3,37,97,.12);
  border-radius: var(--radius);
  resize: none;
  max-height: 100px;
  font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s;
}
.comentarios-blog textarea#comment:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59,125,216,.15);
  outline: none;
}
.comentarios-blog p.comment-form-author { padding-right: 15px !important; }
.comentarios-blog p.comment-form-email { padding-left: 15px; }
.comentarios-blog p.comment-form-cookies-consent { display: block; width: 100%; }
.comentarios-blog p.form-submit { width: 100%; }
.comentarios-blog input#submit {
  display: inline-block;
  padding: 14px 32px;
  background: var(--navy) !important;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  margin-top: 15px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(3,37,97,.2);
  transition: all .25s var(--ease);
}
.comentarios-blog input#submit:hover {
  background: var(--navy-dark) !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(3,37,97,.25);
}
.comentarios-blog p.logged-in-as { width: 100%; }
.comentarios-blog p.logged-in-as a { font-weight: bold; color: var(--navy); }
.comentarios-blog ol.comment-list { margin-left: 0 !important; padding-left: 0 !important; }
.comentarios-blog li > ul, .comentarios-blog li > ol { margin-left: 5px; padding-left: 10px; }
.comentarios-blog .content-comment-text { font-size: 14px; padding-top: 10px; color: var(--gray-700); }
.comentarios-blog .comment-meta.commentmetadata span { color: var(--gray-500); font-weight: bold; }
.comentarios-blog #comment-complete article {
  background: linear-gradient(135deg, var(--blue-100), var(--gray-50));
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 30px;
  position: relative;
  display: flex;
  border: 1px solid rgba(3,37,97,.06);
  transition: box-shadow var(--duration) var(--ease);
}
.comentarios-blog #comment-complete article:hover {
  box-shadow: var(--shadow);
}
.comentarios-blog .comment-list { list-style-type: none; }
.comentarios-blog .comment-author.vcard {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.comentarios-blog .comment-author.vcard img {
  display: block;
  width: 67px;
  height: 67px;
  min-width: 67px;
  min-height: 67px;
  border-radius: 50%;
  margin-right: 32px;
  border: 2px solid rgba(3,37,97,.12);
}
.comentarios-blog footer.comment-meta { position: relative; }
.comentarios-blog h2.comments-title {
  font-family: 'Quicksand', sans-serif;
  color: var(--gray-500);
  padding: 15px;
  border-top: 1px solid rgba(3,37,97,.08);
  border-bottom: 1px solid rgba(3,37,97,.08);
  margin-bottom: 30px;
  font-size: 1.5rem;
}
.comentarios-blog #comment-complete { display: flex; min-width: 100%; flex-direction: column; }
.comentarios-blog .reply { position: absolute; top: 15px; right: 15px; }
.comentarios-blog .reply a {
  color: var(--navy);
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.comentarios-blog .reply a:hover { color: var(--blue-500); }
.comentarios-blog span.fn { color: var(--navy); font-weight: bold; }
.comentarios-blog .comment-metadata a { color: var(--gray-500); font-weight: bold; }
a#cancel-comment-reply-link {
  color: red;
  padding-left: 15px;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
}
h3#reply-title {
  font-family: 'Quicksand', sans-serif;
  color: var(--navy);
  margin-bottom: 30px;
  font-size: 1.2rem;
}

/* =============================================================================
   SINGLE POST ARTICLE
   ============================================================================= */
.single-post article {
  padding-left: 60px;
  padding-right: 60px;
  padding-top: 100px;
  padding-bottom: 40px;
}
.single-post article.rb-article-layout {
  padding-top: 0;
}
@media (max-width: 768px) {
  .single-post article {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Related posts — see archive-style-gold.css for current cards */

/* =============================================================================
   RESPONSIVE — Medium screens
   ============================================================================= */
@media (max-width: 960px) {
  .col-md-8.content-blog-post { padding-left: 15px; }
  .post-thumbnail { height: 260px; }
  .row.header-grid { margin-bottom: 30px; }
  .entry-meta { justify-content: space-evenly; }
}

/* =============================================================================
   RESPONSIVE — Tablets
   ============================================================================= */
@media (max-width: 768px) {
  .content-blog-post blockquote { padding: 20px 20px 20px 32px; }
  .content-blog-post blockquote::before {
    font-size: 2.5rem;
    left: 10px;
    top: 4px;
  }
  .content-grid > div:nth-child(1) { order: 1; }
  .content-grid > div:nth-child(2) { order: 3; }
  .content-grid > div:nth-child(3) { order: 2; }
  .content-grid > div:nth-child(4) { order: 4; }
}

/* =============================================================================
   RESPONSIVE — Mobile
   ============================================================================= */
@media (max-width: 478px) {
  .entry-meta {
    justify-content: center;
    flex-wrap: wrap;
  }
  span.posted-on { margin-bottom: 15px; }
  .post-thumbnail { height: 170px; }
  .author-blog { margin-bottom: 30px; flex-direction: column; text-align: center; }
  .author-blog .avatar { margin-right: 0; margin-bottom: 12px; }
  ul.children { padding-left: 5px; }
  .comentarios-blog .comment-author.vcard img {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    margin-right: 15px;
  }
}

/* =============================================================================
   RB-ARTICLE — Component system (posts com HTML customizado)
   Paleta v4 Gold — alinhada com preview-gold.html
   ============================================================================= */

/* Widen entry-content for rb-article posts */
:where(.single-post, .page) .entry-content {
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Article wrapper — variables */
:where(.single-post, .page) .entry-content .rb-article {
  --rb-accent: #032561;
  --rb-ink: #032561;
  --rb-text: #444444;
  --rb-terra: #C9A84C;
  --rb-terra-light: #F0E6C8;
  --rb-terra-bg: #FAF6EC;
  --rb-border: rgba(3,37,97,.12);
  --rb-soft: rgba(3,37,97,.06);
  --rb-wrap: 1120px;
  --rb-read: 900px;
  margin: 0;
}

/* Typography within rb-article */
:where(.single-post, .page) .entry-content .rb-article p {
  color: var(--rb-text);
  margin: 0 0 0.75em !important;
  line-height: 1.85;
}
:where(.single-post, .page) .entry-content .rb-article p:empty { display: none !important; }
:where(.single-post, .page) .entry-content .rb-article br+br { display: none !important; }
:where(.single-post, .page) .entry-content .rb-article a {
  color: var(--rb-accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(3,37,97,.2);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: text-decoration-color .2s;
}
:where(.single-post, .page) .entry-content .rb-article a:hover {
  text-decoration-color: var(--rb-accent);
}
:where(.single-post, .page) .entry-content .rb-article h2 {
  font-family: 'Quicksand', sans-serif;
  color: var(--rb-ink);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  line-height: 1.2;
  margin: 56px 0 20px;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 14px;
  scroll-margin-top: 130px;
  border-bottom: none;
  padding-bottom: 0;
}
:where(.single-post, .page) .entry-content .rb-article h2::before {
  content: '';
  width: 4px;
  height: 32px;
  background: linear-gradient(180deg, var(--rb-terra), var(--rb-terra-light));
  border-radius: 4px;
  flex-shrink: 0;
}
:where(.single-post, .page) .entry-content .rb-article h3 {
  font-family: 'Quicksand', sans-serif;
  color: var(--rb-ink);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.25;
  margin: 40px 0 14px;
  letter-spacing: -0.005em;
  scroll-margin-top: 130px;
}

/* Width constraints */
:where(.single-post, .page) .entry-content .rb-article .rb-hero,
:where(.single-post, .page) .entry-content .rb-article .rb-grid,
:where(.single-post, .page) .entry-content .rb-article .rb-toc,
:where(.single-post, .page) .entry-content .rb-article .rb-inline-media {
  max-width: var(--rb-wrap);
  margin-left: auto;
  margin-right: auto;
}
:where(.single-post, .page) .entry-content .rb-article .rb-section,
:where(.single-post, .page) .entry-content .rb-article .rb-faq {
  max-width: var(--rb-read);
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  :where(.single-post, .page) .entry-content .rb-article .rb-hero,
  :where(.single-post, .page) .entry-content .rb-article .rb-grid,
  :where(.single-post, .page) .entry-content .rb-article .rb-toc,
  :where(.single-post, .page) .entry-content .rb-article .rb-inline-media,
  :where(.single-post, .page) .entry-content .rb-article .rb-section,
  :where(.single-post, .page) .entry-content .rb-article .rb-faq {
    max-width: 100%;
  }
}

/* Hero component */
:where(.single-post, .page) .entry-content .rb-article .rb-hero {
  border: 1px solid var(--rb-border);
  background: linear-gradient(180deg, rgba(3,37,97,.06), rgba(255,255,255,.85));
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 28px;
}
:where(.single-post, .page) .entry-content .rb-article .rb-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  padding: 22px;
  align-items: start;
}
@media (max-width: 900px) {
  :where(.single-post, .page) .entry-content .rb-article .rb-hero__inner {
    grid-template-columns: 1fr;
  }
}

/* Kicker badge */
:where(.single-post, .page) .entry-content .rb-article .rb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rb-accent);
  background: rgba(3,37,97,.08);
  border: 1px solid rgba(3,37,97,.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 10px;
}
:where(.single-post, .page) .entry-content .rb-article .rb-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--rb-accent);
  box-shadow: 0 6px 14px rgba(3,37,97,.25);
}

/* Lead text */
:where(.single-post, .page) .entry-content .rb-article .rb-lead {
  font-size: 1.15rem;
  line-height: 1.85rem;
  margin: 0 0 0.75em;
}

/* Hero media */
:where(.single-post, .page) .entry-content .rb-article .rb-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--rb-border);
}
:where(.single-post, .page) .entry-content .rb-article .rb-hero__media figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--rb-text);
  opacity: 0.85;
}

/* Callout */
:where(.single-post, .page) .entry-content .rb-article .rb-callout {
  position: relative;
  background: linear-gradient(135deg, var(--rb-terra-bg), rgba(255,255,255,.6));
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius);
  border-left: 4px solid var(--rb-terra);
  padding: 24px 24px 24px 56px;
  margin: 28px 0;
  overflow: hidden;
}
:where(.single-post, .page) .entry-content .rb-article .rb-callout::after {
  content: '!';
  position: absolute;
  left: 18px;
  top: 24px;
  width: 28px;
  height: 28px;
  background: var(--rb-terra);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
:where(.single-post, .page) .entry-content .rb-article .rb-callout strong { color: var(--rb-terra); }
:where(.single-post, .page) .entry-content .rb-article .rb-callout p { font-size: 1rem; line-height: 1.7; margin-bottom: .5em; }
:where(.single-post, .page) .entry-content .rb-article .rb-callout p:last-child { margin-bottom: 0; }
:where(.single-post, .page) .entry-content .rb-article .rb-callout ul { margin: .5em 0 0; padding-left: 18px; font-size: .95rem; }
:where(.single-post, .page) .entry-content .rb-article .rb-callout li { margin-bottom: 4px; }
:where(.single-post, .page) .entry-content .rb-article .rb-callout li::marker { color: var(--rb-terra); }

/* Actions / Buttons */
:where(.single-post, .page) .entry-content .rb-article .rb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  justify-content: flex-start;
  margin: 20px 0 8px;
}
:where(.single-post, .page) .entry-content .rb-article .rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--rb-border);
  background: rgba(255,255,255,.92);
  text-decoration: none !important;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  margin: 0 !important;
  color: var(--rb-accent) !important;
}
:where(.single-post, .page) .entry-content .rb-article .rb-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0,0,0,.1);
}
:where(.single-post, .page) .entry-content .rb-article .rb-btn--primary {
  background: var(--rb-accent);
  border-color: var(--rb-accent);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(3,37,97,.2);
}
:where(.single-post, .page) .entry-content .rb-article .rb-btn--primary:hover {
  background: var(--navy-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(3,37,97,.25);
}
:where(.single-post, .page) .entry-content .rb-article .rb-btn--whatsapp {
  background: var(--green);
  border-color: var(--green);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(16,130,114,.2);
}
:where(.single-post, .page) .entry-content .rb-article .rb-btn--whatsapp:hover {
  background: var(--green-hover);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(16,130,114,.25);
}
:where(.single-post, .page) .entry-content .rb-article .rb-btn--whatsapp svg { fill: #fff !important; }
:where(.single-post, .page) .entry-content .rb-article .rb-btn--outline {
  background: rgba(255,255,255,.9);
  border: 1.5px solid rgba(3,37,97,.15);
}
:where(.single-post, .page) .entry-content .rb-article .rb-btn--outline:hover {
  border-color: var(--navy);
  background: var(--blue-100);
}
@media (max-width: 520px) {
  :where(.single-post, .page) .entry-content .rb-article .rb-btn {
    width: 100%;
    white-space: normal;
  }
}

/* TOC */
:where(.single-post, .page) .entry-content .rb-article .rb-toc {
  border: 1px solid var(--rb-border);
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 28px;
  transition: box-shadow var(--duration) var(--ease);
}
:where(.single-post, .page) .entry-content .rb-article .rb-toc:hover {
  box-shadow: var(--shadow);
}
:where(.single-post, .page) .entry-content .rb-article .rb-toc__title {
  font-family: 'Quicksand', sans-serif;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--rb-ink);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}
:where(.single-post, .page) .entry-content .rb-article .rb-toc__title::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--rb-terra);
  border-radius: 2px;
}
:where(.single-post, .page) .entry-content .rb-article .rb-toc ol { margin: 0; padding-left: 18px; }
:where(.single-post, .page) .entry-content .rb-article .rb-toc li {
  margin: 0.45em 0;
  line-height: 1.35;
  padding-bottom: 10px !important;
}
:where(.single-post, .page) .entry-content .rb-article .rb-toc li:last-child { padding-bottom: 0 !important; }
:where(.single-post, .page) .entry-content .rb-article .rb-toc li a {
  text-decoration: none;
  color: var(--gray-500);
  font-weight: 500;
  transition: color .2s;
}
:where(.single-post, .page) .entry-content .rb-article .rb-toc li a:hover { color: var(--navy); }

/* Grid + Cards (glassmorphism) */
:where(.single-post, .page) .entry-content .rb-article .rb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px auto 32px;
}
@media (max-width: 900px) {
  :where(.single-post, .page) .entry-content .rb-article .rb-grid { grid-template-columns: 1fr; }
}
:where(.single-post, .page) .entry-content .rb-article .rb-card {
  position: relative;
  border: 1px solid rgba(3,37,97,.08);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}
:where(.single-post, .page) .entry-content .rb-article .rb-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--navy), var(--blue-400));
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity .3s ease;
}
:where(.single-post, .page) .entry-content .rb-article .rb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(3,37,97,.15);
}
:where(.single-post, .page) .entry-content .rb-article .rb-card:hover::before { opacity: 1; }
:where(.single-post, .page) .entry-content .rb-article .rb-card h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
:where(.single-post, .page) .entry-content .rb-article .rb-card h3 .rb-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--blue-100);
  color: var(--navy);
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}
:where(.single-post, .page) .entry-content .rb-article .rb-card p {
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
}
:where(.single-post, .page) .entry-content .rb-article .rb-card--full { grid-column: 1 / -1; }

/* Lists inside rb-article */
:where(.single-post, .page) .entry-content .rb-article ul,
:where(.single-post, .page) .entry-content .rb-article ol {
  margin: 0.35em 0 0.85em !important;
  padding-left: 18px;
  font-size: 1.05rem;
  line-height: 1.6;
}
:where(.single-post, .page) .entry-content .rb-article ul li,
:where(.single-post, .page) .entry-content .rb-article ol li {
  padding-bottom: 8px !important;
  margin: 0 !important;
}
:where(.single-post, .page) .entry-content .rb-article ul li:last-child,
:where(.single-post, .page) .entry-content .rb-article ol li:last-child { padding-bottom: 0 !important; }
:where(.single-post, .page) .entry-content .rb-article li > p { margin: 0 !important; }
:where(.single-post, .page) .entry-content .rb-article .rb-card ul li::marker { color: var(--blue-400); }

/* Section dividers */
:where(.single-post, .page) .entry-content .rb-article .rb-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rb-soft);
}
:where(.single-post, .page) .entry-content .rb-article .rb-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--rb-terra), var(--rb-terra-light));
  border-radius: 3px;
  margin: 40px 0;
}

/* CTA Band */
:where(.single-post, .page) .entry-content .rb-article .rb-cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, #0A3D8F 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
:where(.single-post, .page) .entry-content .rb-article .rb-cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59,125,216,.15), transparent 70%);
  pointer-events: none;
}
:where(.single-post, .page) .entry-content .rb-article .rb-cta-band__title {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  border-bottom: none;
  padding-bottom: 0;
}
:where(.single-post, .page) .entry-content .rb-article .rb-cta-band__text {
  color: rgba(255,255,255,.92) !important;
  font-size: 1rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
:where(.single-post, .page) .entry-content .rb-article .rb-cta-band__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  transition: all .3s var(--ease);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(16,130,114,.3);
}
:where(.single-post, .page) .entry-content .rb-article .rb-cta-band__btn:hover {
  background: var(--green-hover);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 32px rgba(16,130,114,.35);
}
:where(.single-post, .page) .entry-content .rb-article .rb-cta-band__btn svg { width: 20px; height: 20px; }

/* Inline figure */
:where(.single-post, .page) .entry-content .rb-article .rb-figure {
  margin: 36px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
:where(.single-post, .page) .entry-content .rb-article .rb-figure img {
  width: 100%;
  height: auto;
  transition: transform .8s ease;
}
:where(.single-post, .page) .entry-content .rb-article .rb-figure:hover img {
  transform: scale(1.02);
}
:where(.single-post, .page) .entry-content .rb-article .rb-figure figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: linear-gradient(0deg, rgba(2,27,69,.75), transparent);
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-style: italic;
}

/* FAQ Accordion */
:where(.single-post, .page) .entry-content .rb-article .rb-faq { margin: 32px 0; }
:where(.single-post, .page) .entry-content .rb-article .rb-faq details {
  border: 1px solid rgba(3,37,97,.08);
  border-radius: 14px;
  margin-bottom: 10px;
  background: var(--white);
  transition: all .3s ease;
  overflow: hidden;
}
:where(.single-post, .page) .entry-content .rb-article .rb-faq details:hover {
  border-color: rgba(3,37,97,.15);
  box-shadow: var(--shadow-sm);
}
:where(.single-post, .page) .entry-content .rb-article .rb-faq details[open] {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}
:where(.single-post, .page) .entry-content .rb-article .rb-faq details[open] summary {
  color: var(--navy);
  border-bottom: 1px solid rgba(3,37,97,.08);
}
:where(.single-post, .page) .entry-content .rb-article .rb-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--gray-700);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  font-size: 1rem;
  transition: color .2s;
}
:where(.single-post, .page) .entry-content .rb-article .rb-faq summary::-webkit-details-marker { display: none; }
:where(.single-post, .page) .entry-content .rb-article .rb-faq summary::before {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--blue-100);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23032561' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: all .3s ease;
}
:where(.single-post, .page) .entry-content .rb-article .rb-faq details[open] summary::before {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}
:where(.single-post, .page) .entry-content .rb-article .rb-faq .rb-faq__answer {
  padding: 0 22px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  animation: rbFaqSlide .3s ease;
}
@keyframes rbFaqSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Author card (rb-article version) */
:where(.single-post, .page) .entry-content .rb-article .rb-author {
  display: flex;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-100), var(--gray-50));
  border: 1px solid rgba(3,37,97,.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 48px 0;
  transition: box-shadow var(--duration) var(--ease);
}
:where(.single-post, .page) .entry-content .rb-article .rb-author:hover {
  box-shadow: var(--shadow-glow);
}
:where(.single-post, .page) .entry-content .rb-article .rb-author__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  flex-shrink: 0;
}
:where(.single-post, .page) .entry-content .rb-article .rb-author__info h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
:where(.single-post, .page) .entry-content .rb-article .rb-author__cred {
  font-size: .8rem;
  color: var(--terra);
  font-weight: 600;
  margin-bottom: 8px;
}
:where(.single-post, .page) .entry-content .rb-article .rb-author__bio {
  font-size: .92rem;
  color: var(--gray-500);
  line-height: 1.6;
}
@media (max-width: 640px) {
  :where(.single-post, .page) .entry-content .rb-article .rb-author {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
}


/* =============================================================================
   SCROLL ANIMATIONS
   ============================================================================= */
.rb-anim {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.rb-anim.visible { opacity: 1; transform: translateY(0); }
.rb-anim.rb-delay-1 { transition-delay: .1s; }
.rb-anim.rb-delay-2 { transition-delay: .2s; }
.rb-anim.rb-delay-3 { transition-delay: .3s; }
.rb-anim.rb-delay-4 { transition-delay: .4s; }
.rb-anim.rb-delay-5 { transition-delay: .5s; }
.rb-anim.rb-delay-6 { transition-delay: .6s; }

.rb-anim-scale {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.rb-anim-scale.visible { opacity: 1; transform: scale(1); }

.rb-anim-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.rb-anim-left.visible { opacity: 1; transform: translateX(0); }

.rb-anim-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.rb-anim-right.visible { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .rb-anim, .rb-anim-scale, .rb-anim-left, .rb-anim-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================================================
   BLOG LAYOUT v5 — Hero Page, Sidebar TOC, Related Posts
   ============================================================================= */

/* --- Overrides: hide WP default header/thumbnail in rb-article-layout --- */
.rb-article-layout .entry-header,
.rb-article-layout .post-thumbnail,
.rb-article-layout .subtitulo,
.rb-article-layout .entry-meta {
  display: none !important;
}
.rb-article-layout .rb-content .entry-content {
  max-width: none;
  padding: 0;
}
/* Hide Yoast breadcrumbs — hero has its own */
.rb-article-layout ~ .interno-footer-blog { display: none; }

/* --- Anti-flash: TOC hidden inline, shown in sidebar --- */
.rb-article .rb-toc { display: none; }
.rb-sidebar .rb-toc { display: block; }

/* --- Remove gap between header and hero on single posts --- */
.single-post .site-main {
  padding-top: 0;
}

/* =============================================================================
   HERO FULL-BLEED (.rb-hero--page)
   ============================================================================= */
.rb-hero--page {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-dark);
  margin: 0 calc(-50vw + 50%);
  width: 100vw;
}
.rb-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.rb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2,27,69,.15) 0%,
    rgba(2,27,69,.55) 40%,
    rgba(2,27,69,.92) 100%
  );
}
.rb-hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 48px 40px 48px;
  color: var(--white);
}
.rb-hero__breadcrumb {
  font-size: .82rem;
  margin-bottom: 12px;
  opacity: .75;
}
.rb-hero__breadcrumb a {
  color: var(--white);
  text-decoration: none;
}
.rb-hero__breadcrumb a:hover {
  text-decoration: underline;
}
.rb-hero__breadcrumb > span {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.rb-hero__breadcrumb > span span {
  opacity: 1;
  margin: 0;
}
.rb-hero__breadcrumb .breadcrumb_last {
  color: var(--white);
  font-weight: 600;
}
.rb-hero__kicker {
  display: inline-block;
  background: var(--terra);
  color: var(--navy-dark);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.rb-hero__title {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 12px;
  color: var(--white);
}
.rb-hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.55;
  opacity: .88;
  margin: 0 0 20px;
  max-width: 680px;
}
.rb-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  opacity: .8;
  flex-wrap: wrap;
}
.rb-hero__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
}
.rb-hero__sep {
  opacity: .5;
}

@media (max-width: 768px) {
  .rb-hero--page { min-height: 420px; }
  .rb-hero__content { padding: 32px 20px 36px; }
}

/* =============================================================================
   LAYOUT GRID (.rb-layout)
   ============================================================================= */
.rb-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 0;
}

@media (max-width: 960px) {
  .rb-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .rb-sidebar {
    order: -1;
  }
}

/* =============================================================================
   SIDEBAR (.rb-sidebar)
   ============================================================================= */
.rb-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}

/* TOC in sidebar */
.rb-sidebar .rb-toc {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  border-left: 3px solid var(--terra);
}
.rb-sidebar .rb-toc .rb-toc__title {
  font-family: 'Quicksand', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.rb-sidebar .rb-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rb-sidebar .rb-toc li {
  margin-bottom: 0;
}
.rb-sidebar .rb-toc a {
  display: block;
  padding: 8px 0;
  font-size: .88rem;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--duration) var(--ease), padding-left var(--duration) var(--ease);
}
.rb-sidebar .rb-toc li:last-child a {
  border-bottom: none;
}
.rb-sidebar .rb-toc a:hover,
.rb-sidebar .rb-toc a.active {
  color: var(--navy);
  padding-left: 8px;
}
.rb-sidebar .rb-toc a.active {
  font-weight: 600;
  color: var(--terra);
}

/* Sidebar CTA */
.rb-sidebar-cta {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.rb-sidebar-cta__title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.rb-sidebar-cta__text {
  font-size: .85rem;
  opacity: .8;
  margin: 0 0 16px;
  line-height: 1.5;
}
.rb-sidebar-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.rb-sidebar-cta__btn:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  color: var(--white);
}

@media (max-width: 960px) {
  .rb-sidebar {
    position: static;
  }
  .rb-sidebar-cta { display: none; }
}

/* =============================================================================
   FIGURE WITH EXTERNAL CAPTION (.rb-figure-ext)
   Caption below image, no overlay — ideal for graphs and diagrams
   ============================================================================= */
.rb-figure-ext {
  margin: 32px 0;
}
.rb-figure-ext img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.rb-figure-ext figcaption {
  padding: 14px 4px 0;
  color: var(--text-secondary, #555);
  font-size: .85rem;
  line-height: 1.6;
  font-style: italic;
}
.rb-figure-ext figcaption strong {
  color: var(--navy, #032561);
  font-style: normal;
}

/* FAQ item — borda esquerda azul + hover + fundo alternado */
.rb-faq-item {
  border-left: 3px solid #032561;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.rb-faq-item:hover {
  box-shadow: 0 2px 12px rgba(3,37,97,.1);
  border-color: rgba(3,37,97,.18);
  border-left-color: #032561;
}
.rb-faq-item:nth-child(even of .rb-faq-item) {
  background: #f8fafc;
}
.rb-faq-item:nth-child(even of .rb-faq-item) > summary {
  background: #f8fafc;
}

/* Responsive comparison table */
@media (max-width: 768px) {
  .rb-table-compare {
    font-size: 11px;
  }
  .rb-table-compare th,
  .rb-table-compare td {
    padding: 8px 6px;
    word-break: break-word;
  }
}
@media (max-width: 480px) {
  .rb-table-compare {
    font-size: 10px;
  }
  .rb-table-compare th,
  .rb-table-compare td {
    padding: 6px 4px;
  }
}

/* ==========================================================================
   Lightbox — clique para ampliar imagens (.rb-article)
   ========================================================================== */
.rb-lightbox-trigger {
  overflow: hidden;
  border-radius: 12px;
}
.rb-article .rb-figure img,
.rb-article figure img {
  cursor: zoom-in;
  transition: transform .4s ease, opacity .4s ease;
  will-change: transform, opacity;
}
.rb-article .rb-figure img:hover,
.rb-article figure img:hover {
  transform: scale(1.03);
  opacity: .88;
}

.rb-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.rb-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.rb-lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  transform: scale(.92);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.rb-lightbox-overlay.active img {
  transform: scale(1);
}
.rb-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  line-height: 1;
}
.rb-lightbox-close:hover {
  background: rgba(255,255,255,.25);
}
.rb-lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
  color: #fff;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  text-align: center;
  line-height: 1.6;
  letter-spacing: .01em;
}
.rb-lightbox-trigger img {
  transition: transform .4s ease, opacity .4s ease;
  will-change: transform, opacity;
}
.rb-lightbox-trigger:hover img {
  transform: scale(1.03);
  opacity: 0.88;
}
/* CTA buttons hover */
.cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
}
