/* style/g.css */

:root {
  --g-color-primary: #11A84E;
  --g-color-secondary: #22C768;
  --g-bg-color: #08160F;
  --g-card-bg: #11271B;
  --g-text-main: #F2FFF6;
  --g-text-secondary: #A7D9B8;
  --g-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --g-border-color: #2E7A4E;
  --g-glow-color: #57E38D;
  --g-gold-color: #F2C14E;
  --g-divider-color: #1E3A2A;
  --g-deep-green-color: #0A4B2C;
}

.page-g {
  background-color: var(--g-bg-color);
  color: var(--g-text-main);
  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;
  text-align: center;
}

.page-g__section-title {
  font-size: 2.8em;
  font-weight: bold;
  color: var(--g-gold-color);
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-g__text-block {
  font-size: 1.1em;
  color: var(--g-text-secondary);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.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, body handles header offset */
  overflow: hidden;
}

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

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

.page-g__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 20px;
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  border-radius: 15px;
  border: 1px solid var(--g-border-color);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  margin-top: -80px; /* Pull content slightly over image for visual flow */
  position: relative;
  z-index: 1;
}

.page-g__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 900;
  color: var(--g-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-g__hero-description {
  font-size: 1.2em;
  color: var(--g-text-main);
  margin-bottom: 30px;
  line-height: 1.5;
}

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

/* Buttons */
.page-g__btn-primary,
.page-g__btn-secondary,
.page-g__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-g__btn-primary {
  background: var(--g-btn-gradient);
  color: var(--g-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-g__btn-secondary {
  background-color: transparent;
  color: var(--g-text-main);
  border: 2px solid var(--g-color-primary);
  box-shadow: 0 2px 10px rgba(17, 168, 78, 0.3);
}

.page-g__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: var(--g-color-primary);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.5);
}

.page-g__btn-link {
  background: transparent;
  color: var(--g-gold-color);
  border: 1px solid var(--g-gold-color);
  padding: 10px 20px;
}

.page-g__btn-link:hover {
  background: var(--g-gold-color);
  color: var(--g-bg-color);
}

/* Cards */
.page-g__card {
  background-color: var(--g-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--g-border-color);
  color: var(--g-text-main);
  text-align: left;
}

.page-g__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 30px;
  min-width: 200px; /* Min size enforcement */
  min-height: 200px; /* Min size enforcement */
}

.page-g__image-card {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size enforcement */
  min-height: 200px; /* Min size enforcement */
}

/* Cockfighting Types Section */
.page-g__cockfighting-types .page-g__section-title {
  color: var(--g-text-main);
}

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

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

.page-g__type-title {
  font-size: 1.8em;
  color: var(--g-gold-color);
  margin-bottom: 15px;
}

.page-g__type-description {
  color: var(--g-text-secondary);
}

/* Why Choose Us Section */
.page-g__why-choose-us .page-g__section-title {
  color: var(--g-text-main);
}

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

.page-g__feature-item {
  text-align: center;
  padding: 30px;
}

.page-g__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Min size enforcement for all images */
  min-height: 200px; /* Min size enforcement for all images */
}

.page-g__feature-title {
  font-size: 1.6em;
  color: var(--g-gold-color);
  margin-bottom: 10px;
}

.page-g__feature-description {
  color: var(--g-text-secondary);
}

.page-g__cta-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--g-divider-color);
}

.page-g__cta-text {
  font-size: 1.3em;
  color: var(--g-text-main);
  margin-bottom: 25px;
  font-weight: 600;
}

/* Guide Section */
.page-g__guide .page-g__section-title {
  color: var(--g-text-main);
}

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

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

.page-g__guide-item h3 {
  font-size: 1.5em;
  color: var(--g-gold-color);
  margin-bottom: 15px;
}

.page-g__guide-item p {
  color: var(--g-text-secondary);
}

/* Promotions Section */
.page-g__promotions .page-g__section-title {
  color: var(--g-text-main);
}

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

.page-g__promo-item {
  text-align: center;
}

.page-g__promo-title {
  font-size: 1.8em;
  color: var(--g-gold-color);
  margin-bottom: 15px;
}

.page-g__promo-description {
  color: var(--g-text-secondary);
  margin-bottom: 20px;
}

/* FAQ Section */
.page-g__faq-section .page-g__section-title {
  color: var(--g-text-main);
}

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

.page-g__faq-item {
  margin-bottom: 20px;
  border-color: var(--g-border-color);
  background-color: var(--g-card-bg);
  padding: 20px 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3em;
  font-weight: bold;
  color: var(--g-text-main);
  cursor: pointer;
  padding: 10px 0;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                   supported by Chrome, Edge, Opera and Firefox */
}

.page-g__faq-question::-webkit-details-marker, /* Hide default marker for Chrome/Safari */
.page-g__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

.page-g__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--g-gold-color);
  transition: transform 0.3s ease;
}

.page-g__faq-item[open] .page-g__faq-toggle {
  transform: rotate(45deg);
}

.page-g__faq-answer {
  font-size: 1.1em;
  color: var(--g-text-secondary);
  padding-top: 15px;
  border-top: 1px solid var(--g-divider-color);
  margin-top: 15px;
}

.page-g__faq-answer p {
  color: var(--g-text-secondary);
  margin-bottom: 10px;
}

.page-g__faq-answer .page-g__btn-link {
  margin-top: 10px;
}

/* Global image responsiveness */
.page-g img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-g {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-g__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-g__hero-content {
    margin-top: -50px;
    padding: 15px;
  }

  .page-g__hero-title {
    font-size: 2.2em; /* Smaller H1 for mobile */
  }

  .page-g__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-g__btn-primary,
  .page-g__btn-secondary,
  .page-g__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }

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

  .page-g__card {
    padding: 20px;
  }

  .page-g__feature-icon {
    width: 60px;
    height: 60px;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-g img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-g__image-content,
  .page-g__image-card {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-g__section,
  .page-g__card,
  .page-g__container,
  .page-g__hero-section,
  .page-g__hero-image-wrapper,
  .page-g__hero-content,
  .page-g__type-list,
  .page-g__feature-list,
  .page-g__guide-list,
  .page-g__promo-list,
  .page-g__faq-list,
  .page-g__cta-buttons,
  .page-g__promo-item,
  .page-g__type-item,
  .page-g__feature-item,
  .page-g__guide-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-g__faq-question {
    font-size: 1.1em;
  }

  .page-g__faq-answer {
    font-size: 1em;
  }
}