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

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

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

.page-cockfighting__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__section-intro,
.page-cockfighting__dark-bg .page-cockfighting__feature-title,
.page-cockfighting__dark-bg .page-cockfighting__feature-description,
.page-cockfighting__dark-bg .page-cockfighting__match-title a,
.page-cockfighting__dark-bg .page-cockfighting__match-date,
.page-cockfighting__dark-bg .page-cockfighting__match-description,
.page-cockfighting__dark-bg .page-cockfighting__promo-title,
.page-cockfighting__dark-bg .page-cockfighting__promo-description,
.page-cockfighting__dark-bg .page-cockfighting__faq-question h3,
.page-cockfighting__dark-bg .page-cockfighting__faq-answer p {
  color: #ffffff;
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

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

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

.page-cockfighting__btn-primary:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2c;
  border-color: #005f2c;
}

.page-cockfighting__hero-section {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 0; /* Assumes shared.css handles body padding for header offset */
}

.page-cockfighting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-cockfighting__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-cockfighting__hero-cta-buttons .page-cockfighting__btn-primary {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-cockfighting__hero-cta-buttons .page-cockfighting__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-cockfighting__hero-cta-buttons .page-cockfighting__btn-secondary {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-cockfighting__hero-cta-buttons .page-cockfighting__btn-secondary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-cockfighting__why-choose-us .page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-cockfighting__feature-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-cockfighting__feature-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-cockfighting__feature-description {
  color: #666666;
}

.page-cockfighting__live-matches .page-cockfighting__match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-cockfighting__match-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.page-cockfighting__match-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  max-width: 100%;
  display: block;
}

.page-cockfighting__match-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__match-title {
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-cockfighting__match-title a {
  color: #017439;
  text-decoration: none;
}

.page-cockfighting__match-title a:hover {
  text-decoration: underline;
}

.page-cockfighting__match-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-cockfighting__match-description {
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__view-all-matches,
.page-cockfighting__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

.page-cockfighting__how-to-bet .page-cockfighting__betting-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-cockfighting__betting-step {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__step-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__step-description {
  color: #666666;
}

.page-cockfighting__betting-cta {
  text-align: center;
  margin-top: 50px;
}

.page-cockfighting__betting-cta .page-cockfighting__btn-primary {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-cockfighting__betting-cta .page-cockfighting__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

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

.page-cockfighting__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  max-width: 100%;
  display: block;
}

.page-cockfighting__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__promo-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 10px;
}

.page-cockfighting__promo-description {
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__platform-advantages .page-cockfighting__advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
  margin-bottom: 60px;
}

.page-cockfighting__advantage-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__advantage-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__advantage-description {
  color: #666666;
}

.page-cockfighting__download-cta {
  display: flex;
  align-items: center;
  background-color: #017439;
  color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__download-content {
  width: 50%;
  padding: 40px;
  text-align: left;
}

.page-cockfighting__download-title {
  font-size: 2em;
  color: #ffffff;
  margin-bottom: 15px;
}

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

.page-cockfighting__download-content .page-cockfighting__btn-primary {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-cockfighting__download-content .page-cockfighting__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-cockfighting__faq-section {
  padding: 80px 0;
}

.page-cockfighting__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-cockfighting__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

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

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

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f9f9f9;
  color: #333333;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 25px;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  color: #333333;
}

.page-cockfighting__final-cta {
  text-align: center;
  padding: 80px 0;
}

.page-cockfighting__final-cta .page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-cockfighting__final-cta .page-cockfighting__btn-register {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-cockfighting__final-cta .page-cockfighting__btn-register:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-cockfighting__final-cta .page-cockfighting__btn-login {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-cockfighting__final-cta .page-cockfighting__btn-login:hover {
  background-color: #a30606;
  border-color: #a30606;
}

/* General image responsiveness */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-cockfighting__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* HERO 主图区域 */
  .page-cockfighting__hero-section {
    height: auto;
    min-height: 400px;
    padding: 60px 0 !important; /* Adjusted padding for mobile */
  }

  .page-cockfighting__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

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

  .page-cockfighting__hero-cta-buttons .page-cockfighting__btn-primary,
  .page-cockfighting__hero-cta-buttons .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  /* 产品展示图区域 & 通用图片与容器 */
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-cockfighting__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__match-grid,
  .page-cockfighting__betting-steps-grid,
  .page-cockfighting__promo-grid,
  .page-cockfighting__advantages-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-image,
  .page-cockfighting__match-image,
  .page-cockfighting__step-icon,
  .page-cockfighting__promo-image,
  .page-cockfighting__advantage-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__download-cta {
    flex-direction: column;
  }

  .page-cockfighting__download-image,
  .page-cockfighting__download-content {
    width: 100%;
    padding: 30px 15px;
    text-align: center;
  }

  .page-cockfighting__download-title {
    font-size: 1.5em;
  }

  /* 按钮与按钮容器 */
  .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-left: 15px;
    padding-right: 15px;
  }
  
  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__betting-cta,
  .page-cockfighting__view-all-matches,
  .page-cockfighting__view-all-promos,
  .page-cockfighting__final-cta .page-cockfighting__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 其他内容模块 */
  .page-cockfighting__faq-question {
    padding: 15px 20px;
  }

  .page-cockfighting__faq-question h3 {
    font-size: 1.1em;
  }

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

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 20px;
  }

  .page-cockfighting__dark-bg,
  .page-cockfighting__light-bg,
  .page-cockfighting__faq-section,
  .page-cockfighting__final-cta {
    padding: 40px 0;
  }
}