.page-g {
  background-color: #08160F; /* Nền tối */
  color: #F2FFF6; /* Chữ sáng */
  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;
}

.page-g__section-title {
  font-size: 2.5rem;
  color: #F2C14E; /* Màu vàng Gold */
  text-align: center;
  margin-bottom: 40px;
  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-color: #11A84E; /* Màu xanh lá chủ đạo */
  border-radius: 2px;
}

.page-g__section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #A7D9B8; /* Màu chữ phụ */
  text-align: justify;
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  overflow: hidden;
  color: #F2FFF6;
  padding-top: 10px; /* Nhỏ để tránh header */
}

.page-g__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

.page-g__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-g__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Kéo lên một chút để cover ảnh */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 0.95) 100%);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-g__hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem); /* Sử dụng clamp cho responsive H1 */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E;
}

.page-g__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #A7D9B8;
}

.page-g__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Buttons */
.page-g__btn-primary,
.page-g__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.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;
  border: none;
}

.page-g__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-g__btn-secondary {
  background: #08160F;
  color: #11A84E;
  border: 2px solid #11A84E;
}

.page-g__btn-secondary:hover {
  background: #11A84E;
  color: #F2FFF6;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

/* About Cockfighting Section */
.page-g__about-cockfighting-section {
  padding: 80px 0;
  background-color: #08160F;
}

/* Why Choose Us Section */
.page-g__why-choose-us-section {
  padding: 80px 0;
  background-color: #11271B; /* Màu nền Card */
}

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

.page-g__feature-card {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Màu viền */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.page-g__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-g__feature-title {
  font-size: 1.5rem;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-g__feature-description {
  font-size: 1rem;
  color: #A7D9B8;
}

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

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

.page-g__type-card {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

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

.page-g__type-title {
  font-size: 1.5rem;
  color: #F2C14E;
  padding: 20px 20px 10px;
}

.page-g__type-description {
  font-size: 1rem;
  color: #A7D9B8;
  padding: 0 20px 20px;
}

/* Betting Guide Section */
.page-g__betting-guide-section {
  padding: 80px 0;
  background-color: #11271B;
}

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

.page-g__step-card {
  background-color: #0A4B2C;
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-g__step-title {
  font-size: 1.4rem;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-g__step-description {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
}

/* Tips Section */
.page-g__tips-section {
  padding: 80px 0;
  background-color: #08160F;
}

.page-g__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-g__tips-list li {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  color: #F2FFF6;
  font-size: 1.1rem;
  position: relative;
  padding-left: 40px;
}

.page-g__tips-list li::before {
  content: '✓';
  color: #57E38D; /* Màu Glow */
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 15px;
}

.page-g__tips-list li strong {
  color: #F2C14E;
}

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

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

.page-g__faq-item {
  background-color: #0A4B2C;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6;
  background-color: #11A84E;
  border-bottom: 1px solid #2E7A4E;
}

.page-g__faq-question:hover {
  background-color: #22C768;
}

.page-g__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-g__faq-item[open] .page-g__faq-toggle {
  transform: rotate(45deg);
}

.page-g__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #A7D9B8;
  background-color: #0A4B2C;
}

.page-g__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-g__cta-final-section {
  padding: 80px 0;
  background-color: #08160F;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-g__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }
  .page-g__section-title {
    font-size: 2rem;
  }
  .page-g__hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }
  .page-g__hero-description {
    font-size: 1.1rem;
  }
  .page-g__features-grid,
  .page-g__game-types-grid,
  .page-g__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-g img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-g__hero-section,
  .page-g__about-cockfighting-section,
  .page-g__why-choose-us-section,
  .page-g__game-types-section,
  .page-g__betting-guide-section,
  .page-g__tips-section,
  .page-g__faq-section,
  .page-g__cta-final-section {
    padding: 40px 0;
  }
  .page-g__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-g__hero-content {
    margin-top: -80px;
    padding: 20px 10px;
  }
  .page-g__hero-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  .page-g__hero-description {
    font-size: 1rem;
  }
  .page-g__hero-cta-buttons,
  .page-g__cta-buttons--center {
    flex-direction: column;
    gap: 15px;
  }
  .page-g__btn-primary,
  .page-g__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-g__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-g__section-text {
    font-size: 1rem;
  }
  .page-g__feature-card, .page-g__type-card, .page-g__step-card {
    padding: 20px;
  }
  .page-g__feature-title, .page-g__type-title, .page-g__step-title {
    font-size: 1.3rem;
  }
  .page-g__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }
  .page-g__faq-answer {
    font-size: 0.95rem;
    padding: 15px;
  }
  .page-g__tips-list li {
    font-size: 1rem;
    padding-left: 35px;
  }
}

@media (max-width: 480px) {
  .page-g__hero-content {
    margin-top: -60px;
  }
  .page-g__hero-title {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }
  .page-g__section-title {
    font-size: 1.5rem;
  }
  .page-g__hero-cta-buttons {
    gap: 10px;
  }
}

/* Contrast Fixes */
.page-g p, .page-g li, .page-g__feature-description, .page-g__type-description, .page-g__step-description, .page-g__faq-answer p {
  color: #A7D9B8; /* Text Secondary */
}

.page-g__section-title, .page-g__feature-title, .page-g__type-title, .page-g__step-title, .page-g__hero-title {
  color: #F2C14E; /* Gold */
}

.page-g__faq-question {
  background-color: #11A84E; /* Main color */
  color: #F2FFF6; /* Text Main */
}

.page-g__btn-primary {
  color: #F2FFF6; /* Text Main */
}

.page-g__btn-secondary {
  color: #11A84E; /* Main color */
}