.post-page {
  padding: 40px 0 80px;
  min-height: 60vh;
  background: #fff;
}

.post-loading {
  text-align: center;
  padding: 80px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #eee;
  border-top-color: #3a78c9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.post-loading p {
  color: #999;
  font-family: 'Poppins', sans-serif;
}

.post-header {
  max-width: 800px;
  margin: 0 auto 32px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3a78c9;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 24px;
  transition: gap 0.3s;
  font-family: 'Poppins', sans-serif;
}

.post-back:hover {
  gap: 10px;
}

.post-tag {
  display: inline-block;
  background: rgba(58, 120, 201, 0.08);
  color: #3a78c9;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.post-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #1a1a2e;
  font-family: 'Poppins', sans-serif;
}

.post-meta {
  display: flex;
  gap: 24px;
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.post-meta i {
  margin-right: 6px;
  color: #3a78c9;
}

.post-image {
  width: 100%;
  height: 440px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 32px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
}

.post-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: #1a1a2e;
  line-height: 1.3;
}

.post-body h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 16px 0 6px;
  color: #1a1a2e;
}

.post-body p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 12px;
  font-weight: 300;
}

.post-body strong {
  color: #1a1a2e;
  font-weight: 600;
}

.post-body img {
  width: 100%;
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.post-body ul {
  margin: 8px 0 14px;
  padding-left: 24px;
  list-style: disc;
}

.post-body ul li {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 6px;
}

.post-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.post-main {
  flex: 1;
  min-width: 0;
}

.post-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #eee;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #3a78c9;
  font-family: 'Poppins', sans-serif;
}

.sidebar-title i {
  color: #3a78c9;
  margin-right: 8px;
}

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

.sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

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

.sidebar-list a {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  display: block;
  transition: color 0.2s;
  font-family: 'Open Sans', sans-serif;
}

.sidebar-list a:hover {
  color: #3a78c9;
}

.sidebar-cat-count {
  float: right;
  background: #3a78c9;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
}

@media (max-width: 992px) {
  .post-layout {
    flex-direction: column;
  }
  .post-sidebar {
    width: 100%;
    position: static;
  }
}

.post-nav {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

/* ---- Posts Relacionados ---- */
.related-posts {
  display: none;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #eef2f7;
}

.related-posts.visible {
  display: block;
}

.related-posts-header {
  text-align: center;
  margin-bottom: 32px;
}

.related-posts-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.related-posts-title i {
  color: #3a78c9;
}

.related-posts-subtitle {
  color: #999;
  font-size: 0.9rem;
  font-family: 'Open Sans', sans-serif;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #eef2f7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-color: transparent;
}

.related-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.related-card:hover .related-card-img {
  transform: scale(1.08);
}

.related-card-body {
  padding: 18px 20px 20px;
}

.related-card-tag {
  display: inline-block;
  background: rgba(58, 120, 201, 0.08);
  color: #3a78c9;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.related-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #1a1a2e;
  font-family: 'Poppins', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-resumo {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Open Sans', sans-serif;
}

.related-card-meta {
  font-size: 0.75rem;
  color: #aaa;
}

.related-card-meta i {
  margin-right: 4px;
  color: #3a78c9;
}

@media (max-width: 992px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  .related-card-img {
    height: 140px;
  }
  .related-posts-title {
    font-size: 1.2rem;
  }
}

/* ---- Galeria (Carrossel) ---- */
.post-gallery {
  max-width: 720px;
  margin: 40px auto 0;
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-title i {
  color: #3a78c9;
}

.gallery-track-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-track {
  display: flex;
  transition: transform 0.4s ease;
}

.gallery-slide {
  min-width: 100%;
}

.gallery-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #1a1a2e;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gallery-btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.gallery-dot.active {
  background: #3a78c9;
  border-color: #3a78c9;
}

@media (max-width: 768px) {
  .gallery-slide img { height: 260px; }
  .gallery-btn { width: 34px; height: 34px; font-size: 0.85rem; }
}

/* ---- Comentários ---- */
.post-comments {
  max-width: 720px;
  margin: 48px auto 0;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.comments-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comments-title i { color: #3a78c9; }

.comments-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.comments-form input,
.comments-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}

.comments-form input:focus,
.comments-form textarea:focus {
  border-color: #3a78c9;
}

.comments-form textarea {
  min-height: 100px;
  resize: vertical;
}

.comments-form .btn {
  align-self: flex-end;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comments-empty {
  color: #999;
  font-size: 0.95rem;
  text-align: center;
  padding: 24px 0;
}

.comment-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #eee;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-head strong {
  font-size: 0.95rem;
  color: #1a1a2e;
}

.comment-date {
  font-size: 0.8rem;
  color: #999;
}

.comment-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.post-error-box {
  text-align: center;
  padding: 80px 0;
}

.post-error-box i {
  font-size: 3rem;
  color: #e74c3c;
  margin-bottom: 16px;
}

.post-error-box h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #1a1a2e;
  font-weight: 700;
}

.post-error-box p {
  color: #777;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .post-header h1 { font-size: 1.5rem; }
  .post-image { height: 240px; border-radius: 8px; }
  .post-meta { flex-direction: column; gap: 8px; }
  .post-body h2 { font-size: 1.2rem; }
  .post-body p { font-size: 0.95rem; }
}
