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

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

.page-g__section {
  padding: 60px 0;
  background-color: var(--page-g-background);
}

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

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

.page-g__section-text {
  font-size: 18px;
  color: var(--page-g-text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

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

.page-g__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-g__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin-top: -200px; /* Overlap slightly with image for visual flow, but not text on image */
  padding: 40px;
  background: rgba(8, 22, 15, 0.85); /* page-g-background with opacity */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-g-border-color);
}

.page-g__hero-title {
  color: var(--page-g-gold-color);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow color */
}

.page-g__hero-description {
  font-size: 20px;
  color: var(--page-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 a[class*="button"],
.page-g a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-g__btn-primary {
  background: var(--page-g-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

.page-g__btn-secondary {
  background: transparent;
  color: var(--page-g-primary-color);
  border: 2px solid var(--page-g-primary-color);
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.2);
}

.page-g__btn-secondary:hover {
  background: var(--page-g-primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.4);
}

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

/* Image with Text Block */
.page-g__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-g__image-block-img {
  flex: 1;
  min-width: 300px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-g-border-color);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-g__text-content {
  flex: 2;
  min-width: 300px;
}

.page-g__text-content-title {
  font-size: 28px;
  color: var(--page-g-text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-g__text-content p {
  font-size: 17px;
  color: var(--page-g-text-secondary);
  margin-bottom: 20px;
}

.page-g__text-content-button {
  margin-top: 20px;
}

/* Steps Grid */
.page-g__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-g__step-card {
  background-color: var(--page-g-card-bg);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-g-border-color);
  transition: transform 0.3s ease;
}

.page-g__step-card:hover {
  transform: translateY(-5px);
}

.page-g__step-icon {
  font-size: 48px;
  font-weight: 700;
  color: var(--page-g-gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

.page-g__step-card p {
  font-size: 16px;
  color: var(--page-g-text-secondary);
}

.page-g__full-width-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 50px auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-g-border-color);
}

/* Cards Grid */
.page-g__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-g__card {
  background-color: var(--page-g-card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-g-border-color);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-g__card:hover {
  transform: translateY(-5px);
}

.page-g__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--page-g-divider-color);
  max-width: 100%;
  display: block;
}

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

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

/* Tips List */
.page-g__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

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

.page-g__tips-title {
  font-size: 26px;
  color: var(--page-g-primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-g__tips-item p {
  font-size: 17px;
  color: var(--page-g-text-secondary);
}

/* Features Grid */
.page-g__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

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

.page-g__feature-item p {
  font-size: 16px;
  color: var(--page-g-text-secondary);
}

/* FAQ Section */
.page-g__faq-list {
  margin-top: 40px;
}

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

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

.page-g__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

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

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

.page-g__faq-answer {
  padding: 20px;
  font-size: 17px;
  color: var(--page-g-text-secondary);
  background-color: var(--page-g-card-bg);
}

/* Final CTA Section */
.page-g__cta-final {
  background: linear-gradient(135deg, var(--page-g-primary-color) 0%, var(--page-g-secondary-color) 100%);
  padding: 80px 0;
  text-align: center;
}

.page-g__cta-final-content {
  max-width: 900px;
}

.page-g__section-title--light,
.page-g__section-text--light {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-g__hero-content {
    margin-top: -150px;
    padding: 30px;
  }

  .page-g__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-g__image-block-img {
    max-width: 80%;
  }

  .page-g__text-content {
    text-align: center;
  }
  
  .page-g__text-content-button {
    margin: 20px auto 0 auto;
  }
}

@media (max-width: 768px) {
  .page-g__section {
    padding: 40px 0;
  }

  .page-g__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-g__hero-content {
    margin-top: -100px;
    padding: 20px;
  }

  .page-g__hero-title {
    font-size: clamp(28px, 8vw, 42px);
  }

  .page-g__hero-description {
    font-size: 17px;
  }

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

  .page-g__btn-primary,
  .page-g__btn-secondary,
  .page-g a[class*="button"],
  .page-g a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .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: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-g__hero-image-wrapper,
  .page-g__image-block-img,
  .page-g__full-width-image,
  .page-g__card-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-g__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-g__section-text {
    font-size: 16px;
  }

  .page-g__step-title,
  .page-g__card-title,
  .page-g__tips-title,
  .page-g__feature-title {
    font-size: 20px;
  }

  .page-g__faq-question {
    font-size: 18px;
  }

  .page-g__faq-answer p {
    font-size: 16px;
  }

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

  /* Ensure content area images are at least 200px */
  .page-g__content-area img {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-g__image-block-img, .page-g__full-width-image, .page-g__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-g__hero-content {
    margin-top: -80px;
  }

  .page-g__hero-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-g__hero-description {
    font-size: 16px;
  }
}

/* Global image size constraint enforcement */
.page-g img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific content area image sizes, ensuring they are not small icons */
.page-g__image-block-img {
  width: 100%;
  height: auto;
  max-width: 800px;
  max-height: 600px;
}

.page-g__full-width-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  max-height: 750px;
}

.page-g__card-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  max-height: 400px;
}

/* WCAG AA contrast for text on background */
/* Default text color var(--page-g-text-main) on var(--page-g-background) provides good contrast */
/* Secondary text color var(--page-g-text-secondary) on var(--page-g-background) also provides good contrast */
.page-g__section-title--light,
.page-g__section-text--light {
  color: #ffffff; /* White text on gradient background */
}

.page-g__btn-primary {
  color: #ffffff; /* White text on green gradient button */
}

.page-g__btn-secondary {
  color: var(--page-g-primary-color); /* Primary green text on transparent/white background */
}
.page-g__btn-secondary:hover {
  color: #ffffff; /* White text on primary green background */
}