/* ============================================================
   EG33 - Global Stylesheet
   Design System: Teal-Gold Casino Theme for Bangladesh Market
   ============================================================ */

:root {
  /* Primary Colors */
  --color-primary: #0d9488;
  --color-primary-light: #14b8a6;
  --color-primary-dark: #0f766e;
  --color-primary-bg: rgba(13,148,136,0.08);

  /* Accent / Gold */
  --color-accent: #f59e0b;
  --color-accent-light: #fbbf24;
  --color-accent-dark: #d97706;

  /* Background Layers */
  --bg-body: #041e1e;
  --bg-section-alt: #062828;
  --bg-card: #0a3535;
  --bg-card-hover: #0c4040;
  --bg-header: #031818;
  --bg-footer: #021414;

  /* Text */
  --text-primary: #f0fdfa;
  --text-secondary: #99f6e4;
  --text-muted: #5eead4;
  --text-dim: rgba(240,253,250,0.5);

  /* Borders & Shadows */
  --border-subtle: rgba(20,184,166,0.15);
  --border-card: rgba(20,184,166,0.2);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 8px 32px rgba(13,148,136,0.15);
  --shadow-btn: 0 4px 16px rgba(245,158,11,0.3);

  /* Spacing */
  --section-pad: 80px;
  --container-max: 1200px;

  /* Typography */
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 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-main);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--color-accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-accent);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1rem; }

ul, ol { margin-bottom: 1rem; padding-left: 1.5em; }
li { margin-bottom: 0.3em; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Top info bar */
.header-topbar {
  background: var(--bg-footer);
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.header-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-contact span { margin-right: 18px; }
.topbar-lang { font-weight: 600; color: var(--color-accent-light); }

/* Main header */
.header-main {
  padding: 10px 0;
}
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-logo img, .header-logo svg {
  max-height: 44px;
  width: auto;
}

.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  line-height: 1.4;
}

.btn-register {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #041e1e;
  box-shadow: var(--shadow-btn);
}
.btn-register:hover {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  color: #041e1e;
  transform: translateY(-1px);
}

.btn-login {
  background: transparent;
  color: var(--color-primary-light);
  border: 2px solid var(--color-primary);
}
.btn-login:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: #041e1e;
}

/* Navigation */
.header-nav {
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-subtle);
}
.header-nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
  flex-wrap: wrap;
}
.nav-list li a {
  display: block;
  padding: 14px 18px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.nav-list li a:hover,
.nav-list li a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  background: rgba(245,158,11,0.05);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero-banner {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.hero-banner img,
.hero-banner svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--section-pad) 0;
}
.section-alt {
  background: var(--bg-section-alt);
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2rem;
  color: var(--color-accent);
}
.section-title p {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 10px auto 0;
}

/* ============================================================
   CARDS SYSTEM
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.3s;
}
.card:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}
.card-title {
  font-size: 1.15rem;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--color-primary-light);
  font-weight: 600;
  font-size: 14px;
}
.card-link:hover { color: var(--color-accent); }

/* Shortcut entry cards (homepage) */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.shortcut-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-section-alt));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.shortcut-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.shortcut-card .sc-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--color-primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shortcut-card .sc-icon svg {
  width: 24px;
  height: 24px;
}
.shortcut-card .sc-label {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
}

/* ============================================================
   CONTENT FEED (articles list)
   ============================================================ */
.article-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.article-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-section-alt), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card-img svg { width: 60px; height: 60px; opacity: 0.3; }
.article-card-body {
  padding: 20px;
}
.article-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.article-card-body h3 a {
  color: var(--text-primary);
}
.article-card-body h3 a:hover { color: var(--color-accent); }
.article-card-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  padding: 18px 24px;
  text-align: left;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question .faq-icon {
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  background: var(--bg-card);
}
.faq-item.active .faq-answer { display: block; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--bg-section-alt));
  border-radius: var(--radius-lg);
  margin: 40px 0;
}
.cta-section h2 { color: var(--color-accent); margin-bottom: 16px; }
.cta-section p { color: var(--text-secondary); max-width: 600px; margin: 0 auto 24px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-dim);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { margin: 0 8px; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  padding: 50px 0 30px;
  text-align: center;
  background: var(--bg-section-alt);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.page-header h1 { font-size: 2.2rem; word-wrap: break-word; overflow-wrap: break-word; }
.page-header p { color: var(--text-secondary); max-width: 700px; margin: 12px auto 0; word-wrap: break-word; overflow-wrap: break-word; }

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.content-area h2 { margin-top: 2rem; }
.content-area h3 { margin-top: 1.5rem; color: var(--color-primary-light); }

.content-area table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.content-area table th,
.content-area table td {
  padding: 12px 16px;
  border: 1px solid var(--border-card);
  text-align: left;
}
.content-area table th {
  background: var(--bg-card);
  color: var(--color-accent);
  font-weight: 700;
}
.content-area table td {
  color: var(--text-secondary);
}

.content-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.sidebar .sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar .sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--color-accent);
}
.sidebar .sidebar-card ul {
  list-style: none;
  padding: 0;
}
.sidebar .sidebar-card ul li {
  margin-bottom: 10px;
}
.sidebar .sidebar-card ul li a {
  color: var(--text-secondary);
  font-size: 14px;
}
.sidebar .sidebar-card ul li a:hover { color: var(--color-accent); }

/* ============================================================
   FEATURES TABLE
   ============================================================ */
.features-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
.features-table th, .features-table td {
  padding: 16px 20px;
  border: 1px solid var(--border-card);
}
.features-table th {
  background: var(--bg-card);
  color: var(--color-accent);
  font-weight: 700;
  text-align: left;
}
.features-table td { color: var(--text-secondary); }
.features-table tr:hover td { background: rgba(13,148,136,0.05); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--color-primary-bg);
  margin: 0 auto 16px;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-light);
}
.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.testimonial-name {
  font-weight: 700;
  color: var(--color-accent);
}

/* ============================================================
   STEPS
   ============================================================ */
.steps-list {
  counter-reset: step;
  max-width: 700px;
  margin: 0 auto;
}
.step-item {
  counter-increment: step;
  padding: 20px 20px 20px 70px;
  position: relative;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}
.step-item::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #041e1e;
  font-size: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-col h3 {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-brand-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--color-accent); }

.footer-contact-item {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.footer-contact-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--color-accent); }

.footer-logo img, .footer-logo svg {
  max-height: 36px;
  width: auto;
  margin-bottom: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .content-sidebar-layout {
    grid-template-columns: 1fr;
  }
  .shortcut-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 50px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }

  .header-topbar { display: none; }

  .header-main .container {
    flex-wrap: wrap;
  }

  .header-logo img, .header-logo svg {
    max-height: 36px;
  }

  .mobile-toggle { display: block; }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-list.active { display: flex; }
  .nav-list li a {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
  .article-feed {
    grid-template-columns: 1fr;
  }
  .shortcut-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .shortcut-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-cta .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ============================================================
   LONG CONTENT AREA
   ============================================================ */
.long-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}
.long-content h2 {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.long-content ul {
  list-style: disc;
}
.long-content p {
  color: var(--text-secondary);
}

/* News listing */
.news-list-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: flex-start;
}
.news-list-item:last-child { border-bottom: none; }
.news-list-thumb {
  width: 200px;
  height: 130px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-card);
}
.news-list-body { min-width: 0; word-wrap: break-word; overflow-wrap: break-word; }
.news-list-body h3 { margin-bottom: 8px; }
.news-list-body h3 a { color: var(--text-primary); }
.news-list-body h3 a:hover { color: var(--color-accent); }
.news-list-meta { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.news-list-excerpt { color: var(--text-secondary); font-size: 0.9rem; }

/* Related articles */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

/* Utility classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }

@media (max-width: 768px) {
  .news-list-item { flex-direction: column; }
  .news-list-thumb { width: 100%; height: 180px; }
}
