.page-cockfighting-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure main content area respects body background */
}

.page-cockfighting-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 600px;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(255, 215, 0, 0.6));
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

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

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

.page-cockfighting-rules__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-cockfighting-rules__intro-text {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting-rules__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #8B0000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-cockfighting-rules__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-cockfighting-rules__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #000000; /* Ensure background for content sections */
  color: #ffffff;
}

.page-cockfighting-rules__container {
  max-width: 1000px;
  margin: 0 auto;
}

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

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

.page-cockfighting-rules__sub-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid #8B0000;
  padding-left: 15px;
}

.page-cockfighting-rules__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #f0f0f0; /* Light text for readability on dark background */
}

.page-cockfighting-rules__highlight {
  color: #FFD700;
  font-weight: bold;
}

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

.page-cockfighting-rules__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 5px;
  display: flex;
  align-items: flex-start;
  font-size: 1.05em;
  color: #ffffff;
}

.page-cockfighting-rules__list-item::before {
  content: '✓';
  color: #FFD700;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
  line-height: 1;
}

.page-cockfighting-rules__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting-rules__faq-section {
  padding: 60px 20px;
  background-color: #000000; 
  color: #ffffff;
}

.page-cockfighting-rules__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

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

.page-cockfighting-rules__faq-question:hover {
  background-color: rgba(255, 215, 0, 0.2);
}

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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;
  font-size: 1.05em;
  color: #f0f0f0;
}

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

.page-cockfighting-rules__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: linear-gradient(45deg, #8B0000, #FFD700);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-cockfighting-rules__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.page-cockfighting-rules__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-cockfighting-rules__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFD700;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: 2px solid #FFD700;
  cursor: pointer;
}

.page-cockfighting-rules__btn-secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-2px);
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-cockfighting-rules__main-title {
    font-size: 2.8em;
  }
  .page-cockfighting-rules__section-title {
    font-size: 2em;
  }
  .page-cockfighting-rules__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules__hero-section {
    padding: 60px 15px;
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-cockfighting-rules__main-title {
    font-size: 2.2em;
  }
  .page-cockfighting-rules__intro-text {
    font-size: 1.1em;
  }
  .page-cockfighting-rules__content-area {
    padding: 40px 15px;
  }
  .page-cockfighting-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting-rules__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
  }
  .page-cockfighting-rules__paragraph,
  .page-cockfighting-rules__list-item,
  .page-cockfighting-rules__faq-question,
  .page-cockfighting-rules__faq-answer p {
    font-size: 1em;
  }
  .page-cockfighting-rules__content-image {
    margin: 30px auto;
  }
  .page-cockfighting-rules__faq-section {
    padding: 40px 15px;
  }
  .page-cockfighting-rules__faq-question {
    padding: 15px;
  }
  .page-cockfighting-rules__faq-answer {
    padding: 0 15px;
  }
  .page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
    padding: 10px 15px 15px;
  }
  .page-cockfighting-rules__cta-section {
    padding: 60px 15px;
  }
  .page-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary,
  .page-cockfighting-rules a[class*="button"],
  .page-cockfighting-rules 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-left: 15px;
    padding-right: 15px;
  }
  /* Ensure images and videos are responsive */
  .page-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting-rules video,
  .page-cockfighting-rules__video {
    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__video-section,
  .page-cockfighting-rules__video-container,
  .page-cockfighting-rules__video-wrapper,
  .page-cockfighting-rules__cta-buttons,
  .page-cockfighting-rules__button-group,
  .page-cockfighting-rules__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
}