/* Estilos específicos do Blog que complementam o styles.css principal */

.blog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: start;
}

.mobile-filter-container {
  display: none;
  /* Hide on desktop by default */
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    display: none;
    /* Hide sidebar on mobile */
  }

  .mobile-filter-container {
    display: block;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
  }
}



.mobile-category-select {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 1rem;
  color: #333;
  margin-top: 5px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-content h2 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  line-height: 1.4;
  color: #24417c;
}

.post-content h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.post-content h2 a:hover {
  color: #8B3DFF;
}

.post-content p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.6;
}

.post-meta {
  font-size: 0.85rem;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* Estilos da Sidebar */
.blog-sidebar h3 {
  color: #24417c;
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.category-list {
  list-style: none;
  padding: 0;
}

.category-list li {
  margin-bottom: 8px;
}

.category-list a {
  text-decoration: none;
  color: #666;
  transition: all 0.2s;
  display: block;
  padding: 10px 15px;
  border-radius: 6px;
  background-color: #f8f9fa;
}

.category-list a:hover,
.category-list a.active {
  background-color: #24417c;
  color: #fff;
}

/* Estilos da Página de Artigo */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.article-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
}

.article-content h2 {
  margin-top: 30px;
}

/* =========================================
   ESTILOS DA CAIXA DE AUTOR (AUTHOR BOX)
   ========================================= */

.author-box {
  max-width: 800px;
  margin: 50px auto 0 auto;
  padding-top: 40px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 25px;
  align-items: center;
}

.author-image-wrapper {
  flex-shrink: 0;
}

.author-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f8f9fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-info {
  flex: 1;
}

.author-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 1px;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.author-name {
  font-size: 1.3rem;
  color: #24417c;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.author-bio {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
}

.author-social a {
  font-size: 0.9rem;
  color: #24417c;
  text-decoration: none;
  font-weight: 600;
}

.author-social a:hover {
  text-decoration: underline;
}

/* Typography refinements */
.article-content .lead {
  font-size: 1.2rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 25px;
  font-weight: 500;
}

.article-content blockquote {
  margin: 30px 0;
  padding: 20px 30px;
  border-left: 5px solid #24417c;
  background: #f8f9fa;
  font-style: italic;
  font-size: 1.1rem;
}

.article-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: bold;
  font-size: 0.9rem;
  color: #666;
}

.article-content .source {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed #eee;
}

/* Responsividade para celulares */
@media (max-width: 600px) {
  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .author-info {
    width: 100%;
  }

  /* Ajuste de espaço lateral em dispositivos móveis */
  .article-content {
    padding: 20px 15px;
    border-radius: 0;
    box-shadow: none;
  }

  /* Reduz o padding do container pai para ganhar mais espaço */
  main>.section {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .hero-content {
    padding: 40px 15px;
  }
}

/* Estilos da Paginação */
.pagination-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
  padding: 20px 0;
}

.pagination-btn {
  padding: 10px 18px;
  border: 1px solid #e0e0e0;
  background-color: #fff;
  color: #24417c;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover {
  background-color: #f1f8ff;
  border-color: #24417c;
  transform: translateY(-2px);
}

.pagination-btn.active {
  background-color: #24417c;
  border-color: #24417c;
  color: #fff;
  box-shadow: 0 4px 12px rgba(36, 65, 124, 0.2);
}