/* style/g.css */

:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg: #11271B;
  --body-bg: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại tại đây */

.page-g {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Sử dụng màu chữ chính cho toàn bộ trang */
  background-color: var(--body-bg);
  line-height: 1.6;
}

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

.page-g__section {
  padding: 60px 0;
  text-align: center;
}

.page-g__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-main);
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

.page-g__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

/* Hero Section */
.page-g__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--body-bg);
}

.page-g__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.page-g__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  min-height: 300px; /* Ensure minimum height */
}

.page-g__hero-content {
  position: relative; /* Ensure content is above other elements if needed */
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-g__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Use clamp for responsive H1 */
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

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

.page-g__btn-primary,
.page-g__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-g__btn-secondary {
  background-color: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-g__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Video Section */
.page-g__video-section {
  padding: 60px 0;
  background-color: var(--deep-green-color);
}

.page-g__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin: 0 auto 30px auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  width: 100%; /* Ensure width is 100% for desktop */
}

.page-g__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

.page-g__video-description {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto;
}

/* General Content Styles */
.page-g p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  text-align: left;
}

.page-g p strong {
  color: var(--text-main);
}

.page-g__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

/* Feature List */
.page-g__feature-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-g__feature-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-g__feature-title {
  font-size: 24px;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

/* Card Grid for types of cockfighting */
.page-g__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-g__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-secondary); /* Ensure text is readable on dark card background */
}

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

.page-g__card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

/* Step List */
.page-g__step-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  counter-reset: step-counter;
}

.page-g__step-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-g__step-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter) ":";
  font-size: 20px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-g__step-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-g__step-item .page-g__btn-primary {
  margin-top: 20px;
  align-self: flex-start;
}

/* Responsible Gaming Section */
.page-g__responsible-gaming p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-g__responsible-gaming .page-g__btn-primary {
  margin-top: 30px;
}

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

.page-g__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-g__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-g__faq-question:hover {
  background-color: var(--deep-green-color);
}

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

.page-g__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-g__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: var(--text-secondary);
  text-align: left;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-g__container {
    padding: 0 15px;
  }

  .page-g__section {
    padding: 40px 0;
  }

  .page-g__section-title {
    font-size: 28px;
  }

  .page-g__main-title {
    font-size: 36px;
  }

  .page-g__subtitle {
    font-size: 16px;
  }

  .page-g__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-g__btn-primary,
  .page-g__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-g__hero-image-wrapper {
    max-height: 300px;
  }

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

  .page-g__video-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-g__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-g__video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-g img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    min-height: 200px !important;
  }

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

  .page-g__feature-list,
  .page-g__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-g__feature-title,
  .page-g__card-title,
  .page-g__step-title {
    font-size: 20px;
  }

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

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