/* Blog CSS */

.blog-section {
  padding: 60px 0;
}

.blog-intro {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

.blog-intro h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
}

.blog-intro p {
  font-size: 18px;
  line-height: 1.6;
  color: #666;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.blog-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-card-image {
  height: 220px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-card-content {
  padding: 25px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
}

.blog-card-date {
  color: #777;
  margin-right: 15px;
}

.blog-card-category {
  background-color: #f0f5ff;
  color: #1a5fb4;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.blog-card-title {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 15px;
}

.blog-card-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: #1a5fb4;
}

.blog-card-excerpt {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 16px;
}

.blog-card-readmore {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: #1a5fb4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-readmore i {
  margin-left: 5px;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.blog-card-readmore:hover {
  color: #0c4a9e;
}

.blog-card-readmore:hover i {
  transform: translateX(3px);
}

.blog-newsletter {
  background-color: #f8f9fa;
  padding: 50px;
  border-radius: 8px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.blog-newsletter h3 {
  margin-bottom: 15px;
  font-size: 24px;
  color: #333;
}

.blog-newsletter p {
  margin-bottom: 25px;
  color: #666;
  font-size: 16px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
}

.newsletter-form button {
  border-radius: 0 4px 4px 0;
  padding: 12px 20px;
}

/* Blog Post Styles */
.blog-post {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-post-header {
  margin-bottom: 40px;
}

.blog-post-meta {
  margin-bottom: 15px;
  font-size: 16px;
  color: #777;
  display: flex;
  align-items: center;
}

.blog-post-meta .separator {
  margin: 0 10px;
  color: #ddd;
}

.blog-post-meta .category {
  background-color: #f0f5ff;
  color: #1a5fb4;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.blog-post-title {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 25px;
  color: #333;
}

.blog-post-featured-image {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-content {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
}

.blog-post-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 28px;
  color: #333;
}

.blog-post-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 24px;
  color: #333;
}

.blog-post-content p {
  margin-bottom: 20px;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.blog-post-content li {
  margin-bottom: 10px;
}

.blog-post-content a {
  color: #1a5fb4;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 95, 180, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.blog-post-content a:hover {
  color: #0c4a9e;
  border-color: rgba(12, 74, 158, 0.5);
}

.blog-post-content blockquote {
  margin: 30px 0;
  padding: 20px 30px;
  border-left: 4px solid #1a5fb4;
  background-color: #f8f9fa;
  font-style: italic;
  color: #555;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 25px 0;
}

.blog-post-content code {
  background-color: #f5f5f5;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

.blog-post-content pre {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 25px 0;
}

.blog-post-content pre code {
  background-color: transparent;
  padding: 0;
}

.blog-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.blog-related h3 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
}

.related-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.blog-post-share {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
}

.blog-post-share span {
  margin-right: 15px;
  font-weight: 500;
}

.share-buttons {
  display: flex;
}

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.share-button:hover {
  transform: translateY(-3px);
}

.share-twitter {
  background-color: #1da1f2;
}
.share-twitter:hover {
  background-color: #0c85d0;
}

.share-facebook {
  background-color: #3b5998;
}
.share-facebook:hover {
  background-color: #2d4373;
}

.share-linkedin {
  background-color: #0077b5;
}
.share-linkedin:hover {
  background-color: #00669c;
}

.share-whatsapp {
  background-color: #25d366;
}
.share-whatsapp:hover {
  background-color: #1da851;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-newsletter {
    padding: 30px 20px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 4px;
    margin-bottom: 15px;
  }
  
  .newsletter-form button {
    border-radius: 4px;
    width: 100%;
  }
  
  .blog-post-title {
    font-size: 28px;
  }
  
  .blog-post-content {
    font-size: 16px;
  }
  
  .related-posts {
    grid-template-columns: 1fr;
  }
} 

/* Tabelas em posts */
.table-responsive {
  overflow-x: auto;
  margin: 25px 0;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.blog-table th,
.blog-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #e0e0e0;
}

.blog-table thead tr {
  background-color: #0062ff;
  color: #fff;
}

.blog-table tbody tr:nth-child(even) {
  background-color: #f5f8ff;
}

.blog-table tbody tr:hover {
  background-color: #eef2ff;
}

/* Callout box */
.blog-post-callout {
  background-color: #f0f5ff;
  border-left: 4px solid #0062ff;
  border-radius: 0 8px 8px 0;
  padding: 20px 25px;
  margin: 30px 0;
}

.blog-post-callout h4 {
  color: #0062ff;
  margin-bottom: 10px;
  font-size: 17px;
}

.blog-post-callout h4 i {
  margin-right: 8px;
}

.blog-post-callout p {
  margin-bottom: 0;
  color: #444;
  font-size: 16px;
}

/* Code blocks melhorados */
.blog-post-content pre {
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 22px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 25px 0;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid #333;
}

.blog-post-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.blog-post-content code {
  background-color: #f0f0f0;
  color: #c7254e;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.88em;
}

/* Meta autor */
.post-author {
  margin-left: 20px;
  color: #666;
  font-size: 15px;
}

.post-author i,
.post-category i {
  margin-right: 5px;
}

.post-category {
  background-color: #f0f5ff;
  color: #0062ff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Share buttons */
.share-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-button:hover { transform: translateY(-3px); opacity: 0.9; }
.share-button.facebook  { background-color: #3b5998; }
.share-button.twitter   { background-color: #1da1f2; }
.share-button.linkedin  { background-color: #0077b5; }
.share-button.whatsapp  { background-color: #25d366; }

/* Fonte do conteúdo */
.blog-post-source {
  margin-top: 40px;
  padding: 16px 20px;
  background-color: #f5f5f5;
  border-radius: 6px;
  border-left: 3px solid #e0e0e0;
  font-size: 14px;
  color: #666;
}

.blog-post-source p {
  margin-bottom: 4px;
}

.blog-post-source p:last-child {
  margin-bottom: 0;
}

.blog-post-source a {
  color: #0062ff;
  border-bottom: none;
}

.blog-post-source a:hover {
  text-decoration: underline;
}
