/* Base styles for the cockfighting page */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color, #FFF5E1); /* Default to light text for potentially dark body background */
  background-color: var(--background-color-page, #B71C1C);
}

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

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #FFF5E1; /* Main text color */
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__section-text {
  font-size: 17px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #FFF5E1; /* Main text color */
}

.page-cockfighting__sub-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: #F4D34D; /* Gold color for sub-titles */
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-cockfighting__list {
  list-style: disc inside;
  text-align: left;
  max-width: 700px;
  margin: 20px auto 30px;
  color: #FFF5E1; /* Main text color */
  font-size: 17px;
  line-height: 1.8;
}

.page-cockfighting__list li {
  margin-bottom: 10px;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #7A0E0E; /* Deep Red */
}

.page-cockfighting__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  z-index: 1;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop */
  display: block;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content slightly over the image */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-cockfighting__main-title {
  font-size: clamp(36px, 5vw, 54px);
  color: #FFCC66; /* Glow color for main title */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #FFF5E1; /* Main text color */
  margin-bottom: 40px;
  line-height: 1.6;
}

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

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

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__btn-secondary {
  background: #B71C1C; /* Background color */
  color: #FFF5E1; /* Main text color */
  border: 2px solid #F2B544; /* Border color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary:hover {
  background: #7A0E0E; /* Deep Red */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__card-button {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 10px 20px;
  font-size: 16px;
}

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

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

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

.page-cockfighting__card {
  background: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
  color: #FFF5E1;
}

.page-cockfighting__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-cockfighting__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFCC66; /* Glow color */
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-cockfighting__card-description {
  font-size: 16px;
  line-height: 1.7;
  padding: 0 20px;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Content Flex */
.page-cockfighting__content-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
  margin-top: 40px;
}

.page-cockfighting__content-flex:nth-child(even) {
  flex-direction: row-reverse;
}

.page-cockfighting__text-block {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

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

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

.page-cockfighting__advantage-item {
  background: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  color: #FFF5E1;
}

.page-cockfighting__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px #F2B544);
}

.page-cockfighting__advantage-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFCC66; /* Glow color */
  margin-bottom: 15px;
}

.page-cockfighting__advantage-description {
  font-size: 16px;
  line-height: 1.7;
}

/* Guide Section */
.page-cockfighting__guide-section {
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
}

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

.page-cockfighting__step-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* Border color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-cockfighting__step-number {
  font-size: 48px;
  font-weight: 900;
  color: #FFCC66; /* Glow color */
  margin-bottom: 15px;
  line-height: 1;
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFF5E1; /* Main text color */
  margin-bottom: 15px;
}

.page-cockfighting__step-description {
  font-size: 16px;
  line-height: 1.7;
  color: #FFF5E1;
}

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

.page-cockfighting__promo-card {
  background: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
  color: #FFF5E1;
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-cockfighting__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFCC66; /* Glow color */
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-cockfighting__promo-description {
  font-size: 16px;
  line-height: 1.7;
  padding: 0 20px;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: #B71C1C;
}

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

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;
}

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: #7A0E0E; /* Deep Red on hover */
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFCC66; /* Glow color for question text */
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2B544; /* Border color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.2); /* Semi-transparent dark background */
  border-radius: 0 0 5px 5px;
  text-align: left;
  font-size: 16px;
  line-height: 1.7;
  color: #FFF5E1; /* Main text color */
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
  padding-bottom: 80px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -100px;
  }
  .page-cockfighting__section-title {
    font-size: clamp(26px, 3.5vw, 36px);
  }
  .page-cockfighting__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(16px, 2vw, 20px);
  }
  .page-cockfighting__content-flex {
    flex-direction: column;
  }
  .page-cockfighting__content-flex:nth-child(even) {
    flex-direction: column;
  }
  .page-cockfighting__text-block, .page-cockfighting__image-block {
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-cockfighting__hero-section {
    min-height: 450px;
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }
  .page-cockfighting__hero-image {
    object-fit: contain !important; /* Mobile: contain, prevent cropping */
    aspect-ratio: unset !important;
    height: auto;
    max-height: 300px;
  }
  .page-cockfighting__hero-content {
    margin-top: -80px; /* Adjust overlap for mobile */
    padding: 20px 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(28px, 8vw, 36px);
  }
  .page-cockfighting__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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: 12px 20px;
    font-size: 16px;
  }

  /* General content and section padding */
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__section-title {
    font-size: clamp(24px, 7vw, 30px);
    margin-bottom: 20px;
  }
  .page-cockfighting__section-text,
  .page-cockfighting__list li,
  .page-cockfighting__card-description,
  .page-cockfighting__advantage-description,
  .page-cockfighting__step-description,
  .page-cockfighting__promo-description,
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  /* Cards and Grids */
  .page-cockfighting__grid-container,
  .page-cockfighting__advantages-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__card-image,
  .page-cockfighting__promo-image {
    height: 180px;
  }
  .page-cockfighting__card-title,
  .page-cockfighting__promo-title {
    font-size: 20px;
  }

  /* Content Flex */
  .page-cockfighting__content-flex {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .page-cockfighting__content-flex:nth-child(even) {
    flex-direction: column;
  }
  .page-cockfighting__responsive-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  /* General images for content area */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* All containers for images/buttons to prevent overflow */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__game-types-section,
  .page-cockfighting__rules-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-cockfighting__section-title-wrap,
  .page-cockfighting__article-body,
  .page-cockfighting__article-figure {
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-cockfighting__article-body p,
  .page-cockfighting__article-body ul {
    text-align: left;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-cockfighting__cta-buttons a {
    width: 100%;
  }
}