/* style/cockfighting.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

:root {
  --page-cockfighting-primary-color: #11A84E;
  --page-cockfighting-secondary-color: #22C768;
  --page-cockfighting-background-color: #08160F;
  --page-cockfighting-card-bg: #11271B;
  --page-cockfighting-text-main: #F2FFF6;
  --page-cockfighting-text-secondary: #A7D9B8;
  --page-cockfighting-border-color: #2E7A4E;
  --page-cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-cockfighting-glow: #57E38D;
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  color: var(--page-cockfighting-text-main); /* Light text on dark background */
  background-color: var(--page-cockfighting-background-color);
  line-height: 1.6;
}

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

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

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  color: var(--page-cockfighting-primary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-cockfighting__section-description {
  font-size: 1.1rem;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--page-cockfighting-text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-cockfighting__intro-description {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

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

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

/* Buttons */
.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-cockfighting__cta-buttons--center {
  margin-top: 40px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-button-gradient);
  color: var(--page-cockfighting-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--page-cockfighting-primary-color);
  color: var(--page-cockfighting-text-main);
  transform: translateY(-3px);
}

/* Content Images */
.page-cockfighting__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-cockfighting__image-content--center {
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__dark-section {
  background-color: var(--page-cockfighting-card-bg);
  color: var(--page-cockfighting-text-main);
}

/* How-To Steps Grid */
.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__step-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid var(--page-cockfighting-border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__step-title {
  font-size: 1.4rem;
  color: var(--page-cockfighting-primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__step-card p {
  color: var(--page-cockfighting-text-secondary);
  font-size: 0.95rem;
}

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

.page-cockfighting__card {
  background-color: var(--page-cockfighting-card-bg);
  color: var(--page-cockfighting-text-main);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid var(--page-cockfighting-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__card-title {
  font-size: 1.3rem;
  color: var(--page-cockfighting-primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__card p {
  color: var(--page-cockfighting-text-secondary);
}

/* Bet Types Grid */
.page-cockfighting__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card--transparent {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Betting Tips List */
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 40px auto;
}

.page-cockfighting__tips-list li {
  background-color: var(--page-cockfighting-card-bg);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid var(--page-cockfighting-primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__tips-list li strong {
  color: var(--page-cockfighting-primary-color);
}

/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-background-color);
  border: 1px solid var(--page-cockfighting-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--page-cockfighting-text-main);
  background-color: var(--page-cockfighting-card-bg);
  border-bottom: 1px solid var(--page-cockfighting-border-color);
}

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

.page-cockfighting__faq-question {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-cockfighting__faq-qtext {
  color: var(--page-cockfighting-text-main);
}

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

.page-cockfighting__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
  border-top: 1px solid var(--page-cockfighting-border-color);
}

.page-cockfighting__faq-item[open] summary {
  border-bottom: none;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−';
}

/* CTA Banner */
.page-cockfighting__cta-banner {
  background-color: var(--page-cockfighting-primary-color);
  padding: 80px 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-cockfighting__cta-banner .page-cockfighting__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 40px;
}

.page-cockfighting__cta-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
}

.page-cockfighting__cta-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-cockfighting__cta-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.page-cockfighting__cta-buttons .page-cockfighting__btn-primary,
.page-cockfighting__cta-buttons .page-cockfighting__btn-secondary {
  border-color: #ffffff;
}

.page-cockfighting__cta-buttons .page-cockfighting__btn-secondary {
  color: #ffffff;
}

.page-cockfighting__cta-buttons .page-cockfighting__btn-secondary:hover {
  background: #ffffff;
  color: var(--page-cockfighting-primary-color);
}

.page-cockfighting__cta-banner .page-cockfighting__image-content {
  margin: 0;
  box-shadow: none;
  border-radius: 10px;
  flex-shrink: 0;
  max-width: 45%;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    padding: 20px;
  }

  .page-cockfighting__cta-banner .page-cockfighting__container {
    flex-direction: column;
    text-align: center;
  }

  .page-cockfighting__cta-banner .page-cockfighting__image-content {
    max-width: 80%;
    margin-top: 40px;
  }

  .page-cockfighting__cta-content {
    max-width: 100%;
  }
}

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

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

  .page-cockfighting__section-description {
    font-size: 1rem;
  }

  .page-cockfighting__main-title {
    font-size: 2.5rem;
  }

  .page-cockfighting__intro-description {
    font-size: 1rem;
  }

  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }

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

  .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;
    padding-right: 15px;
  }

  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    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__image-content,
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__about-cockfighting,
  .page-cockfighting__how-to-join,
  .page-cockfighting__advantages,
  .page-cockfighting__bet-types,
  .page-cockfighting__betting-tips,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

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

  .page-cockfighting__faq-question {
    font-size: 1rem;
  }

  .page-cockfighting__faq-answer {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 2rem;
  }

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

  .page-cockfighting__cta-title {
    font-size: 1.8rem;
  }

  .page-cockfighting__cta-banner .page-cockfighting__image-content {
    max-width: 100%;
  }
}