/* style/g.css */

/* Base styles for the page content, assuming a dark background from shared.css */
.page-g {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Main text color */
  background-color: var(--background-color, #08160F); /* Page background color */
  padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Section styling */
.page-g__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.page-g__dark-section {
  background-color: var(--deep-green, #0A4B2C); /* Darker background for contrast */
  color: var(--text-main, #F2FFF6);
}

.page-g__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--background-color, #08160F);
}

.page-g__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-g__hero-content {
  position: relative; /* Ensure content is above image if layered, but we are doing top-bottom */
  z-index: 2;
  margin-top: 30px;
  max-width: 900px;
  padding: 0 20px;
}

.page-g__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: var(--gold, #F2C14E); /* Gold for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-g__intro-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-main, #F2FFF6);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Call to action buttons */
.page-g__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-g__cta-buttons--center {
  margin-top: 30px;
}

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

.page-g__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-g__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-g__btn-secondary {
  background-color: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-g__btn-secondary:hover {
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* General typography */
.page-g__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-g__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--glow, #57E38D);
  border-radius: 2px;
}

.page-g h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--text-main, #F2FFF6);
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-g p {
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-g a {
  color: var(--glow, #57E38D);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-g a:hover {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
}

.page-g__text-center {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Highlight box */
.page-g__highlight-box {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-g__box-title {
  color: var(--glow, #57E38D);
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
}

.page-g__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-g__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-secondary, #A7D9B8);
}

.page-g__list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--glow, #57E38D);
  font-weight: bold;
}

.page-g__list-item-highlight {
  color: var(--text-main, #F2FFF6);
}

/* Card grid for game types and promotions */
.page-g__card-grid,
.page-g__feature-grid,
.page-g__promotion-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 30px;
}

.page-g__card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-g__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block; /* Ensure image behaves as a block */
}

.page-g__card-title {
  color: var(--gold, #F2C14E);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-g__card-text {
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Numbered list for betting guide */
.page-g__numbered-list {
  list-style: none;
  padding: 0;
  counter-reset: betting-step;
  margin-top: 30px;
}

.page-g__numbered-list li {
  position: relative;
  padding-left: 50px;
  margin-bottom: 25px;
}

.page-g__numbered-list li::before {
  counter-increment: betting-step;
  content: counter(betting-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background-color: var(--glow, #57E38D);
  color: var(--deep-green, #0A4B2C);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-g__list-heading {
  color: var(--gold, #F2C14E);
  margin-top: 0;
  margin-bottom: 5px;
}

.page-g__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-g__faq-list {
  margin-top: 30px;
}

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

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C);
  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 Chrome */
}

.page-g__faq-question:hover {
  background-color: var(--deep-green, #0A4B2C);
  opacity: 0.9;
}

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

.page-g__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

.page-g__faq-item[open] .page-g__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-g__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
  border-top: 1px solid var(--divider, #1E3A2A);
}

.page-g__faq-answer p {
  margin-bottom: 10px;
}

/* Feature grid (similar to card grid but different content) */
.page-g__feature-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-g__feature-item:hover {
  transform: translateY(-5px);
}

.page-g__feature-title {
  color: var(--glow, #57E38D);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-g__feature-description {
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-g__hero-content {
    margin-top: 20px;
  }
  .page-g__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-g__intro-text {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }
}

@media (max-width: 768px) {
  .page-g__section {
    padding: 30px 0;
  }
  .page-g__content-area {
    padding: 0 15px;
  }
  .page-g__hero-section {
    padding-bottom: 40px;
  }
  .page-g__hero-content {
    margin-top: 15px;
  }
  .page-g__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-g__intro-text {
    font-size: 1rem;
  }
  .page-g__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-g__btn-primary,
  .page-g__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-g__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 20px;
  }
  .page-g h3 {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }
  .page-g p {
    font-size: 0.95rem;
  }

  /* Responsive images */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Responsive image containers */
  .page-g__section,
  .page-g__card,
  .page-g__container,
  .page-g__highlight-box,
  .page-g__card-grid,
  .page-g__feature-grid,
  .page-g__promotion-grid,
  .page-g__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-g__hero-section {
    padding-top: 10px !important;
  }

  /* Video responsive rules (not used in this specific HTML, but for completeness if video was added) */
  .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;
  }

  /* FAQ specific mobile adjustments */
  .page-g__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-g__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-g__numbered-list li {
    padding-left: 40px;
  }
  .page-g__numbered-list li::before {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}

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

/* Content area images minimum size check */
.page-g__content-area img,
.page-g__card-image {
    min-width: 200px;
    min-height: 200px;
}

/* Contrast fixes for safety 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;
}