:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --primary-color-rgb: 17, 168, 78;
  --secondary-color-rgb: 34, 199, 104;

  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-g {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

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

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

.page-g__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

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

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

.page-g__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-g__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-g__main-title {
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
}

.page-g__hero-description {
  color: var(--text-secondary);
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-g__btn-primary {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-g__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-g__btn-secondary {
  display: inline-block;
  background: var(--card-bg);
  color: var(--gold);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  border: 2px solid var(--gold);
  cursor: pointer;
}

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

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

.page-g__btn-center {
  margin-top: 30px;
  margin-bottom: 20px;
}

/* About Section */
.page-g__about-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-g__about-section .page-g__section-title {
  color: var(--gold);
}

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

/* Types Section */
.page-g__types-section {
  background-color: var(--background);
}

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

.page-g__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  color: var(--text-main);
}

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

.page-g__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-g__card-title {
  font-size: 1.8em;
  color: var(--text-main);
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-g__card-description {
  font-size: 1em;
  color: var(--text-secondary);
  padding: 0 20px 20px;
}

/* Promotions Section */
.page-g__promotions-section {
  background-color: var(--deep-green);
}

.page-g__promotions-section .page-g__section-title {
  color: var(--gold);
}

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

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

.page-g__promotion-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid var(--border);
  color: var(--text-main);
}

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

.page-g__promotion-title {
  font-size: 1.6em;
  color: var(--text-main);
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-g__promotion-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 0 20px;
}

/* Guide Section */
.page-g__guide-section {
  background-color: var(--background);
}

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

.page-g__step-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.page-g__step-icon {
  background: var(--button-gradient);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-g__step-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-g__step-description {
  font-size: 0.95em;
  color: var(--text-secondary);
}

.page-g__image-full-width {
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;
}

.page-g__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Tips Section */
.page-g__tips-section {
  background-color: var(--deep-green);
}

.page-g__tips-section .page-g__section-title {
  color: var(--gold);
}

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

.page-g__list {
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  max-width: 900px;
  text-align: left;
}

.page-g__list li {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  padding: 15px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-g__list li strong {
  color: var(--gold);
}

/* Features Section */
.page-g__features-section {
  background-color: var(--background);
}

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

.page-g__feature-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border);
  color: var(--text-main);
}

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

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

.page-g__feature-description {
  font-size: 0.95em;
  color: var(--text-secondary);
}

/* FAQ Section */
.page-g__faq-section {
  background-color: var(--deep-green);
}

.page-g__faq-section .page-g__section-title {
  color: var(--gold);
}

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

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

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
}

.page-g__faq-question:hover {
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

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

.page-g__faq-answer {
  padding: 0 25px 15px;
  font-size: 1em;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-g__faq-item[open] .page-g__faq-answer {
  max-height: 500px; /* Adjust as needed for content length */
}

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

/* CTA Section */
.page-g__cta-section {
  background-color: var(--background);
  padding-bottom: 80px;
}

.page-g__cta-section .page-g__section-title {
  color: var(--text-main);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-g__section-title {
    font-size: 2em;
  }

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

@media (max-width: 768px) {
  .page-g__hero-section {
    padding-bottom: 40px;
  }

  .page-g__main-title {
    font-size: clamp(2em, 8vw, 3em);
  }

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

  .page-g__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-g__text-block,
  .page-g__card-description,
  .page-g__promotion-description,
  .page-g__step-description,
  .page-g__feature-description,
  .page-g__list li,
  .page-g__faq-question,
  .page-g__faq-answer {
    font-size: 1em;
  }

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

  .page-g__container {
    padding: 0 15px;
  }

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

  /* 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 {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .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;
  }

  /* Button responsive */
  .page-g__btn-primary,
  .page-g__btn-secondary,
  .page-g a[class*="button"],
  .page-g a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-g__cta-buttons,
  .page-g__button-group,
  .page-g__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-g__cta-buttons {
    display: flex;
    flex-direction: column; 
  }

  .page-g__grid-container,
  .page-g__promotion-grid,
  .page-g__step-by-step,
  .page-g__feature-grid {
    grid-template-columns: 1fr;
  }

  .page-g__card,
  .page-g__promotion-card,
  .page-g__step-card,
  .page-g__feature-item {
    margin-left: auto;
    margin-right: auto;
    max-width: 400px; /* Constrain card width on small screens */
  }
}

@media (max-width: 480px) {
  .page-g__main-title {
    font-size: clamp(1.8em, 9vw, 2.5em);
  }

  .page-g__btn-primary,
  .page-g__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }

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