.page-cockfighting-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--dark-bg); /* Use shared dark background */
}

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

.page-cockfighting-rules__dark-bg {
  background-color: #300060;
  color: #ffffff;
}

.page-cockfighting-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
  background-color: #300060; /* Main brand color */
  color: #ffffff;
  overflow: hidden;
}

.page-cockfighting-rules__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.page-cockfighting-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-cockfighting-rules__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-cockfighting-rules__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Accent color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  text-align: center;
}

.page-cockfighting-rules__btn-primary {
  background-color: #FFD700;
  color: #300060;
  border: 2px solid #FFD700;
}

.page-cockfighting-rules__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-cockfighting-rules__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-cockfighting-rules__btn-secondary:hover {
  background-color: #FFD700;
  color: #300060;
}

.page-cockfighting-rules__btn-full-width {
  width: 100%;
  max-width: 400px;
  margin: 20px auto 0 auto;
}

.page-cockfighting-rules__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-cockfighting-rules__intro-section,
.page-cockfighting-rules__process-section,
.page-cockfighting-rules__payout-rules,
.page-cockfighting-rules__faq-section {
  padding: 60px 0;
  background-color: #1a0033; /* Slightly lighter dark background */
  color: #f0f0f0;
}

.page-cockfighting-rules__bet-types,
.page-cockfighting-rules__basic-rules,
.page-cockfighting-rules__tips-section {
  padding: 60px 0;
  background-color: #300060; /* Main brand color for contrast sections */
  color: #ffffff;
}

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

.page-cockfighting-rules__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-cockfighting-rules__numbered-list {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 30px;
}

.page-cockfighting-rules__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #FFD700;
}

.page-cockfighting-rules__list-item:last-child {
  margin-bottom: 0;
}

.page-cockfighting-rules__list-title {
  color: #FFD700;
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting-rules__list-item p {
  font-size: 1em;
  margin-bottom: 0;
}

.page-cockfighting-rules__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-cockfighting-rules__faq-list {
  margin-top: 40px;
}

.page-cockfighting-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #2a0050;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-cockfighting-rules__faq-question:hover {
  background-color: #3a0060;
}

.page-cockfighting-rules__faq-question h3 {
  margin: 0;
  color: #FFD700; /* Accent color for FAQ question */
}

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-toggle {
  transform: rotate(0deg);
}

.page-cockfighting-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
  max-height: 1000px !important; /* Sufficiently large for content */
  padding: 20px !important;
}

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

/* Links within content */
.page-cockfighting-rules a {
  color: #FFD700;
  text-decoration: underline;
}

.page-cockfighting-rules a:hover {
  color: #e6c200;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules__hero-title {
    font-size: 2.8em;
  }

  .page-cockfighting-rules__hero-description {
    font-size: 1.1em;
  }

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

@media (max-width: 768px) {
  .page-cockfighting-rules {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting-rules__hero-section {
    min-height: 500px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content clears fixed header on mobile */
  }

  .page-cockfighting-rules__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-cockfighting-rules__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-cockfighting-rules__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    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;
    padding-top: 30px;
  }

  .page-cockfighting-rules__intro-section,
  .page-cockfighting-rules__process-section,
  .page-cockfighting-rules__payout-rules,
  .page-cockfighting-rules__faq-section,
  .page-cockfighting-rules__bet-types,
  .page-cockfighting-rules__basic-rules,
  .page-cockfighting-rules__tips-section {
    padding: 40px 0;
  }

  .page-cockfighting-rules__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile image responsiveness */
  .page-cockfighting-rules img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting-rules__hero-image-wrapper,
  .page-cockfighting-rules__content-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-cockfighting-rules__faq-answer {
    padding: 0 15px;
  }

  .page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
    padding: 15px !important;
  }

  .page-cockfighting-rules__list-item {
    padding: 15px;
  }

  .page-cockfighting-rules__list-title {
    font-size: 1.2em;
  }
}