/* Estilos para a página do Blog */

.blog-content-page,
.blog-posts-grid,
body {
  overflow-x: hidden;
}

.blog-content-page {
  padding: 4rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.blog-grid-container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  align-items: start;
}

/* Grid de posts */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  overflow-y: hidden;
}

/* Cards dos posts */
.blog-card-page {
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}


.blog-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card-page:hover .blog-card-image img {
  transform: scale(1.05);
}

/* Estilo para a categoria na imagem */
.blog-category {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 5px 15px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 2;
  text-transform: uppercase;
}

/* Cores específicas para cada tipo de categoria */
.blog-category.blog {
  background-color: #ffd700;
  color: #000;
}

.blog-category.webinar {
  background-color: #41ad49;
  color: #fff;
}

/* Estilos para categorias adicionais comuns */
.blog-category.noticias {
  background-color: #ff5722;
  color: #fff;
}

.blog-category.tutorial {
  background-color: #2196f3;
  color: #fff;
}

.blog-category.evento {
  background-color: #9c27b0;
  color: #fff;
}

.blog-category.artigo {
  background-color: #607d8b;
  color: #fff;
}

/* Estilo padrão para outras categorias não especificadas */
.blog-category {
  background-color: #333;
  color: #fff;
}

.blog-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #333;
}

.blog-card-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: #41ad49;
}

.blog-card-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Estilo para o botão "Ler mais" amarelo com seta */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  color: #ffd700;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0;
  border-radius: 0;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.blog-read-more i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.blog-read-more:hover {
  background-color: transparent;
  color: #e6c300;
  text-decoration: none;
}

.blog-read-more:hover i {
  transform: translateX(3px);
}

/* Sidebar */
.blog-sidebar {
  align-self: start;
  position: sticky;
}

.sidebar-widget {
  margin-bottom: 30px;
  padding-left: 20px;
}

.sidebar-widget h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

/* Pesquisa */
.search-box {
  margin-bottom: 25px;
  position: relative;
  border-radius: 8px;
  padding-left: 20px;
}

.search-box input[type="text"] {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box input[type="text"]:focus {
  border-color: #41ad49;
  outline: none;
  box-shadow: 0 0 0 3px rgba(65, 173, 73, 0.1);
}

.search-box button {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #41ad49;
  cursor: pointer;
  font-size: 1rem;
}

/* Lista de categorias */
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
  border-bottom: none;
}

.categories-list a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.categories-list a:hover {
  color: #41ad49;
}

.categories-list .count {
  background-color: #41ad49;
  color: white;
  border-radius: 30px;
  padding: 2px 8px;
  font-size: 0.75rem;
  display: inline-block;
}

/* Paginação */
.pagination {
  margin-top: 40px;
  margin-bottom: 20px;
  grid-column: 1 / -1;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 3px;
  border-radius: 4px;
  background: #fff;
  color: #333;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #41ad49;
  color: #fff;
}

.pagination .current {
  background: #41ad49;
  color: #fff;
}

/* Seção de Relacionados e Destaques */
.relacionados-section {
  padding: 4rem 0;
  background-color: #fff;
}

.relacionados-title {
  font-size: 2.2rem;
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
}

.destaques-text {
  position: relative;
  display: inline-block;
  font-family: "Hattinant", sans-serif;
  font-style: italic;
  color: #000;
  z-index: 1;
}

.destaques-text:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 40%;
  background-color: #ffd700;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.relacionados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.relacionado-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.relacionado-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.relacionado-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.relacionado-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.relacionado-card:hover .relacionado-image img {
  transform: scale(1.05);
}

.relacionado-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.relacionado-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #333;
}

.relacionado-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.relacionado-title a:hover {
  color: #41ad49;
}

.relacionado-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Responsividade para os relacionados */
@media (max-width: 992px) {
  .relacionados-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .relacionados-grid {
    grid-template-columns: 1fr;
  }
}

/* Post individual */
.blog-single-post {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.post-header {
  margin-bottom: 25px;
  position: relative;
}

.post-title {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 700;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.9rem;
  color: #666;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
}

.post-meta i {
  margin-right: 5px;
  color: #41ad49;
}

.post-meta a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-meta a:hover {
  color: #41ad49;
}

.post-thumbnail {
  margin-bottom: 25px;
  overflow: hidden;
  position: relative;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 30px;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #333;
}

.post-body a {
  color: #41ad49;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-body a:hover {
  text-decoration: underline;
}

.post-body ul,
.post-body ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.post-tags {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.post-tags i {
  color: #41ad49;
  margin-right: 8px;
}

.post-tags a {
  color: #41ad49;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-tags a:hover {
  text-decoration: underline;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.prev-post a,
.next-post a {
  display: inline-flex;
  align-items: center;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.prev-post a i,
.next-post a i {
  color: #41ad49;
}

.prev-post a i {
  margin-right: 8px;
}

.next-post a i {
  margin-left: 8px;
}

.prev-post a:hover,
.next-post a:hover {
  color: #41ad49;
}

/* Posts recentes no sidebar */
.recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.recent-posts-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-post-thumbnail {
  flex: 0 0 70px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
}

.recent-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-info {
  flex: 1;
}

.recent-post-info h4 {
  font-size: 0.95rem;
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.recent-post-info h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.recent-post-info h4 a:hover {
  color: #41ad49;
}

.recent-post-info .post-date {
  font-size: 0.8rem;
  color: #666;
}

/* Media queries para responsividade */
@media (max-width: 992px) {
  .blog-grid-container {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .post-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }

  .post-meta {
    flex-direction: column;
    gap: 8px;
  }
}
