/* style/g.css */

/* Custom Colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --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;
}

/* General Page Styles */
.page-g {
  font-family: Arial, sans-serif;
  color: var(--color-text-main); /* Default text color for dark background */
  background-color: var(--color-background); /* Body background handled by shared.css, but this is default for page-g sections */
}

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

.page-g__section {
  padding: 60px 0;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-g__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--color-gold);
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-g__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.page-g__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--color-text-main);
}

.page-g__numbered-list {
  list-style: decimal inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--color-text-main);
}

.page-g__list-item {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Color Contrast Specifics */
.page-g__dark-bg {
  background-color: var(--color-card-bg); /* Darker background for sections */
  color: var(--color-text-main);
}

.page-g__light-bg {
  background-color: #1a3528; /* Slightly lighter dark background for contrast sections */
  color: var(--color-text-main);
}

.page-g__contrast-fix {
  color: var(--color-text-main) !important;
}

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

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

.page-g__btn-primary {
  background: var(--color-button-gradient-start); /* Fallback for gradient */
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: #ffffff;
  border: none;
  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 {
  background-color: transparent;
  color: var(--color-button-gradient-start);
  border: 2px solid var(--color-button-gradient-start);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* Hero Section */
.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles top padding */
  min-height: 600px; /* Minimum height for hero */
  overflow: hidden;
  background-color: var(--color-deep-green);
}

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

.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: 10;
  margin-top: 40px;
  color: var(--color-text-main);
}

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

.page-g__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-secondary);
}

/* Images in Content */
.page-g__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  object-fit: cover;
}

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

.page-g__faq-list {
  margin-top: 30px;
}

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

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-main);
  background-color: var(--color-deep-green);
  user-select: none;
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-g__faq-qtext {
  flex-grow: 1;
}

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

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

.page-g__faq-item[open] .page-g__faq-answer {
  max-height: 1000px; /* Sufficiently large value */
  transition: max-height 0.4s ease-in;
}

/* Final CTA Section */
.page-g__cta-final {
  text-align: center;
  background-color: var(--color-deep-green);
  padding: 80px 0;
}

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

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

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

  .page-g__main-title {
    font-size: 32px;
  }

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

  .page-g__btn-primary,
  .page-g__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  /* Image containers responsiveness */
  .page-g__hero-image-wrapper,
  .page-g__image-full-width,
  .page-g__section,
  .page-g__card,
  .page-g__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsiveness (no video in this page, but keeping rules) */
  .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__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

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

  .page-g__text-block {
    font-size: 16px;
  }
}

/* Desktop specific for video container width (no video in this page, but keeping rule) */
.page-g__video-container {
  width: 100%;
}