/* style/-g.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #002244;
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
}

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

.page--g h1, .page--g h2, .page--g h3, .page--g h4, .page--g h5, .page--g h6 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page--g h1 {
  font-size: 2.8em;
  text-align: center;
  color: var(--text-light);
}

.page--g h2 {
  font-size: 2.2em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.page--g h3 {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page--g p {
  margin-bottom: 15px;
}

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

.page--g a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page--g .page--g__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

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

/* Hero Banner Section */
.page--g__hero-banner {
  position: relative;
  width: 100%;
  height: 500px; /* Adjusted height for non-homepage banner */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background-color: var(--background-dark);
}

.page--g__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
  z-index: 1;
}

.page--g__hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  max-width: 800px;
}

.page--g__hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page--g__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px var(--shadow-light);
}

.page--g__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px var(--shadow-light);
  text-decoration: none;
}

/* General Content Sections */
.page--g__introduction, .page--g__tips, .page--g__conclusion {
  background-color: var(--background-light);
}

.page--g__game-types, .page--g__promotions, .page--g__features {
  background-color: #e8f0f3; /* Slightly different background for contrast */
}

.page--g__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page--g__content-wrapper .page--g__text-content {
  flex: 1;
}

.page--g__content-wrapper .page--g__image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-light);
  height: auto;
  object-fit: cover;
}

.page--g__image--right {
  order: 1;
}

.page--g__text-content {
  order: 2;
}

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

.page--g__card {
  background-color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-light);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  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.15);
}

.page--g__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page--g__card h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page--g__card p {
  font-size: 0.95em;
  color: var(--text-dark);
  padding: 0 15px;
  margin-bottom: 20px;
}

.page--g__card .page--g__button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page--g__card .page--g__button:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
}

.page--g__card .page--g__card-link {
  color: var(--primary-color);
  text-decoration: none;
}

.page--g__card .page--g__card-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Numbered List for Guide */
.page--g__numbered-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page--g__numbered-list li {
  background-color: var(--text-light);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px var(--shadow-light);
  position: relative;
  counter-increment: step-counter;
  padding-left: 70px;
}

.page--g__numbered-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page--g__numbered-list li h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page--g__text-link {
  font-weight: bold;
}

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

.page--g__feature-item {
  background-color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-light);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page--g__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page--g__feature-item h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page--g__feature-item p {
  font-size: 0.95em;
  color: var(--text-dark);
}

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

.page--g__faq-list .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.page--g__faq-list .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page--g__faq-list .faq-question h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.2em;
}

.page--g__faq-list .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.page--g__faq-list .faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.page--g__faq-list .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-dark);
}

.page--g__faq-list .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 15px 25px 25px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page--g h1 {
    font-size: 2.2em;
  }
  .page--g h2 {
    font-size: 1.8em;
  }
  .page--g h3 {
    font-size: 1.4em;
  }
  .page--g__hero-banner {
    height: 400px;
  }
  .page--g__hero-content p {
    font-size: 1em;
  }
  .page--g__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .page--g__content-wrapper .page--g__image {
    max-width: 100%;
    order: 0; /* Reset order for smaller screens */
  }
  .page--g__image--right {
    order: 0;
  }
  .page--g__text-content {
    order: 0;
  }
  .page--g__cards-grid, .page--g__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page--g__numbered-list li {
    padding: 20px 20px 20px 60px;
  }
  .page--g__numbered-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1.3em;
    left: 15px;
    top: 15px;
  }
}

@media (max-width: 768px) {
  .page--g__hero-banner {
    height: 350px;
  }
  .page--g h1 {
    font-size: 1.8em;
  }
  .page--g h2 {
    font-size: 1.6em;
  }
  .page--g__section {
    padding: 40px 0;
  }
  .page--g__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page--g__faq-list .faq-question {
    padding: 15px 20px;
  }
  .page--g__faq-list .faq-question h3 {
    font-size: 1.1em;
  }
  .page--g__faq-list .faq-toggle {
    font-size: 20px;
  }
  .page--g__faq-list .faq-answer {
    padding: 10px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page--g h1 {
    font-size: 1.5em;
  }
  .page--g h2 {
    font-size: 1.4em;
  }
  .page--g h3 {
    font-size: 1.2em;
  }
  .page--g__hero-banner {
    height: 300px;
  }
  .page--g__hero-content p {
    font-size: 0.9em;
    margin-bottom: 20px;
  }
  .page--g__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page--g__cards-grid, .page--g__features-grid {
    grid-template-columns: 1fr;
  }
  .page--g__card h3 {
    font-size: 1.3em;
  }
  .page--g__feature-item h3 {
    font-size: 1.3em;
  }
  .page--g__numbered-list li {
    padding-left: 50px;
  }
  .page--g__numbered-list li::before {
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    left: 10px;
    top: 12px;
  }
}