/* style/g.css */

:root {
  --g-primary-color: #11A84E;
  --g-secondary-color: #22C768;
  --g-background-color: #08160F;
  --g-card-bg-color: #11271B;
  --g-text-main-color: #F2FFF6;
  --g-text-secondary-color: #A7D9B8;
  --g-border-color: #2E7A4E;
  --g-glow-color: #57E38D;
  --g-gold-color: #F2C14E;
  --g-divider-color: #1E3A2A;
  --g-deep-green-color: #0A4B2C;
  --g-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-g {
  background-color: var(--g-background-color);
  color: var(--g-text-main-color);
  font-family: Arial, sans-serif;
  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: 2.5em;
  color: var(--g-text-main-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-g__dark-section {
  background-color: var(--g-background-color);
  color: var(--g-text-main-color);
}

.page-g__light-bg {
  background-color: #0A4B2C; /* Deep Green for contrast, as body is dark */
  color: var(--g-text-main-color);
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
}

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

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

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

.page-g__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  color: var(--g-gold-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

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

.page-g__cta-buttons--centered {
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-g__btn-primary,
.page-g__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

.page-g__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-g__btn-secondary {
  background: var(--g-card-bg-color);
  color: var(--g-primary-color);
  border: 2px solid var(--g-primary-color);
}

.page-g__btn-secondary:hover {
  background: var(--g-primary-color);
  color: var(--g-text-main-color);
  transform: translateY(-2px);
}

/* Introduction Section */
.page-g__introduction-section {
  padding: 60px 0;
  background-color: var(--g-deep-green-color);
}

/* Why Choose Section */
.page-g__why-choose-section {
  padding: 80px 0;
  background-color: var(--g-background-color);
}

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

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

.page-g__feature-icon {
  width: 100%;
  max-width: 250px; /* Adjust size for feature icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-g__feature-title {
  font-size: 1.5em;
  color: var(--g-gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-g__feature-description {
  color: var(--g-text-secondary-color);
  font-size: 1em;
}

/* How to Play Section */
.page-g__how-to-play-section {
  padding: 80px 0;
  background-color: var(--g-deep-green-color);
}

.page-g__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

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

.page-g__step-title {
  font-size: 1.6em;
  color: var(--g-gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-g__step-description {
  color: var(--g-text-secondary-color);
  font-size: 1em;
}

.page-g__step-description a {
  color: var(--g-secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-g__step-description a:hover {
  text-decoration: underline;
}

/* Bet Types Section */
.page-g__bet-types-section {
  padding: 80px 0;
  background-color: var(--g-background-color);
}

.page-g__bet-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-g__bet-item {
  background-color: var(--g-card-bg-color);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--g-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-g__bet-title {
  font-size: 1.5em;
  color: var(--g-gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-g__bet-description {
  color: var(--g-text-secondary-color);
  font-size: 1em;
}

/* Promotions Section */
.page-g__promotions-section {
  padding: 80px 0;
  background-color: var(--g-deep-green-color);
}

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

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

.page-g__promo-image {
  width: 100%;
  max-width: 350px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-g__promo-title {
  font-size: 1.4em;
  color: var(--g-gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-g__promo-description {
  color: var(--g-text-secondary-color);
  font-size: 1em;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-g__promo-card .page-g__btn-primary,
.page-g__promo-card .page-g__btn-secondary {
  margin-top: auto; /* Push buttons to bottom */
  width: 100%;
}

/* Download Section */
.page-g__download-section {
  padding: 80px 0;
  background-color: var(--g-background-color);
  text-align: center;
}

.page-g__download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-g__download-image {
  width: 100%;
  max-width: 700px; /* Larger image for download section */
  height: auto;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* FAQ Section */
.page-g__faq-section {
  padding: 80px 0;
  background-color: var(--g-deep-green-color);
}

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

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

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  color: var(--g-text-main-color);
  font-weight: 600;
  background-color: var(--g-card-bg-color);
  user-select: none;
  list-style: none;
}

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

.page-g__faq-item summary {
  list-style: none; /* Hide default marker for Firefox */
}

.page-g__faq-toggle {
  font-size: 1.5em;
  color: var(--g-gold-color);
  transition: transform 0.3s ease;
}

.page-g__faq-item[open] .page-g__faq-toggle {
  transform: rotate(45deg);
}

.page-g__faq-answer {
  padding: 0 25px 20px;
  color: var(--g-text-secondary-color);
  font-size: 1em;
  line-height: 1.5;
}

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

@media (max-width: 768px) {
  .page-g__hero-section {
    padding-bottom: 40px;
  }
  .page-g__hero-image-wrapper {
    max-height: 400px;
  }
  .page-g__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }
  .page-g__hero-description {
    font-size: 1em;
  }
  .page-g__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-g__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .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: 0.95em;
  }
  .page-g__features-grid,
  .page-g__promo-grid,
  .page-g__bet-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-g__feature-card, .page-g__promo-card, .page-g__bet-item, .page-g__step-item {
    padding: 20px;
  }
  .page-g__feature-title, .page-g__promo-title, .page-g__bet-title, .page-g__step-title {
    font-size: 1.3em;
  }
  .page-g__feature-description, .page-g__promo-description, .page-g__bet-description, .page-g__step-description, .page-g__faq-answer {
    font-size: 0.9em;
  }
  .page-g__download-image {
    max-width: 100%;
    width: 100%;
  }
  .page-g__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  /* Mobile specific image adaptation */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-g__section, .page-g__card, .page-g__container, .page-g__hero-image-wrapper, .page-g__download-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-g__hero-section {
    padding-top: 10px !important;
  }
}