/* =================================
   BLOG POST DETAIL PAGE
   ================================= */
.blog-detail-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.back-btn {
  background-color: #2d3748;
  color: white;
  border: none;
  padding: .625rem 1.25rem;
  border-radius: .25rem;
  cursor: pointer;
  margin-bottom: 1.25rem;
  font-weight: 500;
  transition: background-color .3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: clamp(.875rem, 2vw, 1rem);
}

.back-btn:hover {
  background-color: #0e7490;
}

.blog-content-section {
  max-width: 844px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

.blog-detail-date {
  font-size: clamp(.7rem, 2vw, .75rem);
  color: #666;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .0625rem;
}

.blog-detail-title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  color: #333;
  font-weight: bold;
  margin-bottom: 1.56rem;
  word-wrap: break-word;
}

.blog-detail-description {
  font-size: clamp(1rem, 2.5vw, 1rem);
  line-height: 1.6;
  color: #666;
  margin-bottom: 2.5rem;
}

.blog-detail-img {
  width: 100%;
  height: clamp(250px, 50vw, 488px);
  background: url('/images/hero-img.png') center/cover;
  border-radius: .5rem;
  margin-bottom: 2.25rem;
}

.blog-section-title {
  font-size: clamp(1.25rem, 3vw, 1.375rem);
  font-weight: bold;
  margin-bottom: .937rem;
  color: #333;
  word-wrap: break-word;
}

.blog-section-text {
  font-size: clamp(.95rem, 2.5vw, 1rem);
  line-height: 1.7;
  color: #555;
  margin-bottom: .937rem;
}

/* =================================
   Recent post section
   ================================= */
.recent-post-section {
  background-color: white;
  padding: 2.5rem 0;
  border-top: .0625rem solid #ddd;
}

.recent-post-title {
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: bold;
  margin-bottom: 1.875rem;
  color: #333;
}

.recent-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.875rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  max-width: 1200px;
}

/* Responsive Design */
@media(max-width: 1024px) {
  .blog-content-section {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .blog-detail-content {
    padding: 2rem 1.5rem;
  }

  .blog-content-section {
    padding: 0 1rem;
  }

  .recent-post-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

@media(max-width: 480px) {
  .blog-detail-content {
    padding: 2rem 1rem;
  }

  .blog-content-section {
    padding: 0 .5rem;
  }

  .recent-post-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1rem;
  }
}