/* style/g.css */

/* Custom Colors */
: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: #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: #0A4B2C;
}

.page-g {
  color: var(--g-text-main); /* Default text color for dark background */
  background-color: var(--g-background); /* Default background for the page */
}

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

.page-g__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-g__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-g__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: var(--g-text-main);
}

.page-g__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--g-text-main);
  margin-bottom: 20px;
  max-width: 100%;
  /* No fixed font-size for H1, relying on responsive scaling */
}

.page-g__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--g-text-secondary);
  margin-bottom: 30px;
}

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

.page-g__btn-primary,
.page-g__btn-secondary {
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

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

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

.page-g__btn-secondary {
  background: transparent;
  color: var(--g-primary-color);
  border: 2px solid var(--g-primary-color);
}

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

/* General Section Styling */
.page-g__section {
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

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

.page-g__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--g-text-main);
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-g__subsection-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--g-text-main);
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.page-g__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--g-text-secondary);
  margin-bottom: 20px;
  text-align: left;
}

.page-g__text-block strong {
  color: var(--g-text-main);
}

.page-g__list,
.page-g__ordered-list {
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.page-g__list-item {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--g-text-secondary);
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-g__list-item::before {
  content: '✔'; /* Checkmark for unordered list */
  color: var(--g-primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-g__ordered-list .page-g__list-item::before {
  content: counter(list-item) '.';
  counter-increment: list-item;
  color: var(--g-gold-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-g__list-item strong {
  color: var(--g-text-main);
}

.page-g__image-content {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-g__card {
  background-color: var(--g-card-bg);
  border: 1px solid var(--g-border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 200px; /* Ensure cards have minimum height */
}

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

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

.page-g__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--g-text-secondary);
}

/* Background Colors */
.page-g__dark-bg {
  background-color: var(--g-background);
  color: var(--g-text-main);
}

.page-g__light-bg {
  background-color: var(--g-text-main); /* Using main text color as light background for contrast */
  color: var(--g-background); /* Dark text for light background */
}

.page-g__light-bg .page-g__section-title,
.page-g__light-bg .page-g__subsection-title,
.page-g__light-bg .page-g__list-item strong,
.page-g__light-bg a {
  color: var(--g-deep-green);
}

.page-g__light-bg .page-g__text-block,
.page-g__light-bg .page-g__list-item {
  color: var(--g-deep-green);
}

.page-g__light-bg .page-g__btn-secondary {
  color: var(--g-deep-green);
  border-color: var(--g-deep-green);
}

.page-g__light-bg .page-g__btn-secondary:hover {
  background: var(--g-deep-green);
  color: #ffffff;
}

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

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

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

.page-g__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-g__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-g__faq-item[open] .page-g__faq-toggle {
  transform: rotate(45deg);
}

.page-g__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--g-text-secondary);
  background-color: var(--g-card-bg);
  border-top: 1px solid var(--g-border-color);
}

.page-g__faq-answer p {
  margin-bottom: 10px;
}

/* Links */
.page-g a {
  color: var(--g-gold-color);
  text-decoration: none;
}

.page-g a:hover {
  text-decoration: underline;
  color: var(--g-glow-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-g__section-title {
    font-size: 2rem;
  }
  .page-g__subsection-title {
    font-size: 1.6rem;
  }
  .page-g__main-title {
    font-size: 2.8rem; /* Adjusted for larger tablets */
  }
}

@media (max-width: 768px) {
  .page-g__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-g__main-title {
    font-size: 2.2rem;
    max-width: 100%;
  }
  .page-g__hero-description {
    font-size: 1rem;
  }
  .page-g__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }
  .page-g__btn-primary,
  .page-g__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-g__section {
    padding: 50px 15px;
  }
  .page-g__section-title {
    font-size: 1.8rem;
  }
  .page-g__subsection-title {
    font-size: 1.4rem;
  }
  .page-g__text-block,
  .page-g__list-item,
  .page-g__card-text,
  .page-g__faq-answer p {
    font-size: 0.95rem;
  }
  .page-g__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-g__card {
    padding: 25px;
  }
  .page-g__card-title {
    font-size: 1.2rem;
  }
  .page-g__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-g__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-g__faq-answer {
    padding: 15px 20px;
  }
  .page-g__container,
  .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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-g__main-title {
    font-size: 1.8rem;
  }
  .page-g__section-title {
    font-size: 1.5rem;
  }
  .page-g__subsection-title {
    font-size: 1.2rem;
  }
  .page-g__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }
  .page-g__container,
  .page-g__cta-buttons {
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-g__image-content {
    padding: 0 10px;
  }
}