/* ==========================================================================
   Contro — CMS de conteúdo (blog, páginas SEO, cases)
   Carregado só quando $isCmsPage é true (layouts/public.php). Estende a
   família .lp-* e landing.css já madura - não inventa um 4º sistema visual.

   Achado ao vivo (2026-09-13): a landing NÃO é um tema escuro global - o
   `.lp-body` tem fundo claro fixo (#f4f7fa, color-scheme: light !important em
   contro-fintech.css) e só seções específicas do hero usam fundo escuro
   próprio. Cores abaixo confirmadas via computed style da própria seção FAQ
   (fundo claro) e do card de depoimento, não inventadas.
   ========================================================================== */

.cms-blog-hero { position:relative; overflow:hidden; padding:44px 0 76px; color:#fff; background:radial-gradient(circle at 82% 0,rgba(138,245,81,.18),transparent 28%),linear-gradient(135deg,#061A25 0%,#082D35 56%,#075B50 100%); }
.cms-blog-hero::after { content:""; position:absolute; width:420px; height:420px; right:-170px; bottom:-250px; border:1px solid rgba(138,245,81,.2); border-radius:50%; box-shadow:0 0 0 34px rgba(138,245,81,.04),0 0 0 68px rgba(138,245,81,.025); pointer-events:none; }
.cms-blog-hero .lp-shell { position:relative; z-index:1; }
.cms-blog-hero .cms-breadcrumb { color:rgba(220,244,237,.68); margin-bottom:54px; }
.cms-blog-hero .cms-breadcrumb a { color:#bce7db; }
.cms-blog-hero-copy { max-width:760px; }
.cms-section-kicker,.cms-card-kicker { display:inline-flex; align-items:center; gap:8px; color:#087B5F; font-size:11px; font-weight:900; letter-spacing:.13em; line-height:1.3; text-transform:uppercase; }
.cms-section-kicker::before { content:""; width:22px; height:2px; background:currentColor; border-radius:2px; }
.cms-blog-hero .cms-section-kicker { color:#A9F47B; }
.cms-blog-hero h1 { max-width:740px; margin:16px 0 18px; color:#fff; font-size:clamp(42px,6vw,76px); line-height:.98; letter-spacing:-.065em; }
.cms-blog-hero-copy p { max-width:640px; margin:0; color:#C4DCD9; font-size:18px; line-height:1.65; }
.cms-blog-categories { display:flex; flex-wrap:wrap; gap:8px; margin-top:42px; }
.cms-blog-categories a {
  padding:10px 16px;
  border-radius: 999px;
  border:1px solid rgba(200,240,229,.22);
  color:#D9F0EA;
  font-size: 13px;
  font-weight:800;
  text-decoration: none;
  background:rgba(255,255,255,.06);
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.cms-blog-categories a.active,
.cms-blog-categories a:hover {
  background:#8AF551;
  border-color:#8AF551;
  transform:translateY(-1px);
  color:#06251F;
}

.cms-blog-content { padding:58px 0 90px; background:#F5F8F8; }
.cms-featured-article { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr); min-height:400px; overflow:hidden; border:1px solid #D7E5E5; border-radius:28px; background:#08252D; box-shadow:0 22px 64px rgba(6,39,47,.14); }
.cms-featured-media,.cms-card-media { display:block; overflow:hidden; background:#092D34; }
.cms-featured-media img,.cms-card-media img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .55s cubic-bezier(.2,.7,.2,1); }
.cms-featured-article:hover .cms-featured-media img,.cms-blog-card:hover .cms-card-media img { transform:scale(1.035); }
.cms-featured-copy { display:flex; flex-direction:column; justify-content:center; padding:48px; color:#fff; }
.cms-featured-copy .cms-card-kicker { color:#A9F47B; }
.cms-featured-copy h2 { max-width:500px; margin:16px 0 14px; font-size:clamp(28px,3.2vw,46px); line-height:1.02; letter-spacing:-.055em; }
.cms-featured-copy h2 a { color:#fff; text-decoration:none; }
.cms-featured-copy p { max-width:500px; margin:0; color:#C1D6D4; font-size:15px; line-height:1.7; }
.cms-card-meta { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-top:24px; color:#779493; font-size:12px; font-weight:750; }
.cms-featured-copy .cms-card-meta { color:#A9C9C5; }
.cms-card-meta i { width:3px; height:3px; border-radius:50%; background:currentColor; opacity:.7; }
.cms-read-link { margin-left:auto; color:#A9F47B; font-weight:900; text-decoration:none; }
.cms-read-link span { display:inline-block; margin-left:4px; transition:transform .2s ease; }
.cms-read-link:hover span { transform:translate(2px,-2px); }
.cms-blog-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin:78px 0 24px; }
.cms-blog-heading h2 { margin:9px 0 0; color:#082033; font-size:clamp(26px,3vw,38px); line-height:1; letter-spacing:-.055em; }
.cms-blog-heading > span { color:#71828A; font-size:13px; font-weight:800; }

.cms-blog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.cms-blog-card { min-width:0; border:1px solid #D8E5E5; border-radius:20px; overflow:hidden; background:#fff; box-shadow:0 12px 34px rgba(8,32,51,.055); display:flex; flex-direction:column; transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease; }
.cms-blog-card:hover { border-color:#A8D8C9; box-shadow:0 20px 45px rgba(8,32,51,.11); transform:translateY(-4px); }
.cms-card-media { aspect-ratio:16/10; }
.cms-blog-card-body { display:flex; flex:1; flex-direction:column; gap:11px; padding:24px 24px 20px; }
.cms-card-kicker { font-size:10px; }
.cms-blog-card-body h2,.cms-blog-card-body h3 { margin:0; font-size:21px; line-height:1.13; letter-spacing:-.035em; }
.cms-blog-card-body h2 a,.cms-blog-card-body h3 a { color:#082033; text-decoration:none; }
.cms-blog-card-body h2 a:hover,.cms-blog-card-body h3 a:hover { color:#087B5F; }
.cms-blog-card-body p { display:-webkit-box; overflow:hidden; margin:0; color:#61737A; font-size:14px; line-height:1.65; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.cms-blog-card-body .cms-card-meta { margin-top:auto; padding-top:14px; border-top:1px solid #EDF2F1; }
.cms-card-arrow { margin-left:auto; color:#087B5F; font-size:18px; font-weight:900; }
.cms-image-fallback { display:flex; flex-direction:column; justify-content:space-between; width:100%; height:100%; padding:24px; color:#DDF9D0; background:radial-gradient(circle at 85% 15%,rgba(138,245,81,.34),transparent 25%),linear-gradient(135deg,#061A25,#087B5F); }
.cms-image-fallback span { color:#8AF551; font-size:11px; font-weight:950; letter-spacing:.18em; }
.cms-image-fallback b { max-width:200px; font-size:24px; line-height:1.02; letter-spacing:-.05em; }
.cms-empty { color:#5B6B7D; text-align:center; padding:60px 0; }

.cms-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.cms-pagination a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid #d5e2e7;
  color: #5b6b7d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, .92);
}
.cms-pagination a.active { background: #087b5f; border-color: #087b5f; color: #fff; }

.cms-breadcrumb { font-size: 13px; color: #8a97a6; margin-bottom: 18px; }
.cms-breadcrumb a { color: #5b6b7d; text-decoration: none; }
.cms-breadcrumb a:hover { color: #087b5f; }

.cms-article { padding:52px 0 92px; background:#F5F8F8; }
.cms-article-shell { max-width:900px; }
.cms-article-intro { max-width:820px; margin:0 auto; text-align:center; }
.cms-article-intro .cms-section-kicker { justify-content:center; }
.cms-article h1 { margin:18px 0 18px; color:#082033; font-size:clamp(36px,5.2vw,66px); line-height:1; letter-spacing:-.065em; }
.cms-article-lead { max-width:700px; margin:0 auto; color:#61737A; font-size:18px; line-height:1.65; }
.cms-article-meta { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:9px; color:#87979B; font-size:12px; font-weight:800; margin:22px 0 38px; }
.cms-article-meta i { width:3px; height:3px; border-radius:50%; background:currentColor; }
.cms-article-cover { display:block; width:100%; max-height:520px; object-fit:cover; border-radius:26px; margin:0 auto 52px; box-shadow:0 22px 60px rgba(8,32,51,.12); }
.cms-article-layout { max-width:720px; margin:0 auto; }
.cms-article-body { color:#33475B; font-size:17px; line-height:1.86; }
.cms-article-body h2 { color:#082033; font-size:29px; line-height:1.12; letter-spacing:-.04em; margin:48px 0 16px; }
.cms-article-body h3 { color:#082033; font-size:22px; line-height:1.2; letter-spacing:-.025em; margin:34px 0 14px; }
.cms-article-body p { margin: 0 0 18px; }
.cms-article-body ul,
.cms-article-body ol { margin: 0 0 18px; padding-left: 24px; }
.cms-article-body li { margin-bottom: 8px; }
.cms-article-body a { color: #087b5f; }
.cms-article-body img { max-width: 100%; border-radius: 12px; margin: 20px 0; }
.cms-article-body blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 3px solid #087b5f;
  background: rgba(8, 123, 95, .06);
  color: #5b6b7d;
}
.cms-article-body code { background: rgba(11, 31, 51, .06); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.cms-article-body pre { background: rgba(11, 31, 51, .04); padding: 16px; border-radius: 10px; overflow-x: auto; }

.cms-article-cta { display:flex; align-items:center; justify-content:space-between; gap:28px; max-width:720px; margin:60px auto 0; padding:28px 30px; border-radius:22px; color:#fff; background:linear-gradient(135deg,#082033,#087B5F); box-shadow:0 18px 42px rgba(8,123,95,.18); }
.cms-article-cta .cms-section-kicker { color:#A9F47B; }
.cms-article-cta h2 { margin:9px 0 5px; font-size:24px; line-height:1.05; letter-spacing:-.04em; }
.cms-article-cta p { margin:0; color:#C4DCD9; font-size:13px; }
.cms-article-cta > a { flex:none; padding:12px 16px; border-radius:10px; color:#06251F; background:#8AF551; font-size:13px; font-weight:900; text-decoration:none; }
.cms-article-cta > a span,.cms-related-heading > a span { margin-left:4px; }
.cms-related { padding:70px 0 90px; background:#fff; }
.cms-related-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.cms-related-heading h2 { color:#082033; font-size:clamp(26px,3vw,38px); line-height:1; letter-spacing:-.055em; margin:9px 0 0; }
.cms-related-heading > a { color:#087B5F; font-size:13px; font-weight:900; text-decoration:none; }

@media (max-width: 720px) {
  .cms-blog-hero { padding:32px 0 54px; }
  .cms-blog-hero .cms-breadcrumb { margin-bottom:38px; }
  .cms-blog-hero h1 { font-size:clamp(40px,12vw,58px); }
  .cms-blog-hero-copy p { font-size:16px; }
  .cms-blog-content { padding:34px 0 64px; }
  .cms-featured-article { display:block; min-height:0; }
  .cms-featured-media { aspect-ratio:16/10; }
  .cms-featured-copy { padding:30px 24px; }
  .cms-blog-heading { align-items:flex-start; flex-direction:column; margin:54px 0 20px; gap:10px; }
  .cms-blog-grid { grid-template-columns: 1fr; }
  .cms-article { padding:34px 0 64px; }
  .cms-article h1 { font-size:clamp(35px,10vw,50px); }
  .cms-article-lead { font-size:16px; }
  .cms-article-cover { margin-bottom:34px; border-radius:18px; }
  .cms-article-body { font-size:16px; }
  .cms-article-body h2 { font-size:26px; }
  .cms-article-cta { display:block; padding:24px; }
  .cms-article-cta > a { display:inline-block; margin-top:20px; }
  .cms-related { padding:52px 0 64px; }
  .cms-related-heading { align-items:flex-start; flex-direction:column; gap:12px; }
}
