body {
  font-family: 'Kanit', sans-serif;
  padding-bottom: 40px; /* ✅ เพิ่มระยะห่างด้านล่างของหน้า */
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  border-top: 4px solid #2e7d32; /* เขียว */
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #2e7d32, #c0a040); /* เขียว-ทอง */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.knowless-cover {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.knowless-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.placeholder-image {
  background: #e2e8f0;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 12px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #64748b;
}

.knowless-category {
  background: linear-gradient(135deg, #2e7d32, #c0a040); /* เขียว-ทอง */
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.knowless-date::before {
  content: "📅 ";
}

.author-info::before {
  content: "✍️ ";
}

.reading-time::before {
  content: "⏱️ ";
}

.knowless-detail {
  font-size: 1rem;
  color: #334155;
  margin-bottom: 30px;
}

.knowless-detail p {
  margin-bottom: 1rem;
  text-align: justify;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 30px;
  background: linear-gradient(135deg, #2e7d32, #c0a040); /* เขียว-ทอง */
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.back-btn:hover {
  opacity: 0.9;
}

@media (max-width: 600px) {
  .container {
    padding: 16px;
    border-radius: 12px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .knowless-detail {
    font-size: 0.95rem;
  }

  .back-btn {
    width: 100%;
    justify-content: center;
  }
}
/* ================= DARK MODE ================= */
body.dark-mode {
  background: #121212 !important;
  color: #ddd !important;
}

/* Container */
body.dark-mode .container {
  background: #1a1a1a !important;
  border-top: 4px solid #c0a040 !important;
  box-shadow: 0 8px 24px rgba(192, 160, 64, 0.15) !important;
}

/* Heading */
body.dark-mode h1 {
  background: linear-gradient(135deg, #c0a040, #2e7d32) !important;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cover */
body.dark-mode .knowless-cover {
  box-shadow: 0 4px 14px rgba(192, 160, 64, 0.08) !important;
}

body.dark-mode .placeholder-image {
  background: #2a2a2a !important;
  color: #aaa !important;
}

/* Meta */
body.dark-mode .article-meta {
  color: #aaa !important;
}

body.dark-mode .knowless-category {
  background: linear-gradient(135deg, #c0a040, #9c7a2e) !important;
  color: #121212 !important;
}

body.dark-mode .knowless-date::before,
body.dark-mode .author-info::before,
body.dark-mode .reading-time::before {
  opacity: 0.85;
}

/* Detail */
body.dark-mode .knowless-detail {
  color: #ddd !important;
}

body.dark-mode .knowless-detail p {
  color: #ccc !important;
}

/* Back button */
body.dark-mode .back-btn {
  background: linear-gradient(135deg, #c0a040, #9c7a2e) !important;
  color: #121212 !important;
}

body.dark-mode .back-btn:hover {
  opacity: 0.85 !important;
}
