/* Blog Oppem — identidade do site institucional (Open Sans, verde/cinza) */
:root {
  --brand: #06c2a1;
  --brand-dark: #049a80;
  --ink: #3b4042;
  --ink-soft: #6b7276;
  --line: #e6eaec;
  --bg: #ffffff;
  --bg-soft: #f5f8f8;
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand-dark); }

/* ── Header ─────────────────────────────────────────── */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.blog-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.blog-header__brand img { display: block; height: 44px; width: auto; }

.blog-header__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.blog-header__nav a { color: var(--ink); text-decoration: none; }
.blog-header__nav a:hover, .blog-header__nav a.is-active { color: var(--brand-dark); }

.blog-header__cta {
  background: var(--brand);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.blog-header__cta:hover { background: var(--brand-dark); }

/* ── Estrutura ──────────────────────────────────────── */
.blog-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.blog-hero { text-align: center; padding: 1.5rem 0 2.5rem; }

.blog-hero__kicker {
  color: var(--brand-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}

.blog-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.blog-hero__lead { color: var(--ink-soft); max-width: 560px; margin: 0 auto; }

.blog-empty { text-align: center; color: var(--ink-soft); padding: 3rem 0; }

/* ── Cards ──────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(59, 64, 66, 0.1); }

.blog-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }

.blog-card__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

.blog-card__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.blog-card__body { padding: 1.1rem 1.2rem 1.3rem; }

.blog-card__body time { color: var(--ink-soft); font-size: 0.82rem; }

.blog-card__body h2 { font-size: 1.12rem; line-height: 1.35; margin: 0.4rem 0 0.5rem; }

.blog-card__body p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__more { color: var(--brand-dark); font-weight: 700; font-size: 0.9rem; }

/* ── Paginação ──────────────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.blog-pagination a { font-weight: 700; text-decoration: none; }

/* ── Post ───────────────────────────────────────────── */
.blog-post { max-width: 760px; margin: 0 auto; }

.blog-breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.blog-breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.blog-breadcrumb a:hover { color: var(--brand-dark); }

.blog-post__header h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

.blog-post__meta { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 1rem; }

.blog-post__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 1.25rem;
}

.blog-post__tags li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
}

.blog-post__cover {
  width: 100%;
  border-radius: 1rem;
  margin: 0.5rem 0 1.75rem;
  object-fit: cover;
}

.blog-post__content { font-size: 1.05rem; }
.blog-post__content h2 { margin: 2rem 0 0.75rem; font-size: 1.45rem; line-height: 1.3; }
.blog-post__content h3 { margin: 1.6rem 0 0.6rem; font-size: 1.2rem; }
.blog-post__content p { margin: 0 0 1.1rem; }
.blog-post__content img { border-radius: 0.75rem; margin: 1rem 0; }
.blog-post__content blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid var(--brand);
  background: var(--bg-soft);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--ink-soft);
}
.blog-post__content pre {
  background: #21262a;
  color: #e8ecee;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  font-size: 0.9rem;
}
.blog-post__content code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.blog-post__content p code, .blog-post__content li code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.88em;
}
.blog-post__content table { border-collapse: collapse; width: 100%; margin: 1.25rem 0; font-size: 0.95rem; }
.blog-post__content th, .blog-post__content td { border: 1px solid var(--line); padding: 0.5rem 0.75rem; text-align: left; }
.blog-post__content th { background: var(--bg-soft); }
.blog-post__content hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ── CTA final do post ──────────────────────────────── */
.blog-post__cta {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  text-align: center;
}

.blog-post__cta h2 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.blog-post__cta p { margin: 0 0 1.1rem; opacity: 0.92; }

.blog-post__cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
}

/* ── Footer ─────────────────────────────────────────── */
.blog-footer { background: var(--ink); color: #dfe5e7; margin-top: 3rem; }

.blog-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  font-size: 0.92rem;
}

.blog-footer__inner p { color: #aeb7ba; margin: 0.75rem 0 0; }

.blog-footer__contact { display: grid; gap: 0.35rem; }
.blog-footer__contact a { color: #dfe5e7; text-decoration: none; }
.blog-footer__contact a:hover { color: var(--brand); }
.blog-footer__contact address { font-style: normal; color: #aeb7ba; margin-top: 0.5rem; }

.blog-footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #aeb7ba;
}

@media (max-width: 640px) {
  .blog-header__nav { gap: 0.8rem; font-size: 0.88rem; }
  .blog-header__cta { padding: 0.45rem 0.8rem; }
}
