/* ===== All Posts Page ===== */

#all-posts {
  max-width: 900px;
  margin: 0 auto;
}

#all-posts h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #33ff7a;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #33ff7a;
  display: inline-block;
  padding-bottom: 0.2rem;
  margin-bottom: 1.5rem;
}

/* Each fetched blog post, wrapped in .blog-entry by allPosts.js */
#posts-list .blog-entry {
  background: rgba(31, 31, 31, 0.6);
  border-left: 4px solid #33ff7a;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

#posts-list .blog-entry h3 {
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

#posts-list .blog-entry p {
  margin-bottom: 0.5rem;
}

#posts-list .blog-entry a {
  color: #33ff7a;
}

#posts-list .blog-entry a:hover {
  color: #ffffff;
}

/* ===== Pagination Controls ===== */

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.pagination-controls button {
  background: #ffffff;
  color: #121212;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.pagination-controls button:hover:not(:disabled) {
  background: #33ff7a;
  transform: scale(1.05);
}

.pagination-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

#page-indicator {
  font-size: 1rem;
  color: #f0f0f0;
}