/* style/cockfighting.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles for .page-cockfighting */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a -> light text */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #ffc107; /* Highlight with auxiliary color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__text-light {
  color: #ffffff;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  height: 70vh; /* Responsive height */
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-cockfighting__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
}

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

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Important for mobile responsiveness */
}

.page-cockfighting__btn-primary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

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

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

.page-cockfighting__btn-secondary:hover {
  background-color: #ffc107;
  color: #000000;
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #007bff;
  color: #ffffff;
  border: 1px solid #007bff;
}

.page-cockfighting__btn-small:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Section Styling */
.page-cockfighting__introduction,
.page-cockfighting__advantages,
.page-cockfighting__guide,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final {
  padding: 60px 0;
}

.page-cockfighting__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter than body bg for contrast */
  color: #ffffff;
}

.page-cockfighting__advantages .page-cockfighting__section-title,
.page-cockfighting__guide .page-cockfighting__section-title,
.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: #ffc107;
}

/* Card Grid */
.page-cockfighting__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Ensure light text on dark card background */
}

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

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

.page-cockfighting__card-title {
  font-size: 1.6em;
  color: #ffc107;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card-description {
  font-size: 1em;
  line-height: 1.5;
}

/* Video Section */
.page-cockfighting__video-section {
  background-color: #000000; /* Pure black for video section */
  padding: 80px 0;
  text-align: center;
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000; /* Fallback for video area */
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.page-cockfighting__video-wrapper .page-cockfighting__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

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

.page-cockfighting__step-item {
  background-color: rgba(0, 123, 255, 0.1); /* Light blue background for steps */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #ffc107;
  margin-bottom: 15px;
  background-color: #007bff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffc107;
}

.page-cockfighting__step-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__step-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Ensures consistent height */
}

/* Tips Section */
.page-cockfighting__tips-section {
  background-color: #007bff; /* Main brand color for tips */
  color: #ffffff;
  padding: 80px 0;
}

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

.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 30px;
  max-width: 800px;
}

.page-cockfighting__tips-list li {
  background-color: rgba(255, 255, 255, 0.15); /* Lighter background for list items */
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  font-size: 1.1em;
}

.page-cockfighting__tips-list li::before {
  content: '✓';
  color: #ffc107;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-cockfighting__tips-list strong {
  color: #ffc107;
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Keep dark background */
}

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

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(0, 123, 255, 0.15); /* Main color tint for question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffc107;
  margin-left: 15px;
  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; /* Light grey text for answer */
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Ensure it expands fully */
  padding: 20px 25px;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0;
}

/* Final CTA Section */
.page-cockfighting__cta-final {
  padding: 80px 0;
  background-color: #007bff; /* Main brand color */
  color: #ffffff;
}

.page-cockfighting__cta-final .page-cockfighting__section-title {
  color: #ffffff;
}

/* Responsive Design */
@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: 2em;
  }
  .page-cockfighting__card-title {
    font-size: 1.4em;
  }
  .page-cockfighting__faq-question {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    height: 60vh;
    min-height: 400px;
  }
  .page-cockfighting__hero-title {
    font-size: 2.5em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__steps,
  .page-cockfighting__faq-list,
  .page-cockfighting__tips-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Mobile video responsiveness */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  .page-cockfighting__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio */
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 2em;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__card {
    padding: 20px;
  }
  .page-cockfighting__card-title {
    font-size: 1.2em;
  }
  .page-cockfighting__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 20px;
  }
}

/* Ensure no filter on images */
.page-cockfighting img {
  filter: none !important;
}

/* Content area image size lower limit */
.page-cockfighting__content-area img,
.page-cockfighting__advantages img,
.page-cockfighting__guide img,
.page-cockfighting__tips-section img,
.page-cockfighting__faq-section img,
.page-cockfighting__cta-final img,
.page-cockfighting__card-image {
  min-width: 200px;
  min-height: 200px;
  /* Specific rules for content area images to ensure they are not too small */
  /* This overrides any smaller values that might be inherited or set incorrectly */
  width: auto;
  height: auto;
}

/* Override any potential smaller CSS dimensions for content images */
.page-cockfighting__content-area .page-cockfighting__card-image,
.page-cockfighting__advantages .page-cockfighting__card-image {
  width: 100%; /* Make card image fill its container on desktop */
  height: 267px; /* Example fixed height to maintain aspect ratio with width 400 */
  object-fit: cover;
}

/* Specific button styling to prevent smaller dimensions from overriding larger HTML attributes */
.page-cockfighting a[class*="btn"] {
    min-width: 100px; /* Example minimum width for buttons */
    min-height: 40px; /* Example minimum height for buttons */
}

/* Ensure CSS and HTML width/height attributes are consistent for CLS */
/* For example, if HTML img has width="400" height="267" */
.page-cockfighting__card-image {
    width: 400px; /* Or 100% if it should fill parent */
    height: 267px; /* Or auto if aspect ratio is handled by max-width */
    max-width: 100%; /* Responsive behavior */
    height: auto; /* Maintain aspect ratio */
}

/* Contrast fix if needed */
.page-cockfighting__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-cockfighting__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}