/*
Theme Name: M3 Online Casino
Theme URI: https://m3livevip.com
Description: Advanced Premium M3 Online Casino Theme - Admin-Driven Architecture
Author: M3 Team
Version: 4.0
*/

/* ============================================================
   CSS VARIABLES - M3 White Brand System
   ============================================================ */
:root {
  --gold:            #d7c560;
  --gold-dark:       #c1ae4c;
  --gold-light:      #ffe97a;
  --gold-metallic:   linear-gradient(135deg, #fce57e 0%, #d7c560 50%, #b8962e 100%);
  --gold-glow:       rgba(215, 197, 96, 0.35);

  /* White Theme Colors */
  --bg-body:         #f3f5f9;
  --bg-white:        #ffffff;
  --bg-light:        #f3f5f9;
  --bg-section:      #f8f9fc;
  --bg-card:         #ffffff;

  /* Header */
  --topbar-bg:       #d7c560;
  --nav-bg:          #1a1a1a;
  --nav-text:        #ffffff;

  /* Text */
  --text-dark:       #1a1a1a;
  --text-body:       #3c3c3c;
  --text-muted:      #6b7280;
  --text-light:      #ffffff;

  /* Borders */
  --border:          #e5e7eb;
  --border-dark:     #d1d5db;

  /* Shadows */
  --shadow-sm:       0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:       0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:       0 8px 32px rgba(0,0,0,0.14);
  --shadow-gold:     0 4px 20px rgba(215,197,96,0.35);

  /* Radius */
  --radius-sm:       4px;
  --radius-md:       8px;
  --radius-lg:       12px;
  --radius-xl:       20px;

  /* Transition */
  --transition:      all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --font-head:       'Montserrat', 'Lato', sans-serif;
  --font-body:       'Lato', sans-serif;

  /* Header heights */
  --topbar-h:        70px;
  --nav-h:           50px;
  --total-header-h:  120px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-body);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--total-header-h);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }
p { margin-bottom: 1.2rem; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0; /* Flush on mobile */
}

@media (min-width: 768px) {
  .container { padding: 0 20px; }
}

/* Helper for legibility on white bg */
.text-shadow-sm { text-shadow: 1px 1px 1px rgba(0,0,0,0.15); }
.text-shadow-md { text-shadow: 1px 1px 2px rgba(0,0,0,0.25); }


.footer-seo-inner {
  max-height: 180px;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.footer-seo-inner.open {
  max-height: 5000px;
}

.section-pad    { padding: 72px 0; }
.section-pad-sm { padding: 48px 0; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ============================================================
   TOP BAR (Gold background — Logo + Auth buttons)
   ============================================================ */
.top-bar {
  background: var(--topbar-bg);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10002;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.header-top-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* Auth actions */
.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Live chat icon in top bar (White square style like reference) */
.livechat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border-radius: var(--radius-md);
  color: #000000;
  font-size: 24px;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.livechat-btn:hover { background: #f0f0f0; transform: translateY(-2px); }

/* Login button */
.btn-login {
  padding: 7px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-head);
  text-decoration: none;
  transition: var(--transition);
  background: transparent;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-login:hover { background: #1a1a1a; color: var(--gold); }

/* Register button */
.btn-register {
  padding: 7px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-head);
  text-decoration: none;
  transition: var(--transition);
  background: #1a1a1a;
  color: var(--gold);
  border: 2px solid #1a1a1a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-register::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 0 var(--gold-glow);
  animation: pulse-register 2.5s ease-in-out infinite;
}
@keyframes pulse-register {
  0%   { box-shadow: 0 0 0 0 rgba(215,197,96,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(215,197,96,0); }
  100% { box-shadow: 0 0 0 0 rgba(215,197,96,0); }
}
.btn-register:hover { background: #000; color: var(--gold-light); }

/* Custom Language Switcher (Flags horizontal) */
.m3-custom-lang {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-left: 10px !important;
}
.lang-flag-link {
  display: block;
  line-height: 0;
  transition: transform 0.2s ease;
  text-decoration: none !important;
}
.lang-flag-link:hover {
  transform: scale(1.15) translateY(-2px);
}
.lang-flag-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ============================================================
   MOBILE HEADER ADJUSTMENTS
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --topbar-h: 60px;
  }
  .site-logo img {
    height: 38px;
  }
  .auth-actions {
    gap: 8px;
  }
  .m3-custom-lang {
    gap: 6px !important;
    margin-left: 6px !important;
  }
  .lang-flag-link img {
    width: 24px;
    height: 24px;
  }
  .btn-login, .btn-register {
    padding: 6px 10px;
    font-size: 10px;
  }
  .livechat-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}



/* ============================================================
   NAVIGATION BAR (Black background)
   ============================================================ */
#site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  z-index: 10001;
  height: var(--nav-h);
  background: var(--nav-bg);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-nav { width: 100%; }

.site-nav > ul {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
  height: var(--nav-h);
  align-items: stretch;
}

.site-nav > ul > li { display: flex; align-items: stretch; }

.site-nav > ul > li > a {
  color: var(--nav-text);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-head);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  transition: var(--transition);
  opacity: 0.85;
  white-space: nowrap;
  letter-spacing: 0.04em;
  border-bottom: 3px solid transparent;
}

.site-nav > ul > li > a i {
  font-size: 16px;
  color: var(--gold);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.site-nav > ul > li > a:hover i {
  transform: scale(1.2) translateY(-2px);
}

.site-nav > ul > li > a:hover,
.site-nav > ul > li.current-menu-item > a,
.site-nav > ul > li.current_page_item > a {
  opacity: 1;
  color: var(--gold);
  background: rgba(255,255,255,0.06);
  border-bottom-color: var(--gold);
}

/* Promotion special item */
.site-nav > ul > li.menu-promo > a,
.site-nav > ul > li.nav-promo > a {
  color: #fff;
}
.site-nav > ul > li.menu-promo > a i,
.site-nav > ul > li.nav-promo > a i {
  color: #2ecc71 !important;
}
.site-nav > ul > li.menu-promo > a:hover { color: #2ecc71; }

/* ============================================================
   ANNOUNCEMENT / TICKER BAR
   ============================================================ */
.announcement-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
  display: flex;
  align-items: center;
}

.ticker-icon {
  flex-shrink: 0;
  padding: 0 12px;
  color: var(--gold-dark);
  font-size: 15px;
}

.ticker-wrap { overflow: hidden; white-space: nowrap; flex: 1; }

.ticker {
  display: inline-block;
  animation: ticker-scroll 35s linear infinite;
}
.ticker:hover { animation-play-state: paused; }

.ticker-item {
  display: inline-block;
  padding: 0 40px;
  color: var(--text-body);
  font-size: 13px;
}
.ticker-item::before {
  content: '⋆';
  margin-right: 12px;
  color: var(--gold-dark);
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  width: 100%;
  height: auto;
  position: relative;
  margin: 0;
  background: #000;
}

.hero-slider .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--gold) !important;
  background: rgba(0,0,0,0.4);
  width: 42px !important;
  height: 42px !important;
  border-radius: 50%;
}
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 16px !important; }

.swiper-pagination-bullet { background: rgba(255,255,255,0.6); }
.swiper-pagination-bullet-active { background: var(--gold) !important; }

/* ============================================================
   JACKPOT COUNTER
   ============================================================ */
.jackpot-band {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.jackpot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 40px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.jackpot-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-metallic);
}

.jackpot-left { flex: 1; }
.jackpot-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 6px;
}
.jackpot-amount {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 900;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; margin-bottom: 48px; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.section-title .gold-text {
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--gold-metallic);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ============================================================
   GAME CATEGORY ICONS STRIP
   ============================================================ */
.category-strip {
  background: var(--bg-white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.category-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}
.category-grid::-webkit-scrollbar { display: none; }

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  padding: 20px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  min-width: 110px;
  box-shadow: var(--shadow-sm);
  gap: 10px;
}
.category-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
  color: var(--text-dark);
}
.category-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: var(--transition);
}
.category-item:hover img { transform: scale(1.08); }
.category-item span {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.category-item:hover span { color: var(--gold-dark); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold-metallic);
  color: #1a1a1a;
  font-weight: 800;
  box-shadow: 0 3px 12px var(--gold-glow);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-glow);
  color: #000;
}

/* Fix Gutenberg Native Buttons Double Styling */
.wp-block-button.btn {
  padding: 0 !important;   /* Let the a tag handle padding */
  border: none !important; /* Let the a tag handle border */
  background: transparent !important; /* Let the a tag handle bg */
  box-shadow: none !important;
}
.wp-block-button.btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
  text-decoration: none;
}
.wp-block-button.btn.btn-gold .wp-block-button__link {
  background: var(--gold-metallic);
  color: #1a1a1a;
  font-weight: 800;
  box-shadow: 0 3px 12px var(--gold-glow);
}
.wp-block-button.btn.btn-gold .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-glow);
  color: #000;
}

.btn-dark {
  background: #1a1a1a;
  color: var(--gold);
  border: 2px solid #1a1a1a;
}
.btn-dark:hover { background: #000; color: var(--gold-light); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-dark);
  color: var(--text-dark);
}
.btn-outline:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

/* ============================================================
   ABOUT / CONTENT SECTIONS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}
.about-content p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
}

.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* Feature list */
.feature-list { display: flex; flex-direction: column; gap: 18px; margin: 28px 0; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, rgba(215,197,96,0.15), rgba(215,197,96,0.05));
  border: 1px solid rgba(215,197,96,0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.feature-text h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.feature-text p { font-size: 13px; color: var(--text-muted); margin-bottom: 0; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-item { border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-item .stat-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 4px;
}
.stat-item .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  background: var(--bg-section);
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.video-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.video-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-card-body { padding: 18px; }
.video-card-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.video-card-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 0; }

/* ============================================================
   PROMO CARDS
   ============================================================ */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.promo-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.promo-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.promo-card img { width: 100%; height: auto; object-fit: cover; }
.promo-card-body { padding: 16px; }
.promo-card-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.promo-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(215,197,96,0.12);
  border: 1px solid rgba(215,197,96,0.35);
  border-radius: 24px;
  font-size: 11px;
  font-weight: 700;
  color: #b8962e;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   PROVIDER / GAME GRID
   ============================================================ */
.provider-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
.provider-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.provider-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}
.provider-card img {
  width: 100%;
  height: 160px;
  padding: 16px;
  object-fit: contain;
  background: var(--bg-section);
}
.provider-card-name {
  padding: 12px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ============================================================
   SPONSORSHIP PAGE
   ============================================================ */
.sponsor-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  background: #111;
  overflow: hidden;
}

.sponsor-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 40%, transparent 100%);
  z-index: 1;
}

.sponsor-hero-img {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 55%;
  object-fit: cover;
  object-position: top center;
}

.sponsor-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 560px;
}

.sponsor-profile {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
}
.sponsor-profile img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   LIVE CHAT BUBBLE (floating)
   ============================================================ */
.livechat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.livechat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0,0,0,0.3);
  color: #1a1a1a;
}
.livechat-bubble-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: chat-pulse 2s ease-in-out infinite;
  opacity: 0;
}
@keyframes chat-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
#site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  margin-top: 0;
}

/* Top footer grid */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.footer-about-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.footer-gc-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.footer-gc-badge img {
  height: 36px;
  width: auto;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links li a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer-links li a:hover { color: var(--gold-dark); }

/* Certification row */
.footer-cert-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.footer-cert-logos img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: var(--transition);
}
.footer-cert-logos img:hover { filter: grayscale(0%); }
.footer-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Bottom footer row — icons section */
.footer-bottom-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.footer-icon-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer-icon-badge:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.footer-icon-badge i { font-size: 15px; }

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--text-dark);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: var(--transition);
}
.footer-social-link:hover { background: var(--gold-dark); color: #1a1a1a; }

/* SEO text section */
.footer-seo {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.footer-seo h2 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.footer-seo p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 900px;
  margin-bottom: 10px;
}
.footer-seo-toggle {
  background: none;
  border: none;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  font-family: var(--font-body);
}
.footer-seo-toggle:hover { color: var(--gold); }
.footer-seo-hidden { display: none; }
.footer-seo-hidden.open { display: block; }

/* Copyright bar */
.footer-copyright {
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   MOBILE DRAWER MENU
   ============================================================ */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10003;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-drawer-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 10004;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.mobile-drawer.open { right: 0; }

.drawer-header {
  background: var(--nav-bg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header-title {
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.drawer-menu { list-style: none; padding: 0; margin: 0; }
.drawer-menu li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.drawer-menu li a:hover { background: var(--bg-section); color: var(--gold-dark); }
.drawer-menu li a i {
  font-size: 18px;
  color: var(--gold-dark);
  width: 22px;
  text-align: center;
}
.drawer-menu .menu-promo a,
.drawer-menu .nav-promo a { color: #1a9a4a; }
.drawer-menu .menu-promo a i,
.drawer-menu .nav-promo a i { color: #2ecc71; }

/* ============================================================
   MOBILE —  small screens
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --topbar-h: 60px;
    --nav-h: 46px;
    --total-header-h: 106px;
  }

  body { padding-top: calc(var(--topbar-h) + var(--nav-h)); }

  .site-logo img { height: 44px; }

  .btn-login,
  .btn-register { padding: 5px 12px; font-size: 11px; }

  .lang-switch { display: none; }

  .nav-toggle { display: flex; }

  /* Nav bar: horizontal scroll on mobile */
  .site-nav > ul {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav > ul::-webkit-scrollbar { display: none; }

  .site-nav > ul > li > a {
    padding: 4px 10px;
    font-size: 10px;
    gap: 3px;
  }
  .site-nav > ul > li > a i { font-size: 14px; }

  /* Category strip */
  .category-grid { flex-wrap: nowrap; justify-content: flex-start; }
  .category-item { min-width: 90px; }

  /* About grid */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-img { order: -1; }

  /* Stats */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 20px;
  }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2n) { border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }

  /* Video grid */
  .video-grid { grid-template-columns: 1fr; }

  /* Promo grid */
  .promo-grid { grid-template-columns: 1fr 1fr; }

  /* Provider grid */
  .provider-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom-row { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 600px) {
  .auth-actions { gap: 6px; }
  .btn-login,
  .btn-register { padding: 5px 10px; font-size: 10px; }

  .livechat-btn { width: 34px; height: 34px; font-size: 15px; }

  .about-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 20px; }
  .promo-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom-row { grid-template-columns: 1fr; }

  .jackpot-inner { padding: 18px 20px; flex-direction: column; align-items: flex-start; }
  .jackpot-amount { font-size: 28px; }

  .section-title { font-size: 22px; }

  .sponsor-profile { grid-template-columns: 1fr; }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-init.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center  { text-align: center; }
.text-gold    { color: var(--gold-dark); }
.bg-white     { background: var(--bg-white); }
.bg-light     { background: var(--bg-section); }
.mt-4         { margin-top: 1rem; }
.no-scroll    { overflow: hidden; }

/* ============================================================
   PAGE TEMPLATE SECTIONS (Casino, Slots, Sports, etc.)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold-metallic);
}
.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.page-hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
}

/* App download buttons */
.app-download-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #1a1a1a;
  color: #fff;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.app-btn:hover { background: #000; color: var(--gold); border-color: var(--gold); }
.app-btn i { font-size: 18px; }
/* ============================================================
   HOME PAGE - WHITE EDITION ENHANCEMENTS
   ============================================================ */

/* Jackpot Band */
.jackpot-band {
  background: var(--bg-white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.jackpot-inner {
  background: #fff;
  padding: 30px 40px;
  border-radius: var(--radius-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}
.jackpot-inner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at right center, rgba(215,197,96,0.1), transparent 50%);
  pointer-events: none;
}
.jackpot-label {
  color: var(--text-muted);
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 15px;
  margin-bottom: 5px;
}
.jackpot-amount {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 900;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  letter-spacing: -1px;
}
.jackpot-badge {
  background: var(--gold-metallic);
  color: #000;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px var(--gold-glow);
  transform: none !important;
  font-style: normal !important;
}

/* Hot Games Badge */
.hot-badge {
  background: #ff4d4d;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,77,77,0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255,77,77,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,77,77,0); }
}

/* About Modern Layout */
.about-modern-layout {
  max-width: 1000px;
  margin: 0 auto;
}
.about-title-large {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 12px;
}
.about-sub-gold {
  color: var(--gold-dark);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 24px;
}
.about-text-content p {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}
.about-grid-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.about-box-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* App Section Alt */
.app-section-alt {
  border-top: 1px solid var(--border);
  padding: 80px 0;
}
.app-flex-row {
  display: flex;
  align-items: center;
  gap: 60px;
}
.app-text-side { flex: 1; }
.app-img-side { flex: 1; }
.app-mockup {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}
.app-qr-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: fit-content;
  margin-top: 30px;
  box-shadow: var(--shadow-sm);
}
.app-qr {
  width: 80px;
  height: 80px;
  border-radius: 4px;
}
.app-qr-box p {
  margin: 0;
  font-weight: 800;
  color: var(--text-dark);
}

@media (max-width: 991px) {
  .jackpot-inner { flex-direction: column; text-align: center; gap: 20px; padding: 30px 20px; }
  .jackpot-amount { font-size: 36px; }
  .about-modern-layout .about-grid-content { grid-template-columns: 1fr; }
  .app-flex-row { flex-direction: column; text-align: center; }
  .app-qr-box { margin: 30px auto 0; }
}
/* Redesigned App Section Styles */
.app-section-refined {
  border-top: 1px solid var(--border);
  padding: 100px 0;
}
.app-visual-flex {
  justify-content: center;
  margin: 50px 0;
}
.app-btn-premium {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid #333;
  min-width: 220px;
  text-align: left;
}
.app-btn-premium:hover {
  background: #222;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.app-btn-premium i {
  font-size: 32px;
  color: var(--gold);
}
.app-btn-premium div span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
  line-height: 1.2;
}
.app-btn-premium div strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-head);
}

.android-btn i { color: #3DDC84; }
.ios-btn i { color: #fff; }

.app-qr-refined .qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}
.app-qr-refined .qr-container:hover {
  transform: scale(1.05);
  border-color: var(--gold);
}

/* About Section Icon Refinement */
.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border);
  vertical-align: middle;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .app-visual-flex { gap: 20px; }
  .app-mockup { max-width: 260px !important; }
  .app-btn-premium { width: 100%; min-width: auto; }
}

/* ============================================================
   HOME PAGE - FINAL POLISH V3 (WHITE LAYOUT & MOBILE FIX)
   ============================================================ */

/* Hot Games Layout Fix */
.hot-games-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px 25px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.hot-games-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}
.hot-game-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  margin: 0;
}
.hot-game-title a { color: inherit; text-decoration: none; transition:var(--transition); }
.hot-game-title a:hover { color: var(--gold); }
@media (max-width: 900px) {
  .hot-games-flex { flex-direction: column; text-align: center; gap: 12px; justify-content: center; }
  .hot-game-title { font-size: 20px; }
  .hot-games-card { padding: 25px 20px; }
}

/* Jackpot Badge Mobile Straighten */
@media (max-width: 768px) {
  .jackpot-badge { transform: rotate(0) !important; }
  .jackpot-amount { font-size: 32px !important; }
}

/* About Section Enhancements */
.about-title-large {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .about-title-large { font-size: 26px !important; }
  .about-sub-gold { font-size: 18px; }
  /* Alternating grid fixes */
  .about-grid-reverse .about-text-side { order: 1; }
  .about-grid-reverse .about-img-upload { order: 2; margin-top: 30px; }
}
.about-box-simple {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.about-box-simple:hover { box-shadow: var(--shadow-md); border-color: var(--gold); }

/* App Section V1 Reverted & Standardized */
.app-section-white {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.app-layout-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}
.app-mockup-frame {
  flex: 1;
  text-align: right;
}
.app-mockup-img {
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}
.app-content-frame {
  flex: 1;
  text-align: left;
}
.app-download-tools {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}
.app-actions-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.custom-app-btn-link {
  display: inline-block;
  transition: var(--transition);
}
.custom-app-btn-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Standard App Store Buttons */
.store-btn-standard {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  min-width: 200px;
  text-align: left;
  transition: var(--transition);
  border: 1px solid #111;
}
.store-btn-standard:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.store-btn-standard i {
  font-size: 32px;
  color: #fff;
}
.store-btn-text span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
  line-height: 1.2;
}
.store-btn-text strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-head);
}

@media (max-width: 991px) {
  .app-layout-split { flex-direction: column; text-align: center; gap: 40px; align-items: center; }
  .app-mockup-frame { text-align: center; width: 100%; display: flex; justify-content: center; }
  .app-content-frame { text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; }
  .text-left-desktop { text-align: center !important; }
  .app-download-tools { flex-direction: column; align-items: center; }
  .app-qr-refined .qr-container { margin: 0 auto; }
}
@media (max-width: 768px) {
  .app-actions-column { width: 100%; align-items: center; display: flex; flex-direction: column; justify-content: center; gap: 15px;}
}

/* ============================================================ */
/* FOOTER */
/* ============================================================ */
#site-footer {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-body);
}

.footer-columns-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}
.about-col {
  flex: 1.5;
}
.text-right-col {
  text-align: left;
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 15px;
  color: #000;
}
.mt-4 { margin-top: 30px !important; }

.footer-about-text {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.footer-badge-img {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  display: block;
}
.text-right-col .footer-badge-img {
  margin-left: 0; /* Forced left for Certification/Responsible as requested */
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #666;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--gold-dark);
}

.footer-social-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.text-right-col .footer-social-row {
  justify-content: flex-end;
}
.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  transition: transform 0.2s ease;
  background: white;
  border: 1px solid #ddd;
}
.footer-social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ===== SEO TEXT ===== */
.footer-seo {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.footer-seo h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
/* ===== SEO TEXT IN FOOTER ===== */
#footer-seo-inner {
  max-height: 250px; /* Show first part (First title + roughly 1 paragraph) */
  overflow: hidden;
  transition: max-height 0.4s ease;
  position: relative;
  display: block !important;
  width: 100% !important;
}

/* Gradient fade at the bottom when collapsed */
#footer-seo-inner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--bg-light) 0%, rgba(243, 245, 249, 0) 100%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#footer-seo-inner.open {
  max-height: 5000px; /* Large enough for full content */
}

#footer-seo-inner.open::after {
  opacity: 0;
}

#footer-seo-toggle {
  background: none;
  border: none;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-top: 15px;
}
#footer-seo-toggle:hover {
  text-decoration: underline;
}

/* ===== COPYRIGHT ===== */
.footer-copyright {
  text-align: left;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 12px;
  color: #888;
}

@media (max-width: 991px) {
  .footer-columns-row { flex-direction: column; gap: 40px; }
  .text-right-col { text-align: left; }
  .text-right-col .footer-badge-img { margin-left: 0; }
  .text-right-col .footer-social-row { justify-content: flex-start; }
  .about-col { flex: 1; }
  #site-footer .container { padding: 0 20px; }
}

/* ============================================================
   HOMEPAGE SPECIFIC BLOCKS STYLING
   ============================================================ */

/* Recommended Games Grid */
.category-strip { 
  margin: 0 !important; /* Remove gaps between blocks */
  padding: 40px 0;
  background: #fff;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
@media (max-width: 767px) {
  .category-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 12px;
    padding: 10px 15px 25px !important;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
  }
  .category-grid::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome/Safari */
  .category-item {
    flex: 0 0 calc(30% - 12px); /* 3 items per screen roughly */
    min-width: 100px;
  }
}
@media (min-width: 600px) and (max-width: 991px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}
.category-item {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 10px;
  gap: 10px;
  text-decoration: none !important;
  color: var(--text-base) !important;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.category-item span:first-child {
  font-size: 32px !important; /* Slightly smaller emojis to fit flex */
}
.category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border-color: var(--gold);
  color: var(--primary) !important;
}

/* Hot Games Flex */
.hot-games-card {
  margin: 0 !important;
  padding-bottom: 30px;
}
.hot-games-flex {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}
@media (min-width: 768px) {
  .hot-games-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
  }
}
.hot-badge {
  background: #ef4444;
  color: white !important;
  display: inline-block !important; /* Force inline-block to only wrap text */
  margin: 0 auto 10px !important; /* Center and add gap below */
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px !important;
  font-weight: 700;
  text-transform: uppercase;
}
.hot-game-title {
  margin: 0 !important;
  font-size: 24px !important;
  font-weight: 800 !important;
}
.hot-game-title a {
  color: var(--text-dark) !important;
  text-decoration: none !important;
}
.hot-game-title a:hover {
  color: var(--primary) !important;
}

/* ============================================================
   SEO LONG-FORM CONTENT Styles (Shared by patterns and footer)
   ============================================================ */
/* Universal Centering Fallback - Broad coverage, no longer forcing !important */
.page-content-wrap, 
.page-content-wrap * {
  text-align: center; 
}

/* Specific SEO Content Wrapper overrides - Default to center but allow overrides */
.page-content-wrap .seo-content,
.about-section {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.seo-content, 
.seo-content *,
.about-section,
.about-section * {
  margin-left: auto;
  margin-right: auto;
}

/* Explicitly reset Footer SEO to left-aligned */
.footer-seo .seo-content,
.footer-seo .seo-content * {
  text-align: left !important;
}

.seo-content {
  padding: 40px 0;
  max-width: 1100px;
  margin: 0 auto;
  display: block !important;
  width: 100% !important;
  clear: both !important;
}

.page-content-wrap .seo-content .has-text-align-left,
.page-content-wrap .seo-content .alignleft,
.about-section .has-text-align-left {
  text-align: left !important;
}
.page-content-wrap .seo-content .has-text-align-right,
.page-content-wrap .seo-content .alignright,
.about-section .has-text-align-right {
  text-align: right !important;
}

/* Force Block Elements to actually be Blocks */
.seo-content h2, 
.seo-content h3, 
.seo-content p, 
.seo-content ul, 
.seo-content ol, 
.seo-content hr,
.seo-title,
.seo-subtitle {
  display: block !important;
  width: 100% !important;
  clear: both !important;
  float: none !important;
}

.page-content-wrap .seo-content h2, 
.page-content-wrap .seo-title, 
.about-text h2, 
.page-content-wrap .seo-content .wp-block-heading {
  font-family: var(--font-head);
  font-size: clamp(20px, 4vw, 24px) !important;
  font-weight: 900 !important;
  color: #000000 !important;
  margin: 40px auto 20px !important; 
  line-height: 1.35;
  text-align: center;
  display: block;
}
.page-content-wrap .seo-content h3, 
.page-content-wrap .seo-subtitle, 
.about-text h3 {
  font-family: var(--font-head);
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #000000 !important;
  margin: 45px auto 20px !important;
  display: block !important;
  width: 100% !important;
  text-align: center;
}
.page-content-wrap p, 
.seo-content p, 
.about-text p, 
.page-content-wrap .wp-block-paragraph {
  font-size: 16px !important;
  color: #000000 !important;
  line-height: 1.8 !important;
  margin: 20px 0 30px !important; 
  display: block;
  width: 100%;
  text-align: center; /* Default center, no !important */
}
.seo-content strong {
  font-weight: 900 !important; /* Much heavier bold */
  color: #000000 !important;
}

/* Bullet list styling - Shared Centering */
.seo-content .seo-list, .seo-content ul:not(.nav) {
  list-style: none !important;
  padding: 0 !important;
  margin: 25px auto 35px !important; /* Centered margin */
  display: inline-block !important; /* Allow width to wrap for centering */
  text-align: left; /* Keep text aligned left within the centered block */
  width: auto !important;
  max-width: 90%;
}
.seo-content .seo-list li, .seo-content ul:not(.nav) li {
  position: relative !important;
  display: block !important; 
  list-style-type: none !important;
  margin-bottom: 16px !important;
  font-size: 16px !important;
  color: #000000 !important;
  padding-left: 20px !important; /* Space for bullet */
  line-height: 1.7 !important;
}
.seo-content .seo-list li::before, .seo-content ul:not(.nav) li::before {
  content: "•" !important;
  color: var(--gold) !important;
  position: absolute !important;
  left: 0 !important;
  font-size: 32px !important;
  line-height: 1 !important;
  top: -2px !important;
  display: block !important;
}

/* Hide empty images or images with internal placeholders */
.seo-content img[src=""], 
.seo-content img:not([src]),
.seo-content img[alt*="About Image"] {
  display: none !important;
}

/* About Us Layout refinement */
.about-section {
  padding: 60px 0;
  background: #fff;
}
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (min-width: 992px) {
  .about-grid {
    flex-direction: row;
    align-items: center;
  }
}
.about-text, .about-text * { 
  text-align: center; /* Default center */
}
/* Ensure columns center things vertically and horizontally */
.wp-block-columns, .wp-block-media-text, .about-grid {
  display: flex !important;
  align-items: center !important; /* VERTICAL CENTERING as requested */
  justify-content: center !important;
  text-align: center;
}
.about-text { 
  flex: 1; 
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-image { 
  flex: 1; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Divider spacing */
.seo-divider, .seo-content hr {
  border: 0 !important;
  border-top: 1px solid #e5e7eb !important;
  margin: 55px 0 !important; /* Generous space around HR */
  height: 1px !important;
  display: block !important;
  width: 100% !important;
  opacity: 1 !important;
}

/* Numeric List for Registration Steps */
.seo-list-num {
  margin: 25px 0 30px 40px !important;
  color: var(--gold-dark);
}
.seo-list-num li {
  margin-bottom: 14px !important;
  font-size: 15px !important;
}
