/* style/g.css */

/* Custom Colors */
:root {
  --page-g-bg-color: #08160F;
  --page-g-card-bg: #11271B;
  --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-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-g {
  font-family: 'Arial', sans-serif;
  color: var(--page-g-text-main);
  background-color: var(--page-g-bg-color);
  line-height: 1.6;
}

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

.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--page-g-bg-color);
  overflow: hidden;
}

.page-g__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 0;
}

.page-g__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-g__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  color: var(--page-g-text-main);
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-g__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-g-gold-color);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-g__subtitle {
  font-size: clamp(1em, 1.5vw, 1.25em);
  margin-bottom: 30px;
  color: var(--page-g-text-secondary);
}

.page-g__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-g__btn-primary {
  background: var(--page-g-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-g__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
}

.page-g__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-g-gold-color);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

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

.page-g__dark-section {
  background-color: var(--page-g-card-bg);
  padding: 60px 0;
}

.page-g__introduction-section,
.page-g__how-to-play-section,
.page-g__jackpot-section,
.page-g__promotions-section,
.page-g__cta-final-section {
  padding: 60px 0;
  text-align: center;
}

.page-g__image-content-wrapper {
  margin: 40px auto;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}

.page-g__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-g__features-section {
  background-color: var(--page-g-bg-color);
  padding: 80px 0;
}

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

.page-g__feature-card.page-g__card {
  background-color: var(--page-g-card-bg);
  border: 1px solid var(--page-g-border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-g-text-main);
}

.page-g__feature-card.page-g__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-g__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-g__step-item {
  background-color: var(--page-g-card-bg);
  border: 1px solid var(--page-g-border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: var(--page-g-text-main);
}

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

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

.page-g__cta-center {
  margin-top: 40px;
  text-align: center;
}

.page-g__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-g__promotion-item {
  background-color: var(--page-g-card-bg);
  border: 1px solid var(--page-g-border-color);
  border-radius: 8px;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 500;
  color: var(--page-g-text-main);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-g__faq-section {
  background-color: var(--page-g-bg-color);
  padding: 60px 0;
}

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

.page-g__faq-item {
  background-color: var(--page-g-card-bg);
  border: 1px solid var(--page-g-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-g-text-main);
}

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

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

.page-g__faq-question:hover {
  background-color: var(--page-g-deep-green);
}

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

.page-g__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  width: 20px;
  text-align: center;
}

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

.page-g__cta-final-section {
  background-color: var(--page-g-deep-green);
  padding: 80px 0;
}

/* --- Responsive Styles --- */

/* All images base responsive styles */
.page-g img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-g__hero-section {
    min-height: 450px;
    padding: 40px 15px;
  }

  .page-g__hero-content {
    padding: 15px;
    max-width: 95%;
  }

  .page-g__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-g__subtitle {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-g__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-g__btn-primary,
  .page-g__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

  .page-g__introduction-section,
  .page-g__how-to-play-section,
  .page-g__jackpot-section,
  .page-g__promotions-section,
  .page-g__cta-final-section {
    padding: 40px 0;
  }

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

  .page-g__feature-card.page-g__card,
  .page-g__step-item,
  .page-g__promotion-item,
  .page-g__faq-item {
    padding: 20px;
  }

  .page-g__card-title {
    font-size: 1.3em;
  }

  .page-g__step-title {
    font-size: 1.2em;
  }

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

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

  /* Mobile image specific styles */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-g__image-content-wrapper,
  .page-g__container,
  .page-g__hero-section,
  .page-g__introduction-section,
  .page-g__features-section,
  .page-g__how-to-play-section,
  .page-g__jackpot-section,
  .page-g__promotions-section,
  .page-g__faq-section,
  .page-g__cta-final-section,
  .page-g__feature-card,
  .page-g__step-item,
  .page-g__promotion-item,
  .page-g__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-g__hero-image {
    filter: brightness(0.4); /* Darker on mobile for text visibility */
  }

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

/* Ensure contrast for all text elements */
.page-g h1, .page-g h2, .page-g h3, .page-g h4, .page-g h5, .page-g h6 {
  color: var(--page-g-gold-color);
}

.page-g p, .page-g li, .page-g a {
  color: var(--page-g-text-secondary);
}

.page-g__main-title, .page-g__section-title, .page-g__card-title, .page-g__step-title, .page-g__faq-question {
  color: var(--page-g-gold-color);
}

.page-g__text-block, .page-g__card-text, .page-g__step-description, .page-g__promotion-item, .page-g__faq-answer p {
  color: var(--page-g-text-secondary);
}

.page-g__btn-primary {
  color: #ffffff;
}

.page-g__btn-secondary {
  color: var(--page-g-gold-color);
}

/* Specific contrast fixes if needed */
.page-g__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-g__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}