.page-g {
  font-family: 'Arial', sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: var(--color-deep-navy); /* From shared.css */
}

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

.page-g__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: #F3F8FF; /* Text Main */
  position: relative;
  padding-bottom: 15px;
}

.page-g__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #F2C14E, #4FA8FF);
  border-radius: 2px;
}

.page-g p {
  line-height: 1.8;
  margin-bottom: 20px;
  color: #AFC4E8; /* Text Secondary */
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(180deg, #113B7A 0%, #08162B 100%); /* Deep Navy blend */
  overflow: hidden;
}

.page-g__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-g__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-g__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-g__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

.page-g__hero-content h1 {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: bold;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.page-g__hero-content p {
  font-size: 18px;
  color: #AFC4E8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-g__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color */
  color: #ffffff; /* Ensure white text on dark button */
  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;
}

.page-g__cta-button:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* General Buttons */
.page-g__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color */
  color: #ffffff; /* Ensure white text */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  margin-top: 20px;
}

.page-g__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-g__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  color: #4FA8FF; /* Glow color for text */
  text-decoration: none;
  border: 2px solid #4FA8FF; /* Glow color for border */
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 20px;
  margin-left: 20px;
}

.page-g__btn-secondary:hover {
  background: #4FA8FF;
  color: #08162B; /* Deep Navy for text on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* Features Section */
.page-g__features-section {
  background-color: #08162B;
  padding: 80px 0;
}

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

.page-g__feature-card {
  background-color: #10233F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #244D84; /* Border color */
}

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

.page-g__feature-card img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-g__feature-card h3 {
  font-size: 24px;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-g__feature-card p {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* How-to-Play Section */
.page-g__how-to-play-section {
  padding: 80px 0;
  background-color: #08162B;
}

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

.page-g__step-item {
  background-color: #10233F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #244D84; /* Border color */
}

.page-g__step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  margin: 0 auto 25px;
  box-shadow: 0 0 15px rgba(79, 168, 255, 0.5); /* Glow */
}

.page-g__step-item h3 {
  font-size: 22px;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 15px;
}

.page-g__step-item p {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* Game Types Section */
.page-g__game-types-section {
  padding: 80px 0;
  background-color: #08162B;
}

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

.page-g__game-type-card {
  background-color: #10233F; /* Card BG */
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #244D84; /* Border color */
}

.page-g__game-type-card img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-g__game-type-card h3 {
  font-size: 22px;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-g__game-type-card p {
  font-size: 15px;
  color: #AFC4E8; /* Text Secondary */
}

/* FAQ Section */
.page-g__faq-section {
  padding: 80px 0;
  background-color: #08162B;
}

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

details.page-g__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #244D84; /* Border color */
  overflow: hidden;
  background-color: #10233F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-g__faq-item summary.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F3F8FF; /* Text Main */
  font-weight: 600;
}

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

details.page-g__faq-item summary.page-g__faq-question:hover {
  background-color: #1B3357; /* Divider color for hover */
}

.page-g__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}

.page-g__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-g__faq-item .page-g__faq-answer {
  padding: 0 25px 20px;
  background-color: #08162B; /* Deep Navy */
  border-top: 1px solid #1B3357; /* Divider */
  border-radius: 0 0 10px 10px;
}

details.page-g__faq-item .page-g__faq-answer p {
  color: #AFC4E8; /* Text Secondary */
  padding-top: 15px;
}

/* Contact CTA Section */
.page-g__contact-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #113B7A; /* Primary color */
}

.page-g__contact-cta-section h2 {
  color: #F3F8FF; /* Text Main */
}

.page-g__contact-cta-section p {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: #AFC4E8; /* Text Secondary */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-g__section-title {
    font-size: 32px;
  }
  .page-g__hero-content h1 {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-g__hero-content p {
    font-size: 16px;
  }
  .page-g__cta-button {
    font-size: 18px;
    padding: 12px 30px;
  }
  .page-g__btn-primary, .page-g__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-g__feature-card h3, .page-g__step-item h3, .page-g__game-type-card h3 {
    font-size: 20px;
  }
  .page-g__faq-qtext {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-g__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-g__hero-image {
    margin-bottom: 20px;
  }
  .page-g__hero-image img {
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-g__hero-content h1 {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-g__hero-content p {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-g__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-g__section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  .page-g__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-g__features-grid, .page-g__steps, .page-g__game-types-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-g__feature-card, .page-g__step-item, .page-g__game-type-card {
    padding: 25px;
  }
  .page-g__feature-card img, .page-g__game-type-card img {
    
  }
  .page-g__faq-qtext {
    font-size: 15px;
  }
  details.page-g__faq-item summary.page-g__faq-question {
    padding: 15px 20px;
  }
  details.page-g__faq-item .page-g__faq-answer {
    padding: 0 20px 15px;
  }
  .page-g__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-g__btn-primary, .page-g__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-g__btn-secondary {
    margin-top: 0;
  }
  .page-g__contact-cta-section p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-g__section-title {
    font-size: 24px;
  }
  .page-g__hero-content h1 {
    font-size: clamp(1.6em, 7vw, 2em);
  }
  .page-g p {
    font-size: 14px;
  }
  .page-g__cta-button {
    font-size: 15px;
    padding: 10px 20px;
  }
  .page-g__feature-card h3, .page-g__step-item h3, .page-g__game-type-card h3 {
    font-size: 18px;
  }
  .page-g__faq-qtext {
    font-size: 14px;
  }
  .page-g__faq-toggle {
    font-size: 24px;
  }
  .page-g__btn-primary, .page-g__btn-secondary {
    font-size: 15px;
    padding: 10px 20px;
  }
}