.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--bg-color, #08160F); /* Body background */
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

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

.page-cockfighting__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-cockfighting__section:last-of-type {
  border-bottom: none;
}

.page-cockfighting__section-title {
  font-size: 3em;
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO 主图区域 */
.page-cockfighting__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: var(--deep-green, #0A4B2C); /* A slightly different dark green for the hero background */
  text-align: center;
}

.page-cockfighting__hero-image-wrapper {
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Using clamp for H1 */
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  color: var(--text-main, #F2FFF6);
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* 按钮与按钮容器 */
.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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%; /* Ensure buttons adapt */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting__btn-primary--large {
  padding: 18px 35px;
  font-size: 1.2em;
  min-width: 280px;
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--gold, #F2C14E);
  border: 2px solid var(--gold, #F2C14E);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--gold, #F2C14E);
  color: var(--deep-green, #0A4B2C); /* Dark text on gold hover */
}

/* 其他内容模块 */
.page-cockfighting__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-cockfighting__text-block,
.page-cockfighting__image-block {
  flex: 1;
  min-width: 0; /* Allow shrinking */
}

/* 通用图片与容器 */
.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__introduction-section .page-cockfighting__text-block p {
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

.page-cockfighting__introduction-section .page-cockfighting__text-block p strong {
  color: var(--gold, #F2C14E);
}

/* 产品展示图区域 (Bet Types Section is a form of product/feature display) */
.page-cockfighting__bet-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__bet-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__bet-title {
  font-size: 1.5em;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__bet-description {
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
}

.page-cockfighting__guide-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--primary-color, #11A84E);
}

.page-cockfighting__guide-step-title {
  font-size: 1.4em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 8px;
  font-weight: 600;
}

.page-cockfighting__guide-step-description {
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__benefit-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--border, #2E7A4E);
}

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

.page-cockfighting__benefit-title {
  font-size: 1.5em;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__benefit-description {
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__image-block--full-width {
  text-align: center;
}

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

.page-cockfighting__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border, #2E7A4E);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  list-style: none; /* For <summary> tag */
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' or similar */
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: var(--text-secondary, #A7D9B8);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  padding-top: 10px;
}

.page-cockfighting__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-cockfighting__conclusion-content {
  background-color: var(--deep-green, #0A4B2C); /* A slightly different dark green for the conclusion background */
  border-radius: 15px;
  padding: 50px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__conclusion-content .page-cockfighting__section-title {
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
}

.page-cockfighting__conclusion-content .page-cockfighting__section-description {
  color: var(--text-main, #F2FFF6);
  margin-bottom: 40px;
}

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

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

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

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 80%;
  }

  .page-cockfighting__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__content-wrapper--reversed {
    flex-direction: column; /* Stays column for reversed on tablet */
  }

  .page-cockfighting__image-block {
    order: -1; /* Image appears first in column for normal flow */
  }

  .page-cockfighting__content-wrapper--reversed .page-cockfighting__image-block {
    order: 0; /* Image appears second in column for reversed flow */
  }

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

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

  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-cockfighting__hero-image {
    border-radius: 0;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
    margin-bottom: 10px;
    padding: 0 15px;
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  /* 产品展示图区域 (Bet Types section and Benefits grid) */
  .page-cockfighting__bet-list,
  .page-cockfighting__benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .page-cockfighting__bet-item,
  .page-cockfighting__benefit-card {
    padding: 20px;
  }

  /* 通用图片与容器 */
  .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__content-wrapper,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__bet-list,
  .page-cockfighting__benefits-grid,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-cockfighting__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .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__btn-primary--large {
    min-width: unset !important;
  }

  /* 其他内容模块 */
  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: 2em !important;
    padding: 0 10px;
  }

  .page-cockfighting__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-cockfighting__content-wrapper,
  .page-cockfighting__content-wrapper--reversed {
    flex-direction: column !important;
    gap: 25px;
  }

  .page-cockfighting__text-block,
  .page-cockfighting__image-block {
    width: 100%;
  }

  .page-cockfighting__image-block {
    order: -1; /* Image always appears first in column on mobile */
  }
  .page-cockfighting__content-wrapper--reversed .page-cockfighting__image-block {
    order: -1; /* Also first for reversed content on mobile */
  }

  .page-cockfighting__guide-item {
    padding: 20px;
    margin-bottom: 15px;
  }

  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

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

  .page-cockfighting__conclusion-content {
    padding: 40px 20px;
  }
}