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

/* Base styles for the page, assuming a dark body background from shared.css */
.page-g {
  font-family: 'Arial', sans-serif;
  color: var(--g-text-main); /* Light text for dark background */
  background-color: var(--g-background-color);
  line-height: 1.6;
}

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

.page-g__light-bg {
  background-color: #f0f0f0; /* A slightly lighter background for contrast */
  color: #333333; /* Dark text for light background */
}

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

.page-g__section-title {
  font-size: 2.5em;
  color: var(--g-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-g__section-description {
  font-size: 1.1em;
  color: var(--g-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-g__card {
  background-color: var(--g-card-bg);
  border: 1px solid var(--g-border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--g-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-g__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-g__btn-primary {
  background: var(--g-button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
}

.page-g__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-g__btn-secondary {
  background-color: transparent;
  color: var(--g-primary-color); /* Brand color text for secondary button */
  border: 2px solid var(--g-primary-color);
}

.page-g__btn-secondary:hover {
  background-color: var(--g-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-g__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles padding-top, so only small decorative top padding here */
  overflow: hidden;
}

.page-g__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 675px; /* Limit height for hero image */
}

.page-g__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
}

.page-g__main-title {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--g-text-main);
  margin-bottom: 20px;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

.page-g__description {
  font-size: 1.2em;
  color: var(--g-text-secondary);
  margin-bottom: 30px;
}

/* Video Section */
.page-g__video-section {
  padding: 60px 20px;
  padding-top: 10px; /* Small decorative top padding */
  text-align: center;
}

.page-g__video-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-g__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 30px;
  background-color: #000;
  width: 100%; /* Ensure width 100% for desktop */
  max-width: 100%;
}

.page-g__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

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

/* Why Choose Section */
.page-g__why-choose-section {
  padding: 60px 0;
}

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

.page-g__feature-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%; /* Ensure cards have equal height */
}

.page-g__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-g__feature-title {
  font-size: 1.5em;
  color: var(--g-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-g__feature-text {
  font-size: 1em;
  color: var(--g-text-secondary);
  flex-grow: 1;
}

/* Types Section */
.page-g__types-section {
  padding: 60px 0;
}

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

.page-g__type-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

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

.page-g__type-title {
  font-size: 1.5em;
  color: var(--g-gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-g__type-text {
  font-size: 1em;
  color: var(--g-text-secondary);
  flex-grow: 1;
}

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

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

.page-g__step-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-g__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--g-primary-color);
  margin-bottom: 15px;
  background: rgba(var(--g-primary-color-rgb), 0.1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-g__step-title {
  font-size: 1.4em;
  color: var(--g-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-g__step-text {
  font-size: 1em;
  color: #333333; /* Dark text for light background */
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Strategy Section */
.page-g__strategy-section {
  padding: 60px 0;
}

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

.page-g__strategy-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-g__strategy-subtitle {
  font-size: 1.4em;
  color: var(--g-gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-g__strategy-text {
  font-size: 1em;
  color: var(--g-text-secondary);
  flex-grow: 1;
}

/* 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;
}

.page-g__promo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

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

.page-g__promo-title {
  font-size: 1.4em;
  color: var(--g-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-g__promo-text {
  font-size: 1em;
  color: #333333; /* Dark text for light background */
  flex-grow: 1;
}

.page-g__promotions-cta {
  margin-top: 40px;
}

/* Download Section */
.page-g__download-section {
  padding: 60px 0;
  text-align: center;
}

.page-g__app-download-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-g__qr-code {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--g-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-g__download-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 300px;
}

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

.page-g__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.page-g__faq-item {
  background-color: var(--g-card-bg);
  border: 1px solid var(--g-border-color);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: var(--g-text-main);
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--g-text-main);
  cursor: pointer;
  background-color: var(--g-deep-green-color);
  border-bottom: 1px solid var(--g-divider-color);
  list-style: none; /* For <summary> */
}

.page-g__faq-item[open] .page-g__faq-question {
  border-bottom: 1px solid var(--g-divider-color);
}

.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-qtext {
  flex-grow: 1;
}

.page-g__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--g-gold-color);
}

.page-g__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--g-text-secondary);
}

.page-g__faq-answer p {
  margin: 0;
}

/* Conclusion Section */
.page-g__cta-section {
  padding: 60px 0;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-g__content-area {
    padding: 30px 20px;
  }
  .page-g__section-title {
    font-size: 2em;
  }
  .page-g__description {
    font-size: 1em;
  }
  .page-g__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-g__hero-section,
  .page-g__video-section,
  .page-g__why-choose-section,
  .page-g__types-section,
  .page-g__guide-section,
  .page-g__strategy-section,
  .page-g__promotions-section,
  .page-g__download-section,
  .page-g__faq-section,
  .page-g__cta-section {
    padding: 30px 15px !important; /* Mobile padding */
  }

  .page-g__content-area {
    padding: 0 0 !important; /* Remove horizontal padding from content area for mobile, sections handle it */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-g__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em);
  }

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

  .page-g__section-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

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

  .page-g__btn-primary,
  .page-g__btn-secondary,
  .page-g__video-cta,
  .page-g__download-buttons a {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-g__features-grid,
  .page-g__types-grid,
  .page-g__steps-grid,
  .page-g__strategy-list,
  .page-g__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-g__hero-image,
  .page-g__feature-icon,
  .page-g__type-image,
  .page-g__promo-image,
  .page-g__qr-code,
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-g__video-container,
  .page-g__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

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

  /* Specific padding for sections that need it on mobile */
  .page-g__hero-section .page-g__hero-content {
    padding: 20px 15px;
  }

  .page-g__app-download-options {
    padding: 0 15px;
  }

  .page-g__download-buttons {
    max-width: 100%;
  }

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

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