/* BDMBet Casino */

:root {
  --bg-primary: #0B0E13;
  --bg-secondary: #111621;
  --bg-card: #161C28;
  --bg-card-hover: #1C2436;
  --gold: #F5D400;
  --gold-dark: #C9A800;
  --gold-light: #FFE94A;
  --text-white: #F0F0F0;
  --text-muted: #9CA3AF;
  --text-light: #D1D5DB;
  --border-subtle: rgba(245, 212, 0, 0.10);
  --shadow-gold: rgba(245, 212, 0, 0.18);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: .25s ease;

/* Spacing */
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--gold-light); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Scroll offset for sticky header */
[id] {
  scroll-margin-top: 80px;
}


/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 19, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 var(--sp-lg);
  gap: var(--sp-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 32px;
  width: auto;
}

/* Desktop nav — takes remaining space, centers links */
.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
  white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--gold);
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: width var(--transition);
}

nav ul li a:hover::after { width: 100%; }



/* Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--gold-light);
  color: #0B0E13;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--shadow-gold);
}




/* Hero */
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0B0E13, #111D30, #0B0E13);
  line-height: 0;
}

.hero-banner a { display: block; }

.hero-banner img {
  width: 100%;
  height: auto;
}


/* Layout */
.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--sp-2xl) var(--sp-md) var(--sp-3xl);
}


/* H1 */
.section-h1 {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.section-h1 h1 {
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-white);
  letter-spacing: -0.3px;
}

.section-h1 h1 span {
  color: var(--gold);
}


/* Intro */
.intro-text {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.8;
  color: var(--text-light);
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--sp-2xl);
}


/* Section images */
.section-banner {
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.content-block:has(.section-banner) {
  padding: 0;
  overflow: hidden;
}

.content-block .block-body {
  padding: var(--sp-lg);
}


/* Cards */
.content-block {
  margin-bottom: var(--sp-lg);
  padding: var(--sp-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.content-block:hover {
  border-color: rgba(245, 212, 0, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.content-block h2 {
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--sp-sm);
  line-height: 1.35;
}

.content-block p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.75;
}

.content-block p + p {
  margin-top: var(--sp-sm);
}

.content-block ul, .content-block ol {
  margin: var(--sp-sm) 0 0 var(--sp-md);
  color: var(--text-light);
}

.content-block ul li, .content-block ol li {
  margin-bottom: 6px;
  line-height: 1.65;
  font-size: 0.95rem;
}

.content-block ul li::marker {
  color: var(--gold);
}

/* Demo game */
.demo-game-wrap {
  margin-top: var(--sp-lg);
}

.demo-game-wrap h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: var(--sp-sm);
}

.demo-game-container {
  position: relative;
  width: 100%;
  padding-top: 62.5%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.demo-game-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.demo-game-note {
  margin-top: var(--sp-xs);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.demo-game-desc {
  margin-top: var(--sp-lg);
  padding: var(--sp-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.demo-game-desc h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--sp-xs);
}

.demo-game-desc p {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--text-light);
}

/* CTA button inside block */
.block-body .cta-btn {
  margin-top: var(--sp-lg);
}


/* Buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: #0B0E13;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 36px;
  border-radius: 50px;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  -webkit-tap-highlight-color: transparent;
}

.cta-btn:hover {
  background: var(--gold-light);
  color: #0B0E13;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--shadow-gold);
}


/* CTA block */
.cta-section {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #1A2744 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-lg);
}

.cta-section h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--sp-xs);
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: var(--sp-lg);
  font-size: 0.95rem;
}


/* Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

.feature-item {
  text-align: center;
  padding: var(--sp-lg) var(--sp-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.feature-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: var(--sp-xs);
  line-height: 1;
}

.feature-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* Table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--sp-md) 0;
  border-radius: var(--radius);
}

.info-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.info-table th {
  background: rgba(245, 212, 0, 0.07);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-table td {
  color: var(--text-light);
  font-size: 0.9rem;
}

.info-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}


/* FAQ */
.faq-item {
  margin-bottom: var(--sp-xs);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item:hover {
  border-color: rgba(245, 212, 0, 0.25);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.45;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
  background: var(--bg-card-hover);
}

.faq-question .arrow {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--gold);
  transition: transform var(--transition);
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  padding: 0 var(--sp-lg);
  background: var(--bg-card);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: var(--sp-md) var(--sp-lg) var(--sp-lg);
}

.faq-answer p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}


/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-2xl) var(--sp-md) var(--sp-lg);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.footer-brand .logo {
  margin-bottom: var(--sp-sm);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: var(--sp-sm);
  font-weight: 600;
}

.footer-links ul { list-style: none; }

.footer-links ul li { margin-bottom: 6px; }

.footer-links ul li a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--sp-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.footer-18 {
  display: inline-flex;
  align-items: center;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #EF4444;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}


/* Mobile bar */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(11, 14, 19, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-sm) var(--sp-md);
  text-align: center;
}

.mobile-cta-bar .cta-btn {
  width: 100%;
  max-width: 400px;
  padding: 13px 20px;
  font-size: 0.9rem;
}


.visible {
  opacity: 1;
  transform: translateY(0);
}


@media (min-width: 769px) and (max-width: 1024px) {
  .header-inner {
    padding: 0 var(--sp-lg);
  }

  nav ul {
    gap: var(--sp-md);
  }

  nav ul li a {
    font-size: 0.82rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-sm);
  }

  .feature-item {
    padding: var(--sp-md) var(--sp-sm);
  }

  .feature-item h3 {
    font-size: 0.88rem;
  }

  .feature-item p {
    font-size: 0.78rem;
  }

  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--sp-lg);
  }
}


@media (max-width: 768px) {

  :root {
    --sp-lg: 20px;
    --sp-xl: 28px;
    --sp-2xl: 36px;
    --sp-3xl: 48px;
  }

  /* Header */
  .header-inner {
    height: 56px;
    padding: 0 var(--sp-md);
    gap: 0;
  }

  .logo img {
    height: 28px;
  }

  /* Hide desktop CTA — mobile has sticky bar at bottom */
  .header-cta {
    display: none;
  }

  /* Nav fills remaining space, scrolls horizontally */
  .main-nav {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: auto;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  nav ul {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: var(--sp-md);
  }

  nav ul li a {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 2px 0;
    color: var(--text-muted);
  }

  nav ul li a::after { display: none; }

  /* Main container */
  .main-container {
    padding: var(--sp-xl) var(--sp-md) calc(var(--sp-3xl) + 60px);
  }

  /* Content blocks */
  .content-block {
    border-radius: var(--radius);
    margin-bottom: var(--sp-md);
  }

  .section-banner {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .content-block .block-body {
    padding: var(--sp-md);
  }

  .content-block h2 {
    margin-bottom: var(--sp-xs);
  }

  .content-block p {
    font-size: 0.9rem;
  }

  /* H1 */
  .section-h1 {
    margin-bottom: var(--sp-md);
  }

  /* Intro */
  .intro-text {
    margin-bottom: var(--sp-xl);
    text-align: left;
  }

  /* Features grid — 2 columns on mobile */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-xs);
    margin-top: var(--sp-md);
  }

  .feature-item {
    padding: var(--sp-md) var(--sp-sm);
  }

  .feature-icon {
    font-size: 1.5rem;
  }

  .feature-item h3 {
    font-size: 0.85rem;
  }

  .feature-item p {
    font-size: 0.78rem;
  }

  /* CTA section */
  .cta-section {
    padding: var(--sp-xl) var(--sp-md);
    margin-bottom: var(--sp-md);
    border-radius: var(--radius);
  }

  .cta-btn {
    padding: 13px 28px;
    font-size: 0.88rem;
    width: 100%;
    max-width: 360px;
  }

  /* FAQ */
  .faq-question {
    padding: var(--sp-sm) var(--sp-md);
    font-size: 0.88rem;
  }

  .faq-answer {
    padding: 0 var(--sp-md);
  }

  .faq-item.open .faq-answer {
    padding: var(--sp-sm) var(--sp-md) var(--sp-md);
  }

  /* Table */
  .info-table th,
  .info-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-sm);
  }

  /* Mobile sticky CTA */
  .mobile-cta-bar {
    display: block;
  }

  /* Extra bottom padding for footer above mobile CTA */
  .site-footer {
    padding-bottom: calc(var(--sp-lg) + 60px);
  }
}


@media (max-width: 380px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    height: 52px;
  }

  .logo img {
    height: 26px;
  }

  .content-block .block-body {
    padding: var(--sp-sm);
  }

  .faq-question {
    font-size: 0.84rem;
    padding: var(--sp-sm);
  }
}
