/* =============================================
   Nova88 Thai – Main Stylesheet
   Deep Blue + Gold Theme
   ============================================= */

/* ---------- Variables ---------- */
:root {
  --primary:        #FFD700;
  --primary-light:  #FFED4A;
  --primary-dark:   #F5A623;
  --accent:         #FF8C00;
  --dark-base:      #0a0e1a;
  --dark-secondary: #111827;
  --dark-tertiary:  #1a1f3a;
  --text:           #E5E7EB;
  --text-muted:     #9CA3AF;
  --white:          #ffffff;
  --border:         rgba(255,215,0,0.12);
  --border-light:   #e5e7eb;
  --radius:         16px;
  --shadow:         0 12px 40px rgba(0,0,0,.25);
  --gold-glow:      0 0 15px rgba(255,215,0,0.3), 0 0 30px rgba(255,215,0,0.15);
  --bg-lt:          #0f1225;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; font-size: 16px; }
body   { font-family: 'Noto Sans Thai', 'Sarabun', sans-serif; background: var(--dark-base); color: var(--text); line-height: 1.7; overflow-x: hidden; }
a      { color: inherit; text-decoration: none; }
img    { max-width: 100%; display: block; }

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 8px;
}
.section-title {
  font-size: 36px; font-weight: 800; color: var(--text);
  margin-bottom: 16px; line-height: 1.3;
}
.section-title span { color: var(--primary); }
.section-header { margin-bottom: 52px; }

/* ---------- Animations ---------- */
@keyframes goldPulse {
  0%, 100% { box-shadow: var(--gold-glow); }
  50% { box-shadow: 0 0 25px rgba(255,215,0,0.5), 0 0 50px rgba(255,215,0,0.25); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes particleDrift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 0.6; }
  100% { transform: translateY(-100vh) translateX(40px); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,14,26,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,215,0,0.08);
  padding: 0;
  transition: background .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(10,14,26,.99);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
  border-bottom-color: var(--primary);
}
.navbar-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.navbar-logo { width: 38px; height: 38px; flex-shrink: 0; }
.navbar-name {
  font-size: 22px; font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.navbar-link {
  margin-left: 24px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); transition: color .2s;
}
.navbar-link:hover { color: var(--primary); }
.navbar-cta {
  margin-left: auto;
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--dark-base);
  font-size: 14px; font-weight: 700;
  border-radius: 50px;
  transition: transform .2s, box-shadow .2s;
}
.navbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,215,0,.35);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, var(--dark-base) 0%, #0d1229 30%, #111d42 60%, var(--dark-tertiary) 100%);
  padding: 120px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,215,0,.1) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 20% 70%, rgba(245,166,35,.08) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 80% 30%, rgba(255,237,74,.06) 0%, transparent 60%);
  animation: heroGlowPulse 8s ease-in-out infinite;
}
@keyframes heroGlowPulse { 0%,100%{opacity:1} 50%{opacity:.5} }

.hero-particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-particles span {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--primary);
  border-radius: 50%;
  animation: particleDrift linear infinite;
  opacity: 0;
}
.hero-particles span:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: 2s; width: 3px; height: 3px; }
.hero-particles span:nth-child(3) { left: 40%; animation-duration: 10s; animation-delay: 4s; }
.hero-particles span:nth-child(4) { left: 55%; animation-duration: 14s; animation-delay: 1s; width: 5px; height: 5px; }
.hero-particles span:nth-child(5) { left: 70%; animation-duration: 11s; animation-delay: 3s; }
.hero-particles span:nth-child(6) { left: 82%; animation-duration: 13s; animation-delay: 5s; width: 3px; height: 3px; }
.hero-particles span:nth-child(7) { left: 90%; animation-duration: 16s; animation-delay: 7s; }
.hero-particles span:nth-child(8) { left: 50%; animation-duration: 9s; animation-delay: 6s; width: 6px; height: 6px; }

.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-title {
  font-size: 48px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px; line-height: 1.25;
}
.hero-sub {
  font-size: 22px; font-weight: 400;
  color: rgba(255,255,255,.7); margin-bottom: 20px;
}
.hero-desc {
  font-size: 16px; color: var(--text-muted);
  max-width: 620px; margin: 0 auto 44px; line-height: 1.9;
}
.hero-btns {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.btn {
  display: inline-block; padding: 14px 36px;
  border-radius: 50px; font-size: 16px; font-weight: 700;
  transition: all .3s ease; cursor: pointer; border: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--dark-base);
  box-shadow: 0 8px 28px rgba(255,215,0,.3);
  position: relative; overflow: hidden;
}
.btn-gold::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255,215,0,.45);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: rgba(255,215,0,.1);
  transform: translateY(-3px);
}

/* ===== TRUST BADGES ===== */
.trust {
  background: var(--dark-secondary);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.trust-item {
  text-align: center; padding: 36px 24px;
  background: rgba(255,215,0,.03);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all .3s;
}
.trust-item:hover {
  border-color: rgba(255,215,0,.3);
  transform: translateY(-5px);
  box-shadow: var(--gold-glow);
}
.trust-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: rgba(255,215,0,.12);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.trust-icon svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--primary); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.trust-title {
  font-size: 18px; font-weight: 700; color: var(--primary);
  margin-bottom: 10px;
}
.trust-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* ===== GAME CATEGORIES ===== */
.games {
  background: var(--dark-base);
  padding: 100px 0;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.game-card {
  background: var(--dark-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all .35s ease;
  display: flex; flex-direction: column;
}
.game-card:hover {
  border-color: rgba(255,215,0,.4);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255,215,0,.15);
}
.game-icon {
  font-size: 40px; margin-bottom: 16px;
  width: 64px; height: 64px;
  background: rgba(255,215,0,.08);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.game-title {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-bottom: 10px;
}
.game-desc {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.8; flex: 1; margin-bottom: 16px;
}
.game-link {
  font-size: 14px; font-weight: 700; color: var(--primary);
  transition: gap .2s; display: inline-flex; align-items: center; gap: 4px;
}
.game-link:hover { color: var(--primary-light); }

/* ===== PROMOTIONS ===== */
.promos {
  background: var(--dark-secondary);
  padding: 100px 0;
}
.promos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.promo-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 220px;
  display: flex; align-items: flex-end;
  transition: transform .3s, box-shadow .3s;
}
.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.promo-card--1 { background: linear-gradient(135deg, #1a237e, #283593, #1565c0); }
.promo-card--2 { background: linear-gradient(135deg, #4a148c, #6a1b9a, #8e24aa); }
.promo-card--3 { background: linear-gradient(135deg, #b71c1c, #c62828, #e53935); }
.promo-card--4 { background: linear-gradient(135deg, #0d4740, #00695c, #00897b); }
.promo-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,215,0,.15));
  pointer-events: none;
}
.promo-card__body {
  position: relative; z-index: 1;
  padding: 32px;
}
.promo-card__title {
  font-size: 22px; font-weight: 800; color: #fff;
  margin-bottom: 10px;
}
.promo-card__desc {
  font-size: 14px; color: rgba(255,255,255,.75);
  line-height: 1.7; margin-bottom: 18px;
}
.promo-card__btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--dark-base);
  font-size: 13px; font-weight: 700;
  border-radius: 50px;
  transition: transform .2s, box-shadow .2s;
}
.promo-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,215,0,.4);
}

/* ===== STATISTICS ===== */
.stats {
  background: linear-gradient(135deg, var(--dark-base), #0d1229);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-row {
  display: flex; justify-content: center; flex-wrap: wrap;
  max-width: 900px; margin: 0 auto;
}
.stat-cell {
  flex: 1 1 250px; padding: 32px 20px;
  border-right: 1px solid rgba(255,215,0,.1);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  display: inline; font-size: 56px; font-weight: 800;
  color: var(--primary); line-height: 1;
  font-feature-settings: 'tnum';
}
.stat-suffix {
  font-size: 36px; font-weight: 800; color: var(--primary);
}
.stat-lbl {
  display: block; font-size: 15px; color: var(--text-muted);
  margin-top: 10px;
}

/* ===== FAQ ===== */
.faq {
  background: var(--dark-base);
  padding: 100px 0;
}
.faq-list {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--dark-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .3s;
}
.faq-item.active { border-color: rgba(255,215,0,.4); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 20px 24px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600;
  color: var(--text); text-align: left;
  transition: color .2s;
}
.faq-question:hover { color: var(--primary); }
.faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: var(--text-muted); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s, stroke .3s;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  stroke: var(--primary);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease;
}
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px; color: var(--text-muted);
  line-height: 1.85;
}

/* ===== LATEST POSTS ===== */
.latest-posts {
  padding: 100px 24px;
  background: var(--dark-secondary);
}
.latest-posts__inner { max-width: 1200px; margin: 0 auto; }
.latest-posts__heading {
  font-size: 1.8rem; font-weight: 700;
  margin-bottom: 40px; text-align: center;
}
.latest-posts__heading a {
  color: var(--text); transition: color .2s;
}
.latest-posts__heading a:hover { color: var(--primary); }
.latest-posts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.latest-post-card {
  background: var(--dark-tertiary);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: all .3s;
  display: flex; flex-direction: column;
}
.latest-post-card:hover {
  border-color: rgba(255,215,0,.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
.latest-post-card__thumb {
  display: block;
  width: 250px; height: 250px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,215,0,.06);
  flex-shrink: 0;
  margin: 0 auto;
}
.latest-post-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.latest-post-card__thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--dark-base), var(--dark-tertiary));
  display: flex; align-items: center; justify-content: center;
}
.latest-post-card__thumb-placeholder::after {
  content: '';
  display: block; width: 32px; height: 32px;
  background: rgba(255,215,0,.15);
  border-radius: 8px;
}
.latest-post-card__title {
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin-top: 14px; line-height: 1.45;
}
.latest-post-card__title a { color: inherit; }
.latest-post-card__title a:hover { color: var(--primary); }
.latest-post-card__date {
  font-size: 0.85rem; color: var(--text-muted);
  margin-top: 8px;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, var(--dark-base), #050810);
  padding: 60px 24px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-brand {
  font-size: 28px; font-weight: 800;
  color: var(--primary); display: block; margin-bottom: 8px;
}
.footer-tagline {
  font-size: 14px; color: var(--text-muted); margin-bottom: 20px;
}
.footer-links {
  display: flex; justify-content: center;
  gap: 24px; flex-wrap: wrap; margin-bottom: 24px;
}
.footer-links a {
  font-size: 13px; color: var(--text-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-text {
  font-size: 13px; color: rgba(255,255,255,.25);
  line-height: 1.8;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed {
  opacity: 1; transform: translateY(0);
}

/* ===== RESPONSIVE – Homepage ===== */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 40px; }
}
@media (max-width: 768px) {
  .hero { padding: 80px 20px 60px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 18px; }
  .section-title { font-size: 28px; }
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .promos-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 42px; }
  .navbar-cta { padding: 8px 18px; font-size: 13px; }
  .latest-posts__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero { padding: 60px 16px 48px; }
  .hero-title { font-size: 26px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .games-grid { grid-template-columns: 1fr; }
  .stat-cell { flex: 1 1 100%; border-right: none; border-bottom: 1px solid rgba(255,215,0,.1); }
  .stat-cell:last-child { border-bottom: none; }
  .latest-posts__grid { grid-template-columns: 1fr; }
  .navbar-link { display: none; }
}


/* =================================================================
   ARCHIVE & SINGLE PAGE STYLES
   (Shared styles for archive.php, single.php, page.php, page-news.php)
   ================================================================= */

/* ===== SITE HEADER (shared) ===== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,14,26,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,215,0,.08);
  padding: 0;
}
.site-header .container { padding: 14px 24px; }
.site-header__inner {
  display: flex; align-items: center;
  justify-content: flex-start; gap: 12px;
}
.site-header__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.site-header__logo { width: 36px; height: 36px; flex-shrink: 0; }
.site-header__name {
  font-size: 20px; font-weight: 800;
  color: var(--primary); letter-spacing: -.3px;
}

/* ===== BREADCRUMB BAR ===== */
.breadcrumb-bar {
  background: var(--dark-secondary);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb__list {
  display: flex; flex-wrap: wrap; align-items: center;
  list-style: none; gap: 4px; padding: 0; margin: 0;
  font-size: 13px; color: var(--text-muted);
}
.breadcrumb__item a {
  color: var(--primary); font-weight: 500;
  transition: opacity .2s;
}
.breadcrumb__item a:hover { opacity: .75; }
.breadcrumb__item--current { color: var(--text); font-weight: 600; }
.breadcrumb__sep {
  color: rgba(255,215,0,.25);
  font-size: 15px; line-height: 1; padding: 0 2px;
}

/* ===== SITE FOOTER (shared) ===== */
.site-footer {
  background: linear-gradient(180deg, var(--dark-base), #050810);
  padding: 40px 24px; text-align: center;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.site-footer__brand {
  display: block; font-size: 24px; font-weight: 800;
  color: var(--primary); margin-bottom: 8px;
}
.site-footer__text {
  font-size: 13px; color: rgba(255,255,255,.25); line-height: 1.8;
}

/* ===== ARCHIVE / SINGLE PAGE LAYOUT ===== */
.archive-page,
.single-page {
  background: var(--dark-base);
  display: flex; flex-direction: column;
  min-height: 100vh;
}
.archive-main,
.single-main {
  flex: 1; padding: 48px 0 72px;
}

/* Archive Header */
.archive-header {
  margin-bottom: 40px; padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.archive-header__title {
  font-size: 30px; font-weight: 800;
  color: var(--text); line-height: 1.3;
}
.archive-header__title span { color: var(--primary); }
.archive-header__desc {
  margin-top: 10px; font-size: 15px;
  color: var(--text-muted); max-width: 640px; line-height: 1.8;
}

/* ===== ARCHIVE GRID ===== */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ===== POST CARD ===== */
.post-card {
  background: var(--dark-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255,215,0,.1);
  border-color: rgba(255,215,0,.3);
}
.post-card__thumb {
  display: block; aspect-ratio: 16/9;
  overflow: hidden; background: var(--dark-tertiary);
}
.post-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,215,0,.2);
}
.post-card__thumb-placeholder svg { width: 48px; height: 48px; }
.post-card__body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; flex: 1; gap: 10px;
}
.post-card__cat {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--primary); background: rgba(255,215,0,.1);
  border-radius: 20px; padding: 3px 10px;
  align-self: flex-start;
}
.post-card__title {
  font-size: 17px; font-weight: 700;
  line-height: 1.45; color: var(--text); margin: 0;
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--primary); }
.post-card__meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--text-muted);
}
.post-card__meta-date,
.post-card__meta-author {
  display: flex; align-items: center; gap: 4px;
}
.post-card__meta svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--primary); }
.post-card__date {
  font-size: 12px; color: var(--text-muted);
}
.post-card__excerpt {
  font-size: 14px; color: var(--text-muted); line-height: 1.8;
  flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__readmore {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700;
  color: var(--primary); margin-top: 4px;
  transition: gap .2s;
}
.post-card__readmore:hover { gap: 9px; }
.post-card__readmore svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ===== PAGINATION ===== */
.pagination {
  margin-top: 56px;
  display: flex; justify-content: center;
}
.pagination .nav-links {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--dark-secondary);
  border: 1px solid var(--border);
  color: var(--text); transition: all .2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--dark-base);
}
.pagination .page-numbers.dots {
  background: transparent; border-color: transparent;
  color: var(--text-muted);
}

/* ===== NO POSTS ===== */
.no-posts { text-align: center; padding: 80px 24px; }
.no-posts__icon { width: 72px; height: 72px; margin: 0 auto 24px; color: var(--text-muted); }
.no-posts__icon svg { width: 100%; height: 100%; }
.no-posts__title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.no-posts__text { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }
.btn-back {
  display: inline-block; padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--dark-base); font-weight: 700; border-radius: 50px;
  font-size: 14px; transition: all .2s;
}
.btn-back:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,215,0,.35); }

/* ===== SINGLE ARTICLE ===== */
.single-article {
  background: var(--dark-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.2);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.single-article__header { padding: 40px 48px 32px; }
.single-article__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.single-article__cat-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--primary); background: rgba(255,215,0,.1);
  border-radius: 20px; padding: 4px 12px;
  transition: background .2s, color .2s;
}
.single-article__cat-badge:hover { background: var(--primary); color: var(--dark-base); }
.single-article__title {
  font-size: 36px; font-weight: 800;
  color: var(--text); line-height: 1.3; margin-bottom: 20px;
}
.single-article__meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; font-size: 13px; color: var(--text-muted);
}
.single-article__meta-item { display: flex; align-items: center; gap: 5px; }
.single-article__meta-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--primary); }
.single-article__meta-item a { color: var(--primary); font-weight: 600; }
.single-article__meta-item a:hover { text-decoration: underline; }
.single-article__meta-sep { color: var(--border); font-size: 16px; }

/* Featured image */
.single-article__thumb { width: 100%; max-height: 480px; overflow: hidden; }
.single-article__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content */
.single-article__content {
  padding: 40px 48px;
  font-size: 16px; line-height: 1.9; color: var(--text);
}
.single-article__content h1,
.single-article__content h2,
.single-article__content h3,
.single-article__content h4,
.single-article__content h5,
.single-article__content h6 {
  color: var(--text); margin: 32px 0 14px; line-height: 1.35; font-weight: 700;
}
.single-article__content h2 { font-size: 24px; }
.single-article__content h3 { font-size: 20px; }
.single-article__content p { margin-bottom: 20px; }
.single-article__content a { color: var(--primary); text-decoration: underline; }
.single-article__content a:hover { color: var(--primary-light); }
.single-article__content img {
  border-radius: 10px; margin: 24px 0; max-width: 100%; height: auto;
}
.single-article__content ul,
.single-article__content ol { padding-left: 24px; margin-bottom: 20px; }
.single-article__content li { margin-bottom: 6px; }
.single-article__content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px; margin: 28px 0;
  background: rgba(255,215,0,.04);
  border-radius: 0 10px 10px 0;
  font-style: italic; color: var(--text-muted);
}
.single-article__content pre,
.single-article__content code {
  font-family: 'Courier New', monospace;
  background: var(--dark-base); color: #f0f0f0;
  border-radius: 8px;
}
.single-article__content pre { padding: 20px 24px; overflow-x: auto; margin: 24px 0; }
.single-article__content code { padding: 2px 6px; font-size: 14px; }
.single-article__content table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
}
.single-article__content table th,
.single-article__content table td {
  padding: 12px 16px; border: 1px solid var(--border);
  text-align: left; font-size: 14px;
}
.single-article__content table th {
  background: rgba(255,215,0,.08); color: var(--primary); font-weight: 700;
}
.single-article__content hr {
  border: none; height: 1px;
  background: var(--border); margin: 32px 0;
}
.single-article__content strong { color: var(--text); font-weight: 700; }
.single-article__content em { color: var(--text-muted); }

/* Tags */
.single-article__tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 24px 48px; border-top: 1px solid var(--border);
  font-size: 13px;
}
.single-article__tags-label {
  display: flex; align-items: center; gap: 5px;
  font-weight: 700; color: var(--text);
}
.single-article__tags-label svg { width: 15px; height: 15px; color: var(--primary); }
.single-article__tag {
  display: inline-block; padding: 4px 12px;
  border-radius: 20px; border: 1px solid var(--border);
  font-size: 12px; font-weight: 600;
  color: var(--text-muted); background: rgba(255,215,0,.04);
  transition: all .2s;
}
.single-article__tag:hover {
  background: var(--primary); border-color: var(--primary);
  color: var(--dark-base);
}

/* ===== AUTHOR BOX ===== */
.author-box {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 28px 48px; border-top: 1px solid var(--border);
  background: rgba(255,215,0,.02);
}
.author-box__avatar img {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--border);
  flex-shrink: 0;
}
.author-box__info { display: flex; flex-direction: column; gap: 4px; }
.author-box__label {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--primary);
}
.author-box__name { font-size: 17px; font-weight: 700; color: var(--text); }
.author-box__name:hover { color: var(--primary); }
.author-box__bio { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-top: 2px; }

/* ===== POST NAVIGATION ===== */
.post-nav { margin-bottom: 32px; }
.post-nav__inner { display: flex; gap: 16px; }
.post-nav__item {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  padding: 20px 24px;
  background: var(--dark-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  transition: all .25s; min-width: 0;
}
.post-nav__item:hover {
  border-color: rgba(255,215,0,.3);
  box-shadow: 0 6px 24px rgba(255,215,0,.1);
  transform: translateY(-3px);
}
.post-nav__item--next { text-align: right; }
.post-nav__dir {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--primary);
}
.post-nav__item--next .post-nav__dir { justify-content: flex-end; }
.post-nav__dir svg { width: 16px; height: 16px; flex-shrink: 0; }
.post-nav__title {
  font-size: 14px; font-weight: 600; color: var(--text);
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== COMMENTS AREA ===== */
.comments-area {
  background: var(--dark-secondary);
  border-radius: var(--radius);
  padding: 36px 48px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.15);
}
.comments-area .comments-title {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.comments-area .comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comments-area .comment { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comments-area .comment:last-child { border-bottom: none; }
.comments-area .comment-author .avatar { border-radius: 50%; border: 2px solid var(--border); }
.comments-area .comment-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.comments-area .comment-body p { font-size: 14px; line-height: 1.8; margin-bottom: 8px; color: var(--text); }
.comments-area .reply a { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary); margin-top: 4px; }
.comments-area .comment-reply-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.comments-area .comment-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: 'Noto Sans Thai', sans-serif; font-size: 14px;
  color: var(--text); background: var(--dark-base);
  transition: border-color .2s; outline: none; margin-bottom: 16px;
}
.comments-area .comment-form input:focus,
.comments-area .comment-form textarea:focus { border-color: var(--primary); }
.comments-area .comment-form textarea { min-height: 130px; resize: vertical; }
.comments-area .comment-form .submit {
  display: inline-block; padding: 12px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--dark-base);
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 15px; font-weight: 700;
  border: none; border-radius: 50px; cursor: pointer;
  transition: all .2s;
}
.comments-area .comment-form .submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,215,0,.35);
}

/* ===== PAGE CONTENT ===== */
.page-content {
  background: var(--dark-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.2);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.page-content__body {
  padding: 40px 48px;
  font-size: 16px; line-height: 1.9; color: var(--text);
}

/* Page links */
.page-links {
  margin-top: 24px; font-weight: 600; font-size: 14px;
  color: var(--text-muted);
}
.page-links__item {
  display: inline-block; margin: 0 3px; padding: 3px 10px;
  background: var(--dark-base); border-radius: 6px;
  border: 1px solid var(--border);
}

/* ===== RESPONSIVE – Archive & Single ===== */
@media (max-width: 1024px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .archive-grid { grid-template-columns: 1fr; }
  .single-article__header,
  .single-article__content,
  .single-article__tags,
  .author-box { padding-left: 20px; padding-right: 20px; }
  .single-article__title { font-size: 26px; }
  .post-nav__inner { flex-direction: column; }
  .comments-area { padding: 24px 20px; }
  .archive-main, .single-main { padding: 32px 0 48px; }
  .site-header__name { font-size: 17px; }
  .site-header__logo { width: 30px; height: 30px; }
}
@media (max-width: 480px) {
  .archive-header__title { font-size: 22px; }
  .single-article__title { font-size: 22px; }
  .post-nav__item { padding: 16px 18px; }
  .page-content__body { padding: 24px 18px; }
}

/* Responsive - Latest Posts (Archive override) */
@media (max-width: 992px) {
  .latest-posts__grid { grid-template-columns: repeat(3, 1fr); }
}
