.page-g {
  background-color: #08160F; /* Nền tối theo tùy chỉnh */
  color: #F2FFF6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-g__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Nhỏ gọn hơn, body đã có padding-top */
  overflow: hidden;
  box-sizing: border-box;
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Giới hạn chiều cao cho ảnh hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-g__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-g__main-title {
  color: #F2FFF6;
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-g__hero-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-g__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nút tùy chỉnh */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Đảm bảo responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-g__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* General Section Styles */
.page-g__introduction-section,
.page-g__types-section,
.page-g__how-to-play-section,
.page-g__tips-section,
.page-g__promotions-section,
.page-g__faq-section,
.page-g__cta-section {
  padding: 80px 0;
  box-sizing: border-box;
}

.page-g__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-g__light-bg {
  background-color: #11271B; /* Card BG, dùng làm nền sáng tương đối */
  color: #F2FFF6;
}

.page-g__text-contrast-fix {
  color: #F2FFF6 !important;
}

.page-g__section-title {
  color: #F2FFF6;
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.page-g__text-block {
  color: #A7D9B8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-g__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-g__card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  color: #F2FFF6;
}

.page-g__card-image {
  width: 100%;
  height: 250px; /* Kích thước cố định cho hình ảnh thẻ */
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-g__card-title {
  color: #F2FFF6;
  font-size: 1.5em;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-g__card-description {
  color: #A7D9B8;
  font-size: 0.95em;
  padding: 0 15px;
}

/* Lists */
.page-g__numbered-list,
.page-g__bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-g__list-item {
  background-color: #11271B;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #F2FFF6;
}

.page-g__list-title {
  color: #F2FFF6;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-g__list-description {
  color: #A7D9B8;
  font-size: 0.95em;
}

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

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

.page-g__faq-item {
  background-color: #11271B;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #F2FFF6;
  position: relative;
  list-style: none; /* Dành cho <summary> */
}

.page-g__faq-question::-webkit-details-marker {
  display: none; /* Ẩn marker mặc định của <summary> */
}

.page-g__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Glow color for toggle */
}

.page-g__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8;
  font-size: 0.95em;
}

.page-g__faq-item[open] .page-g__faq-toggle {
  content: '−';
}

/* Utility Classes */
.page-g__mt-20 {
  margin-top: 20px;
}

.page-g__mt-40 {
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-g__main-title {
    font-size: 2.5em;
  }
  .page-g__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-g__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }
  .page-g__hero-content {
    margin-top: 20px;
  }
  .page-g__main-title {
    font-size: 2em;
  }
  .page-g__hero-description {
    font-size: 1em;
  }
  .page-g__btn-primary {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.9em;
  }

  .page-g__introduction-section,
  .page-g__types-section,
  .page-g__how-to-play-section,
  .page-g__tips-section,
  .page-g__promotions-section,
  .page-g__faq-section,
  .page-g__cta-section {
    padding: 40px 0;
  }

  .page-g__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-g__text-block {
    font-size: 0.9em;
  }

  .page-g__content-image,
  .page-g__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-g__container,
  .page-g__card-grid,
  .page-g__promo-cards,
  .page-g__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-g__card-grid {
    grid-template-columns: 1fr;
  }

  .page-g__list-item {
    padding: 15px;
  }

  .page-g__list-title {
    font-size: 1.2em;
  }

  .page-g__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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