.page--g {
  --primary-color: #3A0CA3;
  --secondary-color: #FFD700;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #2c2c2c;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
}

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

.page--g__section {
  padding: 60px 0;
  text-align: center;
}

.page--g__section:nth-of-type(even) {
  background-color: var(--background-light);
}

.page--g__main-heading {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page--g__section-heading {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: bold;
}

.page--g__section-subtext {
  font-size: 1.15em;
  color: var(--text-color-dark);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page--g__link-inline {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page--g__link-inline:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Intro Section */
.page--g__intro-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #5d3fd3 100%);
  padding: 80px 0;
  color: var(--text-color-light);
}

.page--g__intro-section .page--g__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.page--g__intro-content {
  flex: 1;
  padding-right: 20px;
}

.page--g__intro-content .page--g__main-heading {
  color: var(--text-color-light);
  font-size: 3.5em;
}

.page--g__intro-text {
  font-size: 1.25em;
  line-height: 1.8;
  margin-bottom: 30px;
}

.page--g__intro-image {
  flex: 1;
  max-width: 550px;
}

.page--g__intro-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page--g__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page--g__cta-button:hover {
  background: #ffc400;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page--g__cta-button--small {
  padding: 12px 30px;
  font-size: 1em;
}

/* Why Choose Section */
.page--g__why-choose {
  background-color: var(--background-light);
}

.page--g__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page--g__card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page--g__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page--g__card-icon {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page--g__card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page--g__card-text {
  font-size: 1em;
  color: var(--text-color-dark);
  line-height: 1.7;
}

/* Game Types Section */
.page--g__game-types {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page--g__game-types .page--g__section-heading {
  color: var(--secondary-color);
}

.page--g__game-types .page--g__section-subtext {
  color: var(--text-color-light);
}

.page--g__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page--g__game-type-card {
  background: #3c1e82;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page--g__game-type-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.page--g__game-type-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page--g__game-type-title {
  font-size: 2em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page--g__game-type-description {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.page--g__game-type-content .page--g__link-inline {
  color: var(--secondary-color);
}

.page--g__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
}

.page--g__card-button:hover {
  background: #ffc400;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Rules Section */
.page--g__rules-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page--g__rules-image {
  flex: 1;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page--g__rules-list {
  flex: 2;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page--g__rules-list li {
  background: var(--card-bg);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  line-height: 1.7;
}

.page--g__rules-list li strong {
  color: var(--primary-color);
}

.page--g__rules-list li ul {
  margin-top: 10px;
  margin-left: 20px;
  list-style: disc;
}

/* Tips Section */
.page--g__tips {
  background-color: var(--background-light);
}

.page--g__tips-content {
  flex: 1;
  text-align: left;
  padding-right: 20px;
}

.page--g__tips-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page--g__tips-title:first-of-type {
  margin-top: 0;
}

.page--g__tips-text {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-color-dark);
}

.page--g__tips-image {
  flex: 1;
  max-width: 550px;
}

.page--g__tips-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* How To Join Section */
.page--g__how-to-join {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page--g__how-to-join .page--g__section-heading {
  color: var(--secondary-color);
}

.page--g__how-to-join .page--g__section-subtext {
  color: #e0e0e0;
}

.page--g__step-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page--g__step-item {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 25px;
}

.page--g__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  flex-shrink: 0;
}

.page--g__step-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page--g__step-item p {
  font-size: 1.1em;
  line-height: 1.7;
  color: #e0e0e0;
}

.page--g__step-item .page--g__link-inline {
  color: var(--secondary-color);
}

/* Promotions Section */
.page--g__promotions {
  background-color: var(--background-light);
}

.page--g__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  text-align: left;
}

.page--g__promo-list li {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left: 6px solid var(--secondary-color);
  font-size: 1.1em;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.page--g__promo-icon {
  font-size: 2.2em;
  line-height: 1;
  color: var(--primary-color);
  flex-shrink: 0;
}

.page--g__promo-list li strong {
  color: var(--primary-color);
}

/* FAQ Section */
.page--g__faq {
  background-color: var(--card-bg);
}

.page--g__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: var(--background-light);
}

.faq-question h3 {
  font-size: 1.25em;
  color: var(--primary-color);
  margin: 0;
  font-weight: bold;
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--background-light);
}

.faq-answer p {
  margin: 0;
  padding-bottom: 20px;
  color: var(--text-color-dark);
  font-size: 1.05em;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px; /* Sufficient height for content */
  padding: 20px 25px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page--g__intro-section .page--g__container {
    flex-direction: column;
    text-align: center;
  }

  .page--g__intro-content {
    padding-right: 0;
  }

  .page--g__intro-image {
    margin-top: 40px;
  }

  .page--g__main-heading {
    font-size: 2.8em;
  }

  .page--g__section-heading {
    font-size: 2em;
  }

  .page--g__intro-text {
    font-size: 1.1em;
  }

  .page--g__grid-3-cols, .page--g__grid-2-cols {
    grid-template-columns: 1fr;
  }

  .page--g__rules-content {
    flex-direction: column;
    align-items: center;
  }

  .page--g__rules-image, .page--g__tips-image {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .page--g__tips-content {
    padding-right: 0;
  }

  .page--g__promo-list {
    grid-template-columns: 1fr;
  }

  .page--g__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page--g__step-number {
    margin-bottom: 15px;
  }

  .faq-question h3 {
    font-size: 1.1em;
  }

  .faq-toggle {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page--g__intro-section {
    padding: 60px 0;
  }
  .page--g__section {
    padding: 40px 0;
  }

  .page--g__main-heading {
    font-size: 2.2em;
  }

  .page--g__section-heading {
    font-size: 1.8em;
  }

  .page--g__intro-text, .page--g__section-subtext, .page--g__card-text, .page--g__game-type-description, .page--g__rules-list li, .page--g__tips-text, .page--g__step-item p, .page--g__promo-list li {
    font-size: 0.95em;
  }

  .page--g__cta-button {
    padding: 15px 30px;
    font-size: 1em;
  }

  .page--g__card-title {
    font-size: 1.4em;
  }

  .page--g__game-type-title {
    font-size: 1.6em;
  }

  .page--g__tips-title {
    font-size: 1.5em;
  }

  .page--g__step-title {
    font-size: 1.5em;
  }

  .faq-question {
    padding: 15px 20px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page--g__main-heading {
    font-size: 1.8em;
  }
  .page--g__section-heading {
    font-size: 1.5em;
  }
  .page--g__intro-text, .page--g__section-subtext {
    font-size: 0.9em;
  }
  .page--g__cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }
  .page--g__card-icon {
    width: 100px;
    height: 100px;
  }
  .page--g__game-type-card {
    margin-bottom: 20px;
  }
  .page--g__game-type-image {
    height: 200px;
  }
  .page--g__game-type-title {
    font-size: 1.4em;
  }
  .page--g__rules-list li {
    padding: 15px 20px;
  }
  .page--g__tips-title {
    font-size: 1.3em;
  }
  .page--g__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }
  .page--g__step-title {
    font-size: 1.3em;
  }
  .page--g__promo-icon {
    font-size: 1.8em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.3em;
  }
  .faq-answer p {
    font-size: 0.9em;
  }
}