/* Abertura editorial do Blog Falcon Financas */
.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  background:
    radial-gradient(circle at 8% 8%, rgba(0, 106, 237, .16), transparent 27%),
    radial-gradient(circle at 92% 18%, rgba(0, 167, 225, .13), transparent 24%),
    linear-gradient(135deg, #f4f8ff 0%, #fff 56%, #f5faff 100%);
  isolation: isolate;
}

.blog-hero::before,
.blog-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.blog-hero::before {
  top: 38px;
  right: 4%;
  width: 116px;
  height: 116px;
  opacity: .36;
  background-image: radial-gradient(circle, #006aed 2px, transparent 2.4px);
  background-size: 16px 16px;
}

.blog-hero::after {
  right: -130px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border: 90px solid rgba(0, 106, 237, .07);
  border-radius: 50%;
}

.blog-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  gap: clamp(42px, 6vw, 82px);
  align-items: center;
}

.blog-hero-copy {
  position: relative;
  z-index: 2;
}

.blog-hero h1 {
  max-width: 700px;
  margin-top: 20px;
  font-size: clamp(46px, 5.4vw, 74px);
  line-height: .96;
  letter-spacing: -.055em;
}

.blog-hero h1 em {
  color: var(--primary);
  font-style: normal;
}

.blog-hero p {
  max-width: 650px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.blog-hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.blog-hero-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 106, 237, .13);
  border-radius: 999px;
  color: #27405f;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  transition: color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.blog-hero-topics a:hover,
.blog-hero-topics a:focus-visible {
  color: var(--primary);
  border-color: rgba(0, 106, 237, .34);
  box-shadow: 0 12px 26px rgba(0, 106, 237, .1);
  transform: translateY(-2px);
}

.blog-hero-visual {
  position: relative;
  min-height: 430px;
}

.blog-hero-cover {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .17);
  transition: transform .25s ease, box-shadow .25s ease;
}

.blog-hero-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-hero-cover:hover,
.blog-hero-cover:focus-visible {
  z-index: 4;
  box-shadow: 0 32px 82px rgba(15, 23, 42, .23);
}

.blog-hero-cover-main {
  top: 8px;
  right: 0;
  width: 88%;
  aspect-ratio: 1200 / 630;
  transform: rotate(1.4deg);
}

.blog-hero-cover-main:hover,
.blog-hero-cover-main:focus-visible {
  transform: rotate(.4deg) translateY(-5px);
}

.blog-hero-cover-dre,
.blog-hero-cover-app {
  bottom: 0;
  width: 48%;
  aspect-ratio: 1200 / 630;
  border-width: 5px;
  border-radius: 18px;
}

.blog-hero-cover-dre {
  left: 0;
  z-index: 2;
  transform: rotate(-2.2deg);
}

.blog-hero-cover-dre:hover,
.blog-hero-cover-dre:focus-visible {
  transform: rotate(-.8deg) translateY(-5px);
}

.blog-hero-cover-app {
  right: 2%;
  z-index: 3;
  transform: rotate(2.4deg) translateY(14px);
}

.blog-hero-cover-app:hover,
.blog-hero-cover-app:focus-visible {
  transform: rotate(.8deg) translateY(6px);
}

.blog-list-section {
  scroll-margin-top: 96px;
}

@media (max-width: 1080px) {
  .blog-hero {
    padding: 64px 0 76px;
  }

  .blog-hero-shell {
    grid-template-columns: 1fr;
  }

  .blog-hero-copy {
    max-width: 820px;
  }

  .blog-hero-visual {
    width: min(100%, 760px);
    min-height: 460px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 48px 0 58px;
  }

  .blog-hero::before {
    top: 20px;
    right: -24px;
  }

  .blog-hero-shell {
    gap: 38px;
  }

  .blog-hero h1 {
    margin-top: 16px;
    font-size: clamp(40px, 12vw, 56px);
  }

  .blog-hero p {
    margin-top: 20px;
    font-size: 16px;
  }

  .blog-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .blog-hero-actions .btn {
    width: 100%;
  }

  .blog-hero-topics {
    gap: 8px;
    margin-top: 24px;
  }

  .blog-hero-topics a {
    font-size: 12px;
  }

  .blog-hero-visual {
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .blog-hero-cover {
    position: static;
    width: 100%;
    border-width: 4px;
    border-radius: 15px;
    transform: none;
  }

  .blog-hero-cover-main {
    grid-column: 1 / -1;
  }

  .blog-hero-cover:hover,
  .blog-hero-cover:focus-visible,
  .blog-hero-cover-main:hover,
  .blog-hero-cover-main:focus-visible,
  .blog-hero-cover-dre:hover,
  .blog-hero-cover-dre:focus-visible,
  .blog-hero-cover-app:hover,
  .blog-hero-cover-app:focus-visible {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-hero-cover,
  .blog-hero-topics a {
    transition: none;
  }
}
