.page-g {
  font-family: Arial, sans-serif;
  color: #FFF1E8;
  background-color: #140C0C;
}

.page-g__hero-section {
  padding-top: 10px; /* Small top padding */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #C61F1F 0%, #E53030 100%);
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for hero image */
  overflow: hidden;
}

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

.page-g__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-g__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFF1E8;
  margin-bottom: 20px;
  /* No fixed font-size, rely on responsive scaling */
}

.page-g__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-g__hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.page-g__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page-g__button--primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border: none;
}

.page-g__button--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-g__button--secondary {
  background-color: transparent;
  color: #FFF1E8;
  border: 2px solid #6A1E1E;
}

.page-g__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-g__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F3C54D;
  padding-top: 40px;
}

.page-g__features-section, .page-g__how-to-play-section, .page-g__promotions-section, .page-g__faq-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-g__feature-grid, .page-g__steps-grid, .page-g__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.page-g__card {
  background-color: #2A1212;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #6A1E1E;
}

.page-g__feature-image, .page-g__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-g__card-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-g__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #FFF1E8;
}

.page-g__step-card .page-g__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-g__cta-area {
  text-align: center;
  margin-top: 50px;
}

.page-g__button--link {
  background: none;
  border: none;
  color: #F3C54D;
  text-decoration: underline;
  padding: 0;
  margin-top: 15px;
}

.page-g__button--link:hover {
  color: #FFB04A;
}

.page-g__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-g__faq-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-g__faq-question {
  font-size: 1.2em;
  font-weight: bold;
  color: #F3C54D;
  padding: 18px 25px;
  cursor: pointer;
  position: relative;
  text-align: left;
}

.page-g__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-g__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-g__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-g__faq-answer p {
  padding-bottom: 20px;
  line-height: 1.6;
  color: #FFF1E8;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-g__main-title {
    font-size: 2.8em;
  }
  .page-g__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-g__main-title {
    font-size: 2.2em;
  }
  .page-g__hero-description {
    font-size: 1em;
  }
  .page-g__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-g__button {
    width: 100%;
    padding: 10px 20px;
  }
  .page-g__feature-grid, .page-g__steps-grid, .page-g__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-g__features-section, .page-g__how-to-play-section, .page-g__promotions-section, .page-g__faq-section {
    padding: 40px 15px;
  }
  .page-g__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-g__card-title {
    font-size: 1.2em;
  }
  .page-g__card-description {
    font-size: 0.95em;
  }
  .page-g__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-g__faq-question::after {
    right: 20px;
  }
  /* Ensure content images do not overflow */
  .page-g img {
    max-width: 100%;
    height: auto;
  }
  /* Content area images must not display smaller than 200px. This rule ensures they scale down responsively but respect the minimum size constraint in their original context. */
  .page-g__feature-image, .page-g__promo-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-g__main-title {
    font-size: 1.8em;
  }
  .page-g__section-title {
    font-size: 1.5em;
  }
  .page-g__hero-content {
    padding: 30px 15px;
  }
}