/* style/g.css */

/* Variables from color palette */
: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-color: #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 {
  font-family: 'Arial', sans-serif;
  color: var(--g-text-main); /* Default text color for the page content */
  background-color: var(--g-background-color); /* Default background for the page */
}

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

/* Hero Section */
.page-g__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content */
  background-color: var(--g-deep-green);
  overflow: hidden;
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for desktop hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

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

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

.page-g__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--g-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-g__description {
  font-size: 1.1em;
  color: var(--g-text-main);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-g__btn-primary,
.page-g__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.page-g__btn-primary {
  background: var(--g-button-gradient);
  color: #ffffff;
  border: none;
}

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

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

.page-g__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: rgba(242, 193, 78, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-g__section {
  padding: 60px 0;
  position: relative;
}

.page-g__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--g-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

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

.page-g__text-block .page-g__highlight-text {
  color: var(--g-text-main);
  font-weight: 600;
}

.page-g__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-g__image-content--large {
  max-width: 1000px;
}

/* Introduction Section */
.page-g__section--introduction {
  background-color: var(--g-background-color);
}

/* Types Section */
.page-g__section--types {
  background-color: var(--g-card-bg);
  border-top: 1px solid var(--g-divider-color);
  border-bottom: 1px solid var(--g-divider-color);
}

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

.page-g__card {
  background-color: var(--g-deep-green);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--g-border-color);
}

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

.page-g__card-title {
  font-size: 1.5em;
  color: var(--g-gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-g__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

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

/* Guide Section */
.page-g__section--guide {
  background-color: var(--g-background-color);
}

.page-g__step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-g__step-item {
  background-color: var(--g-card-bg);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--g-primary-color);
  transition: all 0.3s ease;
}

.page-g__step-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-g__step-title {
  font-size: 1.6em;
  color: var(--g-gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-g__step-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--g-text-secondary);
}

.page-g__step-text a {
  color: var(--g-secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-g__step-text a:hover {
  text-decoration: underline;
}

.page-g__cta-buttons--center {
  margin-top: 40px;
  text-align: center;
}

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

/* Benefits Section */
.page-g__section--benefits {
  background-color: var(--g-deep-green);
}

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

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

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

.page-g__benefit-item {
  background-color: var(--g-card-bg);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--g-border-color);
  transition: transform 0.3s ease;
}

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

.page-g__benefit-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px var(--g-secondary-color));
}

.page-g__benefit-title {
  font-size: 1.4em;
  color: var(--g-gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

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

/* Strategy Section */
.page-g__section--strategy {
  background-color: var(--g-background-color);
}

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

.page-g__strategy-card {
  background-color: var(--g-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--g-border-color);
  transition: transform 0.3s ease;
}

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

.page-g__strategy-title {
  font-size: 1.5em;
  color: var(--g-gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-g__strategy-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--g-text-secondary);
}

/* FAQ Section */
.page-g__section--faq {
  background-color: #f0f0f0;
  color: #333333; /* Light background, dark text */
}

.page-g__section--faq .page-g__section-title {
  color: var(--g-deep-green);
  text-shadow: none;
}

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

.page-g__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--g-deep-green);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  user-select: none;
  list-style: none; /* For details/summary */
}

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

.page-g__faq-question .page-g__faq-toggle {
  font-size: 1.5em;
  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: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  background-color: #ffffff;
}

/* Conclusion Section */
.page-g__section--conclusion {
  background-color: var(--g-deep-green);
  text-align: center;
}

.page-g__cta-final {
  padding: 40px 20px;
  border-radius: 15px;
  background-color: var(--g-card-bg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--g-border-color);
}

.page-g__cta-final .page-g__section-title {
  margin-bottom: 25px;
}

.page-g__cta-final .page-g__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 35px;
  color: var(--g-text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-g__hero-image-wrapper {
    max-height: 400px;
  }
  .page-g__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-g__description {
    font-size: 1em;
  }
  .page-g__grid-3-col, .page-g__grid-2-col {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-g__hero-section {
    padding-bottom: 40px;
  }
  .page-g__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-g__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-g__description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }
  .page-g__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-g__btn-primary, .page-g__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    font-size: 1em;
    padding: 12px 25px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-g__section {
    padding: 40px 0;
  }
  .page-g__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
  }
  .page-g__step-item, .page-g__card, .page-g__benefit-item, .page-g__strategy-card {
    padding: 20px;
  }
  .page-g__step-title, .page-g__card-title, .page-g__benefit-title, .page-g__strategy-title {
    font-size: 1.3em;
  }
  .page-g__text-block, .page-g__card-text, .page-g__step-text, .page-g__benefit-text, .page-g__strategy-text, .page-g__faq-answer p {
    font-size: 0.9em;
  }
  .page-g__image-content {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-g__section, .page-g__container, .page-g__card, .page-g__step-item, .page-g__benefit-item, .page-g__strategy-card, .page-g__faq-item, .page-g__cta-buttons, .page-g__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-g__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-g__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-g__cta-final {
    padding: 30px 15px;
  }
}

@media (max-width: 480px) {
  .page-g__hero-image-wrapper {
    max-height: 200px;
  }
  .page-g__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-g__btn-primary--large {
    font-size: 1.1em;
    padding: 15px 25px;
  }
  .page-g__grid-3-col, .page-g__grid-2-col, .page-g__strategy-grid {
    grid-template-columns: 1fr;
  }
}