/* Base Styles & Typography */
.page-cockfighting-rules-explained {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #1F2D3D);
  background-color: var(--background-color, #F4F7FB);
}

.page-cockfighting-rules-explained__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-cockfighting-rules-explained__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-main, #1F2D3D);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-cockfighting-rules-explained__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main, #1F2D3D);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cockfighting-rules-explained p {
  margin-bottom: 15px;
  font-size: 17px;
}

.page-cockfighting-rules-explained__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 17px;
}

.page-cockfighting-rules-explained__list li {
  margin-bottom: 8px;
}

.page-cockfighting-rules-explained__article-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-cockfighting-rules-explained__article-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Color Schemes */
.page-cockfighting-rules-explained__light-bg {
  background-color: var(--background-color, #F4F7FB);
  color: var(--text-main, #1F2D3D);
  padding: 60px 0;
}

.page-cockfighting-rules-explained__dark-bg {
  background-color: var(--primary-color, #2F6BFF);
  color: #ffffff;
  padding: 60px 0;
}

.page-cockfighting-rules-explained__dark-bg .page-cockfighting-rules-explained__section-title,
.page-cockfighting-rules-explained__dark-bg .page-cockfighting-rules-explained__sub-title {
  color: #ffffff;
}

/* Hero Section */
.page-cockfighting-rules-explained__hero-section {
  position: relative;
  padding-top: 10px; /* Adjusted for shared header offset */
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
}

.page-cockfighting-rules-explained__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-cockfighting-rules-explained__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-cockfighting-rules-explained__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.page-cockfighting-rules-explained__main-title {
  font-size: 50px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-cockfighting-rules-explained__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-cockfighting-rules-explained__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-cockfighting-rules-explained__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-cockfighting-rules-explained__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.6);
  transform: translateY(-2px);
}

.page-cockfighting-rules-explained__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #2F6BFF);
  border: 2px solid var(--primary-color, #2F6BFF);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-rules-explained__btn-secondary:hover {
  background: var(--primary-color, #2F6BFF);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.page-cockfighting-rules-explained__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

/* FAQ Section */
.page-cockfighting-rules-explained__faq-section {
  padding: 60px 0;
}

.page-cockfighting-rules-explained__faq-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

details.page-cockfighting-rules-explained__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #D6E2FF);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

details.page-cockfighting-rules-explained__faq-item summary.page-cockfighting-rules-explained__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main, #1F2D3D);
  font-weight: 600;
}

details.page-cockfighting-rules-explained__faq-item summary.page-cockfighting-rules-explained__faq-question::-webkit-details-marker {
  display: none;
}

details.page-cockfighting-rules-explained__faq-item summary.page-cockfighting-rules-explained__faq-question:hover {
  background: #f5f5f5;
}

.page-cockfighting-rules-explained__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}

.page-cockfighting-rules-explained__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color, #2F6BFF);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-cockfighting-rules-explained__faq-item .page-cockfighting-rules-explained__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: var(--text-main, #1F2D3D);
}

.page-cockfighting-rules-explained__faq-answer p {
  margin-bottom: 10px;
}

.page-cockfighting-rules-explained__faq-answer .page-cockfighting-rules-explained__btn-secondary {
  margin-top: 15px;
  font-size: 16px;
  padding: 10px 20px;
}

/* CTA Bottom Section */
.page-cockfighting-rules-explained__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

.page-cockfighting-rules-explained__cta-bottom-section .page-cockfighting-rules-explained__section-title {
  margin-bottom: 25px;
  color: var(--text-main, #1F2D3D);
}

.page-cockfighting-rules-explained__cta-bottom-section .page-cockfighting-rules-explained__description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-main, #1F2D3D);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting-rules-explained__main-title {
    font-size: 42px;
  }
  .page-cockfighting-rules-explained__hero-description {
    font-size: 18px;
  }
  .page-cockfighting-rules-explained__section-title {
    font-size: 30px;
  }
  .page-cockfighting-rules-explained__sub-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-cockfighting-rules-explained__hero-section {
    min-height: 450px;
    padding-top: 10px !important;
  }
  .page-cockfighting-rules-explained__hero-image {
    object-fit: contain !important; /* 强制 contain */
    aspect-ratio: unset !important; /* 允许图片自由比例 */
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting-rules-explained__hero-content {
    padding: 20px 15px;
    max-width: 95%;
  }
  .page-cockfighting-rules-explained__main-title {
    font-size: clamp(30px, 8vw, 40px) !important;
    margin-bottom: 15px;
  }
  .page-cockfighting-rules-explained__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* 产品展示图区域 - Not applicable for this page as it's not homepage gameshow */

  /* 装饰主标题 + 长文 SEO 区 */
  .page-cockfighting-rules-explained__section-title {
    font-size: clamp(24px, 7vw, 28px) !important;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-cockfighting-rules-explained__sub-title {
    font-size: 20px;
    padding: 0 15px;
  }
  .page-cockfighting-rules-explained__article-body {
    padding: 0 15px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting-rules-explained p,
  .page-cockfighting-rules-explained__list {
    font-size: 16px;
    padding: 0 5px;
  }
  .page-cockfighting-rules-explained__article-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

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

  /* 按钮与按钮容器 */
  .page-cockfighting-rules-explained__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
  }
  .page-cockfighting-rules-explained__btn-primary,
  .page-cockfighting-rules-explained__btn-secondary,
  .page-cockfighting-rules-explained a[class*="button"],
  .page-cockfighting-rules-explained 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;
    font-size: 16px;
  }
  .page-cockfighting-rules-explained__cta-bottom-section .page-cockfighting-rules-explained__btn-large {
    font-size: 18px;
    padding: 15px 25px;
  }

  /* FAQ Section */
  details.page-cockfighting-rules-explained__faq-item summary.page-cockfighting-rules-explained__faq-question {
    padding: 15px;
  }
  .page-cockfighting-rules-explained__faq-qtext {
    font-size: 16px;
  }
  .page-cockfighting-rules-explained__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  details.page-cockfighting-rules-explained__faq-item .page-cockfighting-rules-explained__faq-answer {
    padding: 0 15px 15px;
  }
  .page-cockfighting-rules-explained__faq-answer .page-cockfighting-rules-explained__btn-secondary {
    font-size: 15px;
    padding: 8px 15px;
  }

  .page-cockfighting-rules-explained__light-bg,
  .page-cockfighting-rules-explained__dark-bg,
  .page-cockfighting-rules-explained__cta-bottom-section {
    padding: 40px 0;
  }
}