/* ============================================
   BLOG — Estúdio Lepe
   Índice (blog.html) + Posts
   Paleta: lavanda + roxo acento + glow rosa
   ============================================ */

:root {
  --blog-bg-light:  #f4f1fa;
  --blog-accent:    #7c5cbf;
  --blog-accent-dk: #5a3d9e;
  --blog-accent-lt: #a78bdb;
  --blog-pink:      #f58dba;
  --blog-dark:      #102a2e;
  --blog-text:      #3a5559;
  --blog-text-soft: #4d6b70;
  --blog-text-mute: #6b8a8e;
}


/* ============================================
   ÍNDICE DO BLOG — Grid de cards
   ============================================ */
.blog-list {
  background: #ffffff;
  padding: 5rem 0 6rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(124, 92, 191, 0.12);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(124, 92, 191, 0.16);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-card-image {
  aspect-ratio: 1200 / 630;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.blog-card-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.8rem;
  color: var(--blog-text-mute);
}

.blog-card-title {
  font-family: var(--font-display, 'Baloo 2', cursive);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blog-dark);
  line-height: 1.3;
  margin-bottom: 0.85rem;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--blog-accent);
}

.blog-card-excerpt {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  color: var(--blog-text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blog-accent);
  transition: gap 0.3s ease;
}

.blog-card:hover .blog-card-cta {
  gap: 0.85rem;
}


/* ============================================
   POST — Article
   ============================================ */
.blog-article {
  padding: 4rem 0 6rem;
  background: #ffffff;
}

.blog-article-header {
  max-width: 860px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

/* Breadcrumb */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.85rem;
}

.blog-breadcrumb a {
  color: var(--blog-text-mute);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-breadcrumb a:hover {
  color: var(--blog-accent);
}

.blog-breadcrumb span {
  color: var(--blog-text-mute);
}

.blog-breadcrumb-current {
  color: var(--blog-accent) !important;
  font-weight: 600;
}

/* Meta */
.blog-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.blog-article-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.85rem;
  color: var(--blog-text-mute);
}

/* Título */
.blog-article-title {
  font-family: var(--font-display, 'Baloo 2', cursive);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--blog-dark);
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

/* Imagem hero */
.blog-article-hero {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(124, 92, 191, 0.12);
}

.blog-article-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.25rem;
}

/* Body */
.blog-article-body {
  max-width: 780px;
  margin: 0 auto;
}

.blog-section {
  margin-bottom: 3.5rem;
}

/* Lead */
.blog-lead {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 1.25rem;
  color: var(--blog-text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Paragraphs */
.blog-section p {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  color: var(--blog-text-soft);
  line-height: 1.85;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.blog-section strong {
  color: var(--blog-accent);
  font-weight: 700;
}

/* Links */
.blog-link {
  color: var(--blog-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.blog-link:hover {
  color: var(--blog-accent-dk);
}

/* Headings */
.blog-heading {
  font-family: var(--font-display, 'Baloo 2', cursive);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--blog-dark);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(124, 92, 191, 0.15);
}

.blog-subheading {
  font-family: var(--font-display, 'Baloo 2', cursive);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blog-dark);
  margin: 2rem 0 1rem;
}


/* ============================================
   CHECKLIST / BULLET LIST
   ============================================ */
.blog-checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.blog-checklist li {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  color: var(--blog-text-soft);
  line-height: 1.75;
  font-size: 0.95rem;
  padding-left: 1.75rem;
  position: relative;
}

.blog-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blog-accent);
}

.blog-checklist li strong {
  color: var(--blog-accent);
  font-weight: 700;
}


/* ============================================
   STEPS (Passo a passo)
   ============================================ */
.blog-step {
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid rgba(124, 92, 191, 0.2);
}

.blog-step-title {
  font-family: var(--font-display, 'Baloo 2', cursive);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blog-dark);
  margin-bottom: 0.75rem;
}


/* ============================================
   IMAGES
   ============================================ */
.blog-image {
  margin: 2rem 0;
  border-radius: 1rem;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(16, 42, 46, 0.08);
}

.blog-image figcaption {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.85rem;
  color: var(--blog-text-mute);
  text-align: center;
  padding: 0.85rem 1rem 0;
  font-style: italic;
}


/* ============================================
   CALLOUT BOX (LGPD etc.)
   ============================================ */
.blog-callout {
  display: flex;
  gap: 1.25rem;
  background: var(--blog-bg-light);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  border-left: 4px solid var(--blog-accent);
  margin: 2rem 0;
  align-items: flex-start;
}

.blog-callout-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(124, 92, 191, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blog-accent);
}

.blog-callout p {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  color: var(--blog-text-soft);
  line-height: 1.75;
  font-size: 0.95rem;
  margin: 0;
}


/* ============================================
   TABLES
   ============================================ */
.blog-table-wrapper {
  margin: 2rem 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(16, 42, 46, 0.08);
  box-shadow: 0 8px 32px rgba(16, 42, 46, 0.05);
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

.blog-table thead {
  background: var(--blog-dark);
}

.blog-table thead th {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1.15rem 1.5rem;
  text-align: left;
}

.blog-table tbody tr {
  border-bottom: 1px solid rgba(16, 42, 46, 0.06);
  transition: background 0.2s ease;
}

.blog-table tbody tr:hover {
  background: var(--blog-bg-light);
}

.blog-table tbody tr:last-child {
  border-bottom: none;
}

.blog-table tbody td {
  padding: 1.15rem 1.5rem;
  color: var(--blog-text-soft);
  font-size: 0.92rem;
  line-height: 1.65;
  vertical-align: top;
}

.blog-table tbody td strong {
  color: var(--blog-accent);
  font-weight: 700;
}


/* ============================================
   CTA INTERNO
   ============================================ */
.blog-cta-internal {
  margin: 2.5rem 0;
  text-align: center;
}


/* ============================================
   LEIA TAMBÉM
   ============================================ */
.blog-read-also {
  background: var(--blog-bg-light);
  border-radius: 1.25rem;
  padding: 2.5rem;
  margin-top: 2rem;
}

.blog-read-also .blog-heading {
  border-bottom: none;
  margin-bottom: 1.25rem;
}

.blog-also-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-also-list li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  color: var(--blog-accent);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-radius: 0.85rem;
  border: 1px solid rgba(124, 92, 191, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-also-list li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 92, 191, 0.12);
  border-color: var(--blog-accent);
}

.blog-also-list li a svg {
  color: var(--blog-accent);
  flex-shrink: 0;
}


/* ============================================
   VOLTAR AO BLOG
   ============================================ */
.blog-back {
  margin-top: 3rem;
  text-align: center;
}


/* ============================================
   FIX — Remover linha vertical indesejada
   ============================================ */

/* Remove border-left de TUDO dentro do artigo */
.blog-article-body,
.blog-article-body * {
  border-left: 0;
}

/* Restaura APENAS nos elementos que devem ter borda */
.blog-step {
  border-left: 3px solid rgba(124, 92, 191, 0.2);
}

.blog-callout {
  border-left: 4px solid var(--blog-accent);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .blog-article {
    padding: 3rem 0 4rem;
  }

  .blog-article-header {
    margin-bottom: 2.5rem;
  }

  .blog-article-meta {
    gap: 0.75rem;
  }

  .blog-lead {
    font-size: 1.1rem;
  }

  .blog-callout {
    flex-direction: column;
    padding: 1.5rem;
  }

  .blog-table-wrapper {
    overflow-x: auto;
  }

  .blog-table {
    min-width: 580px;
  }

  .blog-step {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid rgba(124, 92, 191, 0.2);
    overflow: hidden;
  }

  .blog-read-also {
    padding: 1.75rem;
  }

  .blog-also-list li a {
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
  }
}