/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #222;
  background:   radial-gradient(80% 120% at 90% 30%, #0e2a47 0%,  #050b17 55%, #020814 100%);
  padding: 20px;
}

/* Back to Home Button */
.back-home-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: rgb(6, 18, 59);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-home-btn:hover {
  background-color: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Blog Article */
.blog-post {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Header */
.post-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #111;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 30px;
}

/* Content */
.post-content h2 {
  font-size: 1.5rem;
  color: #222;
  margin-top: 25px;
  margin-bottom: 15px;
  border-left: 4px solid #4CAF50;
  padding-left: 10px;
}

.post-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #333;
}

.post-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.post-content ul li {
  margin-bottom: 10px;
  color: #555;
  list-style-type: disc;
}

/* Footer */
.post-footer {
  margin-top: 40px;
  border-top: 1px solid #eee;
  padding-top: 20px;
  font-size: 1rem;
  color: #444;
}

.post-footer a {
  color: #4CAF50;
  text-decoration: none;
  font-weight: bold;
}

.post-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .blog-post {
    padding: 20px;
    margin: 20px;
  }

  .post-header h1 {
    font-size: 1.7rem;
  }

  .post-content h2 {
    font-size: 1.3rem;
  }
}
/* Responsive Enhancements */

/* Tablets and smaller screens */
@media screen and (max-width: 1024px) {
  body {
    padding: 15px;
  }

  .blog-post {
    padding: 25px;
    margin: 30px auto;
  }

  .post-header h1 {
    font-size: 1.9rem;
  }

  .post-content h2 {
    font-size: 1.4rem;
  }

  .post-content p,
  .post-content ul li {
    font-size: 0.95rem;
  }

  .back-home-btn {
    padding: 9px 16px;
    font-size: 0.9rem;
  }
}

/* Small screens / smartphones */
@media screen and (max-width: 600px) {
  body {
    padding: 10px;
  }

  .blog-post {
    padding: 20px;
    margin: 20px 10px;
  }

  .post-header h1 {
    font-size: 1.5rem;
  }

  .post-content h2 {
    font-size: 1.2rem;
    padding-left: 8px;
  }

  .post-content p,
  .post-content ul li {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .post-footer {
    font-size: 0.9rem;
    padding-top: 15px;
  }

  .back-home-btn {
    top: 15px;
    left: 15px;
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* Very small screens (phones in portrait) */
@media screen and (max-width: 400px) {
  .blog-post {
    padding: 15px;
    margin: 15px 5px;
  }

  .post-header h1 {
    font-size: 1.3rem;
  }

  .post-content h2 {
    font-size: 1.1rem;
  }

  .post-content p,
  .post-content ul li {
    font-size: 0.85rem;
  }

  .back-home-btn {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
}
