.page-g {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f4f4f4; /* From shared.css body background */
}

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

/* Hero Section */
.page-g__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #08160F; /* Background color from custom palette */
  overflow: hidden;
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

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

.page-g__hero-content {
  text-align: center;
  padding: 0 15px;
  color: #F2FFF6; /* Text Main from custom palette */
  max-width: 900px;
}

.page-g__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F2FFF6; /* Text Main from custom palette */
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* No fixed font-size for H1 on desktop */
}

.page-g__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary from custom palette */
}

.page-g__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.page-g__btn-primary,
.page-g__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-g__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

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

.page-g__btn-secondary {
  background: none;
  color: #F2FFF6; /* Text Main for border button */
  border: 2px solid #2E7A4E; /* Border color from custom palette */
}

.page-g__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* #2E7A4E with transparency */
  transform: translateY(-2px);
}

.page-g__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

/* General Section Styles */
.page-g__section-title {
  font-size: 2.2em;
  color: #11A84E; /* Main color from custom palette */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-g__text-block {
  font-size: 1.05em;
  color: #333333; /* Dark text for light background */
  margin-bottom: 20px;
  text-align: justify;
}

/* Intro Section */
.page-g__intro-section,
.page-g__types-section,
.page-g__guide-section,
.page-g__advantages-section,
.page-g__tips-section,
.page-g__faq-section,
.page-g__conclusion-section {
  padding: 60px 0;
}

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

.page-g__feature-card {
  background-color: #ffffff; /* Light background for contrast */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-g__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-g__feature-image {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 5px;
}

.page-g__feature-title {
  font-size: 1.4em;
  color: #11A84E; /* Main color */
  margin-bottom: 10px;
}

.page-g__feature-description {
  font-size: 0.95em;
  color: #555555;
}

/* Types Section */
.page-g__types-section {
  background-color: #0A4B2C; /* Deep Green from custom palette */
}

.page-g__types-section .page-g__section-title {
  color: #F2FFF6; /* Text Main for dark background */
}

.page-g__types-section .page-g__text-block {
  color: #A7D9B8; /* Text Secondary for dark background */
}

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

.page-g__type-card {
  background-color: #11271B; /* Card BG from custom palette */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Text Main for dark background */
  border: 1px solid #2E7A4E; /* Border color */
}

.page-g__type-title {
  font-size: 1.5em;
  color: #57E38D; /* Glow color */
  margin-bottom: 15px;
}

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

.page-g__type-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

/* Guide Section */
.page-g__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-g__guide-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-g__guide-step-title {
  font-size: 1.3em;
  color: #11A84E; /* Main color */
  margin-bottom: 10px;
}

.page-g__guide-step-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

/* Advantages Section */
.page-g__advantages-section {
  background-color: #f0f0f0; /* Slightly off-white for subtle contrast */
}

.page-g__advantages-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-g__advantages-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-g__advantages-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-g__advantages-item-title {
  font-size: 1.25em;
  color: #22C768; /* Auxiliary color */
  margin-bottom: 10px;
}

.page-g__advantages-item-description {
  font-size: 0.9em;
  color: #555555;
}

/* Tips Section */
.page-g__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-g__tip-card {
  background-color: #11271B; /* Card BG from custom palette */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Text Main */
  border: 1px solid #2E7A4E; /* Border color */
}

.page-g__tip-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold color */
  margin-bottom: 10px;
}

.page-g__tip-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

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

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

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: bold;
  color: #11A84E; /* Main color */
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  list-style: none; /* For details/summary */
}

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

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

.page-g__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #22C768; /* Auxiliary color */
}

.page-g__faq-item[open] .page-g__faq-toggle {
  content: '−';
}

.page-g__faq-answer {
  padding: 15px 20px;
  font-size: 0.95em;
  color: #555555;
  background-color: #ffffff;
}

/* Conclusion Section */
.page-g__conclusion-section {
  text-align: center;
  padding-bottom: 60px;
  background-color: #08160F; /* Background color */
  color: #F2FFF6;
}

.page-g__conclusion-section .page-g__section-title {
  color: #F2FFF6; /* Text Main */
}

.page-g__conclusion-section .page-g__text-block {
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-g__conclusion-section .page-g__text-block a {
  color: #57E38D; /* Glow color for links */
  text-decoration: underline;
}

.page-g__conclusion-section .page-g__text-block a:hover {
  color: #2AD16F;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-g__main-title {
    font-size: 2.5em;
  }
  .page-g__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-g {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-g__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
    margin-bottom: 10px;
  }

  .page-g__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-g__btn-primary,
  .page-g__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 20px !important;
    font-size: 1em !important;
  }

  .page-g__intro-section,
  .page-g__types-section,
  .page-g__guide-section,
  .page-g__advantages-section,
  .page-g__tips-section,
  .page-g__faq-section,
  .page-g__conclusion-section {
    padding: 40px 0;
  }

  .page-g__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-g__text-block,
  .page-g__feature-description,
  .page-g__type-description,
  .page-g__guide-step-description,
  .page-g__advantages-item-description,
  .page-g__tip-description,
  .page-g__faq-answer p {
    font-size: 0.95em;
  }

  .page-g__feature-grid,
  .page-g__type-grid,
  .page-g__advantages-list,
  .page-g__tips-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-g__hero-image-wrapper,
  .page-g__feature-image,
  .page-g__type-image,
  .page-g__advantages-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-g__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-g__feature-card,
  .page-g__type-card,
  .page-g__guide-item,
  .page-g__advantages-item,
  .page-g__tip-card,
  .page-g__faq-item {
    padding: 20px;
  }
}