@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: #FFF7F8;
  --bg-white: #FFFFFF;
  --red-imperial: #C8102E;
  --red-crimson-bar: #6E0712;
  --red-crimson-deep: #380206;
  --red-rose: #E8175D;
  --gold-accent: #FFD700;
  --text-dark: #1E1013;
  --text-body: #2C181C;
  --text-muted: #6E4B52;
  --border-red: rgba(200, 16, 46, 0.28);
  --border-red-strong: rgba(200, 16, 46, 0.65);
  --shadow-card: 0 10px 28px rgba(130, 10, 24, 0.09), 0 2px 8px rgba(0, 0, 0, 0.05);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

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

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

body {
  font-family: 'Prompt', 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 12% 15%, rgba(232, 23, 93, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 20%, rgba(200, 16, 46, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #FFFFFF 0%, #FFF3F5 50%, #FFFFFF 100%);
  background-attachment: fixed;
  color: var(--text-body);
  line-height: 1.74;
  padding-bottom: 76px;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--red-rose);
  text-decoration: underline;
}

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

/* Sticky Top Header matching มงคล88.com (Deep Crimson Header + White Navigation Bar) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #3D0207 0%, #63060F 50%, #2B0104 100%);
  border-bottom: 2px solid var(--red-imperial);
  box-shadow: 0 4px 20px rgba(110, 7, 18, 0.25);
}

.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 8px rgba(0, 0, 0, 0.45));
}

.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, #D90429 0%, #800313 100%);
  color: #FFFFFF !important;
  border: 1.5px solid #FFD700;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
  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.08);
  box-shadow: 0 6px 18px rgba(232, 23, 93, 0.48);
}

.btn-vip.btn-gold {
  background: linear-gradient(180deg, #FF1E68 0%, #C8102E 100%);
  color: #FFFFFF !important;
  border: 1.5px solid #FFD700;
  box-shadow: 0 4px 16px rgba(232, 23, 93, 0.45);
}

.header-bottom {
  background: #FFFFFF;
  border-top: 1px solid rgba(200, 16, 46, 0.16);
  border-bottom: 1px solid rgba(200, 16, 46, 0.16);
}

.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: var(--red-crimson-bar);
  background: #FFF0F3;
  border: 1.5px solid rgba(200, 16, 46, 0.32);
  text-decoration: none !important;
}

.main-nav a:hover,
.main-nav a.active {
  background: linear-gradient(180deg, #F51663 0%, #A30720 100%);
  color: #FFFFFF;
  border-color: #A30720;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.32);
}

/* Notice Ticker Bar - Red & White */
.notice-board {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--red-imperial);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  margin: 16px 0;
  font-size: 0.92rem;
  color: var(--red-crimson-deep);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.notice-badge {
  background: linear-gradient(180deg, #E51C23 0%, #8E060C 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: #FFFFFF;
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 9px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 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(--red-imperial);
  font-weight: 700;
}

/* White Content Cards with Crimson Heading Bars matching มงคล88.com */
.content-box.bg-1 {
  background: var(--bg-white);
  border: 1.5px solid var(--border-red);
  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;
}

/* Signature Crimson Red Bar Headings from มงคล88.com */
h1 {
  font-family: 'Prompt', sans-serif;
  font-size: clamp(1.35rem, 2.7vw, 1.82rem);
  font-weight: 800;
  background: linear-gradient(180deg, #7A0713 0%, #3E0207 100%);
  color: #FFFFFF;
  line-height: 1.38;
  padding: 14px 22px;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 5px 16px rgba(110, 7, 18, 0.25);
}

h2 {
  font-family: 'Prompt', sans-serif;
  font-size: clamp(1.18rem, 2.2vw, 1.48rem);
  font-weight: 700;
  background: linear-gradient(180deg, #7A0713 0%, #3E0207 100%);
  color: #FFFFFF;
  line-height: 1.4;
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(110, 7, 18, 0.22);
}

.bg-2 {
  background: linear-gradient(180deg, #7A0713 0%, #3E0207 100%);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(110, 7, 18, 0.22);
}

h3 {
  font-family: 'Prompt', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--red-imperial);
  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, #FFF0F3 0%, #FFF9FA 100%);
  border-left: 5px solid var(--red-imperial);
  border-top: 1px solid rgba(200, 16, 46, 0.22);
  border-right: 1px solid rgba(200, 16, 46, 0.22);
  border-bottom: 1px solid rgba(200, 16, 46, 0.22);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 0.98rem;
  color: #2B0910;
  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 var(--red-imperial);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(140, 10, 24, 0.16);
}

.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, #52040B 0%, #7A0713 50%, #52040B 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: #FFF5F7;
  border: 1px solid rgba(200, 16, 46, 0.25);
  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(--red-imperial);
  font-weight: 700;
}

/* GEO Responsive Data Tables - Red & White */
.table-wrap,
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--red-imperial);
}

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

th {
  background: linear-gradient(180deg, #8E0614 0%, #52030B 100%);
  color: #FFFFFF;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid var(--red-imperial);
}

td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(200, 16, 46, 0.16);
  color: var(--text-body);
}

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

/* 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%, #FFF3F6 100%);
  border: 1.5px solid rgba(200, 16, 46, 0.32);
  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(200, 16, 46, 0.2);
  border-color: var(--red-imperial);
}

.silo-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: #FFFFFF !important;
  background: linear-gradient(180deg, #E8175D 0%, #A30720 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: #FFF6F8;
  border: 1px solid rgba(200, 16, 46, 0.26);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: left;
}

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

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

/* Footer & Trust Certifications - Deep Crimson Red Footer */
.site-footer {
  background: linear-gradient(180deg, #4A040A 0%, #1F0103 100%);
  border-top: 3px solid var(--red-imperial);
  padding: 36px 0 28px;
  margin-top: 36px;
  color: #F5DCE0;
  font-size: 0.9rem;
}

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

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

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

.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.95);
  border: 1.5px solid var(--red-imperial);
  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: #F5DCE0;
}

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

/* 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(180deg, #63060F 0%, #2B0104 100%);
  border-top: 2px solid #FFD700;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
  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: #FFD700;
}

@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: 38px;
    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;
  }
}
