/* Estilos específicos para o blog */

.hero-content {
    flex: 1 1 55%;
    margin-top: 20%;
    max-width: unset!important;
}

/* Layout de blog */
.blog-page .hero {
  min-height: 40vh;
  height: 40vh;
}

/* Grid de posts */
.posts-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  flex: 1 1 70%;
  max-width: 70%;
}

.sidebar {
  flex: 1 1 25%;
  max-width: 25%;
  margin-left: 5%;
}

/* Cards de posts */
.post-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.post-image {
  height: 200px;
  overflow: hidden;
}

.post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-card:hover .post-thumbnail {
  transform: scale(1.05);
}

.post-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 10px;
}

.post-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #1e3a8a;
  line-height: 1.4;
}

.post-excerpt {
  color: #4b5563;
  margin-bottom: 15px;
  flex-grow: 1;
}

.read-more {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.read-more i {
  font-size: 0.8rem;
  margin-left: 5px;
  transition: transform 0.2s;
}

.read-more:hover i {
  transform: translateX(3px);
}

/* Botão de carregar mais */
.load-more-container {
  text-align: center;
  margin: 30px 0;
}

.load-more-button {
  background-color: #f59e0b;
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.load-more-button:hover {
  background-color: #d97706;
  transform: translateY(-2px);
}

/* Sidebar */
.sidebar-block {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-block h3 {
  color: #1e3a8a;
  margin-bottom: 15px;
  font-size: 1.2rem;
  position: relative;
}

.sidebar-block h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: #f59e0b;
  margin-top: 8px;
}

.sidebar-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-block ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-block ul li:last-child {
  border-bottom: none;
}

.sidebar-block ul li a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  justify-content: space-between;
}

.sidebar-block ul li a:hover {
  color: #2563eb;
}

/* Página de post individual */
.blog-post-page .post-section {
  padding-top: 120px;
}

.post-header {
  text-align: center;
  margin-bottom: 30px;
}

.post-header .post-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #1e3a8a;
  line-height: 1.2;
}

.post-header .post-meta {
  justify-content: center;
  gap: 20px;
}

.post-featured-image {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  max-height: 500px;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.post-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.post-content {
  flex: 1 1 65%;
}

.post-content p, 
.post-content ul, 
.post-content ol {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #374151;
}

.post-content h2 {
  font-size: 1.8rem;
  color: #1e3a8a;
  margin: 40px 0 20px;
}

.post-content h3 {
  font-size: 1.5rem;
  color: #1e3a8a;
  margin: 30px 0 15px;
}

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

.post-content pre {
  margin: 20px 0;
  border-radius: 8px;
}

.post-tags {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.post-tags span {
  font-weight: 500;
  color: #4b5563;
}

.tag {
  background-color: #eff6ff;
  color: #2563eb;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.tag:hover {
  background-color: #dbeafe;
}

.post-share {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 15px;
}

.post-share span {
  font-weight: 500;
  color: #4b5563;
}

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s;
}

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

.facebook {
  background-color: #1877f2;
}

.twitter {
  background-color: #1da1f2;
}

.linkedin {
  background-color: #0a66c2;
}

.whatsapp {
  background-color: #25d366;
}

/* Informações do autor */
.author-info {
  margin-bottom: 30px;
}

.author-bio {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-bio h4 {
  margin-bottom: 10px;
  color: #1e3a8a;
}

.author-bio p {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Posts relacionados */
.related-posts {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e5e7eb;
}

.related-posts .section-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #1e3a8a;
  text-align: center;
}

.related-posts .posts-grid {
  max-width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Sem posts */
.no-posts {
  text-align: center;
  padding: 50px 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.no-posts h2 {
  color: #1e3a8a;
  margin-bottom: 15px;
}

.no-posts p {
  color: #4b5563;
}

/* Responsividade */
@media (max-width: 992px) {
  .posts-grid,
  .post-content {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .sidebar {
    flex: 1 1 100%;
    max-width: 100%;
    margin-left: 0;
    margin-top: 40px;
  }
  
  .post-header .post-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .post-content-wrapper {
    flex-direction: column;
  }
  
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .post-header .post-title {
    font-size: 1.8rem;
  }
  
  .blog-post-page .post-section {
    padding-top: 100px;
  }
}

@media (max-width: 576px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .post-header .post-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .post-share {
    justify-content: center;
  }
}
