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

.page-g {
  font-family: 'Arial', sans-serif;
  color: var(--page-g-text-main); /* Default text color for dark background */
  background-color: var(--page-g-background); /* Default background for the page content */
}

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

.page-g__section {
  padding: 60px 0;
  text-align: center;
}

.page-g__section-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--page-g-text-main);
  line-height: 1.2;
}

.page-g__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--page-g-text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-g__light-bg {
  background-color: #f5f5f5; /* Using a light background for contrast sections */
  color: #333333; /* Dark text for light background */
}

.page-g__light-bg .page-g__section-title,
.page-g__light-bg .page-g__text-block {
  color: #333333;
}

.page-g__light-bg .page-g__card-title {
    color: var(--page-g-primary-color);
}

.page-g__light-bg .page-g__card-text {
    color: #555555;
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  overflow: hidden;
}

.page-g__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-g__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-g__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 120px; /* Adjust for header offset */
  padding-bottom: 80px;
}

.page-g__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 800;
  color: var(--page-g-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-g__description {
  font-size: 1.2em;
  color: var(--page-g-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-g__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-g__btn-primary {
  background: var(--page-g-button-gradient);
  color: var(--page-g-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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(--page-g-primary-color);
  border: 2px solid var(--page-g-primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-g__btn-secondary:hover {
  background-color: var(--page-g-primary-color);
  color: var(--page-g-text-main);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Card Styles */
.page-g__card {
  background-color: var(--page-g-card-bg);
  border: 1px solid var(--page-g-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards in a row have same height */
  box-sizing: border-box;
}

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

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

.page-g__card-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--page-g-primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

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

/* Why Us Section */
.page-g__why-us-section .page-g__section-title {
    color: var(--page-g-text-main);
}

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

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

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

.page-g__step-item {
  background-color: var(--page-g-card-bg);
  border: 1px solid var(--page-g-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-top: 80px; /* Space for number */
  height: 100%;
  box-sizing: border-box;
}

.page-g__step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--page-g-button-gradient);
  color: var(--page-g-text-main);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.page-g__step-text {
  font-size: 1em;
  color: var(--page-g-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

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

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

.page-g__promotion-card .page-g__card-image {
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
}

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

/* Video Section */
.page-g__video-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--page-g-deep-green);
}

.page-g__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 40px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-g__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.page-g__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* FAQ Section */
.page-g__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

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

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-g-primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-g__faq-question:hover {
  background-color: #f0f0f0;
}

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

.page-g__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  margin-left: 15px;
  color: var(--page-g-primary-color);
}

.page-g__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  background-color: #ffffff;
}

/* CTA Bottom Section */
.page-g__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--page-g-deep-green);
}

.page-g__cta-content {
  max-width: 900px;
}

.page-g__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--page-g-text-main);
  margin-bottom: 20px;
}

.page-g__cta-description {
  font-size: 1.1em;
  color: var(--page-g-text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-g__section-title {
    font-size: 2.2em;
  }
  .page-g__main-title {
    font-size: clamp(2em, 4.5vw, 3.2em);
  }
  .page-g__description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-g__section {
    padding: 40px 0;
  }
  .page-g__hero-content {
    padding-top: 80px;
    padding-bottom: 60px;
  }
  .page-g__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }
  .page-g__description {
    font-size: 1em;
  }
  .page-g__cta-buttons {
    flex-direction: column;
    gap: 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-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image responsive rules */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-g__card-image,
  .page-g__step-image {
    height: auto !important;
  }
  .page-g__hero-image-wrapper,
  .page-g__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Video responsive rules */
  .page-g video,
  .page-g__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-g__video-section {
    padding-top: 10px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-g__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio */
  }

  .page-g__features-grid,
  .page-g__types-grid,
  .page-g__guide-steps,
  .page-g__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-g__card {
      padding: 20px;
  }
  .page-g__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-g__faq-answer {
    padding: 15px 20px;
  }
  .page-g__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .page-g__section-title {
    font-size: 1.8em;
  }
  .page-g__main-title {
    font-size: 1.8em;
  }
  .page-g__description {
    font-size: 0.95em;
  }
  .page-g__card-title {
    font-size: 1.3em;
  }
  .page-g__step-title {
    font-size: 1.4em;
  }
}