.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so light text */
  background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-cockfighting__section-spacing {
  padding: 60px 0;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__text-block {
  margin-bottom: 1em;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-cockfighting__highlight {
  color: #FFFF00; /* Use for keywords for emphasis */
  font-weight: bold;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-cockfighting__hero-content {
  position: relative; /* Ensure content is above image filter if image is full background */
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
  margin-top: -100px; /* Pull content slightly over the image */
}

.page-cockfighting__hero-title {
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: clamp(2.2em, 4vw, 3.5em);
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
  background-color: #e02020;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
  transform: translateY(-2px);
}

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

.page-cockfighting__cta-button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Introduction Section */
.page-cockfighting__introduction-section .page-cockfighting__text-block {
  color: #f0f0f0;
}

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

.page-cockfighting__gameshow-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__gameshow-card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__gameshow-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block; /* Ensure it behaves as a block element */
}

.page-cockfighting__gameshow-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__gameshow-description {
  font-size: 0.95em;
  color: #cccccc;
}

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

.page-cockfighting__guide-step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-cockfighting__guide-step-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__guide-step-item .page-cockfighting__btn-primary,
.page-cockfighting__guide-step-item .page-cockfighting__btn-secondary {
  margin-top: auto; /* Push buttons to bottom if content height varies */
}

/* Strategy Section */
.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__strategy-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #017439;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__strategy-item-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Benefits Section */
.page-cockfighting__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__dark-section .page-cockfighting__text-block {
  color: #f0f0f0;
}

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

.page-cockfighting__benefit-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-cockfighting__benefit-card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__benefit-title {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  color: #017439;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-question .page-cockfighting__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #FFFF00;
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.1em;
  color: #cccccc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 10px;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__conclusion-section .page-cockfighting__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.page-cockfighting__text-center {
  text-align: center;
}

/* --- Responsive Styles --- */

/* General mobile styles */
@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px !important;
  }

  .page-cockfighting__section-spacing {
    padding: 40px 0 !important;
  }

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

  .page-cockfighting__text-block {
    font-size: 1em !important;
  }

  /* HERO 主图区域 */
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px !important;
  }

  .page-cockfighting__hero-image {
    filter: brightness(0.6) !important; /* Darken more for mobile */
  }

  .page-cockfighting__hero-content {
    padding: 20px 15px !important;
    margin-top: -80px !important; /* Adjust overlap */
  }

  .page-cockfighting__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Smaller H1 on mobile */
    margin-bottom: 15px !important;
  }

  .page-cockfighting__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

  .page-cockfighting__hero-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  /* 按钮与按钮容器 */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important; /* Already handled by container padding */
    padding-right: 0 !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    flex-direction: column !important; /* Stack buttons vertically */
  }

  /* 产品展示图区域 */
  .page-cockfighting__gameshow-grid {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 20px !important;
  }

  .page-cockfighting__gameshow-image {
    height: 200px !important; /* Adjust height for mobile */
  }

  .page-cockfighting__gameshow-title {
    font-size: 1.3em !important;
  }

  /* 通用图片与容器 */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 其他内容模块 */
  .page-cockfighting__guide-steps {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-cockfighting__guide-step-title {
    font-size: 1.5em !important;
  }

  .page-cockfighting__strategy-item {
    padding: 15px !important;
  }

  .page-cockfighting__strategy-item-title {
    font-size: 1.2em !important;
  }

  .page-cockfighting__benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-cockfighting__benefit-title {
    font-size: 1.4em !important;
  }

  .page-cockfighting__faq-question {
    padding: 15px !important;
    font-size: 1.1em !important;
  }

  .page-cockfighting__faq-answer {
    padding: 0 15px 15px 15px !important;
    font-size: 1em !important;
  }

  .page-cockfighting__conclusion-section .page-cockfighting__text-block {
    padding: 0 15px !important;
  }
}