/* ========================= ESTILOS PARA PÁGINAS DE POSTS DE PROJETO ========================= */

/* HERO */
.post-hero {
  padding-top: 200px; /* Ajuste este valor conforme a altura do seu header */
  padding-bottom: 60px; 
  background-color: #F5F0E8;
  text-align: center;
  border-bottom: 1px solid #E7D7C1;
}
.post-hero h1 {
  font-size: 36px;  /* Um pouco menor que 42px */
  color: #3E2723;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.post-hero p {
  font-size: 18px;  /* Tamanho equilibrado para desktop */
  color: #8D6E63;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* CONTEÚDO DO POST */
.post-content {
  max-width: 900px;
  margin: 30px auto; /* Espaçamento reduzido para 30px no topo e base */
  padding: 30px 20px; /* Menos “ar” ao redor do texto */
  font-family: 'Roboto', sans-serif;
  font-size: 17px; /* Fonte levemente menor que 18px */
  line-height: 1.7;
  color: #5D4E37;
}

/* TAGS/CATEGORIAS */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px; /* Menos espaço entre tags e conteúdo */
  justify-content: flex-start; /* Alinhado à esquerda no desktop */
  width: 100%; /* Garante que ocupe toda a largura do container */
}

/* No mobile (até 768px), centraliza as tags */
@media (max-width: 768px) {
  .post-tags {
    justify-content: center;
  }
}

.post-tag {
  background-color: #F0E6D2;
  color: #8D6E63;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #E7D7C1;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.post-tag:hover {
  background-color: #E7D7C1;
  transform: translateY(-2px);
  color: #8B5A3C;
  border-color: #8B5A3C;
}


/* IMAGEM PRINCIPAL */
.post-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 5px 15px rgba(139, 90, 60, 0.1);
}
.image-caption {
  text-align: center;
  font-size: 14px;
  color: #8D6E63;
  margin-bottom: 30px;
  font-style: italic;
}

/* HEADINGS (H2) */
.post-content h2 {
  font-size: 26px;   /* Um pouco menor que 30px */
  color: #333;
  margin: 40px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
  font-weight: 600;
}

/* PARÁGRAFOS E LISTAS */
.post-content p {
  margin-bottom: 20px;
}
.post-content ul {
  margin-bottom: 25px;
  padding-left: 25px;
}
.post-content li {
  margin-bottom: 10px;
}

/* BLOCKQUOTES */
.post-content blockquote {
  background-color: #fdfdfd;
  border-left: 4px solid #4CAF50;
  padding: 20px 25px;
  margin: 25px 0;
  font-style: italic;
  color: #555;
  border-radius: 0 8px 8px 0;
}
.post-content blockquote em {
  display: block;
  text-align: right;
  margin-top: 10px;
  font-weight: 500;
}

/* BOTÃO CTA */
.post-content .btn {
  display: inline-block;
  background-color: #8B5A3C;
  color: #fff;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  margin-top: 25px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.post-content .btn:hover {
  background-color: #6D4428;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* IMAGENS ADICIONAIS */
.post-content .additional-image {
  width: 100%;
  margin: 25px 0 15px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ÁREA DE COMPARTILHAMENTO SOCIAL */
.social-share {
  margin: 40px 0;
  text-align: center;
}
.social-share p {
  margin-bottom: 15px;
  font-weight: 500;
}
.social-share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.social-share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f1f1f1;
  color: #666;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.social-share-buttons a:hover {
  transform: translateY(-3px);
}
.social-share-buttons .facebook:hover {
  background-color: #1877F2;
  color: #fff;
}
.social-share-buttons .twitter:hover {
  background-color: #1DA1F2;
  color: #fff;
}
.social-share-buttons .whatsapp:hover {
  background-color: #25D366;
  color: #fff;
}
.social-share-buttons .linkedin:hover {
  background-color: #0A66C2;
  color: #fff;
}

/* ÁREA DE AUTOR */
.author-box {
  margin: 40px 0;
  padding: 20px;
  background-color: #fdfdfd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-info {
  flex: 1;
}
.author-info h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: #333;
}
.author-info p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .post-hero {
    padding-top: 200px; /* Ajuste conforme a altura do seu header */
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .post-hero h1 {
    font-size: 28px;
  }
  .post-hero p {
    font-size: 16px;
  }
  .post-content {
    margin: 20px auto;
    padding: 20px;
  }
  .post-content h2 {
    font-size: 22px;
  }
  .post-content .btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
  }
  .post-tags {
    justify-content: flex-start;
  }
}

/* ========================= BOTÃO WHATSAPP ========================= */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
}
.whatsapp-icon {
  width: 50px;
  height: 50px;
}

/* ========================= BOTÃO VOLTAR AO TOPO ========================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: #8B5A3C;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background-color: #6D4428;
  transform: translateY(-3px);
}
.arrow-up-icon {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid currentColor;
  margin: 0 auto;
}

/* ========================= SLIDESHOW DE IMAGENS ========================= */
.post-gallery {
  max-width: 1000px;
  margin: 40px auto;
  position: relative;
}

.slideshow-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.slide {
  display: none;
}

.slide:first-child {
  display: block;
}

.slide.active {
  display: block !important;
}

.slide img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Efeito de fade para os slides */
.fade {
  -webkit-animation: fadeEffect 1.5s ease-in-out;
  animation: fadeEffect 1.5s ease-in-out;
}

@-webkit-keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Botões de navegação do slideshow */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: bold;
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  padding: 12px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  outline: none;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* ========================= RESPONSIVIDADE ========================= */
@media (max-width: 768px) {
  .prev, .next {
    font-size: 18px;
    padding: 8px;
  }
}

