/* ============================================================
   BK44.it.com - Design System & Global Styles
   Target: Bangladesh (bn-BD) | Casino Platform
   ============================================================ */

/* --- CSS Variables (Style DNA) --- */
:root {
  --color-primary: #0d4f3c;
  --color-primary-light: #14785c;
  --color-primary-dark: #083a2c;
  --color-accent: #f0c040;
  --color-accent-hover: #e8a020;
  --color-accent-light: #f8e0a0;
  --color-bg-dark: #0a1628;
  --color-bg-section: #0e1e30;
  --color-bg-card: #122440;
  --color-bg-light: #f5f7fa;
  --color-bg-white: #ffffff;
  --color-text-white: #ffffff;
  --color-text-light: #c0c8d8;
  --color-text-muted: #8090a8;
  --color-text-dark: #1a2332;
  --color-text-body: #333333;
  --color-border: #1e3450;
  --color-border-light: #e0e4ea;
  --color-success: #28a060;
  --color-danger: #e04040;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.15);
  --container-width: 1200px;
  --header-height: 70px;
  --header-bottom-height: 50px;
}

/* --- 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-stack);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-body);
  background: var(--color-bg-white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.3; color: var(--color-text-dark); }
p { margin-bottom: 1em; }
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
th, td { padding: 10px 14px; border: 1px solid var(--color-border-light); text-align: left; }
th { background: var(--color-primary); color: #fff; font-weight: 600; }
tr:nth-child(even) { background: #f8f9fb; }

/* --- Container --- */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* --- Top Info Bar --- */
.top-bar {
  background: var(--color-bg-dark);
  color: var(--color-text-muted);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: var(--color-text-light); }
.top-bar a:hover { color: var(--color-accent); }

/* --- Header Main --- */
.header-main {
  background: var(--color-bg-dark);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header-logo { display: flex; align-items: center; }
.header-logo img, .header-logo svg {
  max-height: 44px;
  width: auto;
  display: block;
}
.header-actions { display: flex; align-items: center; gap: 10px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-stack);
}
.btn-register {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: var(--color-bg-dark);
  border-color: var(--color-accent);
}
.btn-register:hover {
  background: linear-gradient(135deg, var(--color-accent-hover), #d09018);
  color: var(--color-bg-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(240,192,64,0.4);
}
.btn-login {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-login:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(13,79,60,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg-dark);
}

/* --- Navigation Bottom Bar --- */
.nav-bottom {
  background: var(--color-bg-section);
  border-bottom: 2px solid var(--color-primary);
}
.nav-bottom .container { display: flex; align-items: center; justify-content: center; }
.nav-menu { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.nav-menu a {
  display: block;
  padding: 14px 18px;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--color-primary);
  color: #fff;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: var(--color-accent);
  transition: transform 0.2s;
}
.nav-menu a:hover::after, .nav-menu a.active::after { transform: translateX(-50%) scaleX(1); }

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-white);
  margin: 5px 0;
  transition: 0.3s;
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav-panel {
  position: fixed;
  top: 0; left: -280px;
  width: 280px;
  height: 100%;
  background: var(--color-bg-dark);
  z-index: 2001;
  transition: left 0.3s;
  overflow-y: auto;
  padding: 20px 0;
}
.mobile-nav-panel.open { left: 0; }
.mobile-nav-close {
  display: block;
  padding: 10px 20px;
  color: var(--color-text-muted);
  font-size: 24px;
  cursor: pointer;
  text-align: right;
  background: none;
  border: none;
  width: 100%;
}
.mobile-nav-links a {
  display: block;
  padding: 14px 24px;
  color: var(--color-accent);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}
.mobile-nav-links a:hover { background: var(--color-bg-section); color: #fff; }
.mobile-nav-btns { padding: 20px; display: flex; flex-direction: column; gap: 10px; }

/* --- Banner --- */
.hero-banner { position: relative; overflow: hidden; }
.hero-banner img, .hero-banner svg { width: 100%; height: auto; display: block; }

/* --- Section Styles --- */
.section { padding: 60px 0; }
.section-dark { background: var(--color-bg-dark); color: var(--color-text-white); }
.section-dark h2, .section-dark h3 { color: var(--color-text-white); }
.section-alt { background: var(--color-bg-light); }
.section-gradient {
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-section) 100%);
  color: var(--color-text-white);
}
.section-gradient h2, .section-gradient h3 { color: var(--color-text-white); }
.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 12px;
}
.section-title-center { text-align: center; }
.section-title-center::after { margin: 12px auto 0; }
.section-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 700px;
  margin-bottom: 32px;
}
.section-title-center + .section-subtitle { margin-left: auto; margin-right: auto; text-align: center; }

/* --- Shortcut Cards (category entry grid) --- */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.shortcut-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: block;
  color: var(--color-text-white);
}
.shortcut-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.shortcut-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shortcut-card-icon svg { width: 24px; height: 24px; }
.shortcut-card-title { font-weight: 700; font-size: 15px; }

/* --- Content Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-dark {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  color: var(--color-text-white);
}
.card-dark h3, .card-dark h4 { color: var(--color-text-white); }
.card-body { padding: 20px; }
.card-body h3 { font-size: 18px; margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--color-text-muted); margin-bottom: 12px; }
.card-link { color: var(--color-accent); font-weight: 600; font-size: 14px; }
.card-link:hover { color: var(--color-accent-hover); }

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.feature-item {
  padding: 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}
.feature-item:hover { border-color: var(--color-accent); }
.feature-item h3 { font-size: 18px; margin-bottom: 10px; color: var(--color-accent); }
.feature-item p { font-size: 14px; color: var(--color-text-light); margin: 0; }

/* --- Long Content Area --- */
.content-area { max-width: 900px; margin: 0 auto; }
.content-area h2 { font-size: 26px; margin: 40px 0 16px; color: var(--color-primary-dark); }
.content-area h3 { font-size: 20px; margin: 28px 0 12px; color: var(--color-text-dark); }
.content-area p { margin-bottom: 16px; line-height: 1.8; }
.content-area ul, .content-area ol { padding-left: 24px; margin-bottom: 16px; }
.content-area li { margin-bottom: 8px; list-style: disc; line-height: 1.7; }
.content-area ol li { list-style: decimal; }
.content-area a { color: var(--color-primary); font-weight: 600; }
.content-area a:hover { color: var(--color-accent); text-decoration: underline; }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 18px 48px 18px 20px;
  background: var(--color-bg-white);
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  font-family: var(--font-stack);
  color: var(--color-text-dark);
  transition: background 0.2s;
}
.faq-question:hover { background: var(--color-bg-light); }
.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--color-primary);
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after { content: '-'; }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 20px 18px; }
.faq-answer p { font-size: 15px; color: var(--color-text-body); }

/* Dark FAQ */
.section-dark .faq-item { border-color: var(--color-border); }
.section-dark .faq-question { background: var(--color-bg-card); color: var(--color-text-white); }
.section-dark .faq-question:hover { background: var(--color-bg-section); }
.section-dark .faq-answer p { color: var(--color-text-light); }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { margin: 0 6px; }

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--color-bg-dark), var(--color-bg-section));
  padding: 50px 0 40px;
  color: var(--color-text-white);
}
.page-header h1 {
  font-size: 36px;
  color: var(--color-text-white);
  margin-bottom: 10px;
}
.page-header p { color: var(--color-text-light); font-size: 17px; }

/* --- News List --- */
.news-list { display: flex; flex-direction: column; gap: 24px; }
.news-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s;
}
.news-item:hover { box-shadow: var(--shadow-md); }
.news-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.news-thumb svg, .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-content { flex: 1; min-width: 0; overflow: hidden; }
.news-content h3 { font-size: 20px; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-content h3 a { color: var(--color-text-dark); }
.news-content h3 a:hover { color: var(--color-primary); }
.news-meta { font-size: 13px; color: var(--color-text-muted); margin-bottom: 8px; }
.news-excerpt { font-size: 14px; color: var(--color-text-body); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.news-readmore { color: var(--color-primary); font-weight: 600; font-size: 14px; }

/* --- Article Detail --- */
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: 32px; margin-bottom: 12px; word-wrap: break-word; overflow-wrap: break-word; }
.article-meta { font-size: 14px; color: var(--color-text-muted); margin-bottom: 16px; }
.article-body { line-height: 1.85; word-wrap: break-word; overflow-wrap: break-word; overflow: hidden; }
.article-body h2 { font-size: 24px; margin: 32px 0 14px; }
.article-body h3 { font-size: 20px; margin: 24px 0 10px; }
.article-body p { margin-bottom: 16px; }
.related-articles { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--color-border-light); }
.related-articles h3 { font-size: 22px; margin-bottom: 20px; }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
}
.cta-section h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 24px; font-size: 17px; }
.cta-section .btn { font-size: 16px; padding: 14px 36px; }

/* --- Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  counter-increment: step;
  position: relative;
}
.step-item::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-bg-dark);
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 16px;
}
.step-item h4 { font-size: 16px; margin-bottom: 8px; color: var(--color-text-white); }
.step-item p { font-size: 14px; color: var(--color-text-light); margin: 0; }

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 60px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}
.footer-brand p { font-size: 14px; line-height: 1.7; color: var(--color-text-muted); margin-top: 16px; }
.footer-brand img, .footer-brand svg { max-height: 40px; width: auto; }
.footer h4 {
  font-size: 16px;
  color: var(--color-accent);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-links a {
  display: block;
  padding: 5px 0;
  color: var(--color-text-light);
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-links a:hover { color: var(--color-accent); padding-left: 4px; }
.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--color-text-light);
  line-height: 1.6;
}
.footer-contact strong { color: var(--color-text-white); }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 24px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.pt-0 { padding-top: 0; }
.inline-link { color: var(--color-primary); font-weight: 600; }
.inline-link:hover { text-decoration: underline; }
.bullet-list { padding-left: 20px; }
.bullet-list li { list-style: disc; margin-bottom: 8px; line-height: 1.7; }

/* --- Responsive --- */
@media (max-width: 992px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-menu a { padding: 12px 12px; font-size: 13px; }
  .section-title { font-size: 26px; }
  .page-header h1 { font-size: 28px; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .nav-bottom { display: none; }
  .mobile-menu-toggle { display: block; }
  .footer-top { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; }
  .news-thumb { width: 100%; height: 180px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 24px; }
  .page-header { padding: 36px 0 28px; }
  .page-header h1 { font-size: 24px; }
  .content-area h2 { font-size: 22px; }
  .cta-section { padding: 36px 16px; }
  .cta-section h2 { font-size: 24px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .header-logo img, .header-logo svg { max-height: 36px; }
}

@media (max-width: 480px) {
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .btn { padding: 10px 18px; font-size: 13px; }
  body { font-size: 15px; }
}
