.page-cockfighting {
  background-color: var(--background-color, #B71C1C); /* Deep Red background */
  color: #FFF5E1; /* Text Main */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* HERO Section */
.page-cockfighting__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
  padding-bottom: 40px;
  background-color: #7A0E0E; /* Deep Red for hero section */
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
  min-height: 200px; /* Minimum size */
}

.page-cockfighting__hero-content {
  padding: 20px;
  max-width: 900px;
  margin-top: 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: #FFD86A; /* Gold color for main title */
  margin-bottom: 15px;
}

.page-cockfighting__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: #FFF5E1;
  margin-bottom: 30px;
}

.page-cockfighting__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
  box-sizing: border-box;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
  color: #7A0E0E; /* Deep Red text for primary button */
  border: 2px solid #F2B544; /* Border color */
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

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

.page-cockfighting__btn-secondary {
  background: #C91F17; /* Main color */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border color */
}

.page-cockfighting__btn-secondary:hover {
  background: #E53935; /* Accent color */
  transform: translateY(-2px);
}

.page-cockfighting__btn-small {
  font-size: 0.9em;
  padding: 8px 15px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  border: 1px solid #F2B544;
  border-radius: 5px;
}

.page-cockfighting__btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 216, 106, 0.3);
}

/* Section Titles */
.page-cockfighting__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #FFCC66; /* Glow color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  position: relative;
}

.page-cockfighting__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #F4D34D 0%, #FFCC66 100%); /* Gold gradient */
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Paragraphs */
.page-cockfighting__paragraph {
  font-size: 1.1em;
  color: #FFF5E1;
  margin-bottom: 20px;
  text-align: justify;
}

/* Images */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Minimum image width */
  min-height: 200px; /* Minimum image height */
}

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

.page-cockfighting__hall-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid #F2B544; /* Border color */
}

.page-cockfighting__hall-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-cockfighting__hall-title {
  font-size: 1.5em;
  color: #FFD86A;
  margin: 20px 15px 10px;
}

.page-cockfighting__hall-description {
  font-size: 1em;
  color: #FFF5E1;
  padding: 0 15px 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-cockfighting__guide-image {
  margin: 30px auto 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Minimum image width */
  min-height: 200px; /* Minimum image height */
}

.page-cockfighting__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-cockfighting__step-card {
  background-color: #D32F2F; /* Card BG */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #F2B544;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__step-title {
  font-size: 1.3em;
  color: #FFD86A;
  margin-bottom: 15px;
}

.page-cockfighting__step-description {
  font-size: 1em;
  color: #FFF5E1;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Advantages Section */
.page-cockfighting__advantage-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-cockfighting__advantage-item {
  background-color: #D32F2F; /* Card BG */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #F2B544;
}

.page-cockfighting__advantage-title {
  font-size: 1.4em;
  color: #FFCC66;
  margin-bottom: 10px;
}

.page-cockfighting__advantage-description {
  font-size: 1em;
  color: #FFF5E1;
}

.page-cockfighting__advantage-image {
  margin: 30px auto 0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Minimum image width */
  min-height: 200px; /* Minimum image height */
}

/* Promotions Section */
.page-cockfighting__promotion-banner {
  margin: 30px auto 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Minimum image width */
  min-height: 200px; /* Minimum image height */
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 30px;
}

.page-cockfighting__faq-item {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #FFD86A; /* Gold text */
  cursor: pointer;
  background-color: #7A0E0E; /* Deep Red for question background */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-cockfighting__faq-question:hover {
  background-color: #C91F17; /* Main color on hover */
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFD86A;
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #FFF5E1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 15px;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  padding-bottom: 60px;
  text-align: center;
}

.page-cockfighting__conclusion-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__container {
    padding: 15px;
  }

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

  .page-cockfighting__hero-description {
    font-size: clamp(1em, 2vw, 1.1em);
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 10px 20px;
    font-size: 1em;
  }
}

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

  .page-cockfighting__hero-image {
    max-height: 300px !important;
    min-height: 200px !important;
  }

  .page-cockfighting__main-title {
    font-size: 2.2em !important;
  }

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

  /* 按钮与按钮容器 */
  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__conclusion-cta {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small,
  .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 !important;
    padding-right: 15px !important;
  }

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

  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__halls-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section,
  .page-cockfighting__container,
  .page-cockfighting__hall-card,
  .page-cockfighting__step-card,
  .page-cockfighting__advantage-item,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 产品展示图区域 (Halls, Guide, Advantages sections) */
  .page-cockfighting__halls-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__advantage-list {
    grid-template-columns: 1fr !important; /* Single column layout */
    gap: 20px !important;
  }

  .page-cockfighting__hall-image {
    height: auto !important; /* Allow height to adjust */
    max-height: 250px !important;
  }

  /* 其他内容模块 */
  .page-cockfighting__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px !important;
    padding-top: 20px !important;
  }

  .page-cockfighting__paragraph,
  .page-cockfighting__hall-description,
  .page-cockfighting__step-description,
  .page-cockfighting__advantage-description,
  .page-cockfighting__faq-answer p {
    font-size: 15px !important;
  }

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

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