/* Reset + dark mode base */
body {
  margin: 0;
  padding: 0;
  background-color: #0a0a0a;
  font-family: 'Arial', sans-serif;
  color: #ffffff;
}

a {
  text-decoration: none;
  color: #00bfff;
}

a:hover {
  color: #009acc;
}

.page-wrapper {
  padding: 2rem 1rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* Logo + Heading */
.blog-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  max-width: 150px;
  margin-bottom: 1rem;
}

.headline {
  font-size: 2rem;
  letter-spacing: 2px;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

/* Post card styling */
.post-card {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: background 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.1);
}

.post-card:hover {
  background-color: #222222;
}

.post-cover {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.post-title {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #ffffff;
}

.post-desc {
  font-size: 0.95rem;
  color: #cccccc;
  margin: 0.5rem 0;
}

.post-date {
  font-size: 0.85rem;
  color: #888888;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  background-color: #00bfff;
  color: #000;
  transition: background 0.3s ease;
}

.read-more:hover {
  background-color: #009acc;
}

/* --- Call-to-Action Section --- */
.cta-section {
  background-color: #111111;
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: 3rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.15);
}

.cta-section h2 {
  font-size: 1.8rem;
  color: #00bfff;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: #cccccc;
  font-size: 1rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background-color: #00bfff;
  color: #000;
  padding: 12px 28px;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #009acc;
}

/* --- Back-to-Top Button --- */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background-color: #00bfff;
  color: #000;
  border: none;
  outline: none;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}

#back-to-top:hover {
  background-color: #009acc;
  transform: scale(1.1);
}

/* --- Post Page Styling --- */
.post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: #cccccc;
  padding: 1rem;
}

.post-content h2 {
  color: #00bfff;
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-content a {
  color: #00bfff;
  font-weight: bold;
}

.post-image {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  margin: 1rem auto;
  display: block;
}

.post-content .cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: #00bfff;
  color: #000;
  padding: 12px 24px;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.post-content .cta-button:hover {
  background-color: #009acc;
}
