/* 5777bet.it.com - Main Stylesheet */
/* Design System Variables */
:root {
  --color-primary: #1a1a2e;
  --color-primary-light: #16213e;
  --color-secondary: #0f3460;
  --color-accent: #f7b731;
  --color-accent-hover: #e0a800;
  --color-cta: #e74c3c;
  --color-cta-hover: #c0392b;
  --color-success: #27ae60;
  --color-text: #e8e8e8;
  --color-text-muted: #a0a0b0;
  --color-bg-dark: #0d1117;
  --color-bg-section: #121826;
  --color-bg-card: #1c2333;
  --color-bg-card-hover: #232b3e;
  --color-border: rgba(247,183,49,0.12);
  --color-border-light: rgba(255,255,255,0.06);
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-bn: "Noto Sans Bengali", system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(247,183,49,0.15);
  --max-width: 1200px;
  --header-h: 70px;
  --topbar-h: 36px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-stack);
  background: var(--color-bg-dark);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent-hover); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ========== TOP BAR ========== */
.topbar {
  background: linear-gradient(90deg, var(--color-accent), #e0a800);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  overflow: hidden;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-text { white-space: nowrap; }
.topbar-links a { color: var(--color-primary); margin-left: 15px; font-weight: 700; }
.topbar-links a:hover { color: #fff; }

/* ========== HEADER ========== */
.site-header {
  background: rgba(26,26,46,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.header-logo img, .header-logo svg {
  max-height: 44px;
  width: auto;
  display: block;
}
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active {
  background: rgba(247,183,49,0.1);
  color: var(--color-accent);
}
.header-actions { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-register {
  background: var(--color-cta);
  color: #fff;
}
.btn-register:hover { background: var(--color-cta-hover); color: #fff; transform: translateY(-1px); }
.btn-login {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-login:hover { background: var(--color-accent); color: var(--color-primary); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: .3s;
}

/* ========== HERO BANNER ========== */
.hero-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.hero-banner img, .hero-banner svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 540px;
  object-fit: cover;
}

/* ========== SHORTCUT CARDS (category entry) ========== */
.shortcut-section {
  padding: 50px 0 30px;
  background: var(--color-bg-dark);
}
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.shortcut-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: all .3s;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  display: block;
}
.shortcut-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  color: var(--color-accent);
}
.shortcut-card .sc-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: rgba(247,183,49,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shortcut-card .sc-icon svg { width: 24px; height: 24px; }
.shortcut-card h3 { font-size: 14px; font-weight: 700; margin: 0; }

/* ========== SECTION TITLES ========== */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title .subtitle {
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

/* ========== CONTENT FEED / CARDS ========== */
.content-section {
  padding: 60px 0;
}
.content-section.alt-bg {
  background: var(--color-bg-section);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid.col-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.col-4 { grid-template-columns: repeat(4, 1fr); }

.content-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all .3s;
}
.content-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.content-card .card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 42px;
  font-weight: 900;
  overflow: hidden;
}
.content-card .card-body { padding: 20px; }
.content-card .card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
}
.content-card .card-body p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.content-card .card-body .card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

/* ========== STATS COUNTER SECTION ========== */
.stats-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 42px;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1.2;
}
.stat-item .stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
}

/* ========== LONG TEXT SEO SECTION ========== */
.seo-content {
  padding: 60px 0;
}
.seo-content .seo-inner {
  max-width: 900px;
  margin: 0 auto;
}
.seo-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 30px 0 16px;
  line-height: 1.3;
}
.seo-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
  margin: 24px 0 12px;
}
.seo-content p {
  margin-bottom: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: 15px;
}
.seo-content ul, .seo-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.seo-content li {
  margin-bottom: 8px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========== FAQ SECTION ========== */
.faq-section { padding: 60px 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 50px 18px 20px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--color-accent);
  transition: transform .3s;
}
.faq-item.open .faq-question::after {
  content: '-';
}
.faq-question:hover { color: var(--color-accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 20px 18px;
}
.faq-answer p {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 14px;
}

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 70px 0;
  text-align: center;
  background: linear-gradient(135deg, #0f3460, #1a1a2e);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--color-text-muted);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-large {
  padding: 14px 36px;
  font-size: 16px;
  border-radius: var(--radius-xl);
}
.btn-accent { background: var(--color-accent); color: var(--color-primary); font-weight: 700; }
.btn-accent:hover { background: var(--color-accent-hover); color: var(--color-primary); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  font-weight: 700;
}
.btn-outline:hover { background: var(--color-accent); color: var(--color-primary); }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--color-primary);
  border-top: 2px solid var(--color-accent);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 30px;
  padding-bottom: 40px;
}
.footer-col h4 {
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col p {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: var(--color-text-muted);
  font-size: 13px;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-contact-item {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.footer-contact-item strong {
  color: var(--color-text);
}
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 12px;
}
.footer-bottom a { color: var(--color-accent); }

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { color: var(--color-text-muted); margin: 0 8px; }
.breadcrumb .current { color: var(--color-accent); overflow: hidden; text-overflow: ellipsis; display: inline-block; max-width: 60%; vertical-align: bottom; white-space: nowrap; }

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  padding: 50px 0 40px;
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.page-hero .hero-desc {
  color: var(--color-text-muted);
  font-size: 16px;
  max-width: 700px;
}

/* ========== NEWS LIST ========== */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item {
  display: flex;
  gap: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all .3s;
}
.news-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.news-item .news-thumb {
  width: 280px;
  min-height: 180px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary-light));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: var(--color-accent);
}
.news-item .news-body { padding: 20px; flex: 1; min-width: 0; overflow: hidden; }
.news-item .news-body .news-date {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.news-item .news-body h3 { font-size: 20px; color: #fff; margin-bottom: 10px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item .news-body h3 a { color: #fff; }
.news-item .news-body h3 a:hover { color: var(--color-accent); }
.news-item .news-body p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.news-item .news-body .read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

/* ========== ARTICLE PAGE ========== */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0 60px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.article-content .article-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.article-content h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}
.article-content .article-body h2 { font-size: 24px; color: #fff; margin: 28px 0 14px; font-weight: 700; }
.article-content .article-body h3 { font-size: 20px; color: var(--color-accent); margin: 22px 0 10px; }
.article-content .article-body p { margin-bottom: 16px; color: var(--color-text-muted); line-height: 1.8; overflow-wrap: break-word; word-break: break-word; }
.article-content .article-body ul { padding-left: 24px; margin-bottom: 16px; }
.article-content .article-body li { margin-bottom: 6px; color: var(--color-text-muted); }

.related-articles {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}
.related-articles h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 20px;
}

/* ========== FEATURES GRID ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: all .3s;
}
.feature-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.feature-card .fc-icon {
  width: 56px;
  height: 56px;
  background: rgba(247,183,49,0.1);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }

/* ========== STEPS ========== */
.steps-list { counter-reset: step-counter; }
.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(247,183,49,0.15);
  color: var(--color-accent);
  font-size: 22px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item h3 { font-size: 18px; color: #fff; margin-bottom: 8px; font-weight: 700; }
.step-item p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }

/* ========== POLICY PAGE ========== */
.policy-content { max-width: 800px; margin: 0 auto; padding: 40px 0 60px; }
.policy-content h2 { font-size: 24px; color: #fff; margin: 28px 0 14px; font-weight: 700; }
.policy-content h3 { font-size: 20px; color: var(--color-accent); margin: 20px 0 10px; }
.policy-content p { margin-bottom: 14px; color: var(--color-text-muted); line-height: 1.8; }
.policy-content ul { padding-left: 24px; margin-bottom: 14px; }
.policy-content li { margin-bottom: 6px; color: var(--color-text-muted); }

/* ========== ABOUT TIMELINE ========== */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 26px;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
}
.timeline-item h3 { font-size: 18px; color: var(--color-accent); margin-bottom: 6px; }
.timeline-item p { font-size: 14px; color: var(--color-text-muted); line-height: 1.7; }

/* ========== 404 PAGE ========== */
.error-page {
  text-align: center;
  padding: 100px 20px;
}
.error-page .error-code {
  font-size: 120px;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}
.error-page h1 { font-size: 28px; color: #fff; margin: 20px 0 16px; }
.error-page p { color: var(--color-text-muted); margin-bottom: 30px; }
.error-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== BONUS TABLE ========== */
.bonus-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.bonus-table th {
  background: rgba(247,183,49,0.1);
  color: var(--color-accent);
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}
.bonus-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-muted);
}
.bonus-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--topbar-h) + var(--header-h));
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 20px;
    border-bottom: 2px solid var(--color-accent);
    z-index: 999;
    gap: 4px;
  }
  .menu-toggle { display: flex; }
  .header-logo img, .header-logo svg { max-height: 36px; }
  .topbar { font-size: 11px; }
  .shortcut-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid.col-4 { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 26px; }
  .section-title h2 { font-size: 24px; }
  .news-item { flex-direction: column; }
  .news-item .news-thumb { width: 100%; min-height: 140px; }
  .hero-banner img, .hero-banner svg { max-height: 300px; }
}

@media (max-width: 480px) {
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.col-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .header-actions .btn { padding: 8px 14px; font-size: 12px; }
}
