@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans Thai', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  background-color: #261717;
  color: #f5e8e8;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ===== Aurora Background ===== */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  mix-blend-mode: screen;
}

.aurora-1 {
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse at center, #ff0000 0%, #ff144400 70%);
  top: -20%;
  left: -10%;
  animation: auroraFloat1 10s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 70vw;
  height: 70vh;
  background: radial-gradient(ellipse at center, #ff1493 0%, #ff149300 70%);
  top: 10%;
  right: -15%;
  animation: auroraFloat2 12s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 60vw;
  height: 50vh;
  background: conic-gradient(from 180deg at 50% 50%, #ff0000 0deg, #ff1493 120deg, #ff000000 240deg);
  bottom: 5%;
  left: 20%;
  animation: auroraFloat3 9s ease-in-out infinite alternate;
  opacity: 0.2;
}

@keyframes auroraFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 6vh) scale(1.15); }
}
@keyframes auroraFloat2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-6vw, 8vh) scale(0.95); }
}
@keyframes auroraFloat3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(4vw, -5vh) rotate(30deg); }
}

/* ===== Layout Layers ===== */
.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ===== Announcement Bar ===== */
.header-announce {
  background: linear-gradient(90deg, #ff0000, #ff1493, #ff0000);
  background-size: 200% 100%;
  animation: announceScroll 8s linear infinite;
  text-align: center;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.04em;
}

@keyframes announceScroll {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ===== Header & Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(38, 23, 23, 0.85);
  border-bottom: 1px solid rgba(255, 20, 147, 0.2);
}

.header-nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  position: relative;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.12);
  border: 1px solid rgba(255, 20, 147, 0.25);
  color: #ffcce8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
  white-space: nowrap;
  min-height: 40px;
}

.nav-pill:hover {
  background: linear-gradient(135deg, #ff0000, #ff1493);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
}

.nav-brand {
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff0000, #ff1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ff1493;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 8px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 16px;
  color: #ffcce8;
  text-decoration: none;
  font-size: 15px;
  border-radius: 8px;
  min-height: 44px;
  transition: background 0.2s;
}

.mobile-nav-link:hover {
  background: rgba(255, 20, 147, 0.15);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "aside content"
    "aside figure";
  gap: 0;
  overflow: hidden;
  scroll-margin-top: 80px;
}

.hero-aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px 40px 32px;
  gap: 20px;
  border-right: 1px solid rgba(255, 20, 147, 0.18);
  background: rgba(38, 23, 23, 0.5);
  backdrop-filter: blur(8px);
}

.tag-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,0,0,0.25), rgba(255,20,147,0.25));
  border: 1px solid rgba(255, 20, 147, 0.4);
  font-size: 12px;
  font-weight: 600;
  color: #ff91cc;
  letter-spacing: 0.06em;
  transition: background 0.25s, color 0.25s;
}

.tag-badge:hover {
  background: linear-gradient(135deg, #ff0000, #ff1493);
  color: #fff;
}

.aside-slogan {
  font-size: 12px;
  color: rgba(255, 204, 232, 0.6);
  line-height: 1.6;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  align-self: flex-start;
  margin-top: 12px;
}

.hero-figure {
  grid-area: figure;
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,0,0,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,0,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px 48px 40px;
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #ffaacc 50%, #ff6699 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  animation: textShimmer 6s ease-in-out infinite alternate;
}

@keyframes textShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: 17px;
  color: rgba(255, 220, 235, 0.85);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff0000, #ff1493);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  min-height: 48px;
  box-shadow: 0 4px 24px rgba(255, 0, 0, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
  letter-spacing: 0.04em;
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(255, 20, 147, 0.55);
}

/* ===== Content Section ===== */
.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  scroll-margin-top: 80px;
}

/* ===== Aside ===== */
.content-aside {
  position: sticky;
  top: 90px;
  background: rgba(255, 20, 147, 0.06);
  border: 1px solid rgba(255, 20, 147, 0.18);
  border-radius: 14px;
  padding: 24px 20px;
}

.aside-title {
  font-size: 14px;
  font-weight: 600;
  color: #ff1493;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aside-title span {
  display: inline-block;
}

.aside-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(255, 204, 232, 0.75);
  text-decoration: none;
  font-size: 13px;
  min-height: 36px;
  transition: background 0.2s, color 0.2s;
}

.aside-link:hover {
  background: rgba(255, 20, 147, 0.15);
  color: #ffcce8;
}

/* ===== Content Body (page.content) ===== */
.content-body {
  min-width: 0;
}

.content-body div {
  scroll-margin-top: 80px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(255, 20, 147, 0.1);
}

.content-body div:last-child {
  border-bottom: none;
}

.content-body h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
  position: relative;
  padding-bottom: 12px;
}

.content-body h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff0000, #ff1493);
}

.content-body h2 span {
  display: inline;
}

.content-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffcce8;
  margin: 24px 0 12px;
}

.content-body h3 span {
  display: inline;
}

.content-body p {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(245, 232, 232, 0.88);
  margin-bottom: 16px;
}

.content-body ul,
.content-body ol {
  padding-left: 1.4em;
  margin-bottom: 16px;
}

.content-body li {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(245, 232, 232, 0.88);
  margin-bottom: 6px;
}

.content-body a {
  color: #ff91cc;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.content-body a:hover {
  color: #ff1493;
}

.content-body strong {
  color: #fff;
  font-weight: 600;
}

.content-body figure {
  margin: 24px 0;
  border-radius: 10px;
  overflow: hidden;
}

.content-body figure img {
  width: 100%;
  height: auto;
  display: block;
}

.content-body figcaption {
  font-size: 13px;
  color: rgba(255, 204, 232, 0.55);
  padding: 8px 12px;
  background: rgba(255, 0, 0, 0.08);
}

.content-body aside {
  background: rgba(255, 20, 147, 0.08);
  border-left: 3px solid #ff1493;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
  color: rgba(255, 220, 235, 0.85);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .aurora-layer,
  .header-announce,
  .hero-h1 {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid rgba(255, 20, 147, 0.15);
  margin-top: 40px;
}

.footer-cta-section {
  background: linear-gradient(135deg, rgba(255,0,0,0.18), rgba(255,20,147,0.22));
  border-bottom: 1px solid rgba(255, 20, 147, 0.15);
  padding: 56px 24px;
  text-align: center;
}

.footer-cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.footer-cta-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-cta-title span {
  display: inline-block;
  background: linear-gradient(135deg, #ff0000, #ff1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-cta-desc {
  font-size: 16px;
  color: rgba(255, 204, 232, 0.75);
  margin-bottom: 28px;
  line-height: 1.7;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff0000, #ff1493);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
  box-shadow: 0 4px 24px rgba(255, 0, 0, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.footer-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 20, 147, 0.5);
}

.footer-links-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff0000, #ff1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 14px;
  color: rgba(255, 204, 232, 0.55);
  line-height: 1.75;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: #ff1493;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.footer-col-title span {
  display: inline-block;
}

.footer-nav-dl {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-nav-dl dt {
  display: block;
}

.footer-nav-dl dt a {
  display: block;
  padding: 7px 0;
  color: rgba(255, 204, 232, 0.65);
  text-decoration: none;
  font-size: 14px;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(255, 20, 147, 0.07);
}

.footer-nav-dl dt a:hover {
  color: #ff91cc;
}

.footer-contact-item {
  font-size: 14px;
  color: rgba(255, 204, 232, 0.65);
  line-height: 1.75;
  margin-bottom: 8px;
}

.footer-contact-item a {
  color: #ff91cc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom-section {
  border-top: 1px solid rgba(255, 20, 147, 0.1);
  padding: 20px 24px;
  text-align: center;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 204, 232, 0.38);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "figure";
    min-height: auto;
  }

  .hero-aside {
    display: none;
  }

  .hero-content {
    padding: 48px 24px 32px;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 20px;
  }

  .content-aside {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
  }

  .aside-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-links-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px;
  }
}

@media (max-width: 768px) {
  .main-nav .nav-left,
  .main-nav .nav-right {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-nav-wrap {
    padding: 10px 56px 10px 16px;
  }

  .main-nav {
    justify-content: center;
  }

  .hero-h1 {
    font-size: 1.8rem;
  }

  .hero-content {
    padding: 36px 20px 28px;
  }
}

@media (max-width: 480px) {
  .content-aside {
    grid-template-columns: 1fr;
  }

  .footer-cta-section {
    padding: 40px 16px;
  }
}

/* ===== div scroll margin ===== */
div[id] {
  scroll-margin-top: 80px;
}
