/* =====================================================
   BLOG.CSS — Estilos compartilhados: blog.html + post.html
   ===================================================== */

/* ── Variáveis locais ── */
:root {
  --blog-primary: #11263c;
  --blog-gold:    #c8973a;
  --blog-beige:   #FFF4ED;
  --blog-blue:    #5F7C8A;
  --blog-radius:  14px;
  --blog-ease:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset básico ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ═══════════════════════════════════════
   HEADER — sempre visível (não transparente)
═══════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h, 80px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo — mesmo tamanho e alinhamento da home */
.header__logo {
  display: flex;
  align-items: center;
  width: 130px;
  height: var(--header-h, 80px);
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.header__logo img {
  width: 130px;
  height: auto;
  max-height: 68px;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

/* cores do nav definidas por página via <style> inline */

/* ── Mobile nav toggle ── */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: none;
  cursor: pointer; padding: 0; z-index: 10;
}

.nav__toggle span {
  display: block; height: 2px;
  border-radius: 2px;
  transition: transform .35s var(--blog-ease), opacity .25s, background .3s;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav__close {
  display: none;
  position: absolute;
  top: 24px; right: 24px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; z-index: 10;
}

.nav__close span {
  position: absolute;
  top: 50%; left: 50%;
  display: block; width: 20px; height: 2px;
  background: var(--blog-primary);
  border-radius: 2px;
}

.nav__close span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.nav__close span:last-child  { transform: translate(-50%,-50%) rotate(-45deg); }

@media (max-width: 1024px) {
  .header__logo,
  .header__logo img { width: 116px; max-height: 60px; }
  .header__logo { height: var(--header-h, 72px); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .header__logo,
  .header__logo img { width: 104px; max-height: 52px; }
  .header__logo { height: 64px; }

  .nav__toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100dvh;
    min-height: -webkit-fill-available;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform .4s var(--blog-ease);
    z-index: 850;
  }

  .nav.open { transform: translateX(0); }

  .nav__close { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .nav__link { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .header__logo,
  .header__logo img { width: 94px; max-height: 48px; }
  .header__logo { height: 64px; }
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  background: #0c1e2e;
  color: rgba(255,255,255,.65);
  font-family: 'Readex Pro', sans-serif;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 60px;
  padding: 72px 24px 56px;
  max-width: 1240px;
  margin: 0 auto;
}

.footer__logo { width: 80px; height: auto; opacity: .9; margin-bottom: 16px; }

.footer__tagline {
  font-size: .9rem;
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer__social { display: flex; gap: 12px; }

.footer__social-link {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}

.footer__social-link:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}

.footer__social-link svg { width: 16px; height: 16px; }

.footer__nav-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 20px;
}

.footer__nav-list { list-style: none; }

.footer__nav-list li,
.footer__contact-list li { margin: 10px 0; }

.footer__nav-list a,
.footer__contact-list a {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .25s;
}

.footer__nav-list a:hover,
.footer__contact-list a:hover { color: #fff; }

.footer__contact-list { list-style: none; }

.footer__contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__contact-list svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .5; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 24px;
}

.footer__bottom > div {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.footer__bottom p {
  font-size: .82rem;
  color: rgba(255,255,255,.3);
}

.footer__bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 40px; }
  .footer__bottom > div { flex-direction: column; align-items: center; text-align: center; }
}

/* ═══════════════════════════════════════
   WHATSAPP FLOAT
═══════════════════════════════════════ */
.whatsapp-float-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 800; }

.whatsapp-float {
  width: 56px; height: 56px;
  background: #25D366;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .25s, box-shadow .25s;
}

.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.whatsapp-float svg { width: 26px; height: 26px; fill: #fff; }

.wa-menu {
  position: absolute;
  bottom: 70px; right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
  padding: 16px;
  min-width: 240px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
}

.wa-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }

.wa-menu__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b8395;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.wa-menu__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s;
}

.wa-menu__opt:hover { background: #f7f7f7; }
.wa-menu__opt svg { width: 22px; height: 22px; fill: #25D366; flex-shrink: 0; }
.wa-menu__opt strong { display: block; font-size: .88rem; color: #11263c; }
.wa-menu__opt span { font-size: .78rem; color: #6b8395; }

/* ═══════════════════════════════════════
   BLOG HERO
═══════════════════════════════════════ */
.blog-hero {
  background: var(--blog-primary);
  padding: calc(var(--header-h, 80px) + 64px) 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(95,124,138,.25) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero__tag {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}

.blog-hero__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog-hero__desc {
  font-family: 'Readex Pro', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   SKELETON SHIMMER
═══════════════════════════════════════ */
@keyframes shimmer {
  from { background-position: -468px 0; }
  to   { background-position: 468px 0; }
}

.skeleton {
  background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 6px;
}

/* ═══════════════════════════════════════
   BLOG GRID — Listagem
═══════════════════════════════════════ */
.blog-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

/* ── Post em destaque ── */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(17,38,60,.1);
  margin-bottom: 72px;
}

.blog-featured__img {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.blog-featured__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--blog-ease);
}

.blog-featured:hover .blog-featured__img img { transform: scale(1.04); }

.blog-featured__placeholder {
  width: 100%; height: 100%;
  min-height: 360px;
  background: linear-gradient(135deg, #5F7C8A 0%, #11263c 100%);
}

.blog-featured__body {
  background: #fff;
  padding: 48px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blog-gold);
  margin-bottom: 20px;
}

.blog-featured__badge svg { width: 14px; height: 14px; }

.blog-featured__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #1c2a38;
  line-height: 1.25;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-featured__excerpt {
  font-family: 'Readex Pro', sans-serif;
  font-size: .95rem;
  color: #3d5163;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 24px;
}

.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Readex Pro', sans-serif;
  font-size: .82rem;
  color: #6b8395;
  margin-bottom: 28px;
}

.blog-featured__meta svg { width: 14px; height: 14px; opacity: .6; }

.blog-featured__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  background: var(--blog-primary);
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  width: fit-content;
  transition: background .25s, transform .2s, box-shadow .25s;
}

.blog-featured__link:hover {
  background: #1a3a5c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17,38,60,.25);
}

/* ── Grid de posts ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

/* ── Post Card ── */
.post-card {
  background: #fff;
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(17,38,60,.06);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--blog-ease), box-shadow .3s;
  opacity: 0;
  transform: translateY(24px);
}

.post-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s var(--blog-ease), transform .5s var(--blog-ease),
              box-shadow .3s, transform .3s var(--blog-ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(17,38,60,.12);
}

.post-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.post-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--blog-ease);
}

.post-card:hover .post-card__img img { transform: scale(1.06); }

.post-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #5F7C8A 0%, #11263c 100%);
}

.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__date {
  font-family: 'Readex Pro', sans-serif;
  font-size: .78rem;
  color: #6b8395;
  margin-bottom: 10px;
}

.post-card__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1c2a38;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.post-card__excerpt {
  font-family: 'Readex Pro', sans-serif;
  font-size: .88rem;
  color: #3d5163;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0f4f7;
}

.post-card__link {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: var(--blog-primary);
  text-decoration: none;
  transition: color .2s;
}

.post-card__link:hover { color: #1a3a5c; }

.post-card__read-time {
  font-family: 'Readex Pro', sans-serif;
  font-size: .78rem;
  color: #6b8395;
}

/* ── Skeleton cards ── */
.skel-card {
  background: #fff;
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(17,38,60,.06);
}

.skel-img {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.skel-body { padding: 24px; }
.skel-line { height: 12px; margin-bottom: 10px; border-radius: 6px; }
.skel-line--short { width: 40%; }
.skel-line--medium { width: 75%; }
.skel-line--long { width: 100%; }

/* ── Skeleton featured ── */
.skel-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(17,38,60,.1);
  margin-bottom: 72px;
  min-height: 360px;
}

.skel-featured-img { min-height: 360px; }

.skel-featured-body {
  background: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ═══════════════════════════════════════
   PAGINAÇÃO
═══════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.page-btn {
  min-width: 40px; height: 40px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: #3d5163;
  background: #fff;
  border: 1.5px solid #e0eaf0;
  border-radius: 10px;
  cursor: pointer;
  padding: 0 12px;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  text-decoration: none;
}

.page-btn:hover:not(:disabled) {
  background: var(--blog-primary);
  color: #fff;
  border-color: var(--blog-primary);
  transform: translateY(-2px);
}

.page-btn.active {
  background: var(--blog-primary);
  color: #fff;
  border-color: var(--blog-primary);
}

.page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.page-ellipsis {
  color: #6b8395;
  font-size: .9rem;
  line-height: 40px;
}

/* ═══════════════════════════════════════
   ESTADOS: ERRO / VAZIO
═══════════════════════════════════════ */
.state-box {
  text-align: center;
  padding: 80px 24px;
}

.state-box__icon { font-size: 3rem; margin-bottom: 16px; }

.state-box__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #1c2a38;
  margin-bottom: 8px;
}

.state-box__text {
  font-family: 'Readex Pro', sans-serif;
  font-size: .95rem;
  color: #6b8395;
  margin-bottom: 24px;
}

.btn-retry {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  background: var(--blog-primary);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: background .25s, transform .2s;
}

.btn-retry:hover { background: #1a3a5c; transform: translateY(-2px); }

/* ═══════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════ */
.back-top {
  position: fixed;
  bottom: 90px; right: 24px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blog-primary);
  color: #fff;
  border: none; border-radius: 12px;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, box-shadow .3s;
  z-index: 700;
  box-shadow: 0 4px 16px rgba(17,38,60,.2);
}

.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: #1a3a5c; box-shadow: 0 6px 24px rgba(17,38,60,.3); }
.back-top svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════
   POST.HTML — Artigo Individual
═══════════════════════════════════════ */

/* ── Barra de progresso ── */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--blog-gold);
  z-index: 1000;
  transition: width .1s linear;
}

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(var(--header-h, 80px) + 24px) 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a,
.breadcrumb span {
  font-family: 'Readex Pro', sans-serif;
  font-size: .82rem;
  color: #6b8395;
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--blog-primary); }

.breadcrumb .sep { color: #c0cdd5; font-size: .75rem; }

.breadcrumb .current {
  color: var(--blog-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

/* ── Layout post ── */
.post-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

/* ── Artigo ── */
.post-article { min-width: 0; }

.post-feat-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--blog-radius);
  margin-bottom: 36px;
  display: block;
}

.post-header__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #1c2a38;
  line-height: 1.25;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-family: 'Readex Pro', sans-serif;
  font-size: .85rem;
  color: #6b8395;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e8f0f5;
}

.post-meta svg { width: 14px; height: 14px; opacity: .65; vertical-align: -2px; margin-right: 4px; }

/* Botão curtir */
.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid #e0eaf0;
  border-radius: 50px;
  padding: 6px 14px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  color: #6b8395;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  margin-left: auto;
}

.btn-like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; transition: fill .2s, stroke .2s; }

.btn-like.liked {
  color: #e05a7e;
  border-color: #e05a7e;
  background: #fff0f4;
}

.btn-like.liked svg { fill: #e05a7e; stroke: #e05a7e; }

/* ── Inline TOC ── */
.toc-inline {
  background: var(--blog-beige);
  border-left: 3px solid var(--blog-gold);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin-bottom: 36px;
}

.toc-inline__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b8395;
  margin-bottom: 12px;
}

.toc-inline ol { padding-left: 18px; }

.toc-inline li { margin: 6px 0; }

.toc-inline a {
  font-family: 'Readex Pro', sans-serif;
  font-size: .88rem;
  color: var(--blog-primary);
  text-decoration: none;
  line-height: 1.5;
}

.toc-inline a:hover { text-decoration: underline; }

.toc-inline .toc-h3 { margin-left: 16px; }

/* ── Conteúdo do artigo ── */
.post-content {
  font-family: 'Readex Pro', sans-serif;
  font-size: 1rem;
  color: #3d5163;
  line-height: 1.85;
}

.post-content h2 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #1c2a38;
  line-height: 1.3;
  margin: 40px 0 16px;
  padding-top: 8px;
}

.post-content h3 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #1c2a38;
  margin: 32px 0 12px;
}

.post-content h4 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1c2a38;
  margin: 24px 0 10px;
}

.post-content p { margin-bottom: 20px; }

.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.post-content li { margin-bottom: 8px; }

.post-content blockquote {
  border-left: 4px solid var(--blog-gold);
  margin: 28px 0;
  padding: 16px 24px;
  background: var(--blog-beige);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #1c2a38;
}

.post-content blockquote p { margin-bottom: 0; }

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
  display: block;
}

.post-content .aligncenter { margin-left: auto; margin-right: auto; }
.post-content .alignleft { float: left; margin-right: 24px; margin-bottom: 16px; }
.post-content .alignright { float: right; margin-left: 24px; margin-bottom: 16px; }

.post-content figure { margin: 28px 0; }

.post-content figcaption {
  font-size: .82rem;
  color: #6b8395;
  text-align: center;
  margin-top: 8px;
}

.post-content pre {
  background: #1c2a38;
  color: #e8f0f5;
  padding: 20px 24px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: .88rem;
  line-height: 1.6;
}

.post-content code {
  background: #f0f4f7;
  color: #11263c;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .88em;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

.post-content hr {
  border: none;
  border-top: 1px solid #e0eaf0;
  margin: 40px 0;
}

.post-content a {
  color: var(--blog-primary);
  text-decoration: underline;
}

/* ── Footer do artigo ── */
.post-footer {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid #e8f0f5;
}

.post-footer__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--blog-primary);
  text-decoration: none;
  margin-bottom: 28px;
  transition: gap .2s;
}

.post-footer__back:hover { gap: 12px; }

.post-footer__share-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b8395;
  margin-bottom: 14px;
}

.post-footer__share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  padding: 10px 18px;
  border-radius: 50px;
  border: 1.5px solid #e0eaf0;
  background: #fff;
  color: #3d5163;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.share-btn:hover { transform: translateY(-2px); }

.share-btn--wa { border-color: #25D366; color: #25D366; }
.share-btn--wa:hover { background: #25D366; color: #fff; }

.share-btn--li { border-color: #0A66C2; color: #0A66C2; }
.share-btn--li:hover { background: #0A66C2; color: #fff; }

.share-btn--copy:hover { background: var(--blog-primary); color: #fff; border-color: var(--blog-primary); }

/* ── Popup de seleção de texto ── */
.text-share-popup {
  position: absolute;
  background: #1c2a38;
  border-radius: 10px;
  padding: 6px 4px;
  display: flex;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transform: translateX(-50%) translateY(-8px);
}

.text-share-popup.visible { opacity: 1; pointer-events: auto; }

.text-share-popup button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}

.text-share-popup button:hover { background: rgba(255,255,255,.1); }
.text-share-popup button svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Posts relacionados ── */
.related-posts {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #e8f0f5;
}

.related-posts__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #1c2a38;
  margin-bottom: 28px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Sidebar ── */
.post-sidebar {
  position: sticky;
  top: calc(var(--header-h, 80px) + 24px);
}

.sidebar-card {
  background: #fff;
  border-radius: var(--blog-radius);
  padding: 28px;
  box-shadow: 0 2px 20px rgba(17,38,60,.07);
  margin-bottom: 24px;
}

.sidebar-card__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b8395;
  margin-bottom: 16px;
}

/* CTA sidebar */
.sidebar-cta {
  background: var(--blog-primary);
  border-radius: var(--blog-radius);
  padding: 32px 28px;
  text-align: center;
  margin-bottom: 24px;
}

.sidebar-cta__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
}

.sidebar-cta__text {
  font-family: 'Readex Pro', sans-serif;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sidebar-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: background .25s, transform .2s;
}

.sidebar-cta__btn:hover { background: #1fba59; transform: translateY(-2px); }
.sidebar-cta__btn svg { width: 18px; height: 18px; fill: #fff; }

/* TOC sidebar */
.toc-sidebar ol { padding-left: 16px; }
.toc-sidebar li { margin: 6px 0; }

.toc-sidebar a {
  font-family: 'Readex Pro', sans-serif;
  font-size: .85rem;
  color: #3d5163;
  text-decoration: none;
  line-height: 1.5;
  transition: color .2s;
}

.toc-sidebar a:hover { color: var(--blog-primary); }

.toc-sidebar .toc-h3 { margin-left: 14px; font-size: .8rem; }

.toc-sidebar a.toc-active {
  color: var(--blog-primary);
  font-weight: 600;
}

.sidebar-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  color: #3d5163;
  text-decoration: none;
  padding: 16px;
  border: 1.5px solid #e0eaf0;
  border-radius: var(--blog-radius);
  transition: color .2s, border-color .2s, background .2s;
  margin-bottom: 24px;
}

.sidebar-back:hover {
  color: var(--blog-primary);
  border-color: var(--blog-primary);
  background: #f5faff;
}

/* ── Comentários ── */
.comments-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #e8f0f5;
}

.comments-section__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #1c2a38;
  margin-bottom: 32px;
}

.comment-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.comment-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #5F7C8A, #11263c);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  flex-shrink: 0;
}

.comment-body { flex: 1; }

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-author {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: #1c2a38;
}

.comment-date {
  font-family: 'Readex Pro', sans-serif;
  font-size: .78rem;
  color: #6b8395;
}

.comment-text {
  font-family: 'Readex Pro', sans-serif;
  font-size: .9rem;
  color: #3d5163;
  line-height: 1.65;
}

.comment-form {
  margin-top: 40px;
  background: #f8fbff;
  border-radius: var(--blog-radius);
  padding: 32px;
}

.comment-form__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1c2a38;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  color: #3d5163;
}

.form-input,
.form-textarea {
  font-family: 'Readex Pro', sans-serif;
  font-size: .92rem;
  color: #1c2a38;
  background: #fff;
  border: 1.5px solid #dce8f0;
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus { border-color: var(--blog-primary); }

.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-submit {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  background: var(--blog-primary);
  border: none;
  padding: 13px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: background .25s, transform .2s;
}

.form-submit:hover { background: #1a3a5c; transform: translateY(-2px); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.form-feedback {
  margin-top: 14px;
  font-family: 'Readex Pro', sans-serif;
  font-size: .88rem;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #e8f8ef;
  color: #1a7f4a;
}

.form-feedback.error {
  display: block;
  background: #feeaea;
  color: #b91c1c;
}

/* ── Skeleton do post ── */
.skel-post-img {
  width: 100%;
  height: 360px;
  border-radius: var(--blog-radius);
  margin-bottom: 36px;
}

.skel-post-line { height: 14px; margin-bottom: 12px; border-radius: 6px; }

/* ═══════════════════════════════════════
   HOME — Seção Blog
═══════════════════════════════════════ */
.home-blog {
  background: #FFF4ED;
  padding: 96px 0;
}

.home-blog .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-blog__header {
  text-align: center;
  margin-bottom: 48px;
}

.home-blog__tag {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #5F7C8A;
  margin-bottom: 12px;
}

.home-blog__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #1c2a38;
  line-height: 1.2;
  margin-bottom: 12px;
}

.home-blog__desc {
  font-family: 'Readex Pro', sans-serif;
  font-size: .97rem;
  color: #3d5163;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.home-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.home-blog__cta {
  text-align: center;
  margin-top: 48px;
}

.home-blog__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: #11263c;
  background: transparent;
  border: 2px solid #11263c;
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background .25s, color .25s, transform .2s;
}

.home-blog__btn:hover {
  background: #11263c;
  color: #fff;
  transform: translateY(-2px);
}

/* ── Skeleton home blog ── */
.home-blog .skel-card {
  background: #fff;
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(17,38,60,.06);
}

/* ═══════════════════════════════════════
   RESPONSIVIDADE — Post
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__img { min-height: 260px; }
  .blog-featured__body { padding: 36px 36px 32px; }

  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }

  .related-grid { grid-template-columns: repeat(2, 1fr); }

  .skel-featured { grid-template-columns: 1fr; }
  .skel-featured-img { min-height: 240px; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .home-blog__grid { grid-template-columns: 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured__body { padding: 28px 24px; }
  .related-grid { grid-template-columns: 1fr; }
  .post-layout { padding: 24px 16px 60px; }
  .blog-main { padding: 40px 16px 60px; }
  .comment-form { padding: 24px 20px; }
  .breadcrumb { padding-top: calc(var(--header-h, 64px) + 16px); }
}
