/* General reset */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background-color: #f4f6f9;
  color: #333;
  line-height: 1.7;
}

/* Container */
.single-blog .container {
  max-width: 850px;
  margin: 60px auto;
  background: #fff;
  padding: 30px 35px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  animation: fadeIn 0.6s ease-in-out;
}

/* Blog Title */
.single-blog h1 {
  font-size: 2.4rem;
  color: #222;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
  text-align: left;
}

/* Blog Image */
.single-blog img {
  display: block;
  max-width: 100%;
  max-height: 400px;
  /* ✅ Prevents image from being too big */
  width: auto;
  height: auto;
  margin: 0 auto 25px;
  border-radius: 12px;
  object-fit: cover;
  /* ✅ Crops nicely instead of stretching */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Blog Content */
.single-blog p {
  font-size: 1.3rem;
  color: #444;
  margin-bottom: 20px;
  text-align: justify;
  line-height: 1.8;
}

/* Highlight first letter for style */
.single-blog p:first-letter {
  font-size: 2rem;
  font-weight: bold;
  color: #e74c3c;
  float: left;
  line-height: 1;
}

/* Back Button */
.back-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #e74c3c;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s ease;
  margin-top: 15px;
}

.back-btn:hover {
  background: #e74d3cd7;
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .single-blog .container {
    margin: 20px;
    padding: 20px;
    margin-top: 80px;
  }

  .single-blog h1 {
    font-size: 1.8rem;
    justify: left;
  }

  .single-blog img {
    max-height: 250px;
  }

  .single-blog p {
    font-size: 1.3rem;
  }
}

/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}