/* 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;
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    margin-bottom: 30px;
  }
}

.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 {
  margin-top: 50px;
  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%; /* Deixa a foto redonda */
  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; /* Azul da marca */
  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;
}

/* Responsividade para celulares */
@media (max-width: 600px) {
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  
  .author-info {
    width: 100%;
  }
}