/* blog.css */

.blog-wrapper {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  max-width: 860px;
  margin: 0 auto;
}

/* BLOG POST — IMAGEN RAW (full-width hero, always first after breadcrumb) */
.blog-imagen-raw-wrap {
  margin: 0 0 2rem 0;
  padding: 0;
  width: 100%;
  line-height: 0;               /* removes bottom whitespace under img */
}

.blog-imagen-raw {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* BLOG HEADER — sits below the hero image */
.blog-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.blog-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.blog-meta {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* CONTENT SECTIONS */
.blog-section {
  margin-bottom: 2.5rem;
}

.blog-section h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-weight: 700;
}

.blog-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.2rem;
}

/* FAQS */
.blog-faqs {
  margin: 3.5rem 0;
  background: var(--color-bg);
  padding: 2.5rem;
  border-radius: var(--radius);
}

.blog-faqs h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-question {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.faq-answer {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-muted);
}

/* CTA */
.blog-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 3rem;
  box-shadow: var(--shadow-lg);
}

.blog-cta p {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.btn-cta-ranking {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta-ranking:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  color: var(--color-primary);
  text-decoration: none;
}

@media (max-width: 640px) {
  .blog-wrapper { padding: 1.2rem; }
  .blog-faqs { padding: 1.5rem; }
  .blog-cta { padding: 2rem 1.5rem; }
}
