.page-g {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

.page-g__section {
  padding: 60px 20px;
  background-color: #0D0E12; /* Background */
  border-bottom: 1px solid #17191F; /* Card BG as border for sections */
}

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

/* HERO Section */
.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0D0E12;
}

.page-g__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-g__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-g__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-g__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-g__main-title {
  font-size: 3.2em; /* Use em to allow for relative scaling, but avoid fixed large rem/em */
  font-weight: 700;
  line-height: 1.2;
  color: #FFB04D; /* Glow color for main title */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
}

.page-g__hero-description {
  font-size: 1.2em;
  color: #FFF3E6;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-g__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  max-width: 100%; /* Ensure button fits */
  box-sizing: border-box;
}

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

.page-g__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-3px);
}

.page-g__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A;
}

.page-g__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  transform: translateY(-3px);
}

.page-g__btn-small {
  padding: 10px 25px;
  font-size: 0.9em;
  border-radius: 5px;
}

/* General Section Styling */
.page-g__section-title {
  font-size: 2.5em;
  color: #FF8C1A; /* Primary color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.3);
}

.page-g__sub-title {
  font-size: 1.8em;
  color: #FFA53A; /* Auxiliary color */
  margin-top: 50px;
  margin-bottom: 25px;
  font-weight: 600;
}

.page-g__paragraph {
  font-size: 1.1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  text-align: justify;
}

.page-g__highlight {
  color: #FFB04D; /* Glow color for highlights */
  font-weight: bold;
}

.page-g__text-link {
  color: #FF8C1A;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-g__text-link:hover {
  color: #FFA53A;
  text-decoration: underline;
}

.page-g__image-wrapper {
  margin: 40px auto;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-g__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-g__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-g__list-item {
  background-color: #17191F; /* Card BG */
  border-left: 5px solid #FF8C1A; /* Primary color accent */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #FFF3E6;
  font-size: 1.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-g__list-item strong {
  color: #FFA53A; /* Auxiliary color */
}

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

.page-g__step-item {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-g__step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-g__step-title {
  font-size: 1.4em;
  color: #FFB04D; /* Glow color */
  margin-bottom: 15px;
}

.page-g__step-description {
  font-size: 1em;
  color: #FFF3E6;
  text-align: justify;
}

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

.page-g__card {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border color */
}

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

.page-g__card-title {
  font-size: 1.5em;
  color: #FFB04D; /* Glow color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-g__card-text {
  font-size: 1em;
  color: #FFF3E6;
  text-align: justify;
}

/* FAQ Section */
.page-g__faq-section {
  padding-bottom: 80px;
}

.page-g__faq-list {
  margin-top: 40px;
}

details.page-g__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background-color: #17191F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-g__faq-item summary.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFB04D; /* Glow color for question */
  font-size: 1.15em;
  font-weight: 600;
}

details.page-g__faq-item summary.page-g__faq-question::-webkit-details-marker {
  display: none;
}

details.page-g__faq-item summary.page-g__faq-question:hover {
  background-color: #0D0E12; /* Background */
  color: #FFA53A; /* Auxiliary color */
}

.page-g__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-g__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-g__faq-item .page-g__faq-answer {
  padding: 0 25px 25px;
  background-color: #0D0E12; /* Background */
  border-top: 1px solid #A84F0C; /* Border color */
  border-radius: 0 0 8px 8px;
  color: #FFF3E6;
  font-size: 1em;
  text-align: justify;
}

.page-g__faq-answer p {
  margin: 0;
}

/* Footer CTA */
.page-g__footer-cta {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #0D0E12;
}

.page-g__footer-cta .page-g__section-title {
  color: #FFB04D;
  margin-bottom: 25px;
}

.page-g__footer-cta .page-g__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  font-size: 1.2em;
}

.page-g__copyright {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #A84F0C; /* Border color for subtle copyright text */
  background-color: #0D0E12;
  border-top: 1px solid #17191F;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-g__main-title {
    font-size: 2.8em;
  }
  .page-g__section-title {
    font-size: 2em;
  }
  .page-g__sub-title {
    font-size: 1.6em;
  }
  .page-g__hero-description,
  .page-g__paragraph {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-g__hero-section {
    padding-top: 10px !important; /* Ensure small top padding for mobile */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-g__section {
    padding: 40px 15px;
  }

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

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

  .page-g__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-g__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .page-g__hero-image img,
  .page-g__image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-g__image-wrapper {
    margin: 30px auto;
  }

  .page-g__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-g__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-g__btn-primary,
  .page-g__btn-secondary,
  .page-g a[class*="button"],
  .page-g a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-g__cta-buttons,
  .page-g__button-group,
  .page-g__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-g__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  details.page-g__faq-item summary.page-g__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-g__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

  details.page-g__faq-item .page-g__faq-answer {
    padding: 0 20px 20px;
  }

  .page-g__footer-cta {
    padding: 50px 15px;
  }

  .page-g__footer-cta .page-g__paragraph {
    font-size: 1em;
  }
}

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

.page-g__section,
.page-g__card,
.page-g__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Contrast Fixes */
.page-g__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-g__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Custom colors from requirements */
.page-g__card-bg {
  background-color: #17191F;
}
.page-g__background {
  background-color: #0D0E12;
}
.page-g__text-main {
  color: #FFF3E6;
}
.page-g__border {
  border-color: #A84F0C;
}
.page-g__glow {
  color: #FFB04D;
}
.page-g__deep-orange {
  color: #D96800;
}