/* ==========================================================================
   Jitawin Bangladesh (BD) Official Design System - 2026 High-Performance UI
   Mobile-First, 0 Cumulative Layout Shift, Pure CSS Speed
   ========================================================================== */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #162032;
  --bg-card-hover: #1e293b;
  --border-color: #1f293d;
  --border-accent: #2d3b55;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --brand-green: #00d26a;
  --brand-green-hover: #00b85c;
  --brand-gold: #f59e0b;
  --brand-gold-hover: #d97706;
  --brand-blue: #3b82f6;
  --brand-red: #ef4444;
  
  --bkash-pink: #e2136e;
  --nagad-orange: #f7941d;
  --rocket-purple: #8c3494;
  --upay-blue: #0077b6;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.6);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container-max: 1200px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 70px; /* Space for mobile bottom bar */
}

a {
  color: var(--brand-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #4ade80;
  text-decoration: underline;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

.site-header .container {
  max-width: 1400px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo:hover {
  text-decoration: none;
}

.brand-logo img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.brand-logo span.badge {
  background: linear-gradient(135deg, var(--brand-green), #059669);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: none;
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    white-space: nowrap;
    flex-shrink: 1;
  }
  .nav-desktop a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.4rem 0.35rem;
    white-space: nowrap;
    transition: color 0.15s ease;
  }
  .nav-desktop a:hover, .nav-desktop a.active {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--brand-green);
  }
}

@media (min-width: 1200px) {
  .nav-desktop {
    gap: 1.25rem;
  }
  .nav-desktop a {
    font-size: 0.925rem;
    padding: 0.5rem 0.45rem;
  }
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
  border: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-green), #059669);
  color: #000 !important;
  box-shadow: 0 4px 12px rgba(0, 210, 106, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00e676, #10b981);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 210, 106, 0.4);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: #fff !important;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.btn-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000 !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
  transform: translateY(-1px);
}

/* Breadcrumbs */
.breadcrumbs-bar {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.65rem 0;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.breadcrumbs-list a {
  color: var(--text-secondary);
}

.breadcrumbs-list a:hover {
  color: var(--brand-green);
}

.breadcrumbs-list span.sep {
  color: var(--text-muted);
}

.breadcrumbs-list span.current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Main Content Layout */
.main-wrapper {
  flex: 1;
  padding: 2rem 0 3rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-green);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

h1.article-title {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  h1.article-title {
    font-size: 2.5rem;
  }
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.article-meta .author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta .author-info img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* Trust Ticker Badges */
.trust-badges-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-badge-item span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-green);
}

.trust-badge-item.bkash { color: #f43f5e; }
.trust-badge-item.nagad { color: #fb923c; }
.trust-badge-item.rocket { color: #c084fc; }

/* Expert Callout Box */
.expert-insight-box {
  background: linear-gradient(135deg, rgba(0, 210, 106, 0.08), rgba(17, 24, 39, 0.95));
  border-left: 4px solid var(--brand-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  color: #e2e8f0;
}

.expert-insight-box strong.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-green);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.expert-insight-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

/* TLDR Box */
.tldr-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin: 1.75rem 0;
}

.tldr-box .tldr-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-gold);
  margin-bottom: 0.65rem;
}

.tldr-box p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin: 0;
}

/* Article Hero Visual */
.article-hero-figure {
  margin: 2rem auto;
  text-align: center;
  max-width: 860px;
}

.article-hero-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  display: block;
  margin: 0 auto;
}

.article-hero-figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* Main Content Typography */
.article-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #e2e8f0;
}

.article-content h2 {
  font-size: 1.65rem;
  line-height: 1.3;
  font-weight: 800;
  color: #fff;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.article-content h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.35rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Answer Capsule Callout */
.answer-capsule {
  background: rgba(30, 41, 59, 0.7);
  border-left: 3px solid var(--brand-blue);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.975rem;
  font-weight: 500;
  color: #f8fafc;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

table.data-table th {
  background-color: var(--bg-secondary);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

table.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: #cbd5e1;
}

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

/* Step-by-Step Cards */
.steps-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.step-card {
  display: flex;
  gap: 1.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.step-card:hover {
  border-color: var(--brand-green);
}

.step-number {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--brand-green), #059669);
  color: #000;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.step-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.step-body p {
  font-size: 0.925rem;
  color: #cbd5e1;
  margin: 0;
}

/* Callout Box (Warning/Notice) */
.callout-box {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--brand-gold);
}

.callout-box.tip { border-left-color: var(--brand-green); }
.callout-box.alert { border-left-color: var(--brand-red); }

.callout-box strong.title {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

/* In-Content CTA Banner */
.cta-banner {
  background: radial-gradient(circle at top right, rgba(0, 210, 106, 0.15), transparent 70%), var(--bg-card);
  border: 1px solid var(--brand-green);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.cta-banner h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.cta-banner .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* FAQ Accordion Section */
.faq-section {
  margin-top: 3rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.15rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Silo Internal Linking Grid */
.silo-linking-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.silo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.silo-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.silo-card:hover {
  border-color: var(--brand-green);
  transform: translateY(-2px);
  background-color: var(--bg-card-hover);
  text-decoration: none;
}

.silo-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.silo-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.silo-card span.tag {
  align-self: flex-start;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-green);
}

/* Responsible Gaming Callout */
.responsible-gaming-footer {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.responsible-gaming-footer strong {
  color: #fff;
}

/* Site Footer */
.site-footer {
  background-color: #070a10;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--brand-green);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Mobile Sticky Bottom CTA Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background-color: rgba(10, 14, 23, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
}

@media (min-width: 992px) {
  .mobile-bottom-bar {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

.mobile-bottom-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.2rem;
}

.mobile-bottom-bar a.btn-m-login {
  background-color: var(--bg-card);
  color: #fff;
  border: 1px solid var(--border-color);
}

.mobile-bottom-bar a.btn-m-reg {
  background: linear-gradient(135deg, var(--brand-green), #059669);
  color: #000;
}

.mobile-bottom-bar a.btn-m-bkash {
  background-color: var(--bkash-pink);
  color: #fff;
}

