/* style/g.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */
.page-g {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-g__section-spacing {
  padding: 60px 0;
}

.page-g__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-g__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  color: #F2FFF6; /* Text Main */
  text-align: center;
  font-weight: bold;
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
}

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

.page-g__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure minimum height */
}

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

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

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

.page-g__btn-primary,
.page-g__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-g__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-g__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-g__btn-secondary:hover {
  background: #2E7A4E; /* Border */
  transform: translateY(-2px);
}

.page-g__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-g__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px auto;
  object-fit: cover;
  min-height: 200px;
}

.page-g__image-spacing {
  margin-top: 40px;
  margin-bottom: 40px;
}

.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: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-g__card-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-g__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

.page-g__step-list,
.page-g__promo-list,
.page-g__safety-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-g__list-item {
  background-color: #11271B; /* Card BG */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 5px solid #2AD16F; /* Button color for accent */
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-g__list-item strong {
  color: #57E38D; /* Glow */
}

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

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

.page-g__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
}

.page-g__faq-question:hover {
  background-color: #1E3A2A; /* Divider for hover */
}

.page-g__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #57E38D; /* Glow */
}

.page-g__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-g__faq-item[open] .page-g__faq-answer {
  max-height: 2000px; /* Arbitrary large value for smooth transition */
  padding-top: 10px;
}

/* Ensure + / - toggle for details element */
.page-g__faq-item[open] .page-g__faq-toggle::before {
  content: '−';
}

.page-g__faq-item:not([open]) .page-g__faq-toggle::before {
  content: '+';
}

.page-g__faq-item .page-g__faq-toggle {
  display: inline-block; /* Ensure it's rendered for ::before */
  color: #57E38D; /* Glow */
}

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

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

  .page-g__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

  .page-g__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-g__hero-image-wrapper {
    margin-bottom: 30px;
  }

  .page-g__hero-description {
    font-size: 1em;
  }

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

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

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

  .page-g__image-content {
    margin: 30px auto;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-g__hero-image {
    max-width: 100% !important;
    height: auto !important;
    min-height: 250px;
  }

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

  .page-g__section,
  .page-g__card,
  .page-g__container,
  .page-g__hero-image-wrapper,
  .page-g__cta-buttons,
  .page-g__cta-single,
  .page-g__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-g__hero-content-wrapper {
    padding: 0;
  }

  .page-g__video-section {
    padding-top: 10px !important;
  }

  .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__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-g__list-item {
    padding: 15px;
  }

  .page-g__faq-question {
    padding: 15px;
    font-size: 1em;
  }

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