.page-cockfighting-betting-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Inherited from body via shared.css */
}

.page-cockfighting-betting-rules__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  min-height: 600px;
  text-align: center;
  overflow: hidden;
}

.page-cockfighting-betting-rules__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-cockfighting-betting-rules__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting-betting-rules__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-cockfighting-betting-rules__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

.page-cockfighting-betting-rules__hero-title {
  font-size: 3.2em;
  color: #FFFF00;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting-betting-rules__hero-description {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 30px;
}

.page-cockfighting-betting-rules__hero-buttons,
.page-cockfighting-betting-rules__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting-betting-rules__btn-primary,
.page-cockfighting-betting-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting-betting-rules__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-cockfighting-betting-rules__btn-primary:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

.page-cockfighting-betting-rules__btn-secondary {
  background-color: transparent;
  color: #FFFF00;
  border: 2px solid #FFFF00;
}

.page-cockfighting-betting-rules__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
  transform: translateY(-2px);
}

.page-cockfighting-betting-rules__content-area {
  padding: 60px 0;
  text-align: left;
}

.page-cockfighting-betting-rules__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cockfighting-betting-rules__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-cockfighting-betting-rules__light-bg .page-cockfighting-betting-rules__section-title,
.page-cockfighting-betting-rules__light-bg .page-cockfighting-betting-rules__sub-title {
  color: #017439;
}

.page-cockfighting-betting-rules__dark-bg .page-cockfighting-betting-rules__section-title,
.page-cockfighting-betting-rules__dark-bg .page-cockfighting-betting-rules__sub-title {
  color: #FFFF00;
}

.page-cockfighting-betting-rules__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting-betting-rules__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-cockfighting-betting-rules__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-cockfighting-betting-rules__numbered-list {
  list-style: decimal inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-cockfighting-betting-rules__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-cockfighting-betting-rules__list-item strong {
  color: #017439; /* For light background */
}

.page-cockfighting-betting-rules__dark-bg .page-cockfighting-betting-rules__list-item strong {
  color: #FFFF00; /* For dark background */
}

.page-cockfighting-betting-rules a {
  color: #017439;
  text-decoration: underline;
}

.page-cockfighting-betting-rules__dark-bg a {
  color: #FFFF00;
}

.page-cockfighting-betting-rules a:hover {
  text-decoration: none;
}

.page-cockfighting-betting-rules__content-image {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting-betting-rules__faq-list {
  margin-top: 40px;
}

.page-cockfighting-betting-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting-betting-rules__light-bg .page-cockfighting-betting-rules__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
}

.page-cockfighting-betting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: #017439;
  transition: background-color 0.3s ease;
}

.page-cockfighting-betting-rules__light-bg .page-cockfighting-betting-rules__faq-question {
  color: #ffffff;
  background-color: #017439;
}

.page-cockfighting-betting-rules__faq-question:hover {
  background-color: #005a2d;
}

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

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

.page-cockfighting-betting-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1.05em;
  color: #ffffff;
}

.page-cockfighting-betting-rules__light-bg .page-cockfighting-betting-rules__faq-answer {
  color: #333333;
}

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

.page-cockfighting-betting-rules__cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-cockfighting-betting-rules__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-cockfighting-betting-rules__cta-content {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 40px 20px;
  max-width: 800px;
}

.page-cockfighting-betting-rules__cta-title {
  font-size: 2.8em;
  color: #FFFF00;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting-betting-rules__cta-description {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting-betting-rules__hero-title {
    font-size: 2.8em;
  }
  .page-cockfighting-betting-rules__section-title {
    font-size: 2.2em;
  }
  .page-cockfighting-betting-rules__sub-title {
    font-size: 1.6em;
  }
  .page-cockfighting-betting-rules__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-cockfighting-betting-rules__hero-section {
    min-height: 500px;
    padding-top: 0; /* Ensures no double padding if shared.css sets body padding */
  }
  .page-cockfighting-betting-rules__hero-container {
    padding: 30px 15px;
  }
  .page-cockfighting-betting-rules__hero-title {
    font-size: 2.2em !important;
  }
  .page-cockfighting-betting-rules__hero-description {
    font-size: 1em !important;
  }
  .page-cockfighting-betting-rules__hero-buttons,
  .page-cockfighting-betting-rules__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* 其他内容模块 */
  .page-cockfighting-betting-rules__content-area {
    padding: 40px 0 !important;
  }
  .page-cockfighting-betting-rules__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .page-cockfighting-betting-rules__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px !important;
  }
  .page-cockfighting-betting-rules__sub-title {
    font-size: 1.4em !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
  }
  .page-cockfighting-betting-rules__text-block,
  .page-cockfighting-betting-rules__list-item {
    font-size: 1em !important;
  }
  .page-cockfighting-betting-rules__list,
  .page-cockfighting-betting-rules__numbered-list {
    padding-left: 15px !important;
  }

  /* 通用图片与容器 */
  .page-cockfighting-betting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .page-cockfighting-betting-rules__hero-image,
  .page-cockfighting-betting-rules__cta-image {
    width: 100% !important;
    height: 100% !important;
  }

  /* 按钮与按钮容器 */
  .page-cockfighting-betting-rules__btn-primary,
  .page-cockfighting-betting-rules__btn-secondary,
  .page-cockfighting-betting-rules a[class*="button"],
  .page-cockfighting-betting-rules 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 15px !important;
  }

  /* CTA Section */
  .page-cockfighting-betting-rules__cta-section {
    padding: 50px 0 !important;
  }
  .page-cockfighting-betting-rules__cta-content {
    padding: 30px 15px !important;
  }
  .page-cockfighting-betting-rules__cta-title {
    font-size: 2em !important;
  }
  .page-cockfighting-betting-rules__cta-description {
    font-size: 1em !important;
    margin-bottom: 30px !important;
  }

  /* FAQ Section */
  .page-cockfighting-betting-rules__faq-question {
    padding: 15px 20px !important;
    font-size: 1.1em !important;
  }
  .page-cockfighting-betting-rules__faq-answer {
    padding: 10px 20px 20px !important;
    font-size: 1em !important;
  }
}