.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D;
  background-color: #F4F7FB;
  line-height: 1.6;
}

.page-cockfighting__section-spacing {
  padding: 60px 0;
}

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

.page-cockfighting__text-center {
  text-align: center;
}

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4A8BFF 0%, #2F6BFF 100%);
  border-radius: 2px;
}

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

.page-cockfighting__section-title--light::after {
  background: #FFFFFF;
}

.page-cockfighting__section-description {
  font-size: 18px;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__dark-section .page-cockfighting__section-description {
  color: #F4F7FB;
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
  padding-bottom: 80px;
  min-height: 500px;
  overflow: hidden;
  color: #FFFFFF;
}

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

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

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

.page-cockfighting__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  margin-bottom: 15px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: clamp(16px, 2.5vw, 20px);
  margin-bottom: 30px;
  color: #F4F7FB;
}

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

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

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

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

.page-cockfighting__btn-secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary:hover {
  background: #F4F7FB;
  color: #1F2D3D;
  border-color: #1F2D3D;
  transform: translateY(-2px);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
}

.page-cockfighting__introduction-section .page-cockfighting__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__introduction-section .page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__introduction-section .page-cockfighting__text-block p {
  margin-bottom: 20px;
  font-size: 17px;
  color: #1F2D3D;
}

.page-cockfighting__introduction-section .page-cockfighting__image-block {
  flex: 1;
  min-width: 300px;
}

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

.page-cockfighting__dark-section {
  background-color: #2F6BFF;
  color: #FFFFFF;
}

.page-cockfighting__bet-types-section .page-cockfighting__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #1F2D3D;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-cockfighting__card-text {
  font-size: 16px;
  color: #1F2D3D;
}

.page-cockfighting__betting-guide-image-wrapper {
    text-align: center;
}

.page-cockfighting__how-to-play-section .page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-cockfighting__step-item {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  text-align: center;
}

.page-cockfighting__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  font-size: 30px;
  font-weight: 900;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-cockfighting__step-item p {
  font-size: 16px;
  color: #1F2D3D;
}

.page-cockfighting__cta-buttons--center {
  justify-content: center;
}

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

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

.page-cockfighting__advantage-item {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #1F2D3D;
}

.page-cockfighting__advantage-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filters are applied */
}

.page-cockfighting__advantage-title {
  font-size: 22px;
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-cockfighting__advantage-item p {
  font-size: 16px;
  color: #1F2D3D;
}

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

.page-cockfighting__promo-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: #1F2D3D;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no CSS filters are applied */
}

.page-cockfighting__promo-card .page-cockfighting__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: #2F6BFF;
  margin: 20px 20px 10px;
}

.page-cockfighting__promo-card .page-cockfighting__promo-text {
  font-size: 16px;
  color: #1F2D3D;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-cockfighting__promo-card .page-cockfighting__btn-primary {
  margin: 0 20px 20px;
}

/* FAQ Styles */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Using custom border color */
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #1F2D3D;
}

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

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: #F4F7FB;
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: #F4F7FB;
  border-radius: 0 0 5px 5px;
  color: #1F2D3D;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 16px;
}

.page-cockfighting__conclusion-section .page-cockfighting__section-description {
  margin-bottom: 30px;
  font-size: 18px;
}

/* General image and container responsive styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__section,
.page-cockfighting__card,
.page-cockfighting__container,
.page-cockfighting__hero-section,
.page-cockfighting__introduction-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__advantages-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__hero-content {
    max-width: 700px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(28px, 4.5vw, 42px);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(15px, 2.2vw, 18px);
  }
  .page-cockfighting__cta-buttons {
    gap: 15px;
  }
  .page-cockfighting__btn-primary, .page-cockfighting__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-cockfighting__introduction-section .page-cockfighting__content-grid {
    flex-direction: column;
  }
  .page-cockfighting__introduction-section .page-cockfighting__image-block {
    min-width: unset;
    width: 100%;
  }
  .page-cockfighting__how-to-play-section .page-cockfighting__step-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-cockfighting__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section-spacing {
    padding: 40px 0;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__section-title {
    font-size: clamp(24px, 7vw, 30px);
    margin-bottom: 15px;
  }
  .page-cockfighting__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* HERO 主图区域 */
  .page-cockfighting__hero-section {
    padding-top: 10px;
    padding-bottom: 60px;
    min-height: 400px;
  }
  .page-cockfighting__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: 100% !important;
  }
  .page-cockfighting__hero-content {
    padding: 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(26px, 8vw, 36px);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(14px, 4vw, 16px);
    margin-bottom: 20px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* 按钮与按钮容器 */
  .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__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* 产品展示图区域 (General card grids) */
  .page-cockfighting__bet-types-section .page-cockfighting__cards-grid,
  .page-cockfighting__how-to-play-section .page-cockfighting__step-list,
  .page-cockfighting__advantages-grid,
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__bet-types-section {
    overflow-x: hidden;
  }
  .page-cockfighting__advantage-icon {
    width: 60px;
    height: 60px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-cockfighting__text-block,
  .page-cockfighting__article-body,
  .page-cockfighting__article-figure {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }
  .page-cockfighting__text-block p {
    font-size: 15px;
  }
  .page-cockfighting__section-title::after {
    width: 60px;
  }

  /* 通用图片与容器 */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__introduction-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ */
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
  .page-cockfighting__faq-qtext { font-size: 15px; }
  .page-cockfighting__faq-answer { padding: 0 15px 15px; }
}