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

/* General Page Styles (scoped to .page-g) */
.page-g {
  font-family: 'Arial', sans-serif;
  color: var(--page-g-text-main);
  background-color: var(--page-g-background);
  line-height: 1.6;
}

.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__dark-section {
  background-color: var(--page-g-background);
  color: var(--page-g-text-main);
}

.page-g__section-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--page-g-gold);
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-g__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--page-g-text-main);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-g__sub-title--center {
  text-align: center;
}

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

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

/* Buttons */
.page-g__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.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;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-g__btn-primary {
  background: var(--page-g-button-gradient);
  color: #ffffff; /* Explicit white for contrast */
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-g__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-g__btn-secondary {
  background-color: transparent;
  color: var(--page-g-gold);
  border: 2px solid var(--page-g-gold);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-g__btn-secondary:hover {
  background-color: var(--page-g-gold);
  color: var(--page-g-background);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

/* Hero Section */
.page-g__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles header offset, this is for visual padding */
  position: relative;
  overflow: hidden;
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

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

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

.page-g__main-title {
  font-size: 3em; /* Use clamp if needed, but avoid excessive fixed size */
  font-weight: 800;
  color: var(--page-g-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-g__hero-description {
  font-size: 1.3em;
  color: var(--page-g-text-secondary);
  margin-bottom: 30px;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.page-g__card {
  background-color: var(--page-g-card-bg);
  border: 1px solid var(--page-g-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in grid have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

.page-g__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

/* Features Grid */
.page-g__features-grid,
.page-g__steps-grid,
.page-g__bet-type-grid,
.page-g__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-g__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-g__feature-title,
.page-g__step-title,
.page-g__bet-type-title,
.page-g__promo-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--page-g-gold);
  margin-bottom: 15px;
}

.page-g__feature-description,
.page-g__step-description,
.page-g__bet-type-description,
.page-g__promo-description {
  font-size: 1em;
  color: var(--page-g-text-secondary);
  line-height: 1.7;
  flex-grow: 1; /* Allow description to take available space */
}

/* Steps Section */
.page-g__step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-g__step-number {
  width: 50px;
  height: 50px;
  background-color: var(--page-g-primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

/* Bet Types Section */
.page-g__list-unstyled {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 800px;
  text-align: left;
}

.page-g__list-unstyled li {
  font-size: 1.1em;
  color: var(--page-g-text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.page-g__list-icon {
  color: var(--page-g-gold);
  font-size: 1.2em;
  margin-right: 10px;
  line-height: 1.5;
}

/* Promotions Section */
.page-g__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-g__faq-item {
  background-color: var(--page-g-card-bg);
  border: 1px solid var(--page-g-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.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-text-main);
  cursor: pointer;
  background-color: var(--page-g-deep-green);
  border-bottom: 1px solid var(--page-g-border);
  user-select: none;
}

.page-g__faq-item[open] .page-g__faq-question {
  border-bottom: 1px solid var(--page-g-border);
}

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

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

.page-g__faq-item[open] .page-g__faq-toggle {
  content: '−'; /* Updated by JS */
}

.page-g__faq-answer {
  padding: 20px 25px;
  font-size: 1.1em;
  color: var(--page-g-text-secondary);
  line-height: 1.7;
  background-color: var(--page-g-card-bg);
}

/* Conclusion Section */
.page-g__conclusion {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-g__main-title {
    font-size: 2.5em;
  }

  .page-g__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-g {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-g__section {
    padding: 40px 0;
  }

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

  .page-g__main-title {
    font-size: 2em; /* Clamp is preferred, but this is a fallback for smaller screens */
    line-height: 1.3;
  }

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

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

  .page-g__sub-title {
    font-size: 1.5em;
  }

  .page-g__text-block {
    font-size: 0.95em;
  }

  .page-g__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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__features-grid,
  .page-g__steps-grid,
  .page-g__bet-type-grid,
  .page-g__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-g__card {
    padding: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-g__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-g__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-g__faq-answer {
    font-size: 0.95em;
    padding: 15px 20px;
  }

  /* Ensure content images are at least 200px where applicable, and not shrunk below */
  .page-g__feature-card img,
  .page-g__promo-card img {
      min-width: 200px;
      min- /* Adjust based on aspect ratio */
      object-fit: cover;
  }
  /* Specific override to ensure content images are not too small */
  .page-g__feature-icon {
      width: auto !important;
      height: auto !important;
      min-width: 80px !important;
      min-height: 80px !important;
  }
}

@media (max-width: 480px) {
  .page-g__main-title {
    font-size: 1.8em;
  }

  .page-g__section-title {
    font-size: 1.6em;
  }

  .page-g__hero-content {
    margin-top: 20px;
  }
}