.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF);
}

.page-cockfighting__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-cockfighting__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-cockfighting__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0; /* Assumes shared.css handles body padding-top */
  padding-bottom: 80px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.page-cockfighting__hero-content {
  flex: 1;
  padding-right: 40px;
  z-index: 1;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-cockfighting__hero-image-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 0;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: #ffffff;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-cockfighting__dark-section .page-cockfighting__text-block {
  color: #f0f0f0;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-cockfighting__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-cockfighting__btn-small {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  background-color: #26A9E0;
  color: #ffffff;
  border: 1px solid #26A9E0;
  transition: background-color 0.3s ease;
}

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

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

.page-cockfighting__feature-card,
.page-cockfighting__promo-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-cockfighting__feature-card:hover,
.page-cockfighting__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__feature-icon,
.page-cockfighting__promo-image {
  width: 100%;
  height: auto;
  max-width: 200px; /* Example size, ensuring >200px */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting__promo-image {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-cockfighting__feature-title,
.page-cockfighting__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-cockfighting__feature-description,
.page-cockfighting__promo-description {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-cockfighting__guide-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__guide-step-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-cockfighting__guide-step-description {
  font-size: 1.1em;
  color: #f0f0f0;
}

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

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

.page-cockfighting__faq-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 25px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large for content */
  padding: 15px 25px;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 1.05em;
}

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

.page-cockfighting__cta-bottom-content {
  max-width: 900px;
}

.page-cockfighting__cta-bottom-title {
  font-size: 2.5em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-cockfighting__cta-bottom-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }

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

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

  .page-cockfighting__cta-bottom-title {
    font-size: 2em;
  }

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

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-cockfighting__hero-section {
    flex-direction: column;
    padding-top: 20px; /* Adjust padding for mobile */
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-content {
    padding-right: 0;
    text-align: center;
    margin-bottom: 30px;
  }

  .page-cockfighting__hero-title {
    font-size: 2.2em;
  }

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

  .page-cockfighting__hero-image-container {
    justify-content: center;
    width: 100%;
  }

  /* LOGO 轮播区域 (if any) - Not explicitly in HTML, but defined for completeness */
  .page-cockfighting__logo-carousel-section {
    padding: 30px 0;
  }

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

  .page-cockfighting__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
    object-fit: contain;
  }

  /* 游戏展示区域 (if any) */
  .page-cockfighting__games-section {
    padding: 40px 0;
  }

  .page-cockfighting__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__game-card {
    padding: 20px;
  }

  /* 通用图片与容器 */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }

  /* Exclude specific images from generic 100% width, if they were present */
  /* Example: if there was a specific small icon, it would be excluded here */

  /* Buttons and button containers */
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .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;
    text-align: center;
  }

  /* Other content modules */
  .page-cockfighting__content-area {
    padding: 30px 15px;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__promo-cards-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__promo-card {
    padding: 25px;
  }

  .page-cockfighting__feature-icon,
  .page-cockfighting__promo-image {
    max-width: 180px;
    height: auto;
  }

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

  .page-cockfighting__guide-step-title {
    font-size: 1.4em;
  }

  .page-cockfighting__guide-step-description {
    font-size: 0.95em;
  }

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

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

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

  .page-cockfighting__cta-bottom-section {
    padding: 50px 0;
  }

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

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