/* ============================================================
   NOSTRA888 — Main Stylesheet
   Premium Gaming Theme | Dark Dragon
   ============================================================ */

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
  --color-bg: #050816;
  --color-bg-2: #0a1124;
  --color-surface: #0f1830;
  --color-surface-2: #131e3d;
  --color-surface-3: #1a2a52;
  --color-border: #1f2d54;
  --color-border-soft: rgba(255, 255, 255, 0.08);

  --color-primary: #2563eb;
  --color-primary-2: #3b82f6;
  --color-primary-3: #60a5fa;
  --color-accent: #4f8eff;
  --color-gold: #e5c46b;

  --color-text: #e6ecff;
  --color-text-soft: #b9c3e0;
  --color-text-mute: #7c87a8;
  --color-white: #ffffff;

  --gradient-blue: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --gradient-hero: linear-gradient(120deg, rgba(5,8,22,0.95) 0%, rgba(10,17,36,0.6) 50%, rgba(5,8,22,0.3) 100%);
  --gradient-card: linear-gradient(160deg, rgba(37,99,235,0.12) 0%, rgba(15,24,48,0.6) 100%);
  --gradient-text: linear-gradient(180deg, #ffffff 0%, #9bbcff 100%);

  --shadow-card: 0 18px 40px -20px rgba(0,0,0,0.6), 0 6px 16px rgba(37,99,235,0.08);
  --shadow-glow: 0 0 40px rgba(37,99,235,0.35);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1240px;
  --header-h: 76px;

  --font-base: "Noto Sans Thai", "Sarabun", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Noto Sans Thai", "Sarabun", system-ui, sans-serif;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--color-bg);
  color-scheme: dark;
}
body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--color-primary-3); }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; margin: 0 0 12px; color: var(--color-white); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 14px; color: var(--color-text-soft); }
section { position: relative; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,99,235,0.5); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--color-text);
  border-color: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(255,255,255,0.18);
}
.btn-outline:hover { border-color: var(--color-primary-3); color: var(--color-primary-3); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 8, 22, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border-soft);
  transition: background .25s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* คุมขนาดโลโก้เสมอ ไม่ว่าไฟล์ที่อัปจะใหญ่แค่ไหน (รองรับ custom logo จาก Site Identity) */
.site-logo img,
.site-logo .custom-logo {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.site-logo .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.header-cta { flex-shrink: 0; }
.main-nav a { white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 4px; }
/* รองรับเมนูจริง (wp_nav_menu) — ตัดจุด bullet ของ <li> ออก */
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li { list-style: none; margin: 0; padding: 0; }
.main-nav.is-open ul { flex-direction: column; align-items: stretch; width: 100%; }
.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-soft);
  position: relative;
  border-radius: 8px;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a {
  color: #fff;
}
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-blue);
}
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  width: 42px; height: 42px;
  border-radius: 10px;
  color: #fff;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 760px;
  padding: calc(var(--header-h) + 100px) 0 80px;
  overflow: hidden;
  background-color: #050816;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-dragon.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,8,22,0.92) 0%, rgba(10,17,36,0.65) 40%, rgba(5,8,22,0) 75%);
  z-index: 1;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent 0%, var(--color-bg) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.45em;
  color: var(--color-primary-3);
  margin-bottom: 18px;
  font-weight: 600;
}
.hero-title {
  font-size: clamp(2.2rem, 4vw + 1rem, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--color-text-soft); font-size: 1.05rem; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-features { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-feature { display: flex; align-items: center; gap: 12px; }
.hero-feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary-3);
  flex-shrink: 0;
}
.hero-feature-icon img { width: 48px; height: 48px; object-fit: contain; }
.hero-feature-text { font-size: 14px; line-height: 1.3; color: var(--color-text-soft); }
.hero-feature-text strong { color: #fff; display: block; font-weight: 600; font-size: 15px; }

/* ---------- Category cards ---------- */
.categories {
  margin-top: -60px;
  position: relative;
  z-index: 5;
  padding-bottom: 60px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.category-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--color-primary-2); box-shadow: var(--shadow-card); }
.category-card-text { position: relative; z-index: 2; }
.category-card h3 { font-size: 1.05rem; margin-bottom: 4px; color: #fff; }
.category-card p { font-size: 12px; color: var(--color-text-mute); margin: 0; line-height: 1.4; }
.category-icon {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
}
.category-icon img { width: 100%; height: 100%; object-fit: contain; object-position: bottom right; filter: drop-shadow(0 6px 14px rgba(37, 99, 235, 0.25)); }

/* ---------- Section base ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .link-more { color: var(--color-primary-3); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Promotion cards ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.promo-card {
  background: linear-gradient(135deg, #112047 0%, #0a1532 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 0 20px 22px;
  display: flex;
  align-items: stretch;
  min-height: 210px;
  position: relative;
  overflow: hidden;
}
.promo-card::before {
  content: "";
  position: absolute;
  right: -60px; top: -40px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.promo-card > div:first-child {
  flex: 0 0 46%;
  min-width: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 6px;
}
.promo-card > div:first-child .btn { align-self: flex-start; margin-top: 4px; }
.promo-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(37,99,235,0.22);
  color: var(--color-primary-3);
  font-weight: 600;
}
.promo-card h3 { font-size: 1rem; color: var(--color-text); margin: 0; font-weight: 500; line-height: 1.3; }
.promo-percent {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.promo-percent .prefix {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
}
.promo-meta { font-size: 13px; color: var(--color-text-mute); margin: 0; line-height: 1.4; }
.promo-card .btn { padding: 8px 18px; font-size: 13px; border-radius: 8px; }
.promo-icon {
  flex: 1 1 54%;
  position: relative;
  z-index: 1;
  pointer-events: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px 4px 0;
}
.promo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 22px rgba(37, 99, 235, 0.5));
}
.promo-icon svg { width: 100%; height: 100%; color: var(--color-primary-3); }
@media (max-width: 880px) {
  .promo-percent { font-size: 2.6rem; }
}

/* ---------- Game grid ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.game-card:hover { transform: translateY(-5px); border-color: var(--color-primary-2); box-shadow: var(--shadow-card); }
.game-thumb {
  aspect-ratio: 3/4;
  background: #0a1124;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.game-info { padding: 12px 14px 14px; }
.game-info h4 { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: #fff; }
.game-info span { font-size: 11px; color: var(--color-text-mute); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.why-card {
  text-align: center;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 16px;
  transition: transform .25s ease, border-color .25s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: var(--color-primary-2); }
.why-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary-3);
}
.why-icon svg { width: 48px; height: 48px; }
.why-icon img { width: 64px; height: 64px; object-fit: contain; }
.why-card h3 { font-size: 1rem; margin-bottom: 8px; }
.why-card p { font-size: 13px; color: var(--color-text-mute); margin: 0; line-height: 1.55; }

/* ---------- Article cards ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
/* คอลัมน์ของ shortcode [nostra_posts]/[nostra_articles_hub] */
.article-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.article-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.article-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .article-grid.cols-3, .article-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .article-grid.cols-2, .article-grid.cols-3, .article-grid.cols-4 { grid-template-columns: 1fr; }
}
.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.article-card:hover { transform: translateY(-4px); border-color: var(--color-primary-2); }
.article-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #112047, #1a2a52);
  background-size: cover;
  background-position: center;
}
.article-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.article-body h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.article-body p { font-size: 13px; color: var(--color-text-mute); margin: 0 0 14px; line-height: 1.55; flex: 1; }
.article-readmore { font-size: 13px; color: var(--color-primary-3); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color .2s ease, background .2s ease;
  overflow: hidden;
}
.faq-item:hover { border-color: var(--color-primary-2); }
.faq-item.open { border-color: var(--color-primary-2); background: rgba(37,99,235,0.05); }
.faq-q {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  font-size: 15px;
  user-select: none;
}
.faq-q:focus-visible { outline: 2px solid var(--color-primary-2); outline-offset: -2px; border-radius: var(--radius); }
.faq-q .q-icon {
  width: 24px; height: 24px;
  color: var(--color-primary-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-q::after {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-right: 2px solid var(--color-text-mute);
  border-bottom: 2px solid var(--color-text-mute);
  transform: rotate(45deg);
  transition: transform .25s ease, border-color .2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(-135deg); border-color: var(--color-primary-3); }
.faq-a {
  font-size: 14px;
  color: var(--color-text-soft);
  line-height: 1.7;
  max-height: 0;
  padding: 0 22px;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
}
.faq-item.open .faq-a { max-height: 500px; padding: 0 22px 18px 22px; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: linear-gradient(90deg, #0a1124 0%, #112047 50%, #0a1124 100%);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
  padding: 26px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ti-icon {
  width: 42px; height: 42px;
  color: var(--color-primary-3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-item .ti-icon svg { width: 32px; height: 32px; }
.trust-item .ti-icon img { width: 42px; height: 42px; object-fit: contain; }
.trust-item .ti-text strong { display: block; color: #fff; font-size: 14px; }
.trust-item .ti-text span { color: var(--color-text-mute); font-size: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #030611;
  padding: 60px 0 24px;
  border-top: 1px solid var(--color-border-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand img,
.footer-brand .custom-logo { height: 44px; width: auto; max-width: 220px; object-fit: contain; margin-bottom: 18px; display: block; }
.footer-brand .custom-logo-link { display: inline-flex; line-height: 0; margin-bottom: 18px; }
.footer-brand .custom-logo-link .custom-logo { margin-bottom: 0; }
.footer-brand p { color: var(--color-text-mute); font-size: 13px; line-height: 1.7; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-soft);
  transition: color .2s ease, transform .2s ease;
}
.footer-social a:hover { color: var(--color-primary-3); transform: translateY(-2px); }
.footer-social a svg { width: 22px; height: 22px; }
.footer-col h4 { font-size: 15px; margin-bottom: 18px; color: #fff; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--color-text-mute); font-size: 13px; }
.footer-col ul li a:hover { color: var(--color-primary-3); }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--color-text-soft); font-size: 13px; margin-bottom: 12px; }
.footer-contact li svg { width: 16px; height: 16px; color: var(--color-primary-3); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--color-border-soft);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--color-text-mute);
  font-size: 12px;
}
.payment-icons { display: flex; gap: 10px; align-items: center; opacity: 0.7; }
.payment-icons span {
  background: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-soft);
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 60px) 0 60px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(5,8,22,0.85), rgba(5,8,22,0.95)),
    url("../images/hero-2.png") center / cover no-repeat;
  border-bottom: 1px solid var(--color-border-soft);
}
.page-hero .breadcrumbs { color: var(--color-text-mute); font-size: 13px; margin-bottom: 12px; }
.page-hero .breadcrumbs a { color: var(--color-primary-3); }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { max-width: 720px; margin: 0 auto; color: var(--color-text-soft); }

/* ---------- Article / Post Body ---------- */
.post-wrap { padding: 56px 0; display: grid; grid-template-columns: 2.4fr 1fr; gap: 36px; }
.post-content { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 36px; }
.post-content .post-meta { display: flex; gap: 12px; align-items: center; color: var(--color-text-mute); font-size: 13px; margin-bottom: 16px; }
.post-content .post-meta span:not(:last-child)::after { content: "•"; margin-left: 12px; color: var(--color-border); }
.post-content h1 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); margin-bottom: 18px; }
.post-content h2 { font-size: 1.5rem; margin-top: 32px; }
.post-content h3 { font-size: 1.2rem; margin-top: 24px; color: var(--color-primary-3); }
.post-content p { color: var(--color-text-soft); line-height: 1.85; font-size: 15px; }
.post-content ul, .post-content ol { margin: 0 0 16px 20px; }
.post-content ul li, .post-content ol li { list-style: disc; color: var(--color-text-soft); margin-bottom: 8px; line-height: 1.75; }
.post-content ol li { list-style: decimal; }
.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 8px 18px;
  margin: 18px 0;
  color: var(--color-text);
  background: rgba(37,99,235,0.07);
  border-radius: 0 8px 8px 0;
}
.post-content img { border-radius: var(--radius); margin: 20px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.post-content th, .post-content td { padding: 10px 14px; border: 1px solid var(--color-border); text-align: left; }
.post-content th { background: rgba(37,99,235,0.12); color: #fff; }

.post-sidebar > div { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.post-sidebar h3 { font-size: 1rem; margin-bottom: 16px; }
.post-sidebar ul li { margin-bottom: 12px; }
.post-sidebar ul li a { color: var(--color-text-soft); font-size: 14px; }
.post-sidebar ul li a:hover { color: var(--color-primary-3); }

/* Generic page content (Casino, Slot, Promotion pages) */
.content-section { padding: 56px 0; }
.content-section .lead { font-size: 1.1rem; color: var(--color-text); margin-bottom: 24px; max-width: 780px; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.feature-row .feature {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-row .feature h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--color-primary-3); }
.feature-row .feature p { color: var(--color-text-soft); font-size: 14px; line-height: 1.7; margin: 0; }

/* ---------- Casino page: Stats Bar ---------- */
.casino-stats { padding: 36px 0; border-bottom: 1px solid var(--color-border-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-num { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 6px;
  background: linear-gradient(180deg,#fff,#6aa6ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 14px; color: var(--color-text-mute); }

/* ---------- Casino page: Type Cards ---------- */
.game-types-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.type-card {
  display: flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.type-card:hover { transform: translateY(-4px); border-color: var(--color-primary-2); box-shadow: var(--shadow-card); }
.type-thumb {
  flex: 0 0 110px;
  background-size: cover;
  background-position: center;
  background-color: #0a1124;
}
.type-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.type-body h3 { font-size: 1.05rem; margin: 0; display: flex; align-items: baseline; gap: 8px; }
.type-body h3 small { font-size: 12px; font-weight: 500; color: var(--color-text-mute); }
.type-body p { font-size: 13px; color: var(--color-text-mute); margin: 0; line-height: 1.55; flex: 1; }
.type-arrow { color: var(--color-primary-3); font-size: 13px; font-weight: 600; margin-top: 6px; }

/* ---------- Casino page: Providers ---------- */
.providers-section { background: rgba(15,24,48,0.4); padding: 56px 0; }
.providers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.provider-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .2s ease, transform .25s ease;
}
.provider-card:hover { border-color: var(--color-primary-2); transform: translateY(-3px); }
.provider-card h4 { font-size: 1rem; color: var(--color-primary-3); margin-bottom: 8px; }
.provider-card p { font-size: 13px; color: var(--color-text-mute); margin: 0; line-height: 1.6; }

@media (max-width: 880px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .game-types-grid { grid-template-columns: 1fr; }
  .providers-grid { grid-template-columns: 1fr; }
  .type-thumb { flex: 0 0 90px; }
}

/* CTA Block */
.cta-block {
  background:
    linear-gradient(120deg, rgba(37,99,235,0.18), rgba(15,24,48,0.6)),
    url("../images/promotion-bg.png") center/cover no-repeat;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
  margin: 40px 0;
  box-shadow: var(--shadow-glow);
}
.cta-block h2 { font-size: 1.8rem; margin-bottom: 10px; }
.cta-block p { font-size: 1rem; color: var(--color-text-soft); margin-bottom: 22px; }

/* ---------- Floating Line OA (FAB ปุ่มเดียว ล่างขวา) ---------- */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
}
.fc-line {
  display: flex;
  align-items: center;
  gap: 0;
  height: 60px;
  padding: 0;
  width: 60px;
  border-radius: 50%;
  background: #06C755;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(6, 199, 85, 0.4), 0 0 0 4px rgba(6, 199, 85, 0.15);
  overflow: hidden;
  transition: width .3s ease, padding .3s ease, box-shadow .3s ease, border-radius .3s ease;
  white-space: nowrap;
}
.fc-line:hover {
  width: 200px;
  padding: 0 22px 0 16px;
  border-radius: 30px;
  color: #fff;
  box-shadow: 0 16px 28px rgba(6, 199, 85, 0.5), 0 0 0 4px rgba(6, 199, 85, 0.2);
}
.fc-line .fc-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fc-line .fc-icon svg { width: 32px; height: 32px; }
.fc-line .fc-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  opacity: 0;
  transition: opacity .25s ease;
  font-size: 14px;
}
.fc-line .fc-label small { font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.85); margin-top: 2px; }
.fc-line:hover .fc-label { opacity: 1; }
.fc-line::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #06C755;
  z-index: -1;
  animation: fc-pulse 2.4s ease-out infinite;
  opacity: 0;
}
@keyframes fc-pulse {
  0%   { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.fc-line:hover::after { display: none; }

@media (max-width: 768px) {
  .floating-contact { right: 14px; bottom: 14px; }
  .fc-line:hover { width: 60px; padding: 0; border-radius: 50%; }
  .fc-line:hover .fc-label { opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .promo-grid { grid-template-columns: 1fr; }
  .post-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  /* มือถือ: ไม่ใช้ hamburger เหลือแค่โลโก้ + ปุ่ม และต้องไม่ล้นจอ */
  .menu-toggle { display: none; }
  .main-nav { display: none; }
  .header-inner { gap: 10px; flex-wrap: nowrap; }
  .site-logo { min-width: 0; }
  .site-logo img, .site-logo .custom-logo { height: 36px; max-width: 150px; }
  .header-cta { gap: 8px; }
  .header-cta .auth-buttons { gap: 8px; }
  .header-cta .btn { padding: 8px 13px; font-size: 13px; gap: 4px; }
  .header-cta .btn svg { display: none; }
  .hero { min-height: 640px; padding: calc(var(--header-h) + 50px) 0 50px; }
  .hero-bg {
    background-size: auto 100%;
    background-position: right center;
  }
  .hero::before {
    background: linear-gradient(90deg, rgba(5,8,22,0.92) 0%, rgba(5,8,22,0.6) 55%, rgba(5,8,22,0) 100%);
  }
  .hero-features { gap: 14px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .promo-card { flex-direction: column; align-items: flex-start; text-align: left; }
  /* จอเล็กมาก: เหลือปุ่มสมัครปุ่มเดียว กันล้นแน่นอน */
  .header-cta .btn-ghost { display: none; }
  .site-logo img, .site-logo .custom-logo { height: 34px; max-width: 130px; }
}

/* ============================================================
   Nostra Native Block Sections (Gutenberg) — v1.2.0
   section ที่แก้ผ่าน editor: hero, หมวดเกม, โปรโมชั่น, เกม, ทำไมเลือกเรา, FAQ, landing
   ============================================================ */
.nostra-section { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 56px 20px; }
.nostra-h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; text-align: center; margin: 0 0 28px; color: var(--color-white); }

/* grid */
.nostra-grid { display: grid; gap: 18px; }
.nostra-grid-2 { grid-template-columns: repeat(2, 1fr); }
.nostra-grid-3 { grid-template-columns: repeat(3, 1fr); }
.nostra-grid-4 { grid-template-columns: repeat(4, 1fr); }
.nostra-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .nostra-grid-4, .nostra-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .nostra-grid-3, .nostra-grid-4, .nostra-grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .nostra-grid-2, .nostra-grid-3, .nostra-grid-4, .nostra-grid-5 { grid-template-columns: 1fr; } }

/* card */
.nostra-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 0;
  transition: transform .2s ease, border-color .2s ease;
}
.nostra-card:hover { transform: translateY(-4px); border-color: var(--color-primary); }
.nostra-card > * { margin-top: 0; margin-bottom: 10px; }
.nostra-card > *:last-child { margin-bottom: 0; }
.nostra-card .wp-block-image { margin: 0 0 12px; }
.nostra-card .wp-block-image img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; object-fit: cover; }
.nostra-card h3, .nostra-card h4 { color: var(--color-white); font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.nostra-card h3 a { color: inherit; text-decoration: none; }
.nostra-card h3 a:hover { color: var(--color-primary-3); }
.nostra-card p { color: var(--color-text-mute); font-size: 14px; line-height: 1.6; margin: 0; }

/* hero (core/cover) */
.nostra-hero.wp-block-cover { min-height: 520px; padding: 80px 20px; align-items: center; justify-content: center; text-align: center; }
.nostra-hero .wp-block-cover__inner-container { max-width: 760px; margin: 0 auto; }
.nostra-hero-title { font-size: clamp(30px, 5vw, 56px); font-weight: 800; line-height: 1.15; color: #fff; margin: 0 0 16px; }
.nostra-hero-sub { font-size: clamp(15px, 2vw, 20px); color: var(--color-text-soft); margin: 0 0 26px; }

/* buttons */
.nostra-hero .wp-block-buttons, .nostra-cta .wp-block-buttons { justify-content: center; gap: 12px; }
.wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--gradient-blue); color: #fff; border: none;
  padding: 12px 28px; border-radius: 999px; font-weight: 700; box-shadow: 0 8px 24px rgba(37,99,235,.35);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3);
  padding: 12px 28px; border-radius: 999px; font-weight: 600;
}

/* categories — ไอคอนเล็ก กลางการ์ด */
.nostra-cat-card { text-align: center; }
.nostra-cat-card .wp-block-image img { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 0; object-fit: contain; }

/* promotions */
.nostra-promo-card { text-align: center; }
.nostra-promo-card .wp-block-image img { width: 92px; height: 92px; margin: 0 auto 8px; object-fit: contain; border-radius: 0; }
.nostra-tag { display: inline-block; background: rgba(37,99,235,.15); color: var(--color-primary-3); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin: 0 0 8px; }
.nostra-percent { font-size: 38px; font-weight: 900; color: var(--color-gold); margin: 6px 0; text-align: center; }
.nostra-promo-card .nostra-meta { color: var(--color-text-soft); }

/* games / types */
.nostra-game-card .wp-block-image img { aspect-ratio: 3 / 4; }
.nostra-type-card .wp-block-image img { aspect-ratio: 16 / 10; }
.nostra-provider { color: var(--color-primary-3); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }

/* stats (landing) */
.nostra-stats-grid .nostra-stat { text-align: center; background: var(--color-surface-2); }
.nostra-stat-num { font-size: 30px; font-weight: 900; color: var(--color-white); margin: 0; }
.nostra-stat-label { color: var(--color-text-mute); font-size: 13px; }

/* faq (core/details) */
.nostra-faq { max-width: 860px; }
.nostra-faq .nostra-faq-item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 16px 20px; margin: 0 0 12px;
}
.nostra-faq .nostra-faq-item summary { cursor: pointer; font-weight: 700; color: var(--color-white); font-size: 16px; list-style: none; position: relative; padding-right: 28px; }
.nostra-faq .nostra-faq-item summary::-webkit-details-marker { display: none; }
.nostra-faq .nostra-faq-item summary::after { content: "+"; position: absolute; right: 0; top: -2px; color: var(--color-primary-3); font-size: 22px; }
.nostra-faq .nostra-faq-item[open] summary::after { content: "\2013"; }
.nostra-faq .nostra-faq-item p { color: var(--color-text-soft); margin: 12px 0 0; line-height: 1.7; }

/* cta */
.nostra-cta {
  text-align: center; background: var(--gradient-card);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 48px 24px; max-width: 1000px;
}
.nostra-cta-title { color: #fff; }
