.page-g {
  background-color: #0D0E12;
  color: #FFF3E6;
  font-family: sans-serif;
  line-height: 1.6;
}

.page-g__section-spacing {
  padding: 40px 0;
}

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

.page-g__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FF8C1A;
}

.page-g__section-title--light {
  color: #FFF3E6;
}

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

.page-g__btn--primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
}

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

.page-g__btn--secondary {
  background-color: transparent;
  color: #FFA53A;
  border: 2px solid #FFA53A;
}

.page-g__btn--secondary:hover {
  background-color: #FFA53A;
  color: #0D0E12;
}

.page-g__btn--link {
  color: #FF8C1A;
  text-decoration: underline;
  padding: 0;
  border: none;
  background: none;
}

.page-g__btn--link:hover {
  color: #FFA53A;
}

.page-g__btn--large {
  padding: 15px 35px;
  font-size: 1.1rem;
}

.page-g__bg-card {
  background-color: #17191F;
  border-radius: 12px;
}

.page-g__bg-deep-orange {
  background-color: #D96800;
}

/* Hero Section */
.page-g__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding to respect body padding-top */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-g__hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-g__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 15px;
}

.page-g__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #FFB04D;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-g__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-g__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* About Section */
.page-g__about-section .page-g__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-g__about-section .page-g__text-content {
  flex: 1;
}

.page-g__about-section .page-g__image-wrapper {
  flex: 1;
  min-width: 200px;
}

.page-g__about-section .page-g__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #A84F0C;
}

/* Features Section */
.page-g__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-g__feature-card {
  padding: 30px;
  text-align: center;
  border: 1px solid #A84F0C;
  transition: transform 0.3s ease;
}

.page-g__feature-card:hover {
  transform: translateY(-5px);
}

.page-g__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-g__feature-title {
  font-size: 1.3rem;
  color: #FF8C1A;
  margin-bottom: 10px;
}

/* How To Play Section */
.page-g__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-g__step-card {
  padding: 30px;
  text-align: center;
  border: 1px solid #A84F0C;
  position: relative;
  overflow: hidden;
}

.page-g__step-number {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 139, 26, 0.2);
  line-height: 1;
}

.page-g__step-title {
  font-size: 1.4rem;
  color: #FFB04D;
  margin-bottom: 15px;
  margin-top: 40px; /* Space for step number */
}

/* Types Section */
.page-g__types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-g__type-card {
  border: 1px solid #A84F0C;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-g__type-card:hover {
  transform: translateY(-5px);
}

.page-g__type-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #A84F0C;
}

.page-g__type-title {
  font-size: 1.3rem;
  color: #FF8C1A;
  padding: 20px 15px 10px;
}

.page-g__type-card p {
  padding: 0 15px 20px;
  font-size: 0.95rem;
}

/* CTA Section */
.page-g__cta-content {
  text-align: center;
  padding: 50px 15px;
}

.page-g__cta-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #FFF3E6;
}

.page-g__cta-content .page-g__btn {
  margin: 0 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-g__about-section .page-g__content-grid {
    flex-direction: column;
  }
  .page-g__about-section .page-g__image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
  .page-g__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-g__hero-cta .page-g__btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-g__section-spacing {
    padding: 30px 0;
  }
  .page-g__section-title {
    margin-bottom: 30px;
  }
  .page-g__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-g__hero-description {
    font-size: 1rem;
  }
  .page-g__hero-section {
    padding-bottom: 30px;
  }
  .page-g__hero-image-wrapper {
    margin-bottom: 20px;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-g img {
    max-width: 100%;
    height: auto;
  }

  .page-g__cta-content .page-g__btn {
    margin: 10px 0;
    width: 100%;
  }
  .page-g__type-image {
    height: 200px; /* Adjust height for smaller screens */
  }
}

@media (max-width: 480px) {
  .page-g__hero-cta {
    gap: 10px;
  }
  .page-g__btn--large {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-g__feature-card,
  .page-g__step-card,
  .page-g__type-card {
    padding: 20px;
  }
  .page-g__feature-title, .page-g__step-title, .page-g__type-title {
    font-size: 1.2rem;
  }
  .page-g__feature-icon {
    max-width: 150px;
  }
}