/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  /* Prevent horizontal scrolling on mobile */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  /* Ensure container never exceeds viewport width */
  width: 100%;
  overflow-x: hidden;
}

/* Brand Colors */
:root {
  --primary-blue: #1e40af;
  --secondary-blue: #3b82f6;
  --accent-purple: #7c3aed;
  --dark-black: #1f2937;
  --light-gray: #f8fafc;
  --white: #ffffff;
  --text-gray: #6b7280;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-black);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
  color: var(--text-gray);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Images */
.responsive-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--dark-black);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.header-buttons {
  display: flex;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-black);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--light-gray), var(--white));
  padding: 4rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  color: var(--dark-black);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 3rem 0;
}

section:nth-child(even) {
  background: var(--light-gray);
}

/* Tables */
.fact-table-wrapper,
.bonus-table-wrapper,
.cashback-table-wrapper,
.banking-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  /* Ensure table wrapper doesn't exceed container width */
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  /* Remove fixed min-width that causes horizontal scroll */
  min-width: 600px;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
}

tr:hover {
  background: var(--light-gray);
}

/* Content Sections */
.fact-content,
.guide-content,
.bonus-content,
.games-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin: 2rem 0;
}

/* Lists */
ul,
ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-gray);
}

/* FAQ */
.faq-item {
  background: var(--white);
  padding: 2rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  color: var(--white);
  text-align: center;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

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

/* Footer */
.footer {
  background: var(--dark-black);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

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

.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary-blue);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.3s ease;
}

.social-link:hover {
  background: var(--secondary-blue);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.disclaimer {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
    /* Ensure mobile container stays within viewport */
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Make tables more mobile-friendly */
  table {
    min-width: 500px;
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.75rem 0.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .nav {
    display: none;
  }

  .header-buttons {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-content,
  .fact-content,
  .guide-content,
  .bonus-content,
  .games-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content .hero-image,
  .fact-content .fact-image,
  .guide-content .guide-image,
  .bonus-content .bonus-image,
  .games-content .games-image {
    order: 2;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  section {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  /* Further optimize tables for very small screens */
  table {
    min-width: 450px;
    font-size: 0.85rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 2rem 0;
  }
}

/* Code styling */
code {
  background: var(--light-gray);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  color: var(--accent-purple);
}

/* Emphasis */
strong {
  color: var(--dark-black);
  font-weight: 700;
}

em {
  color: var(--primary-blue);
  font-style: italic;
}
