/* style/g.css */

/* Custom Colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
  --color-text-dark: #333333; /* For light backgrounds */
}

/* Base Styles - body padding-top is handled by shared.css */
.page-g {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--color-text-dark); /* Default for light sections */
  background-color: var(--color-background); /* Overall page background */
}

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

.page-g__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-g__paragraph {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-g__text-main {
  color: var(--color-text-main);
}

.page-g__text-secondary {
  color: var(--color-text-secondary);
}

.page-g__text-dark {
  color: var(--color-text-dark);
}

.page-g__dark-bg {
  background-color: var(--color-background);
  color: var(--color-text-main);
}

.page-g__light-bg {
  background-color: #ffffff;
  color: var(--color-text-dark);
}

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

.page-g__btn-primary {
  background: var(--color-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-g__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--color-glow);
}

.page-g__btn-secondary {
  background-color: transparent;
  color: var(--color-text-main);
  border: 2px solid var(--color-border);
}

.page-g__btn-secondary:hover {
  background-color: var(--color-deep-green);
  border-color: var(--color-glow);
  color: var(--color-text-main);
  box-shadow: 0 0 10px var(--color-glow);
}

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

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

/* Hero Section */
.page-g__hero-section {
  position: relative;
  padding-top: 10px; /* Small padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-g__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px 60px;
  max-width: 900px;
  z-index: 10;
}

.page-g__main-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-g__description {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--color-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Video Section */
.page-g__video-section {
  padding: 60px 20px;
  text-align: center;
  padding-top: 10px; /* Small padding, body handles header offset */
}

.page-g__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for desktop video */
  margin: 0 auto 30px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.page-g__video-link {
  display: block;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.page-g__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.page-g__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Allow click to pass through to video */
}

.page-g__video-link:hover .page-g__video-overlay {
  opacity: 1;
}

.page-g__video-description {
  font-size: 17px;
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text-secondary);
}

/* Content Section */
.page-g__content-section {
  padding: 60px 0;
}

/* Features Section (Types of Cockfighting) */
.page-g__features-section {
  padding: 60px 0;
}

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

.page-g__feature-card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-g__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.page-g__card-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  flex-grow: 1;
}

/* Guide Section */
.page-g__guide-section {
  padding: 60px 0;
}

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

.page-g__step-item {
  text-align: center;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-g__step-icon {
  width: 60px;
  height: 60px;
  background: var(--color-button-gradient);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(42, 209, 111, 0.5);
}

.page-g__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text-dark);
}

.page-g__step-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-dark);
}

/* Promotions Section */
.page-g__promotions-section {
  padding: 60px 0;
}

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

.page-g__promo-card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-g__promo-card .page-g__btn-secondary {
  margin-top: 20px;
}

/* Tips Section */
.page-g__tips-section {
  padding: 60px 0;
}

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

.page-g__tip-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  text-align: left;
}

/* FAQ Section */
.page-g__faq-section {
  padding: 60px 0;
}

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

.page-g__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--color-deep-green);
  color: var(--color-text-main);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-g__faq-question:hover {
  background-color: var(--color-border);
}

.page-g__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-gold);
}

.page-g__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-g__faq-item[open] .page-g__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding-top: 10px;
}

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

/* Final CTA Section */
.page-g__cta-final-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--color-deep-green);
  border-top: 5px solid var(--color-gold);
}

.page-g__cta-final-section .page-g__section-title {
  color: var(--color-gold);
  margin-bottom: 20px;
}

.page-g__cta-final-section .page-g__description {
  color: var(--color-text-secondary);
  margin-bottom: 40px;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-g__hero-content {
    padding: 30px 15px 50px;
  }
  .page-g__main-title {
    font-size: clamp(28px, 4.5vw, 56px);
  }
  .page-g__description {
    font-size: clamp(15px, 1.8vw, 20px);
  }
  .page-g__feature-grid, .page-g__guide-steps, .page-g__promo-grid, .page-g__tips-grid {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-g__container {
    padding: 0 15px;
  }
  .page-g__section-title {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 20px;
  }
  .page-g__paragraph {
    font-size: 16px;
  }
  .page-g__hero-image-wrapper {
    max-height: 400px;
  }
  .page-g__hero-content {
    padding: 20px 15px 40px;
  }
  .page-g__main-title {
    font-size: clamp(28px, 6vw, 48px);
  }
  .page-g__description {
    font-size: 16px;
  }
  .page-g__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-g__btn-primary, .page-g__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Image Responsive */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-g__feature-image, .page-g__promo-image {
    height: auto !important; /* Allow height to adjust */
    max-height: 200px; /* Optional: cap max height */
  }

  /* Video Responsive */
  .page-g video,
  .page-g__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-g__video-section,
  .page-g__video-container,
  .page-g__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-g__video-section {
    padding-top: 10px !important;
  }
  .page-g__video-overlay {
    font-size: 18px;
  }

  /* Container padding for mobile */
  .page-g__section,
  .page-g__card,
  .page-g__container,
  .page-g__hero-section,
  .page-g__content-section,
  .page-g__features-section,
  .page-g__guide-section,
  .page-g__promotions-section,
  .page-g__tips-section,
  .page-g__faq-section,
  .page-g__cta-final-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-g__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-g__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }
  .page-g__faq-toggle {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .page-g__main-title {
    font-size: clamp(24px, 7vw, 40px);
  }
  .page-g__section-title {
    font-size: clamp(22px, 6vw, 32px);
  }
  .page-g__card-title {
    font-size: 20px;
  }
  .page-g__step-title {
    font-size: 18px;
  }
  .page-g__step-icon {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
}