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

.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 60px;
  overflow: hidden;
}

.page-g__hero-image-wrapper {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.page-g__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-g__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: -150px; /* Adjust to slightly overlap the image for visual effect, while respecting 'image above text' rule */
  padding: 0 20px;
  color: #F2FFF6;
}

.page-g__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-g__lead-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-g__btn-primary,
.page-g__btn-secondary,
.page-g__btn-small,
.page-g__btn-large {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-g__btn-primary,
.page-g__btn-large {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-g__btn-primary:hover,
.page-g__btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-g__btn-secondary {
  background: #11271B; /* Card BG */
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

.page-g__btn-secondary:hover {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-g__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  border-radius: 5px;
}

.page-g__btn-small:hover {
  opacity: 0.9;
}

.page-g__btn-large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

.page-g__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
}

.page-g__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2C14E; /* Gold */
  margin-bottom: 25px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-g__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-g__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-g__text-block {
  flex: 1;
}

.page-g__text-block p {
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-g__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-g__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.page-g__feature-card,
.page-g__card,
.page-g__tip-card,
.page-g__promo-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6;
}

.page-g__feature-card:hover,
.page-g__card:hover,
.page-g__tip-card:hover,
.page-g__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-g__card-title {
  font-size: 1.4rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-g__card p {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

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

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

.page-g__step-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  padding-top: 60px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-g__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  border: 3px solid #08160F; /* Background color to create a 'pop' effect */
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.7);
}

.page-g__step-title {
  font-size: 1.3rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-g__step-item p {
  color: #A7D9B8; /* Text Secondary */
}

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

.page-g__responsible-gaming {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 20px;
  margin-top: 60px;
  text-align: center;
}

.page-g__responsible-gaming .page-g__section-title {
  color: #F2C14E; /* Gold */
}

.page-g__responsible-gaming p {
  color: #F2FFF6; /* Text Main */
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-g__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

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

.page-g__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  cursor: pointer;
  list-style: none;
  outline: none;
  transition: background-color 0.3s ease;
}

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

.page-g__faq-item summary:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-g__faq-qtext {
  flex-grow: 1;
  color: #F2C14E;
}

.page-g__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-g__faq-item[open] .page-g__faq-toggle {
  content: '−';
}

.page-g__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

.page-g__final-cta {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 20px;
  margin-top: 60px;
  text-align: center;
}

.page-g__final-cta .page-g__section-title {
  color: #F2C14E;
}

.page-g__final-cta .page-g__section-description {
  color: #F2FFF6;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-g__hero-content {
    margin-top: -100px;
  }

  .page-g__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-g__text-block,
  .page-g__image-wrapper {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-g__main-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .page-g__lead-text {
    font-size: 1rem;
  }

  .page-g__section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-g__section-description {
    font-size: 0.95rem;
  }

  .page-g__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-g__btn-primary,
  .page-g__btn-secondary,
  .page-g__btn-large {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-g__btn-small {
    width: auto !important;
    margin: 0 auto;
  }

  .page-g__hero-content {
    margin-top: -80px;
  }

  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-g__section,
  .page-g__card,
  .page-g__container,
  .page-g__hero-section,
  .page-g__about-cockfighting,
  .page-g__why-choose,
  .page-g__game-types,
  .page-g__betting-guide,
  .page-g__tips-strategy,
  .page-g__promotions,
  .page-g__responsible-gaming,
  .page-g__faq-section,
  .page-g__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-g__hero-section {
    padding-top: 10px !important;
  }

  .page-g__hero-image-wrapper {
    height: 250px;
  }

  .page-g__hero-image {
    height: 100%;
  }

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

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

  .page-g__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-g__hero-content {
    margin-top: -60px;
  }
  .page-g__hero-image-wrapper {
    height: 200px;
  }
  .page-g__feature-card,
  .page-g__card,
  .page-g__tip-card,
  .page-g__promo-card {
    padding: 20px;
  }
  .page-g__step-item {
    padding: 20px;
    padding-top: 50px;
  }
  .page-g__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    top: -15px;
  }
}