/* ========== BLOG HERO SECTION ========== */

.blog-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 12rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}

.blog-hero {
  background: linear-gradient(rgba(61, 79, 71, 0.9), rgba(61, 79, 71, 0.85)),
              url('/blog/banner.jpg') center/cover;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

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

.blog-hero h1 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.blog-hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ========== BLOG GRID SECTION ========== */

.blog-section {
  padding: 6rem 0;
  background: #fafafa;
}

/* Grid Responsivo Premium */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ========== BLOG CARD - PREMIUM DESIGN ========== */

.blog-card {
  background: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Image Container */
.blog-card-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--primary);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.95) contrast(1.05);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

/* Overlay escuro no hover */
.blog-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.blog-card:hover .blog-card-overlay {
  opacity: 1;
}

/* Texto "Ler artigo" */
.blog-card::after {
  content: 'Ler artigo completo →';
  position: absolute;
  top: 250px;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(61, 79, 71, 0.98), transparent);
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.blog-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Card Content */
.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: white;
}

.blog-card-content h2 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-content h2 {
  color: var(--primary-light);
}

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

/* Meta Info */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-light);
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.blog-meta i {
  color: var(--accent);
  font-size: 1rem;
}

.blog-tag {
  background: rgba(154, 139, 122, 0.12);
  color: var(--accent);
  padding: 0.35rem 0.85rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== BLOG CTA SECTION ========== */

.blog-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 5rem 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.blog-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

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

.blog-cta h2 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.blog-cta p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-weight: 300;
}

.cta-button-large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 3rem;
  background: white;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-button-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  background: #f8f8f8;
}

.cta-button-large i {
  font-size: 1.5rem;
}

/* ========== RESPONSIVE GRID ========== */

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

@media (max-width: 768px) {
  .blog-hero {
    padding: 5rem 0 4rem;
  }

  .blog-hero h1 {
    font-size: 2.5rem;
  }

  .blog-hero p {
    font-size: 1.1rem;
  }

  .blog-section {
    padding: 4rem 0;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-card-image {
    height: 240px;
  }

  .blog-card::after {
    top: 210px;
    padding: 1.25rem;
    font-size: 0.9rem;
  }

  .blog-card-content {
    padding: 1.75rem;
  }

  .blog-card-content h2 {
    font-size: 1.35rem;
  }

  .blog-excerpt {
    font-size: 0.95rem;
  }

  .blog-cta h2 {
    font-size: 2rem;
  }

  .blog-cta p {
    font-size: 1.05rem;
  }

  .cta-button-large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card-image {
    height: 200px;
  }

  .blog-card-content {
    padding: 1.5rem;
  }

  .blog-card-content h2 {
    font-size: 1.25rem;
  }

  .blog-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
}