.page-g {
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-g__section {
  padding: 60px 0;
}

.page-g__section-title {
  font-size: 2.5em;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-g__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-g__card {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6;
}

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

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

.page-g__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  box-shadow: 0 0 15px #FFD36B;
}

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

.page-g__btn-secondary:hover {
  background-color: #F2C14E;
  color: #0A0A0A;
}

.page-g__btn-inline {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: none;
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-g__btn-inline:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.page-g__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-g__hero-content-wrapper {
  background-color: #0A0A0A;
  padding: 40px 0;
  width: 100%;
  position: relative;
  z-index: 1;
  margin-top: -5px; /* Slight overlap with image for visual flow */
}

.page-g__hero-title {
  font-size: 3em;
  color: #FFF6D6;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

/* About Cockfighting Section */
.page-g__about-cockfighting p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Cockfighting Types Section */
.page-g__cockfighting-types {
  background-color: #0A0A0A;
}

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

.page-g__type-card {
  text-align: center;
}

.page-g__type-title {
  font-size: 1.5em;
  color: #F2C14E;
  margin-bottom: 15px;
}

/* How to Play Section */
.page-g__how-to-play {
  background-color: #0A0A0A;
}

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

.page-g__step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-g__step-title {
  font-size: 1.3em;
  color: #FFD36B;
  margin-bottom: 10px;
}

/* Why Choose Us Section */
.page-g__why-choose-us {
  background-color: #0A0A0A;
}

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

.page-g__feature-item {
  text-align: left;
}

.page-g__feature-title {
  font-size: 1.4em;
  color: #F2C14E;
  margin-bottom: 10px;
}

/* Gameshow Section */
.page-g__gameshow-section {
  background-color: #0A0A0A;
}

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

.page-g__gameshow-card {
  text-align: center;
  overflow: hidden;
}

.page-g__gameshow-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.page-g__gameshow-card:hover .page-g__gameshow-image {
  transform: scale(1.05);
}

.page-g__gameshow-title {
  font-size: 1.3em;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-g__gameshow-description {
  font-size: 0.95em;
  color: #FFF6D6;
}

/* Promotions Section */
.page-g__promotions-section {
  background-color: #0A0A0A;
  text-align: center;
}

.page-g__promotion-cta {
  margin-top: 30px;
}

/* FAQ Section */
.page-g__faq-section {
  background-color: #0A0A0A;
}

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

.page-g__faq-item {
  margin-bottom: 15px;
  cursor: pointer;
  list-style: none;
}

.page-g__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
  color: #F2C14E;
  padding: 15px 20px;
  border-bottom: 1px solid #3A2A12;
  background-color: #111111;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

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

.page-g__faq-item summary:hover {
  background-color: #1a1a1a;
}

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

.page-g__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #FFD36B;
}

.page-g__faq-answer {
  padding: 15px 20px;
  background-color: #0A0A0A;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  color: #FFF6D6;
  font-size: 1.0em;
}

/* Conclusion CTA Section */
.page-g__conclusion-cta {
  background-color: #0A0A0A;
  text-align: center;
  padding-bottom: 80px;
}

.page-g__conclusion-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Global Image Styles */
.page-g img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Global Container Styles for responsiveness */
.page-g__section,
.page-g__card,
.page-g__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-g__container {
    padding: 0 15px;
  }

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

  .page-g__hero-section {
    padding-top: 10px !important; /* Specific for hero to avoid double header offset */
  }

  .page-g__hero-title {
    font-size: 2em;
  }

  .page-g__hero-description {
    font-size: 1em;
  }

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

  .page-g__btn-primary,
  .page-g__btn-secondary,
  .page-g__btn-inline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-g__text-block {
    font-size: 1em;
  }

  .page-g__type-grid,
  .page-g__step-list,
  .page-g__feature-list,
  .page-g__gameshow-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-g__gameshow-image {
    height: auto;
  }

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

  .page-g__faq-answer {
    font-size: 0.95em;
    padding: 12px 15px;
  }

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

  /* Universal image and container responsive styles */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-g__section,
  .page-g__card,
  .page-g__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by .page-g__container padding */
    /* padding-right: 15px; */ /* Handled by .page-g__container padding */
  }

  .page-g__hero-content-wrapper {
    padding: 30px 0;
  }

  .page-g__gameshow-card {
    padding: 20px;
  }
}

@media (max-width: 1024px) {
  .page-g__hero-title {
    font-size: 2.5em;
  }

  .page-g__hero-description {
    font-size: 1.1em;
  }

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

  .page-g__type-grid,
  .page-g__step-list,
  .page-g__feature-list,
  .page-g__gameshow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}