.page-g {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

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

.page-g__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding to avoid header overlap */
  background-color: #2F6BFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  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;
  background-color: rgba(47, 107, 255, 0.85); /* Slightly transparent background for readability */
  color: #FFFFFF;
  border-radius: 10px;
  margin-top: -80px; /* Adjust to visually 'sit' on the image, without actually overlapping text */
  position: relative;
  z-index: 1;
}

.page-g__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 20px;
  max-width: 100%;
}

.page-g__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #D6E2FF;
}

.page-g__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.page-g__cta-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-g__cta-button--secondary {
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%);
}

.page-g__cta-button--secondary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
}

.page-g__cta-button--tertiary {
  background: #1F2D3D;
}

.page-g__cta-button--tertiary:hover {
  background: #000000;
}

.page-g__section-title {
  font-size: 2.2em;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.page-g__about-section,
.page-g__how-to-play-section,
.page-g__promotions-section {
  padding: 60px 0;
}

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

.page-g__feature-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF;
}

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

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

.page-g__feature-title {
  font-size: 1.4em;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-g__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: #1F2D3D;
}

.page-g__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.page-g__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background-color: #FFFFFF;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #D6E2FF;
}

.page-g__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  background-color: #2F6BFF;
  color: #FFFFFF;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2em;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-g__step-title {
  font-size: 1.3em;
  color: #2F6BFF;
  margin-top: 0;
  margin-bottom: 5px;
}

.page-g__step-text {
  font-size: 1em;
  line-height: 1.5;
  color: #1F2D3D;
}

.page-g__step-text a {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: bold;
}

.page-g__step-text a:hover {
  text-decoration: underline;
}

.page-g__promotions-intro {
  text-align: center;
  font-size: 1.1em;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 40px;
}

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

.page-g__promo-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  border: 1px solid #D6E2FF;
  text-align: center;
}

.page-g__promo-title {
  font-size: 1.25em;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-g__promo-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-g__promo-link {
  display: inline-block;
  color: #2F6BFF;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #2F6BFF;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-g__promo-link:hover {
  color: #6FA3FF;
  border-color: #6FA3FF;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-g__container {
    padding: 15px;
  }

  .page-g__hero-content {
    padding: 30px 15px;
    margin-top: -50px;
  }

  .page-g__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-g__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-g__cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }

  .page-g__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    margin-top: 40px;
  }

  .page-g__about-section,
  .page-g__how-to-play-section,
  .page-g__promotions-section {
    padding: 40px 0;
  }

  .page-g__feature-item {
    padding: 20px;
  }

  .page-g__feature-title {
    font-size: 1.2em;
  }

  .page-g__feature-image {
    height: 180px;
  }

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

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

  .page-g__promo-title {
    font-size: 1.1em;
  }

  /* Ensure all content area images are responsive */
  .page-g img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-g__hero-content {
    margin-top: -30px;
  }

  .page-g__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

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

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