@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&family=Prompt:wght@400;500;600;700;800&display=swap');

:root {
  --bg-page: #FDF8FC;
  --bg-white: #FFFFFF;
  --teal-fresh: #0E7490;
  --purple-soft: #7C3AED;
  --rose-candy: #E11D48;
  --amber-warm: #F59E0B;
  --emerald-soft: #10B981;
  --text-dark: #1E2433;
  --text-body: #2A3244;
  --text-muted: #5E6A82;
  --border-pastel: rgba(124, 58, 237, 0.22);
  --border-teal: rgba(14, 116, 144, 0.28);
  --shadow-card: 0 10px 28px rgba(124, 58, 237, 0.08), 0 2px 10px rgba(14, 116, 144, 0.06);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Soft, Cheerful Pastel Rainbow Background ("สีสดใส แต่ไม่แสบตา") */
body {
  font-family: 'Prompt', 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 12% 14%, rgba(244, 114, 182, 0.16) 0%, transparent 42%),
    radial-gradient(circle at 86% 18%, rgba(56, 189, 248, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 55%, rgba(167, 243, 208, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 20% 85%, rgba(253, 224, 71, 0.16) 0%, transparent 45%),
    linear-gradient(135deg, #FCE7F3 0%, #E0F2FE 35%, #ECFDF5 68%, #FEF3C7 100%);
  background-attachment: fixed;
  color: var(--text-body);
  line-height: 1.74;
  padding-bottom: 76px;
  overflow-x: hidden;
}

a {
  color: var(--teal-fresh);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--purple-soft);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Sticky Top Header - Soft Pastel Gradient with Crisp Glassmorphic Feel */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, rgba(255, 245, 250, 0.96) 0%, rgba(240, 249, 255, 0.96) 50%, rgba(254, 249, 235, 0.96) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--amber-warm);
  box-shadow: 0 4px 20px rgba(14, 116, 144, 0.12);
}

.header-main {
  padding: 8px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo img {
  height: 58px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(14, 116, 144, 0.22));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF !important;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.32);
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}

.btn-vip:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.btn-vip.btn-gold {
  background: linear-gradient(180deg, #F43F5E 0%, #BE123C 100%);
  color: #FFFFFF !important;
  border: 1.5px solid #FDE047;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.header-bottom {
  background: linear-gradient(90deg, #0E7490 0%, #6D28D9 50%, #0E7490 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 0;
  list-style: none;
}

.main-nav a {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  text-decoration: none !important;
}

.main-nav a:hover,
.main-nav a.active {
  background: linear-gradient(180deg, #FDE047 0%, #F59E0B 100%);
  color: #1E2433;
  border-color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.38);
}

/* Notice Ticker Bar - Bright & Gentle */
.notice-board {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 2px solid rgba(14, 116, 144, 0.35);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  margin: 16px 0;
  font-size: 0.92rem;
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.notice-badge {
  background: linear-gradient(90deg, #0E7490 0%, #7C3AED 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.notice-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-pastel);
  border-radius: var(--radius-md);
  padding: 9px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(14, 116, 144, 0.05);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb-list li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--purple-soft);
  font-weight: 700;
}

/* Clean Pearl White Content Cards with Soft Pastel Borders */
.content-box.bg-1 {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--border-teal);
  border-radius: var(--radius-lg);
  padding: 26px 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.hero-card.content-box.bg-1,
header.content-box.bg-1 {
  text-align: center;
}

/* Cheerful Non-Harsh Aqua-to-Lavender Gradient Heading Bars */
h1 {
  font-family: 'Prompt', sans-serif;
  font-size: clamp(1.32rem, 2.6vw, 1.78rem);
  font-weight: 800;
  background: linear-gradient(90deg, #0E7490 0%, #6D28D9 55%, #BE185D 100%);
  color: #FFFFFF;
  line-height: 1.38;
  padding: 14px 22px;
  border-radius: 14px;
  border-bottom: 3px solid var(--amber-warm);
  margin-bottom: 16px;
  box-shadow: 0 5px 16px rgba(109, 40, 217, 0.2);
}

h2 {
  font-family: 'Prompt', sans-serif;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 700;
  background: linear-gradient(90deg, #0E7490 0%, #6D28D9 100%);
  color: #FFFFFF;
  line-height: 1.4;
  padding: 12px 20px;
  border-radius: 12px;
  border-bottom: 3px solid var(--amber-warm);
  margin-bottom: 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(14, 116, 144, 0.18);
}

.bg-2 {
  background: linear-gradient(90deg, #0E7490 0%, #6D28D9 100%);
  color: #FFFFFF;
  border-radius: 12px;
  border-bottom: 3px solid var(--amber-warm);
  padding: 12px 20px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(14, 116, 144, 0.18);
}

h3 {
  font-family: 'Prompt', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--purple-soft);
  margin: 12px 0 6px;
}

p {
  margin-bottom: 14px;
  color: var(--text-body);
}

/* GEO Direct Answer Box immediately after H2 (40-60 words) */
.direct-answer {
  background: linear-gradient(90deg, #F0F9FF 0%, #FAF5FF 100%);
  border-left: 5px solid var(--teal-fresh);
  border-top: 1px solid rgba(14, 116, 144, 0.2);
  border-right: 1px solid rgba(124, 58, 237, 0.2);
  border-bottom: 1px solid rgba(14, 116, 144, 0.2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 0.98rem;
  color: #1E293B;
  font-weight: 500;
  text-align: left;
}

/* Zero CLS Media Frame - Exact Fit without Cropping */
.media-frame {
  width: 100%;
  max-width: 920px;
  margin: 18px auto 20px;
  background: #FFFFFF;
  border: 2px solid rgba(14, 116, 144, 0.45);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(14, 116, 144, 0.14);
}

.media-frame.media-square {
  max-width: 520px;
}

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

.media-frame figcaption {
  padding: 9px 14px;
  font-size: 0.86rem;
  color: #FFFFFF;
  font-weight: 500;
  text-align: center;
  background: linear-gradient(90deg, #0E7490 0%, #6D28D9 50%, #0E7490 100%);
}

/* Promo Carousel Slider matching ramruay-123.cc */
.promo-slider-wrap {
  position: relative;
  width: 100%;
  margin: 18px auto 22px;
  padding: 16px 12px 14px;
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.75) 0%, rgba(224, 242, 254, 0.75) 50%, rgba(254, 243, 199, 0.75) 100%);
  border: 2px solid rgba(14, 116, 144, 0.38);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
  overflow: hidden;
}

.promo-slider-viewport {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 28px 8px;
}

.promo-slider-viewport::-webkit-scrollbar {
  display: none;
}

.promo-slide-card {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 245px;
  scroll-snap-align: center;
  border-radius: 18px;
  overflow: hidden;
  background: #FFFFFF;
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(14, 116, 144, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-slide-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
}

.promo-slide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}

.promo-slider-btn {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: linear-gradient(180deg, #0E7490 0%, #6D28D9 100%);
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.promo-slider-btn:hover {
  transform: translateY(-50%) scale(1.08);
  filter: brightness(1.12);
}

.promo-slider-btn.prev {
  left: 8px;
}

.promo-slider-btn.next {
  right: 8px;
}

.promo-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.promo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.promo-dot.active {
  width: 28px;
  background: linear-gradient(90deg, #0E7490 0%, #7C3AED 100%);
}

.promo-slider-caption {
  margin-top: 10px;
  padding: 7px 14px;
  font-size: 0.86rem;
  color: #FFFFFF;
  font-weight: 500;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(90deg, #0E7490 0%, #6D28D9 50%, #0E7490 100%);
}

.cta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

/* Bulleted Feature Lists */
.feature-list,
.content-box ul:not(.main-nav):not(.footer-links) {
  list-style: none;
  margin: 14px 0 18px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.feature-list li,
.content-box ul:not(.main-nav):not(.footer-links) li {
  position: relative;
  padding: 11px 16px 11px 38px;
  background: linear-gradient(90deg, #F8FAFC 0%, #FDF4FF 100%);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: var(--radius-md);
  color: var(--text-body);
}

.feature-list li::before,
.content-box ul:not(.main-nav):not(.footer-links) li::before {
  content: "🍬";
  position: absolute;
  left: 12px;
  top: 11px;
  font-size: 0.95rem;
}

strong {
  color: var(--teal-fresh);
  font-weight: 700;
}

/* GEO Responsive Data Tables */
.table-wrap,
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(14, 116, 144, 0.45);
}

table,
.seo-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  font-size: 0.94rem;
  text-align: left;
}

th {
  background: linear-gradient(90deg, #0E7490 0%, #6D28D9 100%);
  color: #FFFFFF;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid var(--amber-warm);
}

td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(14, 116, 144, 0.14);
  color: var(--text-body);
}

tr:nth-child(even) td {
  background: #F8FAFC;
}

/* Silo Navigation Grid Cards */
.silo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin: 16px 0 6px;
}

.silo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F3FF 100%);
  border: 1.5px solid rgba(124, 58, 237, 0.26);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.silo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.16);
  border-color: var(--purple-soft);
}

.silo-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: #FFFFFF !important;
  background: linear-gradient(90deg, #0E7490 0%, #7C3AED 100%);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  text-decoration: none !important;
}

/* FAQ Accordion Cards */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.faq-item {
  background: #F8FAFC;
  border: 1px solid rgba(14, 116, 144, 0.24);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: left;
}

.faq-question {
  font-weight: 700;
  color: var(--teal-fresh);
  margin-bottom: 6px;
  font-size: 1.03rem;
}

.faq-answer {
  margin-bottom: 0;
  color: var(--text-body);
}

/* Footer & Trust Certifications */
.site-footer {
  background: linear-gradient(180deg, #164E63 0%, #1E1B4B 100%);
  border-top: 3px solid var(--amber-warm);
  padding: 36px 0 28px;
  margin-top: 36px;
  color: #E0F2FE;
  font-size: 0.9rem;
}

.site-footer h3 {
  color: #FDE047;
}

.site-footer a {
  color: #F0F9FF;
}

.site-footer a:hover {
  color: #FDE047;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
}

.trust-certs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 18px 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid var(--teal-fresh);
  border-radius: var(--radius-md);
}

.trust-certs img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  color: #E0F2FE;
}

.footer-bottom p {
  color: #E0F2FE;
}

/* Sticky Bottom Navigation Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(90deg, #0E7490 0%, #5B21B6 100%);
  border-top: 2px solid var(--amber-warm);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.28);
  padding: 7px 4px;
}

.mobile-bottom-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
  padding: 4px 2px;
  text-decoration: none !important;
}

.mobile-bottom-bar a.highlight {
  color: #FDE047;
}

@media (max-width: 768px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .container {
    padding: 0 10px;
    max-width: 100vw;
  }
  .header-inner {
    gap: 6px;
  }
  .brand-logo img {
    height: 40px;
    width: auto;
  }
  .header-actions {
    gap: 6px;
  }
  .btn-vip {
    padding: 6px 11px;
    font-size: 0.76rem;
  }
  .main-nav {
    gap: 5px;
  }
  .main-nav a {
    padding: 4px 10px;
    font-size: 0.78rem;
  }
  .content-box.bg-1 {
    padding: 16px 12px;
    max-width: 100%;
    overflow: hidden;
  }
  .silo-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}
