/* =========================================================
   CAREKA DIGITAL — V92 HERO + EDITORIAL PREMIUM REFINE
   Objetivo:
   - subir e estabilizar a caixinha do fundador no hero em desktop;
   - melhorar encaixe e proporção em todas as larguras;
   - impedir corte da imagem editorial na versão mobile;
   - elevar a experiência dos cards editoriais com hover premium;
   - remover o risco/triângulo da última caixinha.
   ========================================================= */

/* ---------------- HERO / CARD DO FUNDADOR ---------------- */
body .ckHeroV80,
body .ckHeroV65.ckHeroV80{
  overflow:hidden!important;
}

body .ckHeroV80__frame,
body .ckHeroV80 .hero-prologue__frame{
  align-items:end!important;
  column-gap:clamp(22px,2.5vw,42px)!important;
}

body .ckHeroV80__founder,
body .ckHeroV80 .ckFounderDockV24{
  position:relative!important;
  z-index:4!important;
  width:clamp(660px,42vw,760px)!important;
  max-width:min(760px,calc(100vw - 42px))!important;
  justify-self:end!important;
  align-self:end!important;
  margin-right:clamp(12px,1.35vw,24px)!important;
  margin-bottom:clamp(18px,2vw,34px)!important;
}

body .ckHeroV80__founderPanel,
body .ckHeroV80 .ckFounderDockV24__panel{
  grid-template-columns:minmax(0,.96fr) minmax(290px,.82fr)!important;
  gap:clamp(14px,1vw,22px)!important;
  padding:clamp(16px,1.05vw,22px)!important;
  border-radius:clamp(18px,1.35vw,24px)!important;
}

body .ckHeroV80__founderIdentity,
body .ckHeroV80 .ckFounderDockV24__identity{
  grid-template-columns:clamp(72px,4.3vw,92px) minmax(0,1fr)!important;
  gap:clamp(12px,.9vw,17px)!important;
  padding-right:clamp(14px,1vw,20px)!important;
}

body .ckHeroV80__founderImage,
body .ckHeroV80 .ckFounderDockV24__image{
  width:clamp(72px,4.3vw,92px)!important;
  height:clamp(72px,4.3vw,92px)!important;
}

body .ckHeroV80__founderCopy strong,
body .ckHeroV80 .ckFounderDockV24__copy strong{
  font-size:clamp(26px,1.7vw,38px)!important;
  line-height:.93!important;
}

body .ckHeroV80__founderCopy span,
body .ckHeroV80 .ckFounderDockV24__copy span{
  font-size:clamp(11.5px,.73vw,14px)!important;
  line-height:1.32!important;
}

body .ckHeroV80__founderInfo,
body .ckHeroV80 .ckFounderDockV24__info{
  grid-template-columns:minmax(215px,.94fr) minmax(230px,1.06fr)!important;
  padding-left:clamp(16px,1vw,22px)!important;
}

body .ckHeroV80__founderItem,
body .ckHeroV80 .ckFounderDockV24__item{
  padding:0 clamp(12px,.9vw,18px)!important;
  gap:clamp(5px,.42vw,8px)!important;
}

body .ckHeroV80__founderItem + .ckHeroV80__founderItem,
body .ckHeroV80 .ckFounderDockV24__item + .ckFounderDockV24__item{
  padding-left:clamp(16px,1vw,22px)!important;
}

body .ckHeroV80__founderItem span,
body .ckHeroV80 .ckFounderDockV24__item span,
body .ckHeroV87__line{
  font-size:clamp(11.8px,.8vw,15px)!important;
  line-height:1.34!important;
}

@media (max-width:1460px){
  body .ckHeroV80__founder,
  body .ckHeroV80 .ckFounderDockV24{
    width:clamp(620px,45vw,720px)!important;
    max-width:min(720px,calc(100vw - 40px))!important;
    margin-bottom:clamp(12px,1.8vw,24px)!important;
  }

  body .ckHeroV80__founderPanel,
  body .ckHeroV80 .ckFounderDockV24__panel{
    grid-template-columns:minmax(0,.95fr) minmax(275px,.82fr)!important;
  }
}

@media (max-width:1180px){
  body .ckHeroV80__founder,
  body .ckHeroV80 .ckFounderDockV24{
    width:min(100%,760px)!important;
    max-width:760px!important;
    margin-right:0!important;
    margin-bottom:0!important;
  }
}

/* ---------------- EDITORIAL DESTAQUE / IMAGEM ---------------- */
body #blog .editorialLayout{
  align-items:stretch!important;
}

body #blog .editorialFeatured{
  align-items:stretch!important;
}

body #blog .editorialFeatured__copy{
  display:grid!important;
  align-content:center!important;
}

body #blog .editorialFeatured__media{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:clamp(16px,1.8vw,24px)!important;
  min-height:clamp(360px,40vw,660px)!important;
  overflow:hidden!important;
}

body #blog .editorialFeatured__media img{
  width:min(100%,640px)!important;
  max-width:100%!important;
  height:auto!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
}

body #blog .editorialFeatured__media:hover img{
  transform:translateY(-2px) scale(1.01)!important;
}

@media (max-width:980px){
  body #blog .editorialFeatured{
    grid-template-columns:1fr!important;
  }

  body #blog .editorialFeatured__media{
    order:-1!important;
    min-height:auto!important;
    aspect-ratio:auto!important;
    padding:16px!important;
  }

  body #blog .editorialFeatured__media img{
    width:min(100%,480px)!important;
    height:auto!important;
    max-height:none!important;
    object-fit:contain!important;
  }
}

@media (max-width:640px){
  body #blog .editorialFeatured__media{
    padding:14px!important;
    border-radius:24px!important;
  }

  body #blog .editorialFeatured__media img{
    width:min(100%,360px)!important;
  }
}

/* ---------------- CARDS EDITORIAIS / HOVER PREMIUM ---------------- */
body #blog .editorialRecent{
  align-items:stretch!important;
}

body #blog .editorialCard{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  min-height:100%!important;
  border-radius:clamp(22px,2vw,34px)!important;
  border:1px solid rgba(197,160,89,.18)!important;
  background:
    radial-gradient(420px 220px at 0% 0%,rgba(197,160,89,.08),transparent 62%),
    linear-gradient(180deg,rgba(9,12,18,.96),rgba(5,7,11,.98))!important;
  box-shadow:0 22px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.035)!important;
  transition:
    transform .34s cubic-bezier(.22,1,.36,1),
    box-shadow .34s cubic-bezier(.22,1,.36,1),
    border-color .34s cubic-bezier(.22,1,.36,1),
    background .34s cubic-bezier(.22,1,.36,1)!important;
}

body #blog .editorialCard::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  border-radius:inherit!important;
  pointer-events:none!important;
  background:linear-gradient(135deg,rgba(255,255,255,.05),transparent 22%,transparent 72%,rgba(197,160,89,.06))!important;
  opacity:0!important;
  transition:opacity .34s cubic-bezier(.22,1,.36,1)!important;
}

body #blog .editorialCard::after,
body #blog .editorialCard--ai::after{
  display:none!important;
  content:none!important;
}

body #blog .editorialCard:hover,
body #blog .editorialCard:focus-within{
  transform:translateY(-7px)!important;
  border-color:rgba(242,189,63,.44)!important;
  box-shadow:0 30px 90px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.06)!important;
  background:
    radial-gradient(460px 240px at 0% 0%,rgba(242,189,63,.11),transparent 64%),
    linear-gradient(180deg,rgba(10,13,18,.98),rgba(5,7,11,1))!important;
}

body #blog .editorialCard:hover::before,
body #blog .editorialCard:focus-within::before{
  opacity:1!important;
}

body #blog .editorialCard h3,
body #blog .editorialCard p,
body #blog .editorialCard .editorialLink{
  position:relative!important;
  z-index:1!important;
}

body #blog .editorialCard:hover h3,
body #blog .editorialCard:focus-within h3{
  color:#fff7e8!important;
}

body #blog .editorialCard p{
  color:rgba(255,248,236,.76)!important;
}

body #blog .editorialCard .editorialLink{
  display:inline-flex!important;
  align-items:center!important;
  gap:10px!important;
  transition:letter-spacing .28s cubic-bezier(.22,1,.36,1), color .28s cubic-bezier(.22,1,.36,1)!important;
}

body #blog .editorialCard .editorialLink span{
  display:inline-block!important;
  transition:transform .28s cubic-bezier(.22,1,.36,1)!important;
}

body #blog .editorialCard:hover .editorialLink,
body #blog .editorialCard:focus-within .editorialLink{
  letter-spacing:.08em!important;
  color:#ffd66c!important;
}

body #blog .editorialCard:hover .editorialLink span,
body #blog .editorialCard:focus-within .editorialLink span{
  transform:translateX(4px)!important;
}

@media (max-width:980px){
  body #blog .editorialCard:hover,
  body #blog .editorialCard:focus-within{
    transform:translateY(-3px)!important;
  }
}
