
:root {
  --blue-50:  #f3f8fd;
  --blue-100: #e3eef9;
  --blue-200: #c7ddf2;
  --blue-300: #a8c8ec;
  --blue-400: #7ba9d9;
  --blue-500: #5a8dc4;
  --blue-600: #3d6fa8;
  --blue-700: #2c548a;
  --gold-100: #fdf6dc;
  --gold-200: #f8e89e;
  --gold-300: #f0d77a;
  --gold-400: #e8c347;
  --gold-500: #d4a83a;
  --gold-600: #b48b22;
  --cream:    #fffdf5;
  --blush:    #fce8e6;
  --mint:     #e8f6ee;
  --lavender: #ece8f5;
  --ink:      #2a3550;
  --soft-ink: #5a6680;
  --shadow-sm: 0 2px 8px rgba(123, 169, 217, 0.18);
  --shadow-md: 0 8px 24px rgba(123, 169, 217, 0.22);
  --shadow-lg: 0 16px 48px rgba(58, 111, 168, 0.20);
  --shadow-gold: 0 6px 20px rgba(212, 168, 58, 0.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', 'Mali', sans-serif;
  background: linear-gradient(135deg, #f3f8fd 0%, #fef9e6 50%, #f3f8fd 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Decorative floating blobs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
body::before {
  width: 400px; height: 400px;
  background: var(--blue-300);
  top: -100px; left: -100px;
}
body::after {
  width: 350px; height: 350px;
  background: var(--gold-200);
  bottom: -100px; right: -100px;
}

main, header, nav, footer { position: relative; z-index: 1; }

/* ==================== HEADER ==================== */
.site-header {
  background: rgba(255, 253, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--blue-200);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 3px solid var(--gold-400);
  box-shadow: var(--shadow-gold);
  background: var(--cream);
  padding: 3px;
}
.brand-text {
  display: flex; flex-direction: column;
}
.brand-name {
  font-family: 'Mali', cursive;
  font-weight: 700;
  font-size: 22px;
  color: var(--blue-600);
  line-height: 1;
}
.brand-tag {
  font-size: 13px;
  color: var(--gold-600);
  margin-top: 4px;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  color: var(--blue-700);
  font-family: 'Mali', cursive;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid var(--cream);
}
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(212, 168, 58, 0.45);
}

/* ==================== HERO (article) ==================== */
.hero {
  max-width: 1100px;
  margin: 40px auto 32px;
  padding: 0 24px;
}
.hero-card {
  background: linear-gradient(135deg, var(--cream), #f0f7fd);
  border-radius: 32px;
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--blue-200);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '✦';
  position: absolute;
  top: 20px; right: 30px;
  font-size: 80px;
  color: var(--gold-200);
  opacity: 0.4;
}
.hero-card::after {
  content: '✿';
  position: absolute;
  bottom: 20px; left: 30px;
  font-size: 60px;
  color: var(--blue-200);
  opacity: 0.5;
}
.crumb {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid var(--blue-200);
  font-weight: 600;
}
.hero h1 {
  font-family: 'Mali', cursive;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--blue-700);
  line-height: 1.35;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  font-weight: 700;
}
.hero h1::after {
  content: '';
  display: block;
  width: 80px; height: 4px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-200));
  border-radius: 999px;
  margin-top: 14px;
}
.hero-intro {
  font-size: 17px;
  color: var(--soft-ink);
  max-width: 850px;
  position: relative;
  z-index: 2;
}
.hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  position: relative;
  z-index: 2;
}
.hero-tag {
  background: var(--cream);
  border: 1.5px solid var(--gold-300);
  color: var(--gold-600);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==================== ARTICLE BODY ==================== */
.article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.section-card {
  background: var(--cream);
  border-radius: 24px;
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--blue-100);
  position: relative;
}
.section-card.gold-accent {
  border-left: 6px solid var(--gold-400);
}
.section-card.blue-accent {
  border-left: 6px solid var(--blue-400);
}
.section-title {
  font-family: 'Mali', cursive;
  font-size: 24px;
  color: var(--blue-700);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.section-title .icon {
  font-size: 28px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-300), transparent);
  border-radius: 999px;
}
.section-card p {
  margin-bottom: 12px;
  color: var(--ink);
}
.section-card ul, .section-card ol {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.section-card ul li {
  background: var(--blue-50);
  padding: 14px 18px 14px 48px;
  border-radius: 14px;
  position: relative;
  border: 1px solid var(--blue-100);
  transition: transform 0.2s;
}
.section-card ul li::before {
  content: '✿';
  position: absolute;
  left: 18px;
  top: 14px;
  color: var(--gold-500);
  font-size: 18px;
}
.section-card ul li:hover {
  transform: translateX(4px);
}
.section-card ol {
  counter-reset: item;
}
.section-card ol li {
  background: var(--gold-100);
  padding: 14px 18px 14px 56px;
  border-radius: 14px;
  position: relative;
  border: 1px solid var(--gold-200);
  counter-increment: item;
}
.section-card ol li::before {
  content: counter(item);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold-400);
  color: var(--cream);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Mali', cursive;
  box-shadow: var(--shadow-gold);
}

/* Highlighted plan link */
.plan-tip {
  background: linear-gradient(135deg, var(--gold-100), var(--cream));
  border: 2px dashed var(--gold-400);
  border-radius: 18px;
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.plan-tip-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.plan-tip-text {
  flex: 1;
  min-width: 200px;
}
.plan-tip-text a {
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold-400);
  text-underline-offset: 4px;
}
.plan-tip-text a:hover {
  color: var(--gold-600);
}

/* Question cards */
.question {
  background: linear-gradient(135deg, var(--blue-50), var(--cream));
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 18px;
  border: 1.5px solid var(--blue-200);
  position: relative;
}
.question-num {
  display: inline-block;
  background: var(--blue-500);
  color: var(--cream);
  font-family: 'Mali', cursive;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.question .q-text {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 16px;
}
.choices {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.choices .choice {
  background: var(--cream);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--blue-100);
  font-size: 15px;
}
details {
  background: var(--gold-100);
  border-radius: 12px;
  padding: 0;
  border: 1.5px solid var(--gold-300);
  margin-top: 8px;
  overflow: hidden;
}
summary {
  cursor: pointer;
  padding: 10px 18px;
  font-weight: 600;
  color: var(--gold-600);
  list-style: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: '▶';
  transition: transform 0.2s;
  font-size: 11px;
}
details[open] summary::before {
  transform: rotate(90deg);
}
.answer-box {
  padding: 12px 18px 16px;
  background: var(--cream);
  font-size: 14.5px;
  color: var(--ink);
  border-top: 1px dashed var(--gold-300);
}
.answer-box strong {
  color: var(--blue-700);
}

/* FAQ */
.faq-item {
  background: var(--cream);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
  border-left: 4px solid var(--blue-400);
}
.faq-q {
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 8px;
  font-family: 'Mali', cursive;
  display: flex;
  gap: 10px;
}
.faq-q::before {
  content: 'Q';
  background: var(--blue-500);
  color: var(--cream);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}
.faq-a {
  color: var(--soft-ink);
  display: flex;
  gap: 10px;
}
.faq-a::before {
  content: 'A';
  background: var(--gold-400);
  color: var(--cream);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
  font-family: 'Mali', cursive;
  font-weight: 700;
}

/* ==================== PRODUCT GALLERY ==================== */
.gallery-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 24px;
}
.gallery-title {
  text-align: center;
  font-family: 'Mali', cursive;
  font-size: 28px;
  color: var(--blue-700);
  margin-bottom: 8px;
  font-weight: 700;
}
.gallery-subtitle {
  text-align: center;
  color: var(--soft-ink);
  margin-bottom: 30px;
  font-size: 15px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.gallery-item {
  display: block;
  background: var(--cream);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--blue-200);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.gallery-item:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-400);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--blue-50);
}
.gallery-item.review-item {
  border-color: var(--gold-300);
}
.gallery-item.review-item:hover {
  border-color: var(--blue-400);
}

/* ==================== FINAL CTA ==================== */
.final-cta {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 24px;
}
.cta-card {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-radius: 28px;
  padding: 48px 36px;
  text-align: center;
  color: var(--cream);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '★';
  position: absolute;
  top: 16px; left: 30px;
  font-size: 70px;
  color: var(--gold-300);
  opacity: 0.3;
}
.cta-card::after {
  content: '★';
  position: absolute;
  bottom: 16px; right: 30px;
  font-size: 60px;
  color: var(--gold-300);
  opacity: 0.3;
}
.cta-card h2 {
  font-family: 'Mali', cursive;
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 700;
}
.cta-card p {
  font-size: 16px;
  margin-bottom: 24px;
  opacity: 0.95;
}
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  color: var(--blue-700);
  font-family: 'Mali', cursive;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 18px;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 3px solid var(--cream);
}
.cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px rgba(212, 168, 58, 0.55);
}

/* ==================== FOOTER ==================== */
footer.site-footer {
  background: var(--blue-700);
  color: var(--blue-100);
  padding: 40px 24px 24px;
  margin-top: 40px;
  text-align: center;
}
footer .foot-links {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}
footer .foot-links a {
  color: var(--gold-200);
  text-decoration: none;
  font-size: 14px;
}
footer .foot-links a:hover { text-decoration: underline; }
footer small { opacity: 0.7; font-size: 13px; }

/* ==================== INDEX-PAGE STYLES ==================== */
.index-hero {
  text-align: center;
  padding: 60px 24px 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.index-hero h1 {
  font-family: 'Mali', cursive;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--blue-700);
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.index-hero h1 .accent {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.index-hero p {
  font-size: 18px;
  color: var(--soft-ink);
  margin-bottom: 24px;
}
.index-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.stat {
  background: var(--cream);
  padding: 18px 28px;
  border-radius: 18px;
  border: 2px solid var(--blue-200);
  box-shadow: var(--shadow-sm);
  min-width: 130px;
}
.stat-num {
  font-family: 'Mali', cursive;
  font-size: 32px;
  color: var(--gold-500);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--soft-ink);
  margin-top: 4px;
}

.search-box {
  max-width: 600px;
  margin: 30px auto 0;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  font-family: inherit;
  font-size: 16px;
  border: 2px solid var(--blue-200);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  outline: none;
}
.search-box input:focus {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-gold);
}
.search-box::before {
  content: '🔍';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

.category-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}
.cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 3px dotted var(--gold-300);
}
.cat-icon {
  font-size: 36px;
  background: var(--gold-100);
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 2px solid var(--gold-300);
}
.cat-name {
  font-family: 'Mali', cursive;
  font-size: 26px;
  color: var(--blue-700);
  font-weight: 700;
}
.cat-count {
  margin-left: auto;
  background: var(--blue-100);
  color: var(--blue-700);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}
.topic-card {
  display: block;
  background: var(--cream);
  text-decoration: none;
  color: var(--ink);
  border-radius: 16px;
  padding: 18px 22px;
  border: 1.5px solid var(--blue-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-400);
}
.topic-card .topic-num {
  display: inline-block;
  background: var(--blue-500);
  color: var(--cream);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: 'Mali', cursive;
  font-weight: 700;
  margin-bottom: 8px;
}
.topic-card .topic-title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.topic-card:hover .topic-title {
  color: var(--blue-700);
}
.topic-card .topic-arrow {
  position: absolute;
  right: 18px; top: 18px;
  color: var(--gold-400);
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.topic-card:hover .topic-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
}
.floating-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  color: var(--blue-700);
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Mali', cursive;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--cream);
  animation: bob 3s ease-in-out infinite;
}
.floating-cta a:hover { transform: scale(1.05); }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Mobile */
@media (max-width: 720px) {
  .hero-card { padding: 32px 24px; }
  .section-card { padding: 24px 20px; }
  .cta-card { padding: 36px 24px; }
  .floating-cta { bottom: 16px; right: 16px; }
  .floating-cta a { padding: 12px 18px; font-size: 13px; }
  .header-cta { padding: 8px 14px; font-size: 12px; }
  .brand-name { font-size: 18px; }
  .brand img { width: 42px; height: 42px; }
}
