/* Blog — identidade visual alinhada à landing */
.bp-blog-hero {
  position: relative;
  padding: calc(var(--bp-header-h) + 56px) 0 48px;
  background: var(--bp-bg-soft);
  overflow: hidden;
}

.bp-blog-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 15% 30%, rgba(0, 191, 99, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 85% 70%, rgba(94, 247, 165, 0.1), transparent 50%);
}

.bp-blog-hero .bp-container {
  position: relative;
  z-index: 1;
}

.bp-blog-hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-green);
  margin-bottom: 10px;
}

.bp-blog-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--bp-text);
}

.bp-blog-hero p {
  margin: 0;
  max-width: 540px;
  color: var(--bp-text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.bp-blog-list {
  padding: 24px 0 var(--bp-pad-section);
}

.bp-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 640px) {
  .bp-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .bp-blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bp-blog-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--bp-radius-lg);
  overflow: hidden;
  box-shadow: var(--bp-shadow-sm);
  transition: transform var(--bp-transition), box-shadow var(--bp-transition);
  height: 100%;
}

.bp-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bp-shadow);
}

.bp-blog-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8eef2;
}

.bp-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 18px;
  flex: 1;
}

.bp-blog-card__date {
  font-size: 0.8rem;
  color: var(--bp-text-muted);
  font-weight: 500;
}

.bp-blog-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--bp-text);
}

.bp-blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.bp-blog-card__title a:hover {
  color: var(--bp-green);
}

.bp-blog-card__resumo {
  margin: 0;
  color: var(--bp-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-blog-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.bp-blog-empty,
.bp-blog-loading,
.bp-blog-error {
  text-align: center;
  padding: 48px 16px;
  color: var(--bp-text-muted);
}

.bp-blog-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.bp-blog-more[hidden] {
  display: none !important;
}

/* Artigo */
.bp-article {
  padding: calc(var(--bp-header-h) + 36px) 0 var(--bp-pad-section);
}

.bp-article__header {
  max-width: 760px;
  margin: 0 auto 28px;
}

.bp-article__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--bp-text-muted);
  margin-bottom: 16px;
}

.bp-article__breadcrumb a {
  color: var(--bp-green);
  text-decoration: none;
  font-weight: 500;
}

.bp-article__breadcrumb a:hover {
  text-decoration: underline;
}

.bp-article__date {
  font-size: 0.9rem;
  color: var(--bp-text-muted);
  margin: 0 0 10px;
}

.bp-article__title {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--bp-text);
}

.bp-article__resumo {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--bp-text-muted);
  margin: 0;
}

.bp-article__cover {
  max-width: 920px;
  margin: 0 auto 32px;
  border-radius: var(--bp-radius-lg);
  overflow: hidden;
  box-shadow: var(--bp-shadow);
}

.bp-article__cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bp-article__share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.bp-article__share-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bp-text-muted);
  margin-right: 4px;
}

.bp-article__content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--bp-text);
}

.bp-article__content h2 {
  font-size: 1.45rem;
  margin: 1.8em 0 0.6em;
  line-height: 1.3;
}

.bp-article__content h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.5em;
  line-height: 1.35;
}

.bp-article__content p {
  margin: 0 0 1.1em;
}

.bp-article__content ul,
.bp-article__content ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.bp-article__content a {
  color: var(--bp-green);
  font-weight: 500;
}

.bp-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bp-radius-sm);
}

.bp-article__content blockquote {
  margin: 1.4em 0;
  padding: 12px 18px;
  border-left: 4px solid var(--bp-green);
  background: var(--bp-green-tint);
  border-radius: 0 var(--bp-radius-sm) var(--bp-radius-sm) 0;
  color: var(--bp-text);
}

.bp-article__back {
  max-width: 760px;
  margin: 40px auto 0;
}

.bp-article__cta {
  max-width: 760px;
  margin: 36px auto 0;
  padding: 18px 20px;
  border-top: 1px solid color-mix(in srgb, var(--bp-border, #e2e8f0) 80%, transparent);
  color: var(--bp-muted, #64748b);
  font-size: 0.95rem;
  line-height: 1.55;
}

.bp-article__cta a {
  color: var(--bp-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bp-related {
  max-width: 960px;
  margin: 48px auto 0;
  padding-top: 8px;
}

.bp-related__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--bp-text);
}

.bp-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.bp-related__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid color-mix(in srgb, var(--bp-border, #e2e8f0) 90%, transparent);
  border-radius: var(--bp-radius-md, 12px);
  overflow: hidden;
  background: var(--bp-white, #fff);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bp-related__card:hover {
  border-color: var(--bp-green);
  transform: translateY(-2px);
}

.bp-related__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bp-related__body {
  padding: 14px 16px 16px;
}

.bp-related__body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--bp-text);
}

.bp-related__body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--bp-muted, #64748b);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--bp-black);
  color: var(--bp-white);
  padding: 10px 18px;
  border-radius: var(--bp-radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}

.bp-share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bp-nav a.is-blog-active {
  color: var(--bp-green);
  font-weight: 600;
}
