/* HelloLottoThai.com - Static Stylesheet (Matched to Original Palette) */
:root {
  --bg-body: #511d17;
  --bg-crimson: #750c01;
  --bg-crimson-dark: #3b0803;
  --bg-emerald: #015401;
  --bg-emerald-light: #099b24;
  --bg-live: #03bb24;
  --bg-dark: #0e0606;
  --bg-card: #1a0b09;
  --border-red: #e60000;
  --border-gold: #FFD700;
  --accent-orange: #d8460b;
  --accent-orange-bright: #ff9100;
  --accent-crimson: #c8161d;
  --text-white: #ffffff;
  --text-muted: #e5d8d5;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top center, #6b1a10 0%, var(--bg-body) 42%, #2c0d09 100%);
  background-attachment: fixed;
  color: var(--text-white);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--border-gold); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: #fff3b0; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}

/* Announcement Bar */
.announce-bar {
  background: linear-gradient(90deg, #000000 0%, var(--bg-emerald) 50%, #000000 100%);
  border-bottom: 1.5px solid var(--border-gold);
  font-size: 0.88rem;
  padding: 7px 0;
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  flex-wrap: wrap;
}
.announce-inner img { width: 20px; height: 20px; }
.announce-badge {
  background: var(--accent-crimson);
  color: #fff;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid var(--border-gold);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--bg-crimson) 0%, var(--bg-crimson-dark) 100%);
  border-bottom: 2px solid var(--border-red);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo img { height: 42px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-link.active {
  background: var(--bg-emerald);
  color: var(--border-gold);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--bg-dark);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 8px;
  list-style: none;
  margin: 6px 0 0 0;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1050;
}
.nav-item:hover > .dropdown-menu,
.nav-item.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.9rem;
}
.dropdown-menu a:hover {
  background: var(--bg-emerald);
  color: var(--border-gold);
}
.dropdown-menu img.mini-flag {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.25);
}

.header-cta { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(180deg, #ffea70 0%, #FFD700 50%, #d49200 100%);
  color: #1c0904;
  border-color: #fff2a6;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.35);
}
.btn-gold:hover { color: #000000; box-shadow: 0 6px 22px rgba(255, 215, 0, 0.55); }
.btn-emerald {
  background: linear-gradient(180deg, var(--bg-emerald-light) 0%, var(--bg-emerald) 100%);
  color: #ffffff;
  border-color: var(--border-gold);
}
.btn-emerald:hover { color: var(--border-gold); }
.btn-orange {
  background: linear-gradient(180deg, var(--accent-orange-bright) 0%, var(--accent-orange) 100%);
  color: #ffffff;
  border-color: #ffd08a;
}
.btn-orange:hover { color: #ffffff; }
.btn-lg { padding: 14px 32px; font-size: 1.08rem; border-radius: 10px; }

.nav-toggle {
  display: none;
  background: var(--bg-dark);
  color: var(--border-gold);
  border: 1.5px solid var(--border-gold);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.15rem;
  cursor: pointer;
}

/* Hero Slider */
.hero-section { padding: 24px 0 18px; }
.slider-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-card);
  background: #000;
}
.slides { position: relative; }
.slide { display: none; }
.slide.active { display: block; animation: fadeIn 0.45s ease; }
.slide a { display: block; }
.slide img { width: 100%; aspect-ratio: 1376 / 768; object-fit: cover; }
@keyframes fadeIn { from { opacity: 0.4; } to { opacity: 1; } }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: var(--border-gold);
  border: 1.5px solid var(--border-gold);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
}
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
  padding: 0;
}
.slider-dot.active { background: var(--border-gold); border-color: var(--border-gold); transform: scale(1.15); }

/* Quick Action Strip (from original Main.html) */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0 30px;
}
.quick-card {
  background: linear-gradient(180deg, var(--bg-emerald) 0%, #013601 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  color: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.quick-card:hover { transform: translateY(-4px); border-color: #ffffff; color: var(--border-gold); }
.quick-card.crimson {
  background: linear-gradient(180deg, var(--bg-crimson) 0%, #480701 100%);
}
.quick-card img { width: 54px; height: 54px; object-fit: contain; }
.quick-card span { font-weight: 700; font-size: 0.98rem; }

/* Sections & Headings */
.section { padding: 28px 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-red);
  flex-wrap: wrap;
}
.section-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--border-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-sub { margin: 4px 0 0; color: var(--text-muted); font-size: 0.95rem; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 14px 0 6px;
}
.breadcrumb a { color: var(--border-gold); }
.breadcrumb span.sep { opacity: 0.6; }

/* Cards Grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Category Card */
.cat-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, #0d0504 100%);
  border: 1.5px solid var(--border-red);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--border-gold); }
.cat-card-top {
  background: linear-gradient(135deg, var(--bg-emerald) 0%, var(--bg-crimson) 100%);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1.5px solid var(--border-gold);
}
.cat-card-icon { width: 58px; height: 58px; object-fit: contain; }
.cat-card-flag {
  width: 46px;
  height: 31px;
  border-radius: 5px;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.cat-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cat-card-title { margin: 0; font-size: 1.18rem; color: var(--border-gold); font-weight: 700; }
.cat-card-desc { margin: 0; font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.cat-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
}
.badge-green {
  background: var(--bg-emerald-light);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}

/* Individual Lotto Game Card (matched to Lotto.html card style) */
.lotto-card {
  background: #000000;
  border: 1.5px solid var(--bg-emerald-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
  color: #ffffff;
}
.lotto-card:hover { transform: translateY(-4px); border-color: var(--border-gold); color: #ffffff; }
.lotto-card-head {
  background: linear-gradient(90deg, var(--bg-emerald) 0%, #027a02 100%);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-gold);
}
.lotto-card-head img.flag-img {
  width: 42px;
  height: 28px;
  border-radius: 4px;
  border: 1.5px solid #ffffff;
  flex-shrink: 0;
}
.lotto-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}
.lotto-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.lotto-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(117, 12, 1, 0.75);
  border: 1px solid var(--border-red);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.83rem;
  color: #ffdf85;
  font-weight: 600;
}
.lotto-card-foot {
  padding: 10px 14px;
  background: rgba(1, 84, 1, 0.25);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--border-gold);
  font-weight: 700;
}

/* Search Filter Box */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-input {
  flex: 1;
  min-width: 240px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-gold);
  background: #0d0504;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
}
.filter-input::placeholder { color: #b5a3a0; }

/* Article / Game Content Page */
.article-wrap {
  background: rgba(14, 6, 6, 0.92);
  border: 1.5px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin: 16px 0 36px;
}
.article-banner {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  margin-bottom: 24px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.6);
}
.article-banner img { width: 100%; height: auto; }
.article-title {
  margin: 0 0 12px;
  font-size: 1.85rem;
  line-height: 1.35;
  color: var(--border-gold);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.article-content h2 {
  color: var(--border-gold);
  font-size: 1.35rem;
  margin: 26px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--bg-emerald-light);
}
.article-content h3 {
  color: #ffdf85;
  font-size: 1.12rem;
  margin: 18px 0 8px;
}
.article-content p { margin: 0 0 14px; color: #f5ecea; }
.article-content ul, .article-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #f5ecea;
}
.article-content li { margin-bottom: 8px; }

/* Info Table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 0.94rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.info-table th, .info-table td {
  padding: 11px 14px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  text-align: left;
}
.info-table th {
  background: var(--bg-emerald);
  color: var(--border-gold);
  font-weight: 700;
}
.info-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.04); }

/* CTA Box at End of Every Article */
.cta-box {
  margin-top: 32px;
  padding: 28px 24px;
  background: linear-gradient(135deg, var(--bg-emerald) 0%, #062b06 45%, var(--bg-crimson) 100%);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.cta-box h2, .cta-box h3 {
  margin: 0 0 10px;
  color: var(--border-gold);
  border: none;
  padding: 0;
  font-size: 1.45rem;
}
.cta-box p { margin: 0 0 18px; color: #ffffff; max-width: 680px; margin-left: auto; margin-right: auto; }

/* Guide & Promo Cards */
.guide-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-red);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.guide-card:hover { transform: translateY(-4px); border-color: var(--border-gold); }
.guide-card img { width: 100%; aspect-ratio: 1376 / 768; object-fit: cover; border-bottom: 1.5px solid var(--border-gold); }
.guide-card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.guide-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--bg-emerald);
  color: var(--border-gold);
  border: 1px solid var(--border-gold);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.guide-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.4; color: #ffffff; }
.guide-card p { margin: 0; font-size: 0.89rem; color: var(--text-muted); flex: 1; }

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--border-gold);
  padding: 15px 18px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-a {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 0.94rem;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #1b0503 0%, #080202 100%);
  border-top: 2px solid var(--border-gold);
  padding: 40px 0 88px;
  margin-top: 40px;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-col h4 {
  margin: 0 0 14px;
  color: var(--border-gold);
  font-size: 1.05rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--border-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
}

/* Mobile Bottom Sticky Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--bg-crimson) 0%, #2b0401 100%);
  border-top: 2px solid var(--border-gold);
  z-index: 1000;
  padding: 6px 4px;
}
.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
}
.mobile-bottom-nav img { width: 22px; height: 22px; object-fit: contain; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 2px solid var(--border-gold);
    padding: 14px 18px;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 4px 0 8px 14px;
    border-color: rgba(255,215,0,0.3);
  }
  .header-cta .btn { padding: 8px 14px; font-size: 0.85rem; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-wrap { padding: 18px; }
  .article-title { font-size: 1.45rem; }
  .mobile-bottom-nav { display: flex; }
}
