:root {
  --bg-body: #050814;
  --bg-panel: #0d1124;
  --bg-panel-soft: #151a35;
  --accent-gold: #ffcc66;
  --accent-cyan: #3bd7ff;
  --accent-pink: #ff4b8a;
  --accent-purple: #7c6cff;
  --text-main: #f5f5ff;
  --text-soft: #c1c4e6;
  --text-muted: #8b8fb2;
  --border-soft: #262b4f;
  --shadow-strong: 0 18px 45px rgba(0, 0, 0, 0.7);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 999px;
  --gap-lg: 32px;
  --gap-md: 20px;
  --gap-sm: 12px;
}

/* RESET พื้นฐาน */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* โครงหน้าเพจ */

.page {
  min-height: 100vh;
}

/* คอนเทนเนอร์ */

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* HERO SECTION */

.hero {
  padding: 20px;
  background-image: radial-gradient(circle at top left, #252a56, #050814 58%);
  border-bottom: 1px solid var(--border-soft);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
  gap: var(--gap-lg);
  align-items: center;
}

.hero-text {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
  padding-right: 16px;
  padding-bottom: 6px;
  padding-left: 16px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background-image: linear-gradient(90deg, var(--accent-pink), var(--accent-gold));
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.3;
}

.hero-subtitle {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text-soft);
}

/* HERO IMAGE */

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-figure {
  width: 100%;
  max-width: 380px;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background-image: linear-gradient(135deg, #23284f, #171a38);
  box-shadow: var(--shadow-strong);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.hero-caption {
  padding-top: 10px;
  padding-right: 14px;
  padding-bottom: 12px;
  padding-left: 14px;
  font-size: 12px;
  color: var(--text-muted);
  background-color: rgba(5, 8, 20, 0.9);
}

/* ARTICLE SECTION */

.article {
  padding: 20px;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-soft);
}

.article-inner {
  max-width: 1280px;
}

.section-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.story-text {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text-soft);
}

/* GALLERY SECTION */

.gallery {
  padding-top: 32px;
  padding-bottom: 32px;
  background-image: linear-gradient(135deg, #151a35, #050814);
  border-bottom: 1px solid var(--border-soft);
}

.gallery-title {
  margin-top: 0;
  margin-bottom: 6px;
}

.gallery-text {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 16px;
  color: var(--text-soft);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-lg);
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image: linear-gradient(145deg, #1b2144, #10142b);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding-top: 8px;
  padding-right: 12px;
  padding-bottom: 10px;
  padding-left: 12px;
  font-size: 13px;
  color: var(--text-soft);
}

/* CTA SECTION */

.cta {
  padding-top: 20px;
}

.cta-box {
  max-width: 1280px;
  border-radius: var(--radius-lg);
  padding-top: 18px;
  padding-right: 18px;
  padding-bottom: 18px;
  padding-left: 18px;
  background-image: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.75);
}

.cta-title {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 20px;
  color: #ffffff;
}

.cta-text {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  color: #f6f6ff;
}

/* RESPONSIVE */

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image {
    margin-top: 20px;
    justify-content: flex-start;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hero-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-item img {
    height: 190px;
  }

  .cta-box {
    padding-top: 16px;
    padding-right: 14px;
    padding-bottom: 16px;
    padding-left: 14px;
  }
}
