/* style/g.css */

:root {
  --page-g-bg-color: #08160F;
  --page-g-card-bg: #11271B;
  --page-g-text-main: #F2FFF6;
  --page-g-text-secondary: #A7D9B8;
  --page-g-accent-green: #11A84E;
  --page-g-accent-green-light: #22C768;
  --page-g-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --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 {
  background-color: var(--page-g-bg-color);
  color: var(--page-g-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.page-g__section-title,
.page-g__card-title,
.page-g__feature-title,
.page-g__step-title,
.page-g__strategy-subtitle {
  color: var(--page-g-text-main);
  margin-bottom: 20px;
}

.page-g__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 40px;
}

.page-g__section-text,
.page-g__card-text,
.page-g__feature-text,
.page-g__step-text,
.page-g__strategy-description,
.page-g__video-description {
  color: var(--page-g-text-secondary);
  font-size: 1rem;
  margin-bottom: 15px;
}

.page-g__keyword {
  color: var(--page-g-gold-color);
  font-weight: bold;
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 600px;
  padding-top: 10px; /* Small top padding, main offset from body */
  padding-bottom: 80px;
  overflow: hidden;
}

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

.page-g__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6);
}

.page-g__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-g__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--page-g-gold-color);
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-g__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--page-g-text-main);
  margin-bottom: 30px;
}

/* Call to Action Buttons */
.page-g__cta-button {
  display: inline-block;
  background: var(--page-g-btn-gradient);
  color: var(--page-g-text-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-g__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-g__cta-button--secondary {
  background: var(--page-g-accent-green);
}

.page-g__cta-button--final {
  margin-top: 30px;
  font-size: 1.2rem;
  padding: 18px 35px;
}

.page-g__cta-button--wide {
  width: 100%;
  max-width: 400px;
  margin-top: 30px;
}

/* Video Section */
.page-g__video-section {
  padding-top: 10px; /* Small top padding */
  background-color: var(--page-g-deep-green);
}

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

.page-g__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: block;
}

/* Types Section (Grid) */
.page-g__types-section {
  background-color: var(--page-g-bg-color);
}

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

.page-g__card {
  background-color: var(--page-g-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-g-border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-g__card-image {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid var(--page-g-accent-green);
  display: block;
}

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

/* Benefits Section (Features List) */
.page-g__benefits-section {
  background-color: var(--page-g-deep-green);
}

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

.page-g__feature-item {
  background-color: var(--page-g-card-bg);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--page-g-accent-green);
}

.page-g__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--page-g-text-main);
  margin-bottom: 10px;
}

/* Guide Section (Steps) */
.page-g__guide-section {
  background-color: var(--page-g-bg-color);
}

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

.page-g__guide-step {
  background-color: var(--page-g-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-g-border-color);
  position: relative;
  padding-top: 60px;
}

.page-g__step-number {
  position: absolute;
  top: 20px;
  left: 30px;
  background-color: var(--page-g-accent-green);
  color: var(--page-g-text-main);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-g__step-title {
  color: var(--page-g-gold-color);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.page-g__guide-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--page-g-gold-color);
  display: block;
}

/* Strategy Section (List) */
.page-g__strategy-section {
  background-color: var(--page-g-deep-green);
}

.page-g__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-g__strategy-item {
  background-color: var(--page-g-card-bg);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-right: 5px solid var(--page-g-gold-color);
}

.page-g__strategy-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--page-g-text-main);
  margin-bottom: 10px;
}

/* FAQ Section */
.page-g__faq-section {
  background-color: var(--page-g-bg-color);
}

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

.page-g__faq-item {
  background-color: var(--page-g-card-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--page-g-divider-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-g__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--page-g-text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.page-g__faq-item summary:hover {
  background-color: rgba(var(--page-g-accent-green), 0.1);
}

.page-g__faq-item[open] summary {
  background-color: var(--page-g-accent-green);
  color: var(--page-g-text-main);
  border-bottom: 1px solid var(--page-g-divider-color);
  border-radius: 8px 8px 0 0;
}

.page-g__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  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: 1rem;
  color: var(--page-g-text-secondary);
  line-height: 1.5;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-g__hero-content {
    padding: 15px;
  }
  .page-g__hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  .page-g__hero-description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }
  .page-g__section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  }
  .page-g__card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-g {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-g__section {
    padding: 40px 0;
  }
  .page-g__container {
    padding: 0 15px;
  }

  .page-g__hero-section {
    min-height: 450px;
    padding-bottom: 60px;
  }
  .page-g__hero-content {
    width: 100%;
    max-width: none;
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.6);
    margin: 0 -15px;
    padding: 15px;
  }
  .page-g__hero-image-wrapper {
    bottom: 0;
    height: calc(100% - 100px);
  }

  /* Force responsive for images */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-g__card-image {
    height: auto !important;
    max-height: 200px;
  }

  /* Force responsive for videos */
  .page-g video,
  .page-g__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-g__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    margin: 20px auto;
    border-radius: 0;
  }
  .page-g__video-section {
    padding-top: 10px !important;
  }

  /* Force responsive for buttons */
  .page-g__cta-button,
  .page-g__cta-button--secondary,
  .page-g__cta-button--final,
  .page-g__cta-button--wide {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px;
  }
  .page-g__cta-button--wide {
    max-width: 100% !important;
  }

  .page-g__grid,
  .page-g__features-list,
  .page-g__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-g__card,
  .page-g__feature-item,
  .page-g__guide-step,
  .page-g__strategy-item,
  .page-g__faq-item {
    padding: 20px;
  }

  .page-g__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-g__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-g__hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .page-g__hero-description {
    font-size: clamp(0.85rem, 1.7vw, 1rem);
  }
  .page-g__cta-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-g__cta-button--final {
    padding: 15px 25px;
    font-size: 1.1rem;
  }
}