:root {
  --primary-color: #0A1931;
  --secondary-color: #FFD700;
  --accent-color: #E74C3C;
  --text-light: #F0F2F5;
  --text-dark: #333333;
  --bg-light: #ffffff;
  --bg-dark: #0A1931;
  --border-color: #e0e0e0;
}

.page--g {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
}

.page--g__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page--g h1, .page--g h2, .page--g h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page--g h1 {
  font-size: 2.8em;
  text-align: center;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page--g h2 {
  font-size: 2.2em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page--g h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page--g h3 {
  font-size: 1.5em;
  color: var(--primary-color);
}

.page--g p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page--g ul, .page--g ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

.page--g ul li, .page--g ol li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page--g strong {
  color: var(--accent-color);
}

/* Hero Banner */
.page--g__hero-banner {
  background: linear-gradient(135deg, var(--primary-color), #34495e);
  padding: 80px 0;
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
  position: relative;
}

.page--g__hero-banner .page--g__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page--g__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page--g__hero-content p {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 30px;
}

.page--g__hero-image {
  width: 100%;
  max-width: 700px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page--g__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* CTA Button */
.page--g__cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page--g__cta-button:hover {
  background-color: #c0392b; /* Darker red */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page--g__cta-button--centered {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}

/* Section Styling */
.page--g__about-dagabet, .page--g__why-choose-999bet, .page--g__types-of-betting, .page--g__how-to-play, .page--g__tips-strategies, .page--g__promotions, .page--g__faq, .page--g__contact-us {
  padding: 60px 0;
}

.page--g__about-dagabet img, .page--g__why-choose-999bet img, .page--g__types-of-betting img, .page--g__how-to-play img, .page--g__tips-strategies img, .page--g__promotions img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Why Choose 999bet Grid */
.page--g__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page--g__feature-item {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page--g__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page--g__feature-item h3 {
  color: var(--primary-color);
  font-size: 1.3em;
  margin-bottom: 10px;
}

/* Types of Betting Grid */
.page--g__betting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page--g__betting-item {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page--g__betting-item h3 {
  color: var(--primary-color);
  font-size: 1.3em;
  margin-bottom: 10px;
}

/* How to Play Steps List */
.page--g__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page--g__steps-list li {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page--g__steps-list li::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1em;
  padding: 8px 15px;
  border-radius: 5px;
  position: absolute;
  top: -15px;
  left: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page--g__steps-list li h3 {
  margin-top: 15px;
  color: var(--primary-color);
}

.page--g__step-button {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.page--g__step-button:hover {
  background-color: #06101f;
}

/* Tips & Strategies List */
.page--g__tips-list {
  list-style: none;
  padding: 0;
}

.page--g__tips-list li {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page--g__tips-list li h3 {
  color: var(--primary-color);
  font-size: 1.3em;
  margin-bottom: 10px;
}

/* Promotions Grid */
.page--g__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page--g__promo-item {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page--g__promo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page--g__promo-item h3 {
  color: var(--accent-color);
  font-size: 1.3em;
  margin-bottom: 10px;
}

/* FAQ Section */
.page--g__faq-list {
  margin-top: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #1a2a47; /* Slightly lighter primary for hover */
}

.faq-question h3 {
  margin: 0;
  color: var(--text-light);
  font-size: 1.2em;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-dark);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px 25px;
  border: 1px solid var(--border-color);
  border-top: none;
}

/* Contact Us */
.page--g__contact-us {
  background-color: #f8f8f8;
  border-top: 1px solid var(--border-color);
}

.page--g__contact-list {
  list-style: none;
  padding: 0;
  text-align: center;
  margin-top: 20px;
}

.page--g__contact-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page--g h1 {
    font-size: 2.4em;
  }
  .page--g h2 {
    font-size: 1.8em;
  }
  .page--g h3 {
    font-size: 1.3em;
  }
  .page--g__hero-banner .page--g__container {
    flex-direction: column-reverse;
  }
  .page--g__hero-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page--g h1 {
    font-size: 2em;
  }
  .page--g h2 {
    font-size: 1.6em;
  }
  .page--g p, .page--g ul li, .page--g ol li {
    font-size: 1em;
  }
  .page--g__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page--g__steps-list li {
    padding: 20px;
  }
  .page--g__steps-list li::before {
    left: 20px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page--g__container {
    padding: 15px;
  }
  .page--g h1 {
    font-size: 1.8em;
  }
  .page--g h2 {
    font-size: 1.4em;
  }
  .page--g__cta-button {
    width: 100%;
    text-align: center;
  }
  .page--g__steps-list li::before {
    left: 15px;
    top: -10px;
    font-size: 1em;
    padding: 6px 12px;
  }
  .page--g__steps-list li h3 {
    margin-top: 10px;
  }
}