.page-g {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
}

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

.page-g__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-g__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-g__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-g__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-g__hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-g__btn-primary,
.page-g__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 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: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-g__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-g__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-g__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Border color with opacity */
  transform: translateY(-2px);
}

.page-g__intro-section,
.page-g__betting-types-section,
.page-g__tips-section,
.page-g__cta-final-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light background */
  color: #333333;
}

.page-g__dark-bg {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

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

.page-g__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-g__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-g__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-g__text-block p {
  margin-bottom: 15px;
  color: inherit;
}

.page-g__image-block {
  text-align: center;
}

.page-g__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-g__how-to-play-section .page-g__section-title,
.page-g__advantages-section .page-g__section-title,
.page-g__faq-section .page-g__section-title {
  color: #F2FFF6; /* Text Main */
}

.page-g__how-to-play-section .page-g__section-description,
.page-g__advantages-section .page-g__section-description,
.page-g__faq-section .page-g__section-description {
  color: #A7D9B8; /* Text Secondary */
}

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

.page-g__card {
  background-color: #11271B; /* 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;
  color: #F2FFF6; /* Text Main */
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-g__step-title,
.page-g__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
}

.page-g__card p {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-g__cta-buttons--center {
  text-align: center;
  margin-top: 50px;
}

.page-g__faq-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-g__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-g__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-g__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: #F2C14E; /* Gold */
  list-style: none; /* Remove default marker */
}

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

.page-g__faq-qtext {
  flex-grow: 1;
}

.page-g__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

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

.page-g__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

.page-g__faq-answer p {
  margin-bottom: 10px;
}

.page-g__faq-answer a {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

.page-g__cta-final-section {
  text-align: center;
  background-color: #f8f8f8; /* Light background */
  color: #333333;
}

.page-g__cta-final-section .page-g__section-title {
  color: #11A84E; /* Main color for emphasis */
}

.page-g__cta-final-section .page-g__section-description {
  color: #555555;
}

.page-g__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-g__float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 45px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-g__float-btn--register {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-g__float-btn--login {
  background: #F2C14E; /* Gold */
  color: #08160F;
}

.page-g__float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-g__content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-g__content-grid .page-g__text-block:first-child {
    order: 0;
  }

  .page-g__content-grid .page-g__image-block:nth-child(2) {
    order: 1;
  }

  .page-g__betting-types-section .page-g__types-grid,
  .page-g__advantages-section .page-g__advantages-grid,
  .page-g__tips-section .page-g__tips-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-g__floating-buttons {
    flex-direction: row;
    bottom: 30px;
    right: 30px;
  }

  .page-g__float-btn {
    width: 120px;
    height: 50px;
    font-size: 1rem;
  }
}

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

  .page-g__hero-content {
    padding: 15px;
  }

  .page-g__main-title {
    font-size: 2.2rem;
  }

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

  .page-g__section-title {
    font-size: 1.8rem;
  }

  .page-g__section-description {
    font-size: 0.95rem;
  }

  .page-g__btn-primary,
  .page-g__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-g__cta-buttons {
    flex-direction: column;
  }

  .page-g__intro-section,
  .page-g__how-to-play-section,
  .page-g__betting-types-section,
  .page-g__advantages-section,
  .page-g__tips-section,
  .page-g__faq-section,
  .page-g__cta-final-section {
    padding: 40px 0;
  }

  .page-g__container {
    padding: 0 15px;
  }

  .page-g__content-grid,
  .page-g__steps-grid,
  .page-g__types-grid,
  .page-g__advantages-grid,
  .page-g__tips-grid {
    gap: 20px;
  }

  .page-g__card {
    padding: 20px;
  }

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

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

  .page-g__card-image {
    height: 180px;
  }

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

  .page-g__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.9rem;
  }

  .page-g__floating-buttons {
    bottom: 15px;
    right: 15px;
    flex-direction: column;
    align-items: flex-end;
  }

  .page-g__float-btn {
    width: 90px;
    height: 40px;
    font-size: 0.85rem;
  }

  /* Ensure all images are responsive */
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-g__section,
  .page-g__card,
  .page-g__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-g__video-section {
    padding-top: 10px !important; /* body đã đảm nhiệm --header-offset, ở đây cấm var(--header-offset) */
  }

  /* Buttons mobile specific */
  .page-g__cta-buttons,
  .page-g__button-group,
  .page-g__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-g__cta-buttons {
    flex-direction: column;
  }
}