/* ==========================================================================
   Awake Game — "Modern Festive: Cream, Crimson & Royal Plum" Design System (2026)
   Clean, Bright, Festive & High-Performance SEO Website
   ========================================================================== */

:root {
  --bg-cream: #FFFDF8;
  --bg-sand: #F7F1E8;
  --bg-white: #FFFFFF;
  --festive-red: #D90429;
  --festive-red-dark: #B8001F;
  --festive-purple: #3B1954;
  --festive-purple-mid: #542978;
  --festive-purple-soft: #F3ECF8;
  --festive-navy: #3B1954;
  --festive-gold: #FFB703;
  --festive-gold-light: #FFF3CD;
  --festive-green: #047835;
  --text-dark: #231530;
  --text-muted: #5A4868;
  --border-soft: #E8DFD3;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.14);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 50px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-color: var(--festive-purple-mid) var(--bg-sand);
}

::selection {
  background-color: var(--festive-red);
  color: #FFFFFF;
}

:focus-visible {
  outline: 3px solid var(--festive-purple-mid);
  outline-offset: 3px;
}

body,
body.modern-festive-body,
body.bg-temple {
  background-color: var(--bg-cream) !important;
  background-image: radial-gradient(rgba(84, 41, 120, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text-dark);
  font-family: 'Sarabun', 'K2D', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  padding-top: 76px;
  margin: 0;
  caret-color: var(--festive-red);
}

h1, h2, h3, h4, h5, h6,
.mf-heading {
  font-family: 'Prompt', 'K2D', sans-serif;
  color: var(--festive-purple);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

/* ==========================================================================
   1. Sticky Header & Navigation
   ========================================================================== */
.mf-navbar {
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  padding: 10px 0;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.mf-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Prompt', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--festive-purple) !important;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.mf-navbar .mf-brand-text {
  white-space: nowrap;
}

.mf-navbar .mf-brand-text span {
  color: var(--festive-red);
}

.mf-navbar .navbar-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.mf-navbar .nav-link {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark) !important;
  padding: 8px 12px !important;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  white-space: nowrap !important;
  display: inline-block;
}

.mf-navbar .nav-link:hover,
.mf-navbar .nav-link.active {
  color: var(--festive-red) !important;
  background: var(--festive-purple-soft);
}

.mf-nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.mf-btn-call,
.mf-btn-cta-nav {
  background: linear-gradient(135deg, var(--festive-red) 0%, var(--festive-red-dark) 100%);
  color: #FFFFFF !important;
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.mf-btn-call:hover,
.mf-btn-cta-nav:hover {
  background: var(--festive-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.20);
  color: #FFFFFF !important;
}

.mf-navbar .mf-btn-line {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Tablet & Smaller Desktop Responsive Adjustments for Navbar */
@media (min-width: 992px) and (max-width: 1240px) {
  .mf-navbar .navbar-brand {
    font-size: 1.1rem;
    gap: 6px;
  }
  .mf-navbar .navbar-logo {
    height: 38px;
    width: 38px;
  }
  .mf-navbar .nav-link {
    font-size: 0.82rem;
    padding: 6px 8px !important;
  }
  .mf-nav-cta {
    gap: 6px;
  }
  .mf-btn-call,
  .mf-btn-cta-nav,
  .mf-navbar .mf-btn-line {
    font-size: 0.8rem;
    padding: 7px 11px;
    gap: 5px;
  }
}

@media (max-width: 991.98px) {
  .mf-navbar .navbar-collapse {
    background: var(--bg-cream);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-top: 10px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  }
  .mf-navbar .nav-link {
    padding: 10px 16px !important;
    display: block;
    margin-bottom: 4px;
  }
  .mf-nav-cta {
    margin-top: 14px;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .mf-btn-call,
  .mf-btn-cta-nav,
  .mf-navbar .mf-btn-line {
    justify-content: center;
    width: 100%;
    padding: 11px 16px;
  }
}

/* ==========================================================================
   2. Hero Section (Video Background + High Impact Copy)
   ========================================================================== */
.mf-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--festive-purple);
  color: #FFFFFF;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border-soft);
}

.mf-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.mf-hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.42) saturate(1.15);
  transform: scale(1.03);
}

.mf-hero-video-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.mf-hero-video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  opacity: 0.40;
  border: 0;
}

.mf-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(59, 25, 84, 0.93) 0%, rgba(84, 41, 120, 0.80) 58%, rgba(217, 4, 41, 0.62) 100%);
  z-index: 2;
}

.mf-hero-content {
  position: relative;
  z-index: 3;
}

.mf-badge,
.mf-badge-festive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--festive-purple);
  border: 1px solid var(--festive-gold);
  color: var(--festive-gold-light);
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.mf-hero h1 {
  color: #FFFFFF;
  font-size: clamp(1.85rem, 3.6vw, 2.95rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  text-shadow: 0 3px 16px rgba(15, 23, 42, 0.45);
}

.mf-hero h1 .highlight-gold {
  color: var(--festive-gold);
}

.mf-hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #FFFDF8 !important;
  max-width: 68ch;
  margin-bottom: 28px;
  line-height: 1.7;
}

.mf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.mf-btn-primary {
  background: linear-gradient(135deg, var(--festive-red) 0%, var(--festive-red-dark) 100%);
  color: #FFFFFF !important;
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.22);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border: 2px solid transparent;
}

.mf-btn-primary:hover {
  background: var(--festive-red-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.30);
}

.mf-btn-line,
.mf-btn-line-lg {
  background: linear-gradient(135deg, #047835 0%, #03612B 100%);
  color: #FFFFFF !important;
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.20);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.mf-navbar .mf-btn-line {
  font-size: 0.9rem;
  padding: 9px 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

.mf-btn-line:hover,
.mf-btn-line-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  color: #FFFFFF !important;
}

.mf-btn-secondary {
  background: rgba(255, 253, 248, 0.14);
  backdrop-filter: blur(8px);
  color: #FFFFFF !important;
  border: 2px solid var(--festive-gold);
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.mf-btn-secondary:hover {
  background: var(--festive-gold);
  color: var(--festive-purple) !important;
  transform: translateY(-3px);
}

.mf-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  background: rgba(35, 21, 48, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  max-width: 820px;
}

.mf-stat-item {
  display: flex;
  flex-direction: column;
}

.mf-stat-number {
  font-family: 'Prompt', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--festive-gold);
  font-variant-numeric: tabular-nums;
}

.mf-stat-label {
  font-size: 0.9rem;
  color: #FFFDF8;
}

/* ==========================================================================
   Inner Page Hero Banner (Cream-Red-Purple Unified Header)
   ========================================================================== */
.mf-page-hero {
  background: linear-gradient(125deg, var(--festive-purple) 0%, var(--festive-purple-mid) 62%, var(--festive-red) 100%);
  color: #FFFFFF;
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 36px;
}

.mf-page-hero h1 {
  color: #FFFFFF !important;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.mf-page-hero p,
.mf-page-hero h2 {
  color: #FFFDF8 !important;
  font-family: 'Sarabun', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  max-width: 72ch;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.mf-section {
  padding: 72px 0;
}

.mf-section-sand {
  background-color: var(--bg-sand);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.mf-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.mf-section-tag {
  display: inline-block;
  background: var(--festive-purple-soft);
  color: var(--festive-purple);
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.mf-section-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  margin-bottom: 14px;
  color: var(--festive-purple);
}

.mf-section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* ==========================================================================
   3. Our Services (4 Modern Cards)
   ========================================================================== */
.mf-service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.mf-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--festive-purple-mid);
}

.mf-service-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-sand);
}

.mf-service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mf-service-card:hover .mf-service-img-wrap img {
  transform: scale(1.06);
}

.mf-price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--festive-red);
  color: #FFFFFF;
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
  font-variant-numeric: tabular-nums;
}

.mf-service-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mf-service-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--festive-purple);
}

.mf-service-body p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 16px;
}

.mf-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.mf-service-tags span {
  background: var(--festive-purple-soft);
  color: var(--festive-purple);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.mf-service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--festive-purple);
  color: #FFFFFF !important;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.mf-service-link:hover {
  background: var(--festive-red);
}

/* ==========================================================================
   4. Why Choose Us (Selling Points)
   ========================================================================== */
.mf-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.mf-why-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.mf-why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--festive-purple-mid);
}

.mf-why-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: bold;
}

.mf-why-icon.red { background: rgba(217, 4, 41, 0.10); color: var(--festive-red); }
.mf-why-icon.gold { background: var(--festive-gold-light); color: var(--festive-purple); }
.mf-why-icon.blue { background: var(--festive-purple-soft); color: var(--festive-purple-mid); }
.mf-why-icon.green { background: rgba(4, 120, 53, 0.12); color: var(--festive-purple); }

.mf-why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--festive-purple);
}

.mf-why-card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   5. Our Work / Masonry Grid Gallery + Video Shorts + Filter Buttons
   ========================================================================== */
.mf-filter-bar,
.mf-gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.mf-filter-btn,
.mf-tab-btn {
  background: var(--bg-white);
  color: var(--festive-purple);
  border: 2px solid var(--border-soft);
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mf-filter-btn:hover,
.mf-tab-btn:hover {
  border-color: var(--festive-red);
  color: var(--festive-red);
}

.mf-filter-btn.active,
.mf-tab-btn.active {
  background: var(--festive-red);
  border-color: var(--festive-red);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}

/* Pinterest-style CSS Columns Masonry */
.mf-masonry-grid {
  column-count: 4;
  column-gap: 18px;
}

@media (max-width: 1199px) {
  .mf-masonry-grid { column-count: 3; }
}
@media (max-width: 767px) {
  .mf-masonry-grid { column-count: 2; column-gap: 12px; }
}
@media (max-width: 480px) {
  .mf-masonry-grid { column-count: 1; }
}

.mf-masonry-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.mf-masonry-item.hidden-item {
  display: none !important;
}

.mf-masonry-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mf-masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.mf-masonry-item:hover img {
  transform: scale(1.03);
}

.mf-masonry-caption {
  padding: 12px 14px;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mf-masonry-title {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--festive-purple);
  margin: 0;
}

.mf-masonry-tag {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.mf-masonry-tag.tag-temple { background: rgba(217, 4, 41, 0.10); color: var(--festive-red); }
.mf-masonry-tag.tag-event { background: var(--festive-purple-soft); color: var(--festive-purple); }
.mf-masonry-tag.tag-food { background: var(--festive-gold-light); color: var(--festive-purple); }
.mf-masonry-tag.tag-video { background: var(--festive-purple); color: #FFFFFF; }

/* Video Cards inside Masonry */
.mf-video-embed {
  position: relative;
  width: 100%;
  background: var(--festive-purple);
  overflow: hidden;
}

.mf-video-embed.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.mf-video-embed.ratio-9x16 {
  aspect-ratio: 9 / 16;
}

.mf-video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   6. Trust & Proof (Client Types + Reviews + SEO Content + FAQ)
   ========================================================================== */
.mf-client-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.mf-client-pill {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  color: var(--festive-purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mf-client-pill i {
  font-size: 1.75rem;
  color: var(--festive-red);
}

.mf-review-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mf-stars {
  color: var(--festive-gold);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.mf-review-text {
  font-style: italic;
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 16px;
  flex: 1;
}

.mf-reviewer {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--festive-purple);
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}

/* SEO Content Box & FAQ Accordion */
.mf-seo-article {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.mf-faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.mf-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--festive-purple);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mf-faq-question:hover {
  background: var(--festive-purple-soft);
}

.mf-faq-answer {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   7. CTA Banner & Footer
   ========================================================================== */
.mf-cta-banner {
  background: linear-gradient(135deg, var(--festive-purple) 0%, var(--festive-purple-mid) 58%, var(--festive-red) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
}

.mf-cta-banner h2,
.mf-cta-banner h3 {
  color: #FFFFFF !important;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  margin-bottom: 12px;
}

.mf-cta-banner p {
  color: #FFFDF8 !important;
}

.mf-footer {
  background: var(--festive-purple);
  color: #FFFDF8;
  padding: 64px 0 28px;
  border-top: 1px solid var(--border-soft);
}

.mf-footer p,
.mf-footer li {
  color: #FFFDF8 !important;
}

.mf-footer h3,
.mf-footer h4 {
  color: #FFFFFF !important;
  font-size: 1.25rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.mf-footer h3::after,
.mf-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--festive-red);
  border-radius: var(--radius-sm);
}

.mf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mf-footer-links li {
  margin-bottom: 10px;
}

.mf-footer-links a {
  color: #FFFDF8 !important;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mf-footer-links a:hover {
  color: var(--festive-gold) !important;
  padding-left: 5px;
}

.mf-social-links a,
.mf-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 248, 0.14);
  color: #FFFFFF !important;
  font-size: 1.25rem;
  margin-right: 10px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.mf-social-links a:hover,
.mf-social-btn:hover {
  background: var(--festive-red);
  transform: translateY(-3px);
}

.mf-footer-bottom {
  border-top: 1px solid rgba(255, 253, 248, 0.16);
  margin-top: 42px;
  padding-top: 22px;
  text-align: center;
  font-size: 0.9rem;
  color: #FFFDF8 !important;
}

/* Floating Quick Contact Bar */
.mf-floating-contact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mf-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #FFFFFF !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.mf-float-btn:hover {
  transform: scale(1.05);
}

.mf-float-line {
  background: var(--festive-green);
}

.mf-float-call {
  background: var(--festive-red);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.12s !important;
    transition-duration: 0.12s !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   8. Event Games: 1 Main Photo + Bottom Thumbnail Selector Gallery
   ========================================================================== */
.mf-single-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mf-main-stage {
  position: relative;
  width: 100%;
  height: 390px;
  background: linear-gradient(145deg, #1E1333 0%, #2D1B4E 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 576px) {
  .mf-main-stage {
    height: 290px;
  }
}

.mf-main-stage a.mf-main-lightbox-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.mf-main-photo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.22s ease, transform 0.3s ease;
  cursor: zoom-in;
}

.mf-main-stage:hover .mf-main-photo {
  transform: scale(1.02);
}

.mf-stage-counter {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #FFFDF8;
  font-family: 'Prompt', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.mf-stage-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: var(--festive-gold);
  font-family: 'Prompt', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.mf-stage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.9);
  color: var(--festive-purple);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  z-index: 3;
}

.mf-stage-nav:hover {
  background: var(--festive-red);
  color: #FFFFFF;
  border-color: var(--festive-red);
}

.mf-stage-nav.prev { left: 10px; }
.mf-stage-nav.next { right: 10px; }

.mf-thumb-label {
  font-family: 'Prompt', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: -4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mf-thumb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--festive-red) var(--bg-sand);
}

.mf-thumb-strip::-webkit-scrollbar {
  height: 6px;
}

.mf-thumb-strip::-webkit-scrollbar-track {
  background: var(--bg-sand);
  border-radius: 10px;
}

.mf-thumb-strip::-webkit-scrollbar-thumb {
  background: var(--festive-red);
  border-radius: 10px;
}

.mf-thumb-btn {
  flex: 0 0 74px;
  width: 74px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-soft);
  padding: 0;
  background: #1E1333;
  cursor: pointer;
  opacity: 0.68;
  transition: all 0.2s ease;
  position: relative;
}

.mf-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mf-thumb-btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.mf-thumb-btn.active {
  opacity: 1;
  border-color: var(--festive-red);
  box-shadow: 0 0 0 2px rgba(217, 4, 41, 0.28);
}

/* ==========================================================================
   CARD, TABLE & HEADER SYSTEM HARMONIZATION (Cream, Red & Royal Plum)
   Fixes distorted fonts, sizing, orange/cyan headers, and unstyled tables
   ========================================================================== */

/* Universal font consistency */
h1, h2, h3, h4, h5, h6,
.card-header,
.card-header h2,
.card-header h3,
.card-header h4,
.card-title,
.section-head,
.badge-area,
.mf-filter-btn {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body, p, li, td, span, div, small, label {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Card Harmonization */
.card {
  background-color: #FFFFFF !important;
  border: 1px solid var(--border-soft, #E8DFD3) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 18px rgba(59, 25, 84, 0.08) !important;
  margin-bottom: 28px !important;
  overflow: hidden !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(59, 25, 84, 0.14) !important;
}

/* Unified Card Header (Royal Plum Gradient with crisp white Prompt font) */
.card-header,
.card-header.bg-info,
.card-header.bg-primary,
.card-header.bg-warning,
.card-header.bg-danger,
.card-header.bg-secondary,
.card-header.bg-dark {
  background: linear-gradient(135deg, #3B1954 0%, #542978 100%) !important;
  color: #FFFFFF !important;
  padding: 16px 24px !important;
  border-bottom: 1px solid rgba(255, 253, 248, 0.18) !important;
  border-top-left-radius: 19px !important;
  border-top-right-radius: 19px !important;
}

.card-header h2,
.card-header h3,
.card-header h4 {
  color: #FFFFFF !important;
  font-family: 'Prompt', sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(1.15rem, 2vw, 1.35rem) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.01em;
}

/* Card Body padding & typography */
.card-body {
  padding: 24px !important;
  color: #231530 !important;
  background-color: #FFFFFF !important;
}

/* Table Harmonization */
table, .table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin-bottom: 1.5rem !important;
  background-color: #FFFFFF !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid #E8DFD3 !important;
  box-shadow: 0 2px 10px rgba(59, 25, 84, 0.05) !important;
}

table thead th,
.table thead th,
table th,
.table th {
  background: linear-gradient(135deg, #3B1954 0%, #542978 100%) !important;
  color: #FFFFFF !important;
  font-family: 'Prompt', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 14px 18px !important;
  border: none !important;
  vertical-align: middle !important;
  text-align: left;
}

table tbody td,
.table tbody td {
  font-family: 'Sarabun', sans-serif !important;
  font-size: 0.95rem !important;
  color: #231530 !important;
  padding: 12px 18px !important;
  border-top: 1px solid #E8DFD3 !important;
  vertical-align: middle !important;
  background-color: #FFFFFF;
}

table tbody tr:nth-of-type(even) td,
.table tbody tr:nth-of-type(even) td {
  background-color: #FAF6F0 !important;
}

/* Section Headings in Cards (แพ็คเกจและราคา, สิ่งที่ท่านจะได้รับ) */
.section-head,
h4.section-head {
  color: #3B1954 !important;
  font-family: 'Prompt', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  margin-top: 16px !important;
  margin-bottom: 12px !important;
  padding-bottom: 6px !important;
  border-bottom: 2px solid #E8DFD3 !important;
  display: flex !important;
  align-items: center !important;
}

/* Badge Area (ราคาสำหรับ กรุงเทพ / ต่างจังหวัด) */
.badge-area {
  display: inline-block !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-family: 'Prompt', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: #3B1954 !important;
  background-color: #FFF3CD !important;
  border: 1px solid #FFE69C !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

/* Price typography in catalog */
.price-main,
.price.price-main {
  color: #D90429 !important;
  font-family: 'Prompt', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  font-variant-numeric: tabular-nums !important;
}

.price-alt,
.price.price-alt {
  color: #3B1954 !important;
  font-family: 'Prompt', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  font-variant-numeric: tabular-nums !important;
}

.price-note,
small.price-note {
  color: #5A4868 !important;
  font-family: 'Sarabun', sans-serif !important;
  font-size: 0.85rem !important;
}

/* List spacing inside catalog cards */
.list-spaced {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 18px !important;
}

.list-spaced li {
  padding: 8px 12px !important;
  border-radius: 8px !important;
  background-color: #FAF6F0 !important;
  margin-bottom: 8px !important;
  border: 1px solid #E8DFD3 !important;
}

.list-spaced li .label {
  font-weight: 600 !important;
  color: #231530 !important;
  font-family: 'Prompt', sans-serif !important;
}

/* Facebook widget container */
.facebook-box .card-header,
.card-header.bg-primary {
  background: linear-gradient(135deg, #3B1954 0%, #542978 100%) !important;
  color: #FFFFFF !important;
}


