/* style/cockfighting.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #26A9E0;
  --btn-login-color: #EA7C07;
}

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

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-cockfighting__section-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--primary-color);
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting__text-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 10px 20px 60px; /* Small top padding */
  color: var(--text-light);
  overflow: hidden;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 10px;
}

.page-cockfighting__main-title {
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--text-light);
  font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive H1 font size */
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.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: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

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

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__btn-centered {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  display: table;
}

/* Intro Section */
.page-cockfighting__intro-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Types Section */
.page-cockfighting__types-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-cockfighting__types-section .page-cockfighting__section-title {
  color: var(--text-light);
}

.page-cockfighting__types-section .page-cockfighting__text-block {
  color: var(--text-light);
}

.page-cockfighting__types-section .page-cockfighting__text-link {
  color: var(--secondary-color);
}

/* Grid for cards */
.page-cockfighting__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-cockfighting__card-text {
  font-size: 1em;
  line-height: 1.6;
}

.page-cockfighting__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

/* Guide Section */
.page-cockfighting__guide-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  background-color: var(--bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__step-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-cockfighting__step-item p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Features Section */
.page-cockfighting__features-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-cockfighting__features-section .page-cockfighting__section-title,
.page-cockfighting__features-section .page-cockfighting__text-block {
  color: var(--text-light);
}

.page-cockfighting__features-section .page-cockfighting__text-link {
  color: var(--secondary-color);
}

/* Strategy Section */
.page-cockfighting__strategy-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__strategy-item {
  background-color: var(--bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__strategy-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-cockfighting__strategy-item p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Regulations Section */
.page-cockfighting__regulations-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-cockfighting__regulations-section .page-cockfighting__section-title,
.page-cockfighting__regulations-section .page-cockfighting__text-block {
  color: var(--text-light);
}

.page-cockfighting__regulations-section .page-cockfighting__text-link {
  color: var(--secondary-color);
}

/* Video Section */
.page-cockfighting__video-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding-top: 10px; /* Small top padding */
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 100%; /* Desktop width constraint */
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__video-wrapper .page-cockfighting__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__faq-item {
  background-color: var(--bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title,
.page-cockfighting__cta-final-section .page-cockfighting__text-block {
  color: var(--text-light);
}

.page-cockfighting__cta-final-section .page-cockfighting__text-link {
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2.2em;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }

  .page-cockfighting__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__hero-section {
    min-height: 60vh;
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-cockfighting__hero-description {
    font-size: 1em;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    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__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
  }

  .page-cockfighting__text-block {
    font-size: 0.95em;
  }

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

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__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,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-cockfighting__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }

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

  .page-cockfighting__card-title {
    font-size: 1.3em;
  }

  .page-cockfighting__step-title,
  .page-cockfighting__strategy-title {
    font-size: 1.3em;
  }
}