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

.page-g__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  text-align: center;
  overflow: hidden;
  min-height: 500px;
}

.page-g__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-g__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  display: block;
}

.page-g__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #FFF3E6;
}

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

.page-g__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: #FFF3E6;
}

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

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

.page-g__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-g__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-g__btn-secondary {
  background-color: transparent;
  color: #FF8C1A;
  border: 2px solid #FF8C1A;
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.2);
}

.page-g__btn-secondary:hover {
  background-color: #FF8C1A;
  color: #FFF3E6;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 140, 26, 0.4);
}

.page-g__btn-tertiary {
  background-color: #17191F;
  color: #FF8C1A;
  border: 1px solid #A84F0C;
  font-size: 0.9rem;
  padding: 10px 20px;
  margin-top: 15px;
}

.page-g__btn-tertiary:hover {
  background-color: #FF8C1A;
  color: #FFF3E6;
  border-color: #FF8C1A;
}

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

.page-g__section {
  padding: 80px 20px;
  text-align: center;
}

.page-g__dark-section {
  background-color: #0D0E12;
  color: #FFF3E6;
}

.page-g__card-bg {
  background-color: #17191F; /* Card BG color */
}

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

.page-g__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FF8C1A;
}

.page-g__section-description {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  color: #FFF3E6;
}

.page-g__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: left;
}

.page-g__content-grid .page-g__text-block p {
  color: #FFF3E6;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-g__content-grid .page-g__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-g__content-grid .page-g__image {
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-g__type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-g__card {
  background-color: #17191F; /* Card BG color */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-g__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FF8C1A;
}

.page-g__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF3E6;
}

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

.page-g__step-card {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-g__step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

.page-g__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FF8C1A;
}

.page-g__step-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF3E6;
  flex-grow: 1;
}

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

.page-g__benefit-item {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-g__benefit-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-g__benefit-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FF8C1A;
}

.page-g__benefit-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF3E6;
}

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

.page-g__faq-item {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FF8C1A;
  background-color: #17191F;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
  list-style: none;
}

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

.page-g__faq-item[open] .page-g__faq-question {
  border-color: #A84F0C;
}

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

.page-g__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFB04D; /* Glow color */
}

.page-g__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: #FFF3E6;
  background-color: #0D0E12;
  border-top: 1px solid #A84F0C;
}

.page-g__conclusion {
  padding-bottom: 80px;
}

.page-g__text-center {
  text-align: center;
}

.page-g__conclusion .page-g__section-description {
  margin-bottom: 50px;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-g__content-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .page-g__content-grid .page-g__text-block:first-child {
    order: 0;
  }
  .page-g__content-grid .page-g__image-wrapper:first-child {
    order: 1;
  }
}

@media (max-width: 768px) {
  .page-g__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
    min-height: 400px;
  }

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

  .page-g__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

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

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

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

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

  .page-g__section-title {
    font-size: 1.8rem;
  }

  .page-g__section-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .page-g__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-g__type-cards,
  .page-g__steps-grid,
  .page-g__benefits-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-g__card,
  .page-g__step-card,
  .page-g__benefit-item {
    padding: 25px;
  }

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

  .page-g__card-title,
  .page-g__step-title,
  .page-g__benefit-title {
    font-size: 1.3rem;
  }

  .page-g__card-text,
  .page-g__step-card p,
  .page-g__benefit-item p,
  .page-g__faq-answer p {
    font-size: 0.9rem;
  }

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

  .page-g__faq-toggle {
    font-size: 1.5rem;
  }

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

  /* Ensure all images are responsive */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all image containers are responsive */
  .page-g__section,
  .page-g__card,
  .page-g__container,
  .page-g__hero-image-wrapper,
  .page-g__image-wrapper,
  .page-g__type-cards,
  .page-g__steps-grid,
  .page-g__benefits-grid,
  .page-g__faq-list,
  .page-g__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-g__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-g__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Override padding for specific sections that might have full width backgrounds */
  .page-g__about-cockfighting .page-g__container,
  .page-g__game-types .page-g__container,
  .page-g__how-to-play .page-g__container,
  .page-g__benefits .page-g__container,
  .page-g__faq .page-g__container,
  .page-g__conclusion .page-g__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-g__about-cockfighting .page-g__text-block,
  .page-g__about-cockfighting .page-g__image-wrapper,
  .page-g__type-cards .page-g__card,
  .page-g__steps-grid .page-g__step-card,
  .page-g__benefits-grid .page-g__benefit-item,
  .page-g__faq-list .page-g__faq-item {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure text is readable on mobile */
  .page-g p, .page-g li, .page-g__card-text, .page-g__step-card p, .page-g__benefit-item p, .page-g__faq-answer p {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .page-g__main-title {
    font-size: 1.8rem;
  }
  .page-g__section-title {
    font-size: 1.5rem;
  }
  .page-g__card-title,
  .page-g__step-title,
  .page-g__benefit-title {
    font-size: 1.2rem;
  }
}