/* ========================================
   betjee vip - Style DNA
   Layout: aggregation-distribution homepage
   Palette: deep navy + amber gold + white
   Target: Bangladesh market (bn-BD)
   ======================================== */

:root {
  --c-navy: #0c1832;
  --c-navy-mid: #132244;
  --c-navy-light: #1a2d56;
  --c-gold: #f5a623;
  --c-gold-light: #ffd36e;
  --c-gold-dark: #c7841a;
  --c-white: #f8f9fc;
  --c-text: #e1e5ef;
  --c-text-muted: #a0a8c0;
  --c-border: rgba(245,166,35,.18);
  --c-card-bg: rgba(19,34,68,.72);
  --c-overlay: rgba(12,24,50,.88);
  --c-success: #2ecc71;
  --c-danger: #e74c3c;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --shadow-card: 0 4px 24px rgba(0,0,0,.28);
  --shadow-btn: 0 2px 12px rgba(245,166,35,.25);
  --max-w: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-stack);
  background: var(--c-navy);
  color: var(--c-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-gold-light); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ========================================
   HEADER - sticky, single-row, 3-column grid
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(180deg, var(--c-navy) 0%, var(--c-navy-mid) 100%);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 20px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand-wrap {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-dark) 100%);
  border-radius: 10px;
}

.brand-mark svg { width: 28px; height: 28px; }

.brand-text {
  min-width: 0;
  line-height: 1.05;
}

.brand-text strong {
  display: block;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  color: var(--c-gold);
  letter-spacing: .5px;
}

.brand-text span {
  display: block;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Primary Navigation */
.primary-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 18px);
  overflow: visible;
  flex-wrap: nowrap;
}

.primary-nav a {
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  padding: 10px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  transition: color .2s;
  text-decoration: none;
  position: relative;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--c-gold);
}

.primary-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--c-gold);
  border-radius: 2px;
}

/* More menu */
.nav-more {
  position: relative;
  flex: 0 0 auto;
}

.more-toggle {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-stack);
  transition: background .2s, color .2s;
  gap: 4px;
}

.more-toggle:hover { background: var(--c-navy-light); color: var(--c-gold); }

.more-toggle svg { width: 14px; height: 14px; }

.more-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 210px;
  padding: 10px;
  border-radius: 16px;
  z-index: 1200;
  background: var(--c-navy-mid);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
}

.more-menu[hidden] { display: none !important; }

.nav-more.is-open .more-menu { display: grid; gap: 4px; }

.more-menu a {
  display: block;
  width: 100%;
  max-width: none;
  padding: 11px 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  text-decoration: none;
}

.more-menu a:hover { background: var(--c-navy-light); color: var(--c-gold); }

/* Header Actions */
.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: var(--font-stack);
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s;
  border-radius: var(--radius-sm);
}

.header-actions .btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-register {
  background: var(--c-gold);
  color: var(--c-navy);
  box-shadow: var(--shadow-btn);
}

.btn-register:hover { background: var(--c-gold-light); color: var(--c-navy); transform: translateY(-1px); }

.btn-login {
  background: transparent;
  color: var(--c-gold);
  border: 2px solid var(--c-gold);
}

.btn-login:hover { background: rgba(245,166,35,.12); color: var(--c-gold-light); }

/* Nav Toggle (mobile) */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { width: 24px; height: 24px; color: var(--c-text); }

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--c-overlay) 100%);
  display: flex;
  align-items: flex-end;
  padding: 48px 20px 56px;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 800;
  color: var(--c-gold);
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}

.hero-content p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--c-white);
  max-width: 640px;
  margin-bottom: 24px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-cta .btn {
  min-height: 50px;
  padding: 0 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.section { padding: 72px 0; }

.section-alt { background: var(--c-navy-mid); }

.section-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  color: var(--c-gold);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 17px;
  color: var(--c-text-muted);
  margin-bottom: 36px;
  max-width: 680px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-dark) 100%);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 26px; height: 26px; color: var(--c-navy); }

.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* Game Cards */
.game-card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  display: block;
}

.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }

.game-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-card-body {
  padding: 20px;
}

.game-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 8px;
}

.game-card-body p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* Prose (long text) */
.prose { max-width: 820px; }

.prose h2 {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 800;
  color: var(--c-gold);
  line-height: 1.25;
  margin: 48px 0 18px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.35;
  margin: 32px 0 12px;
}

.prose p {
  font-size: 17px;
  line-height: 1.9;
  margin: 0 0 18px;
  color: var(--c-text);
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin: 0 0 18px;
}

.prose li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.7;
}

.prose strong { color: var(--c-white); }

.prose img {
  border-radius: var(--radius-md);
  margin: 28px 0;
  box-shadow: var(--shadow-card);
}

/* Content Grid (text + image side by side) */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 36px;
  align-items: start;
}

.content-grid-reverse { direction: rtl; }
.content-grid-reverse > * { direction: ltr; }

.content-img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  width: 100%;
  height: auto;
}

/* Steps */
.steps { counter-reset: step; margin: 28px 0; }

.step {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  flex: 0 0 44px;
  height: 44px;
  background: var(--c-gold);
  color: var(--c-navy);
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.step-body h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* Warning / Notice boxes */
.notice-box {
  background: rgba(245,166,35,.08);
  border: 1px solid var(--c-gold);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 28px 0;
}

.notice-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 10px;
}

.notice-box p {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.7;
}

.danger-box {
  background: rgba(231,76,60,.1);
  border-color: var(--c-danger);
}

.danger-box h3 { color: var(--c-danger); }

/* FAQ */
.faq-list { margin: 28px 0; }

.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--c-card-bg);
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-stack);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-white);
  transition: background .2s;
  gap: 12px;
}

.faq-q:hover { background: var(--c-navy-light); }

.faq-q svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--c-gold);
  transition: transform .3s;
}

.faq-item.is-open .faq-q svg { transform: rotate(180deg); }

.faq-a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
}

.faq-item.is-open .faq-a {
  padding: 0 22px 22px;
  max-height: 600px;
}

.faq-a p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.8;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--c-navy-light) 0%, var(--c-gold-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  margin: 48px 0;
}

.cta-banner h2 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  min-height: 50px;
  padding: 0 36px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* Related Links */
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.related-link:hover { background: var(--c-navy-light); transform: translateX(4px); }

.related-link span {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
}

.related-link svg {
  flex: 0 0 20px;
  color: var(--c-gold);
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--c-text-muted);
}

.breadcrumb a {
  color: var(--c-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--c-gold); }

.breadcrumb span { margin: 0 6px; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: #070e1f;
  border-top: 1px solid var(--c-border);
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-col a:hover { color: var(--c-gold); }

.footer-contact p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--c-text-muted);
}

.footer-bottom a {
  font-size: 13px;
  color: var(--c-text-muted);
}

.footer-bottom a:hover { color: var(--c-gold); }

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .header-inner {
    min-height: 68px;
    grid-template-columns: 140px 1fr auto;
    gap: 10px;
  }

  .brand-wrap {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    height: 48px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-text strong { max-width: 86px; font-size: 15px; }
  .brand-text span { max-width: 86px; font-size: 10px; }

  .primary-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 18px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: var(--c-navy-mid);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-card);
    z-index: 999;
  }

  .primary-nav.is-open { display: flex; }

  .primary-nav a {
    max-width: none;
    width: 100%;
    padding: 14px 12px;
    text-overflow: initial;
    font-size: 16px;
    border-bottom: 1px solid var(--c-border);
  }

  .primary-nav a:last-child { border-bottom: none; }

  .header-actions {
    justify-content: flex-end;
    gap: 6px;
  }

  .header-actions .btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .nav-toggle { display: inline-flex; }

  .nav-more {
    display: contents !important;
  }

  .nav-more .more-toggle {
    display: none !important;
  }

  .nav-more .more-menu {
    display: contents !important;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }

  .nav-more .more-menu a {
    max-width: none;
    width: 100%;
    padding: 14px 12px;
    text-overflow: initial;
    font-size: 16px;
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
  }

  .content-grid { grid-template-columns: 1fr; }
  .content-grid-reverse { direction: ltr; }

  .hero-img { max-height: 320px; }

  .section { padding: 48px 0; }

  .card-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-banner { padding: 36px 24px; }

  .related-links { grid-template-columns: 1fr; }

  .prose p { font-size: 16px; line-height: 1.85; }

  .prose h2 { margin-top: 36px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }

  .hero-overlay { padding: 32px 16px 40px; }

  .game-card img { height: 140px; }
}

/* ========================================
   UTILITY
   ======================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Page-specific body padding for sticky header */
body { padding-bottom: 80px; }
