.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-cockfighting__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding from shared.css */
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #000; /* Ensure hero section has a dark background */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

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

.page-cockfighting__hero-content {
  max-width: 900px;
  padding: 0 20px;
  color: #ffffff;
}

.page-cockfighting__main-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFF00; /* Register and Login font color for main title */
  line-height: 1.2;
}

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

.page-cockfighting__hero-buttons,
.page-cockfighting__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  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;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

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

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

.page-cockfighting__btn-secondary:hover {
  background-color: #C30808;
  color: #ffffff;
}

.page-cockfighting__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: #FFFF00; /* Accent color for titles */
  line-height: 1.3;
}

.page-cockfighting__introduction-section,
.page-cockfighting__rules-section,
.page-cockfighting__types-section,
.page-cockfighting__strategies-section,
.page-cockfighting__experience-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 60px 0;
}

.page-cockfighting__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-cockfighting__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: justify;
}

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-cockfighting__list-item {
  font-size: 1.05rem;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
  text-align: justify;
}

.page-cockfighting__list-item::before {
  content: '✔';
  color: #FFFF00; /* Checkmark color */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-cockfighting__faq-section {
  background-color: #000;
  color: #ffffff;
}

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

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFF00; /* FAQ question color */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

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

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

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

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-cockfighting__cta-section {
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
  color: #FFFF00;
}

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

/* Media Queries for Responsiveness */

/* Tablet styles */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.5rem;
  }

  .page-cockfighting__section-title {
    font-size: 2rem;
  }

  .page-cockfighting__hero-description,
  .page-cockfighting__text-block,
  .page-cockfighting__list-item,
  .page-cockfighting__faq-question,
  .page-cockfighting__faq-answer {
    font-size: 1rem;
  }

  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__rules-section,
  .page-cockfighting__types-section,
  .page-cockfighting__strategies-section,
  .page-cockfighting__experience-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 40px 0;
  }

  .page-cockfighting__hero-image-wrapper {
    max-height: 450px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 20px !important;
  }

  .page-cockfighting__main-title {
    font-size: 2rem !important;
    margin-bottom: 10px !important;
  }

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

  .page-cockfighting__hero-buttons,
  .page-cockfighting__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !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-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 通用图片与容器 */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__container,
  .page-cockfighting__introduction-section,
  .page-cockfighting__rules-section,
  .page-cockfighting__types-section,
  .page-cockfighting__strategies-section,
  .page-cockfighting__experience-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

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

  .page-cockfighting__text-block,
  .page-cockfighting__list-item,
  .page-cockfighting__faq-answer {
    font-size: 0.95rem !important;
  }

  .page-cockfighting__faq-question {
    font-size: 1rem !important;
    padding: 15px 20px !important;
  }

  .page-cockfighting__image-content {
    margin: 20px auto !important;
  }
}