/* style/cockfighting-rules.css */

:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-cockfighting-rules {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-cockfighting-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
}

.page-cockfighting-rules__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 600px; /* Limit height for aesthetic reasons */
}

.page-cockfighting-rules__hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  margin-top: -120px; /* Overlap with image slightly for visual appeal */
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 1;
  border: 1px solid var(--border-color);
}

.page-cockfighting-rules__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
}

.page-cockfighting-rules__description {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

.page-cockfighting-rules__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting-rules__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting-rules__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting-rules__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-cockfighting-rules__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-3px);
}

.page-cockfighting-rules__section-title {
  font-size: 2.5em;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-cockfighting-rules__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--glow-color);
  border-radius: 2px;
}

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

.page-cockfighting-rules__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color);
}

.page-cockfighting-rules__introduction-section,
.page-cockfighting-rules__rules-section,
.page-cockfighting-rules__expert-tips-section,
.page-cockfighting-rules__faq-section,
.page-cockfighting-rules__conclusion-section {
  padding: 60px 20px;
}

.page-cockfighting-rules__types-section,
.page-cockfighting-rules__strategy-section,
.page-cockfighting-rules__registration-section {
  padding: 60px 20px;
}

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

.page-cockfighting-rules__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting-rules__card-title {
  font-size: 1.5em;
  color: var(--glow-color);
  margin-bottom: 15px;
}

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

.page-cockfighting-rules__rule-item {
  background-color: var(--deep-green-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  color: var(--text-main-color);
}

.page-cockfighting-rules__rule-title {
  font-size: 1.3em;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-cockfighting-rules__rule-item ul {
  list-style: none;
  padding-left: 0;
}

.page-cockfighting-rules__rule-item li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--text-secondary-color);
}

.page-cockfighting-rules__rule-item li::before {
  content: '✓';
  color: var(--glow-color);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-cockfighting-rules__content-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 40px;
  margin-bottom: 20px;
  display: block;
}

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

.page-cockfighting-rules__tips-list {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
}

.page-cockfighting-rules__tips-list li {
  margin-bottom: 30px;
  background-color: var(--deep-green-color);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.page-cockfighting-rules__tip-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 10px;
}

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

.page-cockfighting-rules__step-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting-rules__step-title {
  font-size: 1.6em;
  color: var(--glow-color);
  margin-bottom: 15px;
}

/* FAQ Section */
.page-cockfighting-rules__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--deep-green-color);
  overflow: hidden;
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15em;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-cockfighting-rules__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-cockfighting-rules__faq-question:hover {
  background-color: rgba(17, 39, 27, 0.8);
}

.page-cockfighting-rules__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color);
}

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-toggle {
  content: '−';
}

.page-cockfighting-rules__faq-answer {
  padding: 15px 25px 20px 25px;
  color: var(--text-secondary-color);
  font-size: 1em;
}

.page-cockfighting-rules__faq-answer p {
  margin-bottom: 10px;
}

.page-cockfighting-rules__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-cockfighting-rules__conclusion-section .page-cockfighting-rules__card {
  text-align: center;
  padding: 40px;
}

.page-cockfighting-rules__conclusion-section p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-cockfighting-rules__hero-content {
    margin-top: -80px;
  }

  .page-cockfighting-rules__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-cockfighting-rules__section-title {
    font-size: 2em;
  }

  .page-cockfighting-rules__grid-layout,
  .page-cockfighting-rules__rules-grid,
  .page-cockfighting-rules__strategy-grid,
  .page-cockfighting-rules__registration-steps {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules__hero-content {
    margin-top: -60px;
    padding: 15px;
    border-radius: 8px;
  }

  .page-cockfighting-rules__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-cockfighting-rules__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-cockfighting-rules__introduction-section,
  .page-cockfighting-rules__rules-section,
  .page-cockfighting-rules__expert-tips-section,
  .page-cockfighting-rules__faq-section,
  .page-cockfighting-rules__conclusion-section,
  .page-cockfighting-rules__types-section,
  .page-cockfighting-rules__strategy-section,
  .page-cockfighting-rules__registration-section {
    padding: 40px 15px;
  }

  .page-cockfighting-rules__content-area {
    padding: 0 15px;
  }

  .page-cockfighting-rules__grid-layout,
  .page-cockfighting-rules__rules-grid,
  .page-cockfighting-rules__strategy-grid,
  .page-cockfighting-rules__registration-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Mobile image responsiveness */
  .page-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting-rules__section,
  .page-cockfighting-rules__card,
  .page-cockfighting-rules__container,
  .page-cockfighting-rules__hero-section,
  .page-cockfighting-rules__introduction-section,
  .page-cockfighting-rules__types-section,
  .page-cockfighting-rules__rules-section,
  .page-cockfighting-rules__strategy-section,
  .page-cockfighting-rules__expert-tips-section,
  .page-cockfighting-rules__registration-section,
  .page-cockfighting-rules__faq-section,
  .page-cockfighting-rules__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting-rules__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-cockfighting-rules__card-image {
    height: 180px;
  }

  .page-cockfighting-rules__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-cockfighting-rules__faq-toggle {
    font-size: 1.3em;
  }
}