/* ══════════════════════════════════════════════════════════════
   Estúdio RDC — blog.css (tema claro: listagem, categorias e artigo)
   ══════════════════════════════════════════════════════════════ */

.page-light { background: #fff; color: #131313; }
.page-light main { background: #fff; }
/* header sempre sólido sobre fundo branco */
.page-light .site-header { background: rgba(19, 19, 19, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.blog-wrap { width: 100%; max-width: calc(1200px + var(--rdc-gutter) * 2); margin-inline: auto; padding-inline: var(--rdc-gutter); }

/* Breadcrumb claro */
.page-light .crumbs ol { color: #6b7280; }
.page-light .crumbs li:not(:last-child)::after { color: #cbd0d8; }
.page-light .crumbs a:hover { color: var(--rdc-blue); }
.page-light .crumbs [aria-current] { color: #131313; }

/* Selo de categoria */
.cat-pill { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: #e8f0ff; color: var(--rdc-blue-deep); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: background-color .2s; }
a.cat-pill:hover { background: #d6e3ff; }

/* ── Listagem ──────────────────────────────────────────────── */
.blog-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid #eceef2; background: linear-gradient(180deg, #f4f7ff 0%, #fff 100%); }
.blog-hero .label { color: var(--rdc-blue); margin-top: 22px; }
.blog-hero h1 { margin-top: 12px; font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.045em; color: #131313; }
.blog-hero p { margin-top: 14px; max-width: 60ch; font-size: var(--fs-body-lg); color: #4b5563; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cat-filter a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid #dfe3ea; background: #fff; font-size: .875rem; font-weight: 600; color: #374151; transition: border-color .2s, background-color .2s, color .2s; }
.cat-filter a small { font-weight: 600; color: #9ca3af; }
.cat-filter a:hover { border-color: var(--rdc-blue); color: var(--rdc-blue); }
.cat-filter a.is-active { background: #131313; border-color: #131313; color: #fff; }
.cat-filter a.is-active small { color: rgba(255, 255, 255, .6); }

.blog-list { padding-block: clamp(40px, 6vw, 72px); }
.blog-featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding-bottom: clamp(40px, 6vw, 64px); margin-bottom: clamp(40px, 6vw, 64px); border-bottom: 1px solid #eceef2; }
.blog-featured__img { display: block; border-radius: var(--rdc-radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: #eef2f8; }
.blog-featured__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--rdc-ease); }
.blog-featured:hover .blog-featured__img img { transform: scale(1.04); }
.blog-featured h2 { margin-top: 16px; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.035em; line-height: 1.1; color: #131313; }
.blog-featured h2 a:hover { color: var(--rdc-blue); }
.blog-featured p { margin-top: 14px; color: #4b5563; font-size: 1.0625rem; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; font-size: .875rem; color: #6b7280; }
.blog-meta strong { color: #131313; font-weight: 600; }
.blog-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #cbd0d8; }
.blog-featured .btn { margin-top: 24px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.blog-card { display: flex; flex-direction: column; }
.blog-card__img { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: #eef2f8; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--rdc-ease); }
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card__body { padding-top: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__top { display: flex; align-items: center; gap: 12px; font-size: .8125rem; color: #6b7280; }
.blog-card h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.25; color: #131313; }
.blog-card h3 a:hover { color: var(--rdc-blue); }
.blog-card p { color: #4b5563; font-size: .9688rem; }
.blog-card__more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; color: var(--rdc-blue); }
@media (max-width: 960px) { .blog-featured { grid-template-columns: 1fr; } .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* Autor */
.author-box { display: flex; gap: 20px; align-items: center; padding: 24px; border-radius: var(--rdc-radius-lg); background: #f6f8fc; border: 1px solid #eceef2; }
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; }
.author-box strong { display: block; font-size: 1.0625rem; color: #131313; }
.author-box span { display: block; font-size: .875rem; color: var(--rdc-blue); font-weight: 600; margin-top: 2px; }
.author-box p { margin-top: 8px; font-size: .9375rem; color: #4b5563; }
@media (max-width: 560px) { .author-box { flex-direction: column; align-items: flex-start; } }

/* ── Artigo ────────────────────────────────────────────────── */
.post-head { max-width: 860px; margin-inline: auto; padding: clamp(32px, 5vw, 56px) 0 0; }
.post-head__top { display: flex; align-items: center; gap: 16px; margin-top: 26px; font-size: .875rem; font-weight: 600; color: #6b7280; }
.post-head h1 { margin-top: 18px; font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.04em; line-height: 1.08; color: #131313; }
.post-head__lead { margin-top: 16px; font-size: var(--fs-body-lg); color: #4b5563; }
.post-head__rule { width: 110px; height: 2px; margin: 26px 0 18px; background: linear-gradient(90deg, var(--rdc-blue), #bcd6ff); border-radius: 2px; }
.post-head__by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .875rem; color: #6b7280; }
.post-head__by img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.post-head__by strong { color: #131313; }
.post-hero-img { max-width: 1100px; margin: clamp(28px, 4vw, 44px) auto 0; border-radius: var(--rdc-radius-lg); overflow: hidden; aspect-ratio: 16 / 8.5; background: #eef2f8; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.post-layout { display: grid; grid-template-columns: minmax(0, 720px) 280px; gap: clamp(32px, 5vw, 72px); justify-content: center; padding-block: clamp(40px, 6vw, 64px); }
.post-aside { position: relative; }
.post-aside__sticky { position: sticky; top: 110px; display: grid; gap: 18px; }
.post-toc { padding: 20px 22px; border-radius: 18px; background: #f6f8fc; border: 1px solid #eceef2; }
.post-toc p { font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6b7280; margin-bottom: 12px; }
.post-toc ol { list-style: none; padding: 0; display: grid; gap: 4px; counter-reset: toc; }
.post-toc li { counter-increment: toc; }
.post-toc a { display: flex; gap: 10px; padding: 6px 8px; margin-inline: -8px; border-radius: 8px; font-size: .875rem; line-height: 1.4; color: #374151; transition: background-color .2s, color .2s; }
.post-toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: #9ca3af; font-size: .75rem; padding-top: 2px; }
.post-toc a:hover, .post-toc a.is-active { background: #e8f0ff; color: var(--rdc-blue-deep); }
.post-aside__cta { padding: 22px; border-radius: 18px; background: radial-gradient(circle at 100% 0%, rgba(0, 71, 255, .45), transparent 60%), var(--rdc-ink); color: #fff; }
.post-aside__cta strong { display: block; font-size: 1.0625rem; line-height: 1.3; text-wrap: balance; }
.post-aside__cta p { margin-top: 8px; font-size: .875rem; color: rgba(255, 255, 255, .82); }
.post-aside__cta .btn { margin-top: 14px; width: 100%; }
.share { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: #6b7280; }
.share a, .share button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #dfe3ea; color: #374151; transition: border-color .2s, color .2s; }
.share a:hover, .share button:hover { border-color: var(--rdc-blue); color: var(--rdc-blue); }
@media (max-width: 1000px) {
  .post-layout { grid-template-columns: minmax(0, 720px); }
  .post-aside { order: -1; }
  .post-aside__sticky { position: static; }
  .post-aside__cta, .post-aside .share { display: none; }
}

/* Texto do artigo (claro) */
.page-light .prose { max-width: none; margin: 0; color: #2b2f36; font-size: 1.125rem; line-height: 1.8; }
.page-light .prose h2 { color: #131313; margin-top: 2.2em; }
.page-light .prose h3 { color: #131313; }
.page-light .prose strong { color: #131313; }
.page-light .prose a { color: var(--rdc-blue); }
.page-light .prose blockquote { background: #f4f7ff; color: #1f2937; border-left-color: var(--rdc-blue); }
.page-light .prose code { background: #f1f3f6; }
.post-figure { margin: 2em 0; }
.post-figure img { width: 100%; height: auto; border-radius: 18px; background: #eef2f8; }
.post-figure figcaption { margin-top: 10px; font-size: .875rem; color: #6b7280; text-align: center; }

/* ── Banners de CTA (texto em HTML sobre a arte) ───────────── */
.cta-banner-img { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 260px; margin: 2.4em 0; border-radius: 24px; overflow: hidden; isolation: isolate; color: #fff; background: var(--rdc-ink); text-decoration: none !important; box-shadow: 0 30px 70px -36px rgba(0, 71, 255, .55); }
.cta-banner-img::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(11, 11, 16, .94) 0%, rgba(11, 11, 16, .72) 45%, rgba(11, 11, 16, 0) 75%); }
.cta-banner-img__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.cta-banner-img__photo { position: absolute; right: 0; bottom: 0; z-index: -1; height: 100%; width: 46%; object-fit: cover; object-position: center 22%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
.cta-banner-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 10% 120%, rgba(0, 71, 255, .55), transparent 55%); }
.cta-banner-img__text { padding: clamp(24px, 4vw, 40px); }
.cta-banner-img__title { display: block; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; color: #fff; text-wrap: balance; }
.cta-banner-img__title em { font-style: normal; color: var(--rdc-blue-light); }
.cta-banner-img .btn { margin-top: 20px; }
.cta-banner-img:hover .btn-primary { background: var(--rdc-blue-hover); transform: translateY(-2px); }
@media (max-width: 640px) {
  .cta-banner-img { grid-template-columns: 1fr; min-height: 0; padding-top: 170px; }
  .cta-banner-img__photo { width: 100%; height: 190px; top: 0; bottom: auto; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .cta-banner-img__bg { object-position: 80% center; opacity: .55; }
  .cta-banner-img::after { background: linear-gradient(180deg, rgba(11, 11, 16, 0) 25%, rgba(11, 11, 16, .92) 62%); }
}

/* Grade se adapta à quantidade de artigos (sem colunas vazias) */
.blog-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.blog-grid:has(> :only-child) { grid-template-columns: 1fr; }
.blog-grid > .blog-card:only-child { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; }
.blog-grid > .blog-card:only-child .blog-card__body { padding-top: 0; }
.blog-grid > .blog-card:only-child h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
@media (max-width: 700px) {
  .blog-grid:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
  .blog-grid > .blog-card:only-child { grid-template-columns: 1fr; }
  .blog-grid > .blog-card:only-child .blog-card__body { padding-top: 18px; }
}

/* ── GEO/AEO: resposta rápida, tabelas, FAQ ────────────────── */
.post-answer { margin: 0 0 2em; padding: 22px 24px; border-radius: 18px; background: #f3f6ff; border: 1px solid #d9e3ff; }
.post-answer__label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px !important; font-size: .8125rem !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rdc-blue) !important; }
.post-answer p:last-child { margin: 0; font-size: 1.0625rem; line-height: 1.7; color: #131313; }
.page-light .prose .table-wrap { margin: 1.6em 0; overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 14px; }
.page-light .prose table { width: 100%; border-collapse: collapse; font-size: .975rem; line-height: 1.5; }
.page-light .prose th, .page-light .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #eef0f4; }
.page-light .prose th { background: #f7f8fa; color: #131313; font-weight: 700; white-space: nowrap; }
.page-light .prose tr:last-child td { border-bottom: 0; }
.page-light .prose h2#perguntas-frequentes ~ h3 { font-size: 1.1875rem; margin-top: 1.6em; }
.page-light .prose li { text-wrap: pretty; }

/* Listagem: mostra 12 e revela o resto */
.blog-grid .blog-card.is-more { display: none; }
.blog-grid.is-open .blog-card.is-more { display: flex; }
.blog-more { display: flex; justify-content: center; margin-top: 40px; }
