:root {
  --clr-primary: #d62828;
  --clr-primary-dark: #a31e1e;
  --clr-accent: #FFD700;
  --clr-accent-light: #FFA500;
  --clr-bg-dark: #0d0221;
  --clr-bg-section: #1a0a2e;
  --clr-bg-card: #1e1240;
  --clr-bg-light: #f8f9fa;
  --clr-bg-white: #ffffff;
  --clr-text: #e0e0e0;
  --clr-text-dark: #1a1a2e;
  --clr-text-muted: #9ca3af;
  --clr-border: rgba(255,215,0,0.15);
  --clr-border-light: #e5e7eb;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-bn: "Noto Sans Bengali", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
  --shadow-card: 0 2px 8px rgba(214,40,40,0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container-max: 1240px;
  --header-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-main);
  color: var(--clr-text);
  background: var(--clr-bg-dark);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-accent); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--clr-accent-light); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

/* ============ HEADER ============ */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--clr-bg-dark); border-bottom: 1px solid var(--clr-border); }

.header-top-bar { background: var(--clr-primary); color: #fff; font-size: 13px; padding: 6px 0; text-align: center; }
.header-top-bar a { color: #FFD700; font-weight: 600; }

.header-main { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 20px; max-width: var(--container-max); margin: 0 auto; }

.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo img, .header-logo svg { height: 44px; width: auto; max-width: 180px; }

.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a { color: #e0e0e0; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-sm); transition: all 0.25s; white-space: nowrap; }
.header-nav a:hover, .header-nav a.active { color: var(--clr-accent); background: rgba(255,215,0,0.08); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: var(--radius-xl); font-size: 14px; font-weight: 700; border: none; cursor: pointer; transition: all 0.3s; text-decoration: none; white-space: nowrap; }

.btn-register { background: var(--clr-primary); color: #fff; }
.btn-register:hover { background: var(--clr-primary-dark); color: #fff; transform: translateY(-1px); }

.btn-login { background: var(--clr-accent); color: #1a1a2e; }
.btn-login:hover { background: var(--clr-accent-light); color: #1a1a2e; transform: translateY(-1px); }

.mobile-menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 8px; }

/* ============ NAV BOTTOM BAR ============ */
.nav-bar { background: var(--clr-primary); }
.nav-bar-inner { display: flex; align-items: center; justify-content: center; gap: 2px; max-width: var(--container-max); margin: 0 auto; padding: 0 20px; overflow-x: auto; }
.nav-bar a { color: #fff; font-size: 14px; font-weight: 600; padding: 12px 18px; display: block; white-space: nowrap; transition: background 0.25s; }
.nav-bar a:hover { background: rgba(0,0,0,0.15); color: #FFD700; }

/* ============ BANNER ============ */
.hero-banner { width: 100%; overflow: hidden; position: relative; }
.hero-banner img, .hero-banner svg { width: 100%; height: auto; display: block; }

/* ============ SECTION STYLES ============ */
.section { padding: 60px 0; }
.section--dark { background: var(--clr-bg-section); }
.section--light { background: var(--clr-bg-light); color: var(--clr-text-dark); }
.section--white { background: var(--clr-bg-white); color: var(--clr-text-dark); }
.section--primary { background: var(--clr-primary); color: #fff; }

.section-title { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.section-title span { color: var(--clr-accent); }
.section-subtitle { color: var(--clr-text-muted); font-size: 16px; margin-bottom: 40px; }
.section-header { text-align: center; margin-bottom: 48px; }

/* ============ SHORTCUT CARDS (Category Entry) ============ */
.shortcut-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 30px 0; }
.shortcut-card { background: var(--clr-bg-card); border: 1px solid var(--clr-border); border-radius: var(--radius-md); padding: 24px 16px; text-align: center; transition: all 0.3s; }
.shortcut-card:hover { transform: translateY(-4px); border-color: var(--clr-accent); box-shadow: 0 6px 24px rgba(214,40,40,0.15); }
.shortcut-card .sc-icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--clr-primary), #8b0000); display: flex; align-items: center; justify-content: center; }
.shortcut-card .sc-icon svg { width: 28px; height: 28px; }
.shortcut-card h3 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.shortcut-card p { font-size: 12px; color: var(--clr-text-muted); }

/* ============ CTA BUTTONS ROW ============ */
.cta-row { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 24px 0; }
.cta-row--double { grid-template-columns: 1fr 1fr; }
.cta-btn { display: flex; align-items: center; justify-content: center; padding: 16px 24px; background: var(--clr-primary); color: #fff; font-size: 16px; font-weight: 700; border-radius: var(--radius-md); transition: all 0.3s; text-align: center; box-shadow: var(--shadow-md); }
.cta-btn:hover { background: var(--clr-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cta-btn--accent { background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-light)); color: #1a1a2e; }
.cta-btn--accent:hover { color: #1a1a2e; }

/* ============ CONTENT CARDS / ARTICLE FEED ============ */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: var(--clr-bg-card); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--clr-border); transition: all 0.3s; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(214,40,40,0.12); border-color: var(--clr-accent); }
.article-card .card-img { width: 100%; height: 200px; background: var(--clr-bg-section); overflow: hidden; position: relative; }
.article-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card .card-img .card-date { position: absolute; top: 12px; left: 12px; background: var(--clr-primary); color: #fff; padding: 4px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; }
.article-card .card-body { padding: 20px; }
.article-card .card-body h3 { font-size: 16px; margin-bottom: 8px; color: #fff; }
.article-card .card-body h3 a { color: #fff; }
.article-card .card-body h3 a:hover { color: var(--clr-accent); }
.article-card .card-body p { font-size: 14px; color: var(--clr-text-muted); line-height: 1.6; }

/* ============ FEATURE CARDS ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--clr-bg-card); border: 1px solid var(--clr-border); border-radius: var(--radius-md); padding: 32px 24px; }
.feature-card h3 { font-size: 18px; color: var(--clr-accent); margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--clr-text-muted); line-height: 1.7; }

/* ============ LONG CONTENT ============ */
.long-content { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.long-content h2 { font-size: 24px; color: var(--clr-accent); margin: 36px 0 16px; }
.long-content h3 { font-size: 20px; color: #fff; margin: 28px 0 12px; }
.long-content p { margin-bottom: 16px; font-size: 15px; line-height: 1.8; color: var(--clr-text); text-align: justify; }
.long-content ul, .long-content ol { margin: 16px 0; padding-left: 24px; }
.long-content li { margin-bottom: 8px; font-size: 15px; color: var(--clr-text); list-style: disc; }
.long-content ol li { list-style: decimal; }
.long-content a { color: var(--clr-accent); text-decoration: underline; }
.long-content strong { color: #fff; }

/* ============ FAQ ============ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--clr-border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; background: var(--clr-bg-card); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; cursor: pointer; font-size: 15px; font-weight: 600; color: #fff; background: transparent; border: none; width: 100%; text-align: left; transition: background 0.25s; }
.faq-question:hover { background: rgba(255,215,0,0.05); }
.faq-question .faq-toggle { font-size: 20px; color: var(--clr-accent); transition: transform 0.3s; flex-shrink: 0; margin-left: 12px; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.35s ease; }
.faq-item.active .faq-answer { padding: 0 24px 20px; max-height: 500px; }
.faq-answer p { font-size: 14px; color: var(--clr-text-muted); line-height: 1.7; }
.faq-answer a { color: var(--clr-accent); }

/* ============ BREADCRUMB ============ */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--clr-text-muted); }
.breadcrumb a { color: var(--clr-accent); }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* ============ PAGE HEADER ============ */
.page-header { background: linear-gradient(135deg, var(--clr-bg-section), var(--clr-bg-dark)); padding: 48px 0 32px; text-align: center; border-bottom: 1px solid var(--clr-border); }
.page-header h1 { font-size: 32px; color: #fff; margin-bottom: 12px; }
.page-header p { color: var(--clr-text-muted); font-size: 16px; max-width: 700px; margin: 0 auto; }

/* ============ FOOTER ============ */
.site-footer { background: var(--clr-primary); color: #fff; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px; margin-bottom: 40px; }
.footer-col h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #FFD700; }
.footer-col p { font-size: 13px; line-height: 1.7; opacity: 0.9; margin-bottom: 8px; }
.footer-col a { color: #fff; font-size: 13px; display: block; padding: 4px 0; opacity: 0.85; transition: opacity 0.25s; }
.footer-col a:hover { opacity: 1; color: #FFD700; }
.footer-brand-desc { font-size: 13px; line-height: 1.7; opacity: 0.9; margin-top: 12px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 12px; }
.footer-contact p { font-size: 13px; margin-bottom: 6px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 12px; opacity: 0.7; }
.footer-bottom a { color: #FFD700; opacity: 1; }

/* ============ 404 PAGE ============ */
.page-404 { text-align: center; padding: 100px 20px; }
.page-404 h1 { font-size: 96px; color: var(--clr-accent); margin-bottom: 16px; }
.page-404 h2 { font-size: 28px; color: #fff; margin-bottom: 12px; }
.page-404 p { color: var(--clr-text-muted); margin-bottom: 32px; }

/* ============ NEWS LIST ============ */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.news-card { display: flex; gap: 20px; background: var(--clr-bg-card); border: 1px solid var(--clr-border); border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s; }
.news-card:hover { border-color: var(--clr-accent); box-shadow: 0 4px 16px rgba(214,40,40,0.1); }
.news-card .news-thumb { width: 200px; min-height: 160px; flex-shrink: 0; background: var(--clr-bg-section); }
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-info { padding: 20px; flex: 1; }
.news-card .news-info .news-date { font-size: 12px; color: var(--clr-accent); margin-bottom: 8px; }
.news-card .news-info h3 { font-size: 16px; margin-bottom: 8px; overflow-wrap: break-word; word-break: break-word; }
.news-card .news-info h3 a { color: #fff; }
.news-card .news-info h3 a:hover { color: var(--clr-accent); }
.news-card .news-info p { font-size: 13px; color: var(--clr-text-muted); line-height: 1.6; overflow-wrap: break-word; word-break: break-word; }

/* ============ ARTICLE DETAIL ============ */
.article-detail { max-width: 800px; margin: 0 auto; padding: 32px 20px; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; }
.article-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; font-size: 13px; color: var(--clr-text-muted); }
.article-detail h1 { font-size: 30px; color: #fff; margin-bottom: 16px; overflow-wrap: break-word; word-break: break-word; }
.article-body { font-size: 15px; line-height: 1.8; color: var(--clr-text); overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; }
.article-body h2 { font-size: 22px; color: var(--clr-accent); margin: 32px 0 12px; }
.article-body h3 { font-size: 18px; color: #fff; margin: 24px 0 10px; }
.article-body p { margin-bottom: 16px; text-align: justify; }
.article-body a { color: var(--clr-accent); text-decoration: underline; }
.article-body ul { padding-left: 20px; margin-bottom: 16px; }
.article-body li { list-style: disc; margin-bottom: 6px; }

.related-articles { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--clr-border); }
.related-articles h3 { font-size: 20px; color: var(--clr-accent); margin-bottom: 20px; }

/* ============ GAME GRID (for live/slots/sports) ============ */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.game-card { background: var(--clr-bg-card); border: 1px solid var(--clr-border); border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s; }
.game-card:hover { transform: translateY(-4px); border-color: var(--clr-accent); box-shadow: 0 6px 20px rgba(214,40,40,0.12); }
.game-card .game-img { height: 180px; background: linear-gradient(135deg, var(--clr-bg-section), var(--clr-bg-card)); display: flex; align-items: center; justify-content: center; }
.game-card .game-img span { font-size: 14px; color: var(--clr-text-muted); }
.game-card .game-info { padding: 16px; }
.game-card .game-info h4 { font-size: 14px; color: #fff; margin-bottom: 4px; }
.game-card .game-info p { font-size: 12px; color: var(--clr-text-muted); }

/* ============ BONUS / DOWNLOAD STEPS ============ */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step-card { background: var(--clr-bg-card); border: 1px solid var(--clr-border); border-radius: var(--radius-md); padding: 28px 20px; text-align: center; position: relative; counter-increment: step; }
.step-card::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--clr-primary); color: #fff; font-weight: 800; font-size: 16px; margin: 0 auto 16px; }
.step-card h4 { font-size: 15px; color: #fff; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--clr-text-muted); line-height: 1.6; }

/* ============ BONUS TABLE ============ */
.bonus-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.bonus-table th, .bonus-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--clr-border); font-size: 14px; }
.bonus-table th { background: var(--clr-bg-card); color: var(--clr-accent); font-weight: 700; }
.bonus-table td { color: var(--clr-text); }

/* ============ INLINE LINKS ============ */
.inline-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.inline-links a { background: var(--clr-bg-card); border: 1px solid var(--clr-border); padding: 10px 20px; border-radius: var(--radius-xl); font-size: 13px; color: #fff; transition: all 0.25s; }
.inline-links a:hover { border-color: var(--clr-accent); color: var(--clr-accent); }

/* ============ MOBILE SIDEBAR ============ */
.mobile-sidebar { position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; background: var(--clr-bg-dark); z-index: 2000; transition: left 0.3s; overflow-y: auto; border-right: 1px solid var(--clr-border); }
.mobile-sidebar.open { left: 0; }
.mobile-sidebar .sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--clr-border); }
.mobile-sidebar .sidebar-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.mobile-sidebar .sidebar-nav a { display: block; padding: 14px 20px; color: #e0e0e0; font-size: 15px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-sidebar .sidebar-nav a:hover { color: var(--clr-accent); background: rgba(255,215,0,0.05); }
.mobile-sidebar .sidebar-btns { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1999; display: none; }
.sidebar-overlay.active { display: block; }

/* ============ BACK TO TOP ============ */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--clr-primary); color: #fff; border: none; border-radius: 50%; font-size: 20px; cursor: pointer; display: none; z-index: 999; transition: all 0.3s; box-shadow: var(--shadow-md); align-items: center; justify-content: center; }
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--clr-accent); color: #1a1a2e; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .nav-bar { display: none; }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .shortcut-card { padding: 16px 10px; }
  .article-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .cta-row--double { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 24px; }
  .section-title { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-card { flex-direction: column; }
  .news-card .news-thumb { width: 100%; min-height: 180px; }
  .header-logo img, .header-logo svg { height: 36px; }
}

@media (max-width: 480px) {
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .btn { padding: 8px 16px; font-size: 13px; }
}

/* ============ LIGHT PAGE CONTENT (privacy, about) ============ */
.content-page { background: var(--clr-bg-section); }
.content-page .long-content h2 { color: var(--clr-accent); }
.content-page .long-content p { color: var(--clr-text); }
