/* style/g.css */

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

/* Base styles for the page content, ensuring contrast with body background */
.page-g {
  color: var(--page-g-text-main); /* Light text for dark body background */
  background-color: var(--page-g-background);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-g h1, .page-g h2, .page-g h3, .page-g h4, .page-g h5, .page-g h6 {
  color: var(--page-g-text-main);
  font-weight: bold;
  line-height: 1.2;
}

.page-g h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 20px;
}

.page-g h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-g h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-g-gold);
  border-radius: 2px;
}

.page-g h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 15px;
}

.page-g p {
  margin-bottom: 15px;
  color: var(--page-g-text-secondary);
}

.page-g strong {
  color: var(--page-g-text-main);
}

.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__section:nth-child(even) {
  background-color: var(--page-g-deep-green);
}

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

.page-g__hero-image {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

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

.page-g__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

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

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

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

.page-g__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

.page-g__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--page-g-gold);
  color: var(--page-g-background);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

/* Image content */
.page-g__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  max-width: 800px;
  object-fit: cover;
}

/* Cards Grid */
.page-g__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-g__card {
  background-color: var(--page-g-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

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

.page-g__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-g__card-title {
  color: var(--page-g-gold);
  margin-bottom: 10px;
  flex-grow: 0;
}

.page-g__card-text {
  color: var(--page-g-text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

.page-g__card .page-g__btn-primary {
  margin-top: 20px;
  width: fit-content;
  align-self: flex-start;
}

/* Numbered List (How-to-play) */
.page-g__numbered-list {
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-g__numbered-list li {
  counter-increment: item;
  margin-bottom: 30px;
  padding-left: 60px;
  position: relative;
}

.page-g__numbered-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--page-g-gold);
  color: var(--page-g-background);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-g__list-title {
  color: var(--page-g-text-main);
  margin-bottom: 10px;
}

/* Bullet List (Tips & Strategies) */
.page-g__bullet-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-g__bullet-list li {
  margin-bottom: 20px;
  padding-left: 30px;
  position: relative;
}

.page-g__bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--page-g-gold);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Video Section */
.page-g__video-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

.page-g__video-container {
  width: 100%; /* Desktop width: 100% alongside max-width */
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-g__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 30px;
  width: 100%; /* Ensure wrapper respects container width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-g__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

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

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

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

.page-g__faq-item details > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--page-g-text-main);
  transition: background-color 0.3s ease;
}

.page-g__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-g__faq-item details[open] > summary {
  background-color: var(--page-g-divider);
}

.page-g__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--page-g-gold);
}

.page-g__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--page-g-text-secondary);
  font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-g__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-g__hero-section {
    padding-bottom: 40px;
  }

  .page-g__hero-image {
    max-height: 350px;
    margin-bottom: 20px;
  }

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

  .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: 1rem;
    margin: 0 auto;
  }

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

  .page-g__card {
    padding: 20px;
  }

  .page-g__numbered-list li,
  .page-g__bullet-list li {
    padding-left: 45px;
  }

  .page-g__numbered-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  /* Mobile image responsiveness */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness */
  .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;
  }

  /* General container padding for mobile */
  .page-g__section > .page-g__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-g__faq-item details > summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-g h1 {
    font-size: 2.2rem;
  }

  .page-g h2 {
    font-size: 1.8rem;
  }

  .page-g h3 {
    font-size: 1.3rem;
  }

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

  .page-g__hero-image {
    max-height: 250px;
  }

  .page-g__btn-primary,
  .page-g__btn-secondary {
    font-size: 0.95rem;
  }

  .page-g__card-title {
    font-size: 1.2rem;
  }

  .page-g__card-text {
    font-size: 0.9rem;
  }
}