/* style/g.css */

/* Custom Colors */
:root {
  --page-g-main-color: #11A84E;
  --page-g-aux-color: #22C768;
  --page-g-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-g-card-bg: #11271B;
  --page-g-background: #08160F; /* This is the body background from shared.css */
  --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); /* Light text for dark background */
  background-color: var(--page-g-background); /* Ensure consistency if body background is overridden */
}

/* Section Padding */
.page-g__section-padding {
  padding: 60px 20px;
}

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

/* Titles and Descriptions */
.page-g__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-g-gold-color); /* H1 using gold for prominence */
  max-width: 900px; /* Prevent h1 from being too wide */
  margin: 0 auto 20px;
  text-align: center;
}

.page-g__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--page-g-text-main);
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
}

.page-g__section-description {
  font-size: 1.1em;
  color: var(--page-g-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Highlight keywords */
.page-g strong {
  color: var(--page-g-gold-color);
}

/* Buttons */
.page-g__btn-primary,
.page-g__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping on desktop */
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
}

.page-g__btn-primary {
  background: var(--page-g-button-gradient);
  color: #ffffff; /* White text for gradient button */
  border: none;
}

.page-g__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-g__btn-secondary {
  background-color: transparent;
  color: var(--page-g-main-color);
  border: 2px solid var(--page-g-main-color);
}

.page-g__btn-secondary:hover {
  background-color: var(--page-g-main-color);
  color: #ffffff;
}

.page-g__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-g__cta-buttons--center {
  justify-content: center;
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  padding-top: 10px; /* Small padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for large screens */
  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: 200px; /* Min size for image */
}

.page-g__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

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

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

.page-g__benefit-image {
  width: 100%;
  max-width: 300px; /* Constrain image within card */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Min size for card image */
  object-fit: cover;
}

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

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

/* Access Guide Section */
.page-g__access-guide-section {
  background-color: var(--page-g-deep-green); /* Darker green background for contrast */
  color: var(--page-g-text-main);
}

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

.page-g__guide-step {
  background-color: var(--page-g-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-g-text-main);
  border: 1px solid var(--page-g-border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-g__step-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--page-g-gold-color);
  margin-bottom: 15px;
}

.page-g__step-text {
  font-size: 1em;
  color: var(--page-g-text-secondary);
  line-height: 1.6;
  flex-grow: 1; /* Push image/button to bottom */
}

.page-g__guide-step .page-g__btn-primary {
  margin-top: 20px;
  align-self: center; /* Center button in step */
}

.page-g__guide-image {
  width: 100%;
  max-width: 400px; /* Constrain image within step */
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  min-height: 200px; /* Min size for guide image */
  object-fit: cover;
  align-self: center;
}

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

.page-g__betting-card {
  text-align: left;
}

.page-g__betting-types-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 40px;
  min-height: 200px; /* Min size for betting types image */
  object-fit: cover;
}

.page-g__strategy-text {
  text-align: left;
  margin-bottom: 0;
}

/* Promotions Section */
.page-g__promotions-section {
  background-color: var(--page-g-deep-green); /* Darker green background for contrast */
  color: var(--page-g-text-main);
}

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

.page-g__promotion-card {
  text-align: center;
}

.page-g__promotion-image {
  width: 100%;
  max-width: 300px; /* Constrain image within card */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Min size for promotion image */
  object-fit: cover;
}

/* FAQ Section */
.page-g__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-g__faq-item {
  background-color: var(--page-g-card-bg);
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--page-g-text-main);
  border: 1px solid var(--page-g-border-color);
}

.page-g__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--page-g-gold-color);
}

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

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-g__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-g-gold-color);
}

.page-g__faq-answer {
  padding-top: 15px;
  font-size: 1em;
  color: var(--page-g-text-secondary);
  line-height: 1.6;
}

/* Final CTA Section */
.page-g__final-cta-section {
  background-color: var(--page-g-deep-green);
  color: var(--page-g-text-main);
  text-align: center;
}

.page-g__cta-content {
  padding: 40px 20px;
}

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

@media (max-width: 768px) {
  .page-g__section-padding {
    padding: 40px 15px;
  }

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

  .page-g__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Use clamp for H1 */
    margin-bottom: 15px;
  }

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

  .page-g__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-g__btn-primary,
  .page-g__btn-secondary {
    width: 100% !important; /* Forced for mobile buttons */
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center;
  }

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

  /* All containers with images/content */
  .page-g__section,
  .page-g__card,
  .page-g__container,
  .page-g__hero-section,
  .page-g__benefits-section,
  .page-g__access-guide-section,
  .page-g__betting-types-section,
  .page-g__promotions-section,
  .page-g__faq-section,
  .page-g__final-cta-section,
  .page-g__hero-image-wrapper,
  .page-g__hero-content,
  .page-g__benefits-grid,
  .page-g__guide-steps,
  .page-g__betting-cards-grid,
  .page-g__promotions-grid,
  .page-g__faq-list,
  .page-g__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-g__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-g__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

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

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

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

  .page-g__faq-question {
    font-size: 1.1em;
  }
  .page-g__faq-answer {
    font-size: 0.95em;
  }
}

/* Ensure no filter on images */
.page-g img {
  filter: none !important;
}

/* Ensure contrast for text on dark backgrounds, even if card bg is slightly different */
.page-g__card {
  background-color: var(--page-g-card-bg); /* #11271B */
  color: var(--page-g-text-main); /* #F2FFF6 */
}
.page-g__dark-section {
  background-color: var(--page-g-deep-green); /* #0A4B2C */
  color: var(--page-g-text-main); /* #F2FFF6 */
}
.page-g p, .page-g li, .page-g__card-text, .page-g__step-text, .page-g__faq-answer p {
  color: var(--page-g-text-secondary); /* #A7D9B8 for paragraphs */
}