:root {
  --bg: #07111f;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --accent: #1d9bf0;
  --accent-2: #22c55e;
  --text-dark: #111827;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(2, 8, 23, 0.24);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sarabun", "Noto Sans Thai", "Kanit", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(29, 155, 240, 0.26), transparent 34rem),
    linear-gradient(180deg, #07111f 0%, #0f172a 52%, #111827 100%);
  color: var(--text-light);
}

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 16px 18px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero h1 {
  margin: 14px 0 6px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 900;
}

.hero p {
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
}

.sections {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 14px 56px;
  display: grid;
  gap: 16px;
}

.card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text-dark);
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  background: #e2e8f0;
}

.card .placeholder-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 14px;
}

.card-body {
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.card-body h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 900;
}

.card-body p {
  margin: 0 0 10px;
  color: #334155;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.card-body p.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  display: inline-flex;
  margin: 0 0 14px;
  border: none;
  background: transparent;
  color: #2563eb;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(29, 155, 240, 0.28);
}

.cta-btn:active { transform: translateY(1px); }
.cta-btn.disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: default;
}

.empty-state {
  border: 1px dashed rgba(203, 213, 225, 0.35);
  border-radius: var(--radius);
  padding: 36px 16px;
  color: #cbd5e1;
  text-align: center;
  font-size: 15px;
}

.footer {
  padding: 8px 0 34px;
  color: #94a3b8;
  text-align: center;
  font-size: 12px;
}

@media (min-width: 760px) {
  .hero { padding-top: 46px; }
  .hero h1 { font-size: 38px; }
  .card-body { padding: 20px; }
}
