.page--g {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --background-dark: #1a1a2e;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

.page--g a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.page--g a:hover {
  color: var(--primary-color);
}

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

.page--g section {
  padding: 60px 0;
  text-align: center;
}

.page--g section:nth-of-type(even) {
  background-color: var(--background-light);
}

.page--g h1,
.page--g h2,
.page--g h3 {
  color: var(--secondary-color);
  margin-bottom: 25px;
  font-weight: bold;
}

.page--g h1 {
  font-size: 3.2em;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page--g h2 {
  font-size: 2.5em;
  margin-top: 40px;
  margin-bottom: 30px;
  position: relative;
}

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

.page--g h3 {
  font-size: 1.8em;
  color: var(--text-dark);
}

.page--g p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

/* Hero Section */
.page--g .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: var(--background-dark);
  overflow: hidden;
}

.page--g .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page--g .hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page--g .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page--g .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 12px;
  margin-top: -80px; /* Overlap with image */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page--g .hero-content h1 {
  color: var(--primary-color);
  font-size: 3.5em;
  margin-bottom: 15px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page--g .hero-content p {
  color: var(--text-light);
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page--g .cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(90deg, var(--primary-color) 0%, #FFC107 100%);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page--g .cta-button:hover {
  background: linear-gradient(90deg, #FFC107 0%, var(--primary-color) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Feature Grid */
.page--g .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page--g .feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page--g .feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page--g .feature-item h3 {
  color: var(--secondary-color);
  font-size: 1.6em;
  margin-top: 20px;
}

.page--g .feature-item p {
  color: var(--text-dark);
  font-size: 1em;
}

.page--g .feature-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* How-to-Play Section */
.page--g .how-to-play-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page--g .how-to-play-section h2 {
  color: var(--primary-color);
}

.page--g .how-to-play-section p {
  color: var(--text-light);
}

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

.page--g .step-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  position: relative;
  border: 1px solid var(--primary-color);
}

.page--g .step-number {
  position: absolute;
  top: -20px;
  left: 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.page--g .step-item h3 {
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 15px;
}

.page--g .step-item p {
  color: var(--text-light);
  font-size: 1em;
}

.page--g .button-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page--g .button-primary:hover {
  background-color: #FFC107;
  transform: translateY(-2px);
}

.page--g .button-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: none;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

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

/* Game Types Section */
.page--g .game-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page--g .card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page--g .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page--g .card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page--g .card-content {
  padding: 25px;
}

.page--g .card-content h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page--g .card-content p {
  color: var(--text-dark);
  font-size: 1em;
  margin-bottom: 20px;
}

.page--g .read-more-link {
  color: var(--primary-color);
  font-weight: bold;
}

.page--g .read-more-link:hover {
  color: var(--secondary-color);
}

/* Tips Section */
.page--g .tips-section ul {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page--g .tips-section li {
  background-color: #ffffff;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  color: var(--text-dark);
  border-left: 5px solid var(--primary-color);
}

.page--g .tips-section li strong {
  color: var(--secondary-color);
}

/* Promotions Section */
.page--g .promotions-section {
  background-color: var(--background-dark);
}

.page--g .promotions-section h2 {
  color: var(--primary-color);
}

.page--g .promotions-section p {
  color: var(--text-light);
}

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

.page--g .promo-cards .card {
  background-color: var(--secondary-color);
  color: var(--text-light);
  border: 1px solid var(--primary-color);
}

.page--g .promo-cards .card h3 {
  color: var(--primary-color);
}

.page--g .promo-cards .card p {
  color: var(--text-light);
}

/* FAQ Section */
.page--g .faq-section .faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page--g .faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page--g .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page--g .faq-question:hover {
  background: #f5f5f5;
}

.page--g .faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--secondary-color);
}

.page--g .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page--g .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.page--g .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #fdfdfd;
  color: var(--text-dark);
}

.page--g .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 25px;
  border-top: 1px solid #eee;
}

.page--g .faq-answer p {
  margin-bottom: 0;
  line-height: 1.7;
}

/* Latest News Section */
.page--g .latest-news-section {
  background-color: var(--background-light);
}

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

.page--g .news-cards .card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
}

.page--g .news-cards .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page--g .news-cards .card-content {
  padding: 20px;
}

.page--g .news-cards .card-content h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page--g .news-cards .card-content h3 a {
  color: var(--secondary-color);
}

.page--g .news-cards .card-content h3 a:hover {
  color: var(--primary-color);
}

.page--g .news-cards .card-content p {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 15px;
}

.page--g .news-date {
  font-size: 0.85em;
  color: #999;
}

.page--g .view-all-news {
  margin-top: 50px;
}

/* Contact Section */
.page--g .contact-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page--g .contact-section h2 {
  color: var(--primary-color);
}

.page--g .contact-section p {
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page--g .contact-info p {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.page--g .contact-info a {
  color: var(--primary-color);
  font-weight: bold;
}

.page--g .contact-info a:hover {
  color: #FFC107;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page--g .hero-content h1 {
    font-size: 3em;
  }
  .page--g h2 {
    font-size: 2.2em;
  }
  .page--g h3 {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page--g section {
    padding: 40px 0;
  }
  .page--g .hero-section {
    padding: 60px 15px;
  }
  .page--g .hero-content {
    padding: 20px;
    margin-top: -60px;
  }
  .page--g .hero-content h1 {
    font-size: 2.5em;
  }
  .page--g .hero-content p {
    font-size: 1em;
  }
  .page--g .cta-button {
    padding: 15px 30px;
    font-size: 18px;
  }
  .page--g h2 {
    font-size: 1.8em;
  }
  .page--g h3 {
    font-size: 1.4em;
  }
  .page--g p {
    font-size: 1em;
  }
  .page--g .feature-grid, .page--g .steps-grid, .page--g .game-type-cards, .page--g .promo-cards, .page--g .news-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page--g .step-number {
    top: -15px;
    left: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }
  .page--g .faq-question {
    padding: 15px 20px;
  }
  .page--g .faq-question h3 {
    font-size: 1.1em;
  }
  .page--g .faq-toggle {
    font-size: 20px;
  }
  .page--g .faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page--g .hero-content h1 {
    font-size: 2em;
  }
  .page--g h2 {
    font-size: 1.6em;
  }
  .page--g .cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page--g .button-primary, .page--g .button-secondary {
    width: 100%;
    box-sizing: border-box;
  }
  .page--g .feature-icon {
    width: 80px;
    height: 80px;
  }
}