/* style/cockfighting.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #1a1a1a (dark), so use light text */
  background-color: transparent; /* Main content background is handled by shared.css body */
}

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

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

.page-cockfighting__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

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

.page-cockfighting__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.page-cockfighting__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  cursor: pointer;
  transition: background 0.3s ease;
}

.page-cockfighting__video-overlay:hover {
  background: rgba(0, 0, 0, 0.65);
}

.page-cockfighting__play-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  pointer-events: none; /* Allow click through to the parent <a> */
}

.page-cockfighting__play-icon svg {
  width: 60px;
  height: 60px;
  fill: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  padding: 10px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.page-cockfighting__video-overlay:hover .page-cockfighting__play-icon svg {
  transform: scale(1.1);
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

.page-cockfighting__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  border-color: #005a2d;
}

/* Custom colors for register/login buttons */
.page-cockfighting__btn-register {
  background-color: #C30808; /* Red for register */
  border-color: #C30808;
  color: #FFFF00; /* Yellow for register font */
}

.page-cockfighting__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-cockfighting__btn-login {
  background-color: #C30808; /* Red for login */
  border-color: #C30808;
  color: #FFFF00; /* Yellow for login font */
}

.page-cockfighting__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-cockfighting__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Sections */
.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Highlight important titles */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-cockfighting__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #017439; /* Use brand color for sub-titles on light backgrounds */
}

.page-cockfighting__introduction-section,
.page-cockfighting__guide-section,
.page-cockfighting__safety-section,
.page-cockfighting__conclusion-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Ensure dark background for sections that need it */
  color: #ffffff;
}

.page-cockfighting__types-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333;
}

.page-cockfighting__dark-bg {
  background-color: #017439; /* Brand primary color as background */
  color: #ffffff;
}

/* Grid Layouts */
.page-cockfighting__grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.page-cockfighting__grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

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

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  color: #f0f0f0; /* Ensure light text on dark background */
}

.page-cockfighting__image-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-cockfighting__image-caption {
  text-align: center;
  font-style: italic;
  font-size: 0.9em;
  color: #cccccc;
  margin-bottom: 30px;
}

/* Cards */
.page-cockfighting__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #333333; /* Dark text on light card background */
}

.page-cockfighting__card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439; /* Brand color for card titles */
}

.page-cockfighting__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-cockfighting__card-title a:hover {
  text-decoration: underline;
}

.page-cockfighting__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__card .page-cockfighting__btn-primary {
  margin-top: auto;
  width: auto; /* Allow buttons in cards to size naturally */
  max-width: 100%;
}

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

.page-cockfighting__step-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-cockfighting__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for step titles */
}

.page-cockfighting__step-card p {
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

.page-cockfighting__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for feature titles */
}

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

/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333; /* Dark text on light background */
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: #e0e0e0;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #017439; /* Brand color for FAQ questions */
}

.page-cockfighting__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1;
  color: #017439;
  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;
  background-color: #ffffff;
  color: #333333;
}

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

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

/* Conclusion Section */
.page-cockfighting__conclusion-section .page-cockfighting__section-title {
  color: #FFFF00;
}
.page-cockfighting__conclusion-section .page-cockfighting__section-description {
  color: #f0f0f0;
}