/* style/g.css */

/* --- Base Styles --- */
.page-g {
  font-family: 'Arial', sans-serif;
  color: var(--page-g-text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--page-g-bg, #08160F); /* Default background */
  line-height: 1.6;
}

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

.page-g__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--page-g-gold, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-g__text-block {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--page-g-text-secondary, #A7D9B8);
}

.page-g__card {
  background-color: var(--page-g-card-bg, #11271B);
  border: 1px solid var(--page-g-border, #2E7A4E);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-g-text-main, #F2FFF6);
}

.page-g__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-g__card-title {
  font-size: 22px;
  color: var(--page-g-text-main, #F2FFF6);
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-g__btn-primary,
.page-g__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box; /* For responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to wrap */
}

.page-g__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-g__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(17, 168, 78, 0.6);
}

.page-g__btn-secondary {
  background: transparent;
  color: var(--page-g-glow, #57E38D);
  border: 2px solid var(--page-g-glow, #57E38D);
}

.page-g__btn-secondary:hover {
  background: var(--page-g-glow, #57E38D);
  color: #ffffff;
}

.page-g__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* For responsive buttons */
  max-width: 100%; /* For responsive buttons */
  overflow: hidden; /* For responsive buttons */
  box-sizing: border-box; /* For responsive buttons */
}


/* --- Hero Section --- */
.page-g__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small padding top, body handles header offset */
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height on desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-g__hero-content {
  position: relative; /* Ensure content is in normal flow, below image */
  z-index: 10;
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  box-sizing: border-box;
}

.page-g__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--page-g-text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-g__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--page-g-text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Intro Section --- */
.page-g__intro-section,
.page-g__guide-section,
.page-g__strategy-section,
.page-g__conclusion-section {
  background-color: var(--page-g-bg, #08160F);
  padding: 60px 0;
}

/* --- Features Section --- */
.page-g__features-section,
.page-g__game-types-section,
.page-g__faq-section {
  background-color: var(--page-g-card-bg, #11271B);
  padding: 60px 0;
}

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

.page-g__feature-icon,
.page-g__game-image {
  width: 100%; /* Ensure images are responsive within card */
  height: auto;
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

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

.page-g__guide-item {
  background-color: var(--page-g-card-bg, #11271B);
  border: 1px solid var(--page-g-border, #2E7A4E);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-g-text-secondary, #A7D9B8);
}

.page-g__guide-step-title {
  font-size: 24px;
  color: var(--page-g-gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-g__guide-cta {
  margin-top: 20px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

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

.page-g__strategy-item {
  background-color: var(--page-g-card-bg, #11271B);
  border: 1px solid var(--page-g-border, #2E7A4E);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-g__strategy-item-title {
  font-size: 22px;
  color: var(--page-g-gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: 600;
}


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

.page-g__faq-item {
  background-color: var(--page-g-card-bg, #11271B);
  border: 1px solid var(--page-g-border, #2E7A4E);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-g-text-secondary, #A7D9B8);
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--page-g-text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--page-g-card-bg, #11271B);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-g__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-g__faq-question:hover {
  background-color: var(--page-g-divider, #1E3A2A);
}

.page-g__faq-toggle {
  font-size: 24px;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: var(--page-g-gold, #F2C14E);
}

.page-g__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: var(--page-g-text-secondary, #A7D9B8);
}

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

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

  .page-g__main-title {
    font-size: 36px;
  }

  .page-g__hero-description {
    font-size: 16px;
  }

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

  .page-g__btn-primary,
  .page-g__btn-secondary {
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-g__hero-section,
  .page-g__intro-section,
  .page-g__features-section,
  .page-g__guide-section,
  .page-g__game-types-section,
  .page-g__strategy-section,
  .page-g__faq-section,
  .page-g__conclusion-section {
    padding: 40px 0;
  }

  .page-g__feature-grid,
  .page-g__game-grid,
  .page-g__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-g img,
  .page-g__feature-icon,
  .page-g__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-g__section,
  .page-g__card,
  .page-g__container,
  .page-g__cta-buttons,
  .page-g__button-group,
  .page-g__btn-container,
  .page-g__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-g__container */
  }

  .page-g__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

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

  .page-g__hero-section {
    padding-top: 10px !important; /* body handles header-offset, this is small visual padding */
  }
}

/* Ensure images always fit */
.page-g img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Video responsive styles (if video was present) */
.page-g video,
.page-g__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-g__video-section,
.page-g__video-container,
.page-g__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .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__video-section {
    padding-top: 10px !important;
  }
  
  .page-g__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}