/* ============================================================
   Eco879 — Eco Green + Electric Amber Design System
   Primary: #0A1A0D | Secondary: #2E8B3A | Accent: #F5A623
   ============================================================ */

/* 1. CSS VARIABLES (DESIGN TOKENS) */
:root {
  --color-primary: #0A1A0D;
  --color-secondary: #2E8B3A;
  --color-accent: #F5A623;
  --color-bg: #060F08;
  --color-surface: rgba(46,139,58,0.10);
  --color-text: #FFFFFF;

  --bg-footer: #040C06;
  --bg-card-solid: rgba(46,139,58,0.15);
  --bg-card-dark: rgba(6,15,8,0.85);
  --bg-heading-block: rgba(10,26,13,0.55);
  --bg-ticker: rgba(10,26,13,0.75);

  --text-heading: #FFEAA0;
  --text-heading-alt: #FFD580;
  --text-nav-hover: #F5A623;
  --text-link: #5DC96A;
  --text-keyword: #A8E6B0;
  --text-footer-brand: #F5A623;

  --border-header: rgba(46,139,58,0.4);
  --border-section: rgba(46,139,58,0.5);
  --border-footer: #2E8B3A;
  --border-faq: rgba(10,26,13,0.6);
  --border-divider: rgba(245,166,35,0.25);

  --gradient-btn-primary: linear-gradient(180deg, #3AA844 0%, #1E6B28 100%);
  --gradient-btn-secondary: linear-gradient(180deg, #4DC05A 0%, #2E8B3A 100%);
  --gradient-btn-mobile: linear-gradient(180deg, #3AA844 0%, #1E6B28 100%);
  --gradient-provider: linear-gradient(135deg, rgba(46,139,58,0.4) 0%, rgba(245,166,35,0.15) 100%);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 60px;
  --space-3xl: 80px;
}

/* 2. RESET + BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Kanit', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: radial-gradient(ellipse at top left, rgba(46,139,58,0.08) 0%, transparent 60%),
                    radial-gradient(ellipse at bottom right, rgba(245,166,35,0.06) 0%, transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: var(--text-link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* 3. TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Kanit', sans-serif;
  color: var(--text-heading);
  line-height: 1.25;
}
h1 { font-size: 32px; font-weight: 600; }
h2 { font-size: 25px; font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; color: var(--text-heading-alt); }

/* 4. BUTTONS (CTA) */
.cta-button {
  display: inline-block;
  background: var(--gradient-btn-primary);
  color: #FFFFFF;
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
  box-shadow: 0 4px 15px rgba(46,139,58,0.4);
  white-space: nowrap;
}
.cta-button:hover { transform: scale(0.96); box-shadow: 0 6px 20px rgba(46,139,58,0.6); color: #fff; }
.cta-button-footer {
  display: inline-block;
  background: var(--gradient-btn-secondary);
  color: #FFFFFF;
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.9);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s;
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
  box-shadow: 0 4px 15px rgba(46,139,58,0.35);
}
.cta-button-footer:hover { transform: scale(0.96); color: #fff; }

/* 5. HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  border-bottom: 1px solid var(--border-header);
  height: 72px;
  display: flex;
  align-items: center;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-md);
}
.logo {
  height: 56px;
  width: auto;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.logo img { height: 48px; width: auto; }
.logo span { color: var(--color-accent); }
nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
nav a {
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1;
}
nav a:hover, nav a.active { color: var(--text-nav-hover); }
.cta-header-nav {
  font-size: 15px;
  padding: 10px 22px;
}

/* 6. HAMBURGER + MOBILE NAV */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  cursor: pointer;
  background: rgba(46,139,58,0.2);
  border: 1px solid rgba(46,139,58,0.4);
  border-radius: 6px;
  padding: 5px 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--color-primary);
  border-bottom: 2px solid var(--border-section);
  z-index: 999;
  padding: var(--space-md);
  flex-direction: column;
  gap: var(--space-sm);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 12px var(--space-md);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.mobile-nav a:hover { color: var(--color-accent); border-color: var(--border-section); background: var(--bg-card-solid); }
.mobile-nav .cta-button { width: 100%; text-align: center; margin-top: var(--space-xs); }

/* 7. FLOATING CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  animation: pulse-cta 2.5s ease-in-out infinite;
}
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,139,58,0.5); }
  50% { box-shadow: 0 0 0 12px rgba(46,139,58,0); }
}
.floating-cta .cta-button { font-size: 15px; padding: 12px 24px; }

/* 8. CONTAINER */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
section { padding: var(--space-xl) 0; }

/* 9. HERO SECTION */
.hero-section { padding: var(--space-xl) 0 var(--space-lg); }
.hero-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-lg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.hero-image img { width: 100%; height: auto; border-radius: 10px; }
.hero-content { text-align: center; max-width: 900px; margin: 0 auto; }
.hero-content h1 { margin-bottom: var(--space-md); font-size: 36px; }
.hero-content p { font-size: 17px; margin-bottom: var(--space-md); opacity: 0.9; }
.hero-content .cta-button { margin-top: var(--space-sm); }

/* 10. TICKER */
.ticker {
  background: var(--bg-ticker);
  border-radius: 20px;
  padding: 10px var(--space-xl);
  overflow: hidden;
  white-space: nowrap;
  margin: var(--space-md) 0;
  border: 1px solid var(--border-section);
}
.ticker-inner {
  display: inline-block;
  animation: ticker-scroll 30s linear infinite;
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 500;
}
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 11. CONTENT CARDS / SECTIONS */
.content-card {
  background: var(--color-surface);
  border: 2px solid var(--border-section);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  transition: box-shadow 0.3s;
}
.content-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.content-card h2 { margin-bottom: var(--space-md); border-bottom: 1px solid var(--border-divider); padding-bottom: var(--space-sm); }
.content-card p { margin-bottom: var(--space-md); }
.content-card p:last-child { margin-bottom: 0; }

/* 12. TWO-COLUMN LAYOUT */
.two-col {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-xl);
  align-items: center;
}
.two-col.reverse { grid-template-columns: 2fr 3fr; }
.two-col.reverse .two-col-image { order: -1; }
.two-col-image img {
  width: 100%;
  border-radius: 10px;
  transition: filter 0.3s;
}
.two-col-image img:hover { filter: brightness(132%) contrast(121%) saturate(116%); }

/* 13. H3 BLOCKS */
.h3-block {
  background: var(--bg-heading-block);
  border-radius: 8px;
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-left: 4px solid var(--color-accent);
}
.h3-block h3 { margin-bottom: var(--space-sm); }
.h3-block ul { padding-left: var(--space-md); }
.h3-block li {
  padding: 6px 0;
  padding-left: var(--space-md);
  position: relative;
  font-size: 15px;
}
.h3-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* 14. FEATURE GRID */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.feature-item {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-section);
  border-radius: 10px;
  padding: var(--space-lg);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(46,139,58,0.3); }
.feature-icon { font-size: 36px; margin-bottom: var(--space-sm); }
.feature-item h3 { font-size: 17px; margin-bottom: var(--space-xs); }
.feature-item p { font-size: 14px; opacity: 0.85; }

/* 15. GAME GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.gallery-item {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-section);
  border-radius: 7px;
  padding: var(--space-sm);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-keyword);
  transition: transform 0.2s;
}
.gallery-item:hover { transform: scale(1.05); color: var(--color-accent); }
.gallery-item img { width: 100%; height: auto; border-radius: 5px; margin-bottom: 4px; }

/* 16. LABEL BARS (PROVIDER BARS) */
.provider-bar {
  background: var(--gradient-provider);
  border: 1px solid var(--border-section);
  border-radius: 7px;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin: var(--space-md) 0;
}
.provider-tag {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-divider);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-keyword);
}

/* 17. STEPS LIST */
.steps-list { counter-reset: steps; padding: 0; }
.steps-list li {
  counter-increment: steps;
  position: relative;
  padding: var(--space-md) var(--space-md) var(--space-md) 56px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-section);
  border-radius: 8px;
  margin-bottom: var(--space-sm);
  font-size: 16px;
}
.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--gradient-btn-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(46,139,58,0.5);
}

/* 18. FAQ SECTION */
.faq-section {
  background: var(--bg-card-dark);
  border-radius: 20px;
  padding: var(--space-xl);
}
.faq-section h2 { text-align: center; margin-bottom: var(--space-xl); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.faq-item {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-faq);
  border-radius: 20px;
  padding: 28px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}
.faq-item:hover { transform: translate3d(0,-8px,0) scale(1.02); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
}
.faq-q .faq-icon { color: var(--color-accent); font-size: 20px; flex-shrink: 0; transition: transform 0.3s; }
.faq-a { font-size: 14px; opacity: 0.85; display: none; margin-top: var(--space-sm); }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* 19. PROMOTION CARDS */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.promo-card {
  background: var(--bg-card-solid);
  border: 2px solid var(--border-section);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}
.promo-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(46,139,58,0.3); }
.promo-card img { width: 100%; height: 200px; object-fit: cover; }
.promo-body { padding: var(--space-lg); }
.promo-badge {
  display: inline-block;
  background: var(--gradient-btn-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: var(--space-sm);
}
.promo-body h2 { font-size: 20px; margin-bottom: var(--space-sm); }
.promo-body p { font-size: 14px; opacity: 0.85; margin-bottom: var(--space-md); }
.promo-steps { font-size: 14px; margin-bottom: var(--space-md); }
.promo-steps li { padding: 4px 0; color: var(--text-keyword); }
.promo-steps li::before { content: "▶ "; color: var(--color-accent); }

/* 20. LOGIN FORM */
.login-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card-solid);
  border: 2px solid var(--border-section);
  border-radius: 16px;
  padding: var(--space-xl);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.login-wrapper h2 { text-align: center; margin-bottom: var(--space-lg); }
.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-heading); }
.form-group input {
  width: 100%;
  height: 48px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 0 var(--space-md);
  font-size: 16px;
  font-family: 'Kanit', sans-serif;
  color: var(--color-text);
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--color-accent); }
.form-group input::placeholder { opacity: 0.5; }
.login-btn { width: 100%; height: 52px; font-size: 18px; border-radius: 12px; margin-top: var(--space-md); }
.login-alt { text-align: center; margin-top: var(--space-md); font-size: 14px; opacity: 0.7; }

/* 21. TOC (TABLE OF CONTENTS) */
.toc-box {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-section);
  border-radius: 10px;
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.toc-box h3 { font-size: 16px; margin-bottom: var(--space-md); color: var(--color-accent); }
.toc-list { display: flex; flex-direction: column; gap: 6px; }
.toc-list a {
  font-size: 15px;
  color: var(--text-keyword);
  text-decoration: none;
  padding: 4px 0 4px var(--space-md);
  border-left: 2px solid var(--border-divider);
  transition: all 0.2s;
}
.toc-list a:hover { color: var(--color-accent); border-left-color: var(--color-accent); padding-left: 20px; }
.toc-list a.toc-sub { margin-left: var(--space-md); font-size: 14px; }

/* 22. BLOG CARDS (ARCHIVE) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.blog-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-section);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(46,139,58,0.25); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-body { padding: var(--space-md); }
.blog-tag {
  display: inline-block;
  background: var(--gradient-btn-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 15px;
  margin-bottom: 8px;
}
.blog-card h3 { font-size: 15px; margin-bottom: 8px; line-height: 1.4; }
.blog-card p { font-size: 13px; opacity: 0.8; line-height: 1.5; margin-bottom: 10px; }
.blog-card-meta { font-size: 12px; opacity: 0.6; }
.blog-read-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 8px;
}
.blog-read-more:hover { color: var(--text-heading); }

/* 23. BLOG POST CONTENT */
.blog-post-container { max-width: 860px; margin: 0 auto; }
.blog-meta { display: flex; gap: var(--space-md); align-items: center; font-size: 14px; opacity: 0.7; margin-bottom: var(--space-lg); flex-wrap: wrap; }
.blog-meta span { display: flex; align-items: center; gap: 4px; }
.blog-featured-img { width: 100%; border-radius: 10px; margin-bottom: var(--space-xl); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.blog-body h2 { margin: var(--space-xl) 0 var(--space-md); padding-top: var(--space-sm); border-top: 1px solid var(--border-divider); }
.blog-body p { margin-bottom: var(--space-md); }
.blog-body ul { padding-left: var(--space-xl); margin-bottom: var(--space-md); }
.blog-body ul li { padding: 4px 0; }
.blog-body table { width: 100%; border-collapse: collapse; margin: var(--space-md) 0; }
.blog-body th { background: var(--gradient-btn-primary); color: #fff; padding: 10px var(--space-md); text-align: left; font-size: 14px; }
.blog-body td { padding: 10px var(--space-md); border-bottom: 1px solid var(--border-divider); font-size: 14px; }
.blog-body tr:nth-child(even) td { background: rgba(46,139,58,0.08); }
.blog-links { margin-top: var(--space-xl); padding: var(--space-lg); background: var(--bg-card-solid); border-radius: 10px; border: 1px solid var(--border-section); }
.blog-links h3 { font-size: 16px; margin-bottom: var(--space-md); }
.blog-links ul { padding-left: var(--space-md); }
.blog-links li { padding: 6px 0; }

/* 24. FOOTER */
footer {
  background: var(--bg-footer);
  border-top: 2px solid var(--border-footer);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-brand { font-size: 24px; font-weight: 700; color: var(--text-footer-brand); margin-bottom: var(--space-sm); }
.footer-desc { font-size: 14px; opacity: 0.7; line-height: 1.7; margin-bottom: var(--space-md); }
.footer-col h4 { font-size: 15px; font-weight: 700; color: var(--text-heading); margin-bottom: var(--space-md); border-bottom: 1px solid var(--border-divider); padding-bottom: var(--space-xs); }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-bottom {
  text-align: center;
  font-size: 13px;
  opacity: 0.5;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-divider);
}

/* 25. SECTION HEADINGS */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.section-heading h2 { margin-bottom: var(--space-sm); }
.section-heading p { opacity: 0.75; font-size: 16px; max-width: 600px; margin: 0 auto; }

/* 26. CTA BANNER */
.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, rgba(46,139,58,0.25) 0%, rgba(245,166,35,0.12) 100%);
  border: 2px solid var(--border-section);
  border-radius: 16px;
  padding: var(--space-xl) var(--space-2xl);
  margin: var(--space-xl) 0;
}
.cta-banner h2 { margin-bottom: var(--space-md); }
.cta-banner p { font-size: 16px; opacity: 0.85; margin-bottom: var(--space-lg); }

/* 27. ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* 28. BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: var(--gradient-btn-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 800;
  box-shadow: 0 4px 15px rgba(46,139,58,0.4);
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); color: #fff; }

/* 29. RESPONSIVE — TABLET */
@media (max-width: 1023px) {
  h1 { font-size: 25px; }
  h2 { font-size: 21px; }
  h3 { font-size: 19px; }
  body { font-size: 16px; }
  .hamburger { display: flex; }
  nav { display: none; }
  .cta-header-nav { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .two-col-image { order: 0; }
  /* H2-2 games section: move image to end of content on tablet */
  #h2-2-games .content-card { display: flex; flex-direction: column; }
  #h2-2-games .content-card .two-col { display: contents; }
  #h2-2-games .content-card .two-col-text { order: 1; }
  #h2-2-games .content-card .two-col-image { order: 10; }
  #h2-2-games .content-card .provider-bar { order: 2; }
}

/* 30. RESPONSIVE — MOBILE */
@media (max-width: 767px) {
  h1 { font-size: 20px; }
  h2 { font-size: 19px; }
  h3 { font-size: 17px; }
  body { font-size: 15px; }
  section { padding: var(--space-lg) 0; }
  .container { padding: 0 var(--space-md); }
  .hero-content { text-align: left; }
  .feature-grid { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-button { display: block; text-align: center; width: 100%; }
  .content-card { padding: var(--space-lg); }
  .content-card .two-col { gap: var(--space-lg); }
  /* H2-2 games section: move image to end of content on mobile */
  #h2-2-games .content-card { display: flex; flex-direction: column; }
  #h2-2-games .content-card .two-col { display: contents; }
  #h2-2-games .content-card .two-col-text { order: 1; }
  #h2-2-games .content-card .two-col-image { order: 10; }
  #h2-2-games .content-card .provider-bar { order: 2; }
  .cta-banner { padding: var(--space-lg); }
  .login-wrapper { padding: var(--space-md); }
  .faq-grid { grid-template-columns: 1fr; }
  .floating-cta { bottom: 80px; right: var(--space-md); }
  .back-to-top { bottom: 80px; left: var(--space-md); }
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
  .terms-table { display: block; overflow-x: auto; }
  .blog-body table { display: block; overflow-x: auto; }
  .promo-page-section img { max-width: 100%; }
  .ticker { white-space: nowrap; max-width: 100%; }
}

/* 30b. MOBILE OVERFLOW SAFETY */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  img { max-width: 100%; height: auto; }
  .header-inner, .container, .content-card, .hero-section, .faq-section, .cta-banner, .login-wrapper, .promo-page-section { max-width: 100%; overflow-x: hidden; }
  .provider-bar { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .ticker { max-width: 100%; overflow: hidden; }
  table { max-width: 100%; display: block; overflow-x: auto; }
  pre, code { max-width: 100%; overflow-x: auto; word-break: break-all; }
}

/* 31. MOBILE BOTTOM NAV */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 990;
  border-top: 1px solid var(--border-section);
  justify-content: space-around;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0 4px;
}
@media (max-width: 767px) { .mobile-bottom-nav { display: flex; } }
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  color: rgba(255,255,255,0.7);
  gap: 1px;
  text-decoration: none;
  padding: 4px 2px;
  transition: color 0.2s;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.mobile-bottom-nav a span:first-child { font-size: 18px; }
.mobile-bottom-nav a span:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mobile-bottom-nav a:hover, .mobile-bottom-nav a.active { color: var(--color-accent); }

/* 32. PROMO PAGE SPECIFIC */
.promo-page-section {
  background: var(--color-surface);
  border: 2px solid var(--border-section);
  border-radius: 10px;
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.promo-page-section h2 {
  font-size: 22px;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-divider);
}
.promo-page-section img { width: 100%; max-width: 600px; margin-left: auto; margin-right: auto; border-radius: 8px; margin-bottom: var(--space-md); }
.promo-steps-inline { margin: var(--space-md) 0; }
.promo-steps-inline li { padding: 8px 0; font-size: 15px; }

/* 33. TERMS TABLE */
.terms-table { width: 100%; border-collapse: collapse; margin: var(--space-md) 0; font-size: 14px; }
.terms-table th { background: rgba(46,139,58,0.3); padding: 10px var(--space-md); text-align: left; border: 1px solid var(--border-section); color: var(--text-heading); }
.terms-table td { padding: 10px var(--space-md); border: 1px solid var(--border-divider); }
.terms-table tr:nth-child(even) td { background: rgba(46,139,58,0.05); }

/* 34. READING TIME BADGE */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  opacity: 0.6;
  background: var(--bg-card-solid);
  border-radius: 12px;
  padding: 3px 10px;
}
