/* style/cockfighting.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF; /* Ensures a consistent base */
}

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

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

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-cockfighting__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1; /* Ensure content is above image if any overlap occurs (though not intended) */
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-cockfighting__subtitle {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: #555555;
  margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

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

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

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

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-cockfighting__introduction-section,
.page-cockfighting__types-section,
.page-cockfighting__why-choose-section,
.page-cockfighting__faq-section {
  background-color: #FFFFFF;
  color: #333333;
  padding: 60px 0;
}

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

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

.page-cockfighting__video-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

.page-cockfighting__video-container {
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

.page-cockfighting__video-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 10px;
  transform: translateZ(0);
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer; /* Indicate clickability */
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__video-cta {
  margin-top: 20px;
}

.page-cockfighting__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

@media (min-width: 768px) {
  .page-cockfighting__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.page-cockfighting__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__highlight {
  color: #FFFF00; /* Custom font color for highlight on dark background */
  font-weight: 700;
}

.page-cockfighting__link {
  color: #FFFF00; /* Custom font color for links on dark background */
  text-decoration: underline;
}

.page-cockfighting__link:hover {
  color: #f0f0f0;
}

.page-cockfighting__list,
.page-cockfighting__steps-list,
.page-cockfighting__feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-cockfighting__list li,
.page-cockfighting__steps-list li,
.page-cockfighting__feature-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}

.page-cockfighting__list li::before,
.page-cockfighting__feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #C30808; /* Accent color for list bullets */
  font-weight: bold;
}

.page-cockfighting__steps-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  background-color: #C30808; /* Accent color for step numbers */
  color: #FFFF00;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8em;
  font-weight: bold;
}

.page-cockfighting__steps-list {
  counter-reset: step-counter;
}

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

.page-cockfighting__faq-list {
  margin-top: 30px;
}

.page-cockfighting__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  color: #333333;
}

.page-cockfighting__faq-item[open] {
  background-color: #ffffff;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #017439;
  list-style: none; /* Hide default marker for details/summary */
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #C30808; /* Accent color for toggle */
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding: 0 20px 15px 20px;
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
}

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

.page-cockfighting__call-to-action {
  text-align: center;
  padding: 80px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__hero-content {
    padding: 20px 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-cockfighting__subtitle {
    font-size: clamp(0.9em, 3.5vw, 1.1em);
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    padding-top: 20px;
    margin-bottom: 20px;
  }

  .page-cockfighting__grid {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__image,
  .page-cockfighting__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__dark-bg {
    padding: 40px 0;
  }

  .page-cockfighting p,
  .page-cockfighting li {
    font-size: 15px;
  }
}