/* ===== BLOG / ARTIGOS ===== */

/* ---- Blog index header ---- */
.blog-page-header {
  background: linear-gradient(135deg, #111111 0%, #1e1e1e 60%, #2a2a2a 100%);
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
}

.blog-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.blog-page-header .container { position: relative; z-index: 1; }

.blog-page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin: 0.75rem 0 1rem;
}

.blog-page-header p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ---- Blog grid (index) ---- */
.blog-section {
  padding: 80px 0 100px;
  background: var(--cream);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

/* ---- Blog card ---- */
.blog-card {
  background: var(--white);
  border-radius: 6px;
  border-top: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.blog-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-tag {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding-top: 1rem;
  margin-top: auto;
}

.blog-card-meta {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-card-link {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s;
}

.blog-card-link:hover { opacity: 0.7; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

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

.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ---- Article header ---- */
.article-header {
  background: linear-gradient(135deg, #111111 0%, #1e1e1e 60%, #2a2a2a 100%);
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.article-header .container { position: relative; z-index: 1; }

.article-tag {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,168,75,0.4);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  max-width: 720px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-header h1 em {
  color: var(--gold);
  font-style: normal;
}

.article-header-meta {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ---- Article body layout ---- */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  padding: 80px 0 100px;
  align-items: start;
}

/* ---- Article content typography ---- */
.article-content h2 {
  font-size: 1.5rem;
  color: var(--green-dark);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.15rem;
  color: var(--green-dark);
  margin: 2rem 0 0.75rem;
}

.article-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-content li {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.article-content strong {
  color: var(--green-dark);
  font-weight: 600;
}

.article-content > p:first-of-type {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.85;
}

/* Article quote highlight */
.article-quote {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

.article-quote p {
  font-size: 1.05rem;
  color: var(--green-dark);
  font-style: italic;
  margin: 0;
  line-height: 1.7;
}

/* Numbered steps box */
.article-steps {
  counter-reset: step;
  list-style: none;
  margin: 0 0 1.5rem !important;
  padding: 0;
  gap: 1rem !important;
}

.article-steps li {
  counter-increment: step;
  padding: 1.25rem 1.5rem 1.25rem 4rem;
  background: var(--cream);
  border-radius: 4px;
  position: relative;
  font-size: 0.97rem !important;
}

.article-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: bold;
}

/* ---- Sidebar ---- */
.article-sidebar { position: sticky; top: 100px; }

.sidebar-cta {
  background: var(--green-dark);
  border-radius: 6px;
  padding: 2rem;
  border-top: 3px solid var(--gold);
  margin-bottom: 2rem;
}

.sidebar-cta h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.sidebar-cta p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.sidebar-cta .btn-primary {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
}

.sidebar-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.sidebar-wa:hover { color: var(--gold); }

.sidebar-related {
  background: var(--cream);
  border-radius: 6px;
  padding: 1.75rem;
}

.sidebar-related h4 {
  font-size: 0.9rem;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.sidebar-related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-related-list li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s;
  display: block;
}

.sidebar-related-list li a:hover { color: var(--gold); }

.sidebar-related-list li a::before {
  content: '→ ';
  color: var(--gold);
  font-size: 0.8rem;
}

/* ---- Article footer CTA ---- */
.article-cta {
  background: linear-gradient(135deg, #111111 0%, #2a2a2a 100%);
  padding: 3.5rem 0;
  margin-top: 2rem;
}

.article-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.article-cta h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.article-cta p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.article-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .article-wrap {
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
  }
}

@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-wrap {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .sidebar-cta,
  .sidebar-related {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }

  .blog-page-header,
  .article-header {
    padding: 110px 0 60px;
  }

  .article-wrap { padding: 50px 0 70px; }

  .article-cta-inner { flex-direction: column; align-items: flex-start; }
}
