/* Blog List Styles */
.blog-list {
  list-style: none;
}

.blog-list li {
  padding: 1.5em 0;
  border-bottom: 1px solid #e0e0e0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  animation: fadeInUp 0.6s ease forwards;
  animation-fill-mode: both;
}

.blog-list li:nth-child(1) { animation-delay: 0.1s; }
.blog-list li:nth-child(2) { animation-delay: 0.2s; }
.blog-list li:nth-child(3) { animation-delay: 0.3s; }
.blog-list li:nth-child(4) { animation-delay: 0.4s; }
.blog-list li:nth-child(5) { animation-delay: 0.5s; }

.blog-list li:last-child {
  border-bottom: none;
}

.blog-list a {
  font-size: 1.3rem;
  font-weight: 600;
  word-break: break-word;
  display: block;
  transition: all 0.3s ease;
  padding: 0.5em 0;
  color: var(--color-primary, #059669);
}

.blog-list a:hover {
  color: var(--color-primary-dark, #047857);
  padding-left: 0.7em;
  text-shadow: 0 0 8px var(--color-primary-30, rgba(5, 150, 105, 0.3));
  font-weight: 700;
}

.blog-list a:active {
  color: var(--color-primary-dark, #047857);
  background-color: #f5f5f5;
}

.blog-list .post-date {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.25em;
}

/* Article Styles */
article {
  background-color: #fff;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--color-primary-10, rgba(5, 150, 105, 0.1));
  word-wrap: break-word;
  overflow-wrap: break-word;
  animation: fadeInUp 0.7s ease;
  transition: all 0.3s ease;
  border-left: 5px solid transparent;
  border-image: linear-gradient(180deg, var(--color-primary, #059669), var(--color-primary-10, rgba(5, 150, 105, 0.2))) 1;
}

article:hover {
  box-shadow: 0 8px 28px var(--color-primary-10, rgba(5, 150, 105, 0.15));
  transform: translateY(-2px);
}

article header {
  border-bottom: 2px solid var(--color-primary, #059669);
  padding-bottom: 1.5em;
  margin-bottom: 1.5em;
  background: none;
  box-shadow: none;
}

article header h1 {
  margin: 0;
  color: var(--color-primary-dark, #047857);
  word-break: break-word;
  font-weight: 700;
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 1em 0;
  display: block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

article img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  overflow-x: auto;
}

article table th,
article table td {
  border: 1px solid #e0e0e0;
  padding: 0.75em;
  text-align: left;
  word-break: break-word;
}

article table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

article table tr:nth-child(even) {
  background-color: #fafafa;
}

/* Mobile Responsive article */

/* Article CTA */
.article-cta {
  margin: 2.5em 0 1.5em;
  padding: 2.5em;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 22px;
  border: 1px solid rgba(11,94,215,0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0b5ed7, #25d366);
}

.article-cta h2 {
  color: #084c9e;
  margin: 0 0 0.5em;
  font-size: 1.4rem;
}

.article-cta p {
  color: #374151;
  margin: 0 0 1.5em;
  font-size: 1rem;
  line-height: 1.6;
}

.article-cta-buttons {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-whatsapp,
.btn-cta-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.75em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-cta-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.3);
}

.btn-cta-whatsapp:hover {
  background: linear-gradient(135deg, #1da851, #0e7166);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-cta-contact {
  background: linear-gradient(135deg, #0b5ed7, #2563eb);
  color: #fff;
}

.btn-cta-contact:hover {
  background: linear-gradient(135deg, #084c9e, #1d4ed8);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(11,94,215,0.35);
}

@media (max-width: 600px) {
  .article-cta {
    padding: 1.5em 1em;
    margin: 2em -1em 1em;
    border-radius: 0;
  }

  .article-cta h2 {
    font-size: 1.2rem;
  }

  .article-cta-buttons {
    flex-direction: column;
  }

  .btn-cta-whatsapp,
  .btn-cta-contact {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  article {
    padding: 1.5em;
    border-radius: 4px;
  }
  
  article header {
    padding-bottom: 1em;
    margin-bottom: 1em;
  }
  
  article header h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  article {
    padding: 1em;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #e0e0e0;
  }
  
  article header {
    padding-bottom: 0.75em;
    margin-bottom: 1em;
    border-bottom: 1px solid #e0e0e0;
  }
  
  article header h1 {
    font-size: 1.25rem;
    line-height: 1.3;
  }
  
  article img {
    margin: 1em -1em;
    border-radius: 0;
    width: calc(100% + 2em);
  }
  
  article table {
    font-size: 0.9rem;
    margin: 1em -1em;
  }
  
  article table th,
  article table td {
    padding: 0.5em;
  }
  
  article h2 {
    font-size: 1.25rem;
    margin-top: 1.25em;
  }
  
  article h3 {
    font-size: 1.1rem;
  }
  
  .blog-list li {
    padding: 1em 0;
  }
  
  .blog-list a {
    font-size: 1.1rem;
  }
}
