.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Assuming body background is black */
}

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

.page-cockfighting__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Adjust as needed */
  color: #ffffff;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px; /* Space between image and text */
}

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

.page-cockfighting__hero-content {
  position: relative; /* Ensure content is in normal flow */
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  z-index: 1; /* Ensure text is above any subtle background elements */
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  color: #ffffff;
  max-width: 600px; /* Constraint H1 width */
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

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

.page-cockfighting__btn-tertiary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-cockfighting__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  color: #ffffff;
}

.page-cockfighting__sub-title {
  font-size: 1.5em;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-cockfighting__text-block {
  font-size: 1em;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-cockfighting__light-bg {
  background-color: #FFFFFF;
  color: #333333;
  padding: 60px 0;
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__sub-title {
  color: #000000;
}

.page-cockfighting__light-bg .page-cockfighting__text-block {
  color: #333333;
}

.page-cockfighting__dark-bg {
  background-color: #000000;
  color: #ffffff;
  padding: 60px 0;
}

.page-cockfighting__intro-section,
.page-cockfighting__guide-section,
.page-cockfighting__promotions-section,
.page-cockfighting__conclusion-section {
  padding: 60px 0;
}

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

.page-cockfighting__criterion-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  text-align: left;
}

.page-cockfighting__criterion-card .page-cockfighting__card-title {
  color: #26A9E0;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-cockfighting__criterion-card .page-cockfighting__card-text {
  color: #f0f0f0;
}

.page-cockfighting__top-bookmakers-section .page-cockfighting__bookmaker-card {
  display: flex;
  background-color: #f8f8f8; /* Light background for card */
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-cockfighting__bookmaker-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-cockfighting__bookmaker-content {
  width: 60%;
  padding: 30px;
  box-sizing: border-box;
}

.page-cockfighting__bookmaker-content .page-cockfighting__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #000000;
}

.page-cockfighting__bookmaker-content .page-cockfighting__card-text {
  color: #555555;
  margin-bottom: 20px;
}

.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
}

.page-cockfighting__guide-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 80px;
  color: #ffffff;
}

.page-cockfighting__guide-item::before {
  counter-increment: guide-step;
  content: "Bước " counter(guide-step);
  position: absolute;
  left: 20px;
  top: 30px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.page-cockfighting__guide-item .page-cockfighting__sub-title {
  color: #26A9E0;
  margin-top: 0;
}

.page-cockfighting__promo-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-cockfighting__promo-item {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-cockfighting__promo-item .page-cockfighting__sub-title {
  color: #000000;
  margin-top: 0;
}

.page-cockfighting__promo-item .page-cockfighting__text-block {
  color: #555555;
}

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

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: #f0f0f0;
  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; /* Arbitrary large value */
  padding-top: 15px;
  transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 500px !important; /* For JS fallback */
  padding-top: 15px;
}

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

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

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

/* Desktop H1 font size */
@media (min-width: 1025px) {
  .page-cockfighting__main-title {
    font-size: 3.2em;
  }
}

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.8em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__bookmaker-card {
    flex-direction: column;
  }
  .page-cockfighting__bookmaker-image,
  .page-cockfighting__bookmaker-content {
    width: 100%;
  }
}

/* Mobile specific styles */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-cockfighting__hero-section {
    min-height: auto;
    padding-top: 10px !important; /* Small top padding, relies on body padding-top for header offset */
    padding-bottom: 30px;
  }
  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 15px;
  }
  .page-cockfighting__hero-content {
    padding: 15px;
  }
  .page-cockfighting__main-title {
    font-size: 2.2em; /* Smaller H1 for mobile */
    max-width: 90%;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* 产品展示图区域 */
  .page-cockfighting__top-bookmakers-section .page-cockfighting__bookmaker-card {
    flex-direction: column;
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-cockfighting__bookmaker-image,
  .page-cockfighting__bookmaker-content {
    width: 100% !important;
  }
  .page-cockfighting__bookmaker-content {
    padding: 20px;
  }

  /* 通用图片与容器 */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__container,
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* 按钮与按钮容器 */
  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-tertiary {
    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__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-cockfighting__sub-title {
    font-size: 1.3em;
  }
  .page-cockfighting__text-block {
    font-size: 0.95em;
  }
  .page-cockfighting__intro-section,
  .page-cockfighting__criteria-section,
  .page-cockfighting__top-bookmakers-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    padding: 40px 0;
  }
  .page-cockfighting__criteria-grid,
  .page-cockfighting__promo-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-cockfighting__criterion-card,
  .page-cockfighting__promo-item {
    padding: 20px;
  }
  .page-cockfighting__guide-item {
    padding: 20px 20px 20px 60px;
  }
  .page-cockfighting__guide-item::before {
    left: 15px;
    top: 20px;
    width: 35px;
    height: 35px;
    font-size: 0.8em;
  }
  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
  }
}