/* style/g.css */

/* Custom Colors */
: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: #2E7A4E;
  --page-g-glow: #57E38D;
  --page-g-gold: #F2C14E;
  --page-g-divider: #1E3A2A;
  --page-g-deep-green: #0A4B2C;
}

.page-g {
  background-color: var(--page-g-background); /* Deep green background */
  color: var(--page-g-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background-color: var(--page-g-background);
  overflow: hidden; /* Ensure no overflow */
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and text */
}

.page-g__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-g__hero-content {
  max-width: 900px;
  width: 100%; /* Ensure content takes full width up to max-width */
  z-index: 1;
}

.page-g__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  color: var(--page-g-gold); /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-g__hero-description {
  font-size: 1.25rem;
  color: var(--page-g-text-secondary); /* Secondary text color */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-g__btn-primary,
.page-g__btn-secondary {
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  text-align: center;
}

.page-g__btn-primary {
  background: var(--page-g-button-gradient);
  color: var(--page-g-text-main); /* Light text on dark button */
  border: 2px solid transparent;
}

.page-g__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(42, 209, 111, 0.4);
}

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

.page-g__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: rgba(87, 227, 141, 0.1);
}

/* General Section Styling */
.page-g__section {
  padding: 60px 20px;
  background-color: var(--page-g-card-bg); /* Darker background for sections */
  border-bottom: 1px solid var(--page-g-divider);
}

.page-g__section:nth-child(even) {
  background-color: var(--page-g-background); /* Alternate section background */
}

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

.page-g__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive font size for H2 */
  color: var(--page-g-gold); /* Gold color for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-g__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--page-g-glow);
  border-radius: 2px;
}

.page-g__text-block {
  font-size: 1.1rem;
  color: var(--page-g-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-g__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* List Styling */
.page-g__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-g__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--page-g-text-main);
  text-align: justify;
}

.page-g__list-item::before {
  content: '✓'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: var(--page-g-glow);
  font-weight: bold;
  font-size: 1.2rem;
}

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

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

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

.page-g__faq-item summary {
  list-style: none; /* Hide default marker for details */
}

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

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--page-g-text-main);
  cursor: pointer;
  background-color: var(--page-g-deep-green); /* Slightly darker for question background */
  transition: background-color 0.3s ease;
}

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

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

.page-g__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05rem;
  color: var(--page-g-text-secondary);
  text-align: justify;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-g__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-g__main-title {
    font-size: clamp(2.2rem, 6vw, 3rem);
  }

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

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

  .page-g__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .page-g__text-block,
  .page-g__list-item,
  .page-g__faq-question,
  .page-g__faq-answer {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  /* Global mobile content padding */
  .page-g__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-g__hero-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 10px !important; /* body handles header offset */
  }

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

  /* Buttons responsive */
  .page-g__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  .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; /* Add padding for content inside button */
    padding-right: 15px;
  }

  .page-g__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-g__hero-description {
    font-size: 0.95rem;
  }

  .page-g__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-g__text-block,
  .page-g__list-item,
  .page-g__faq-question,
  .page-g__faq-answer {
    font-size: 0.9rem;
  }

  .page-g__faq-question {
    padding: 15px 20px;
  }

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

/* No CSS filters allowed for images */
.page-g img {
  filter: none !important;
}

/* Content area images minimum size */
.page-g__content-area img,
.page-g__section img,
.page-g p img,
.page-g li img {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure no override of HTML width/height by CSS to smaller values */
.page-g img[width][height] {
  max-width: 100%;
  height: auto;
}