.page-cockfighting-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

.page-cockfighting-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  background: linear-gradient(135deg, #4A00B7, #7D00E2); /* Brand color gradient */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-cockfighting-rules__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting-rules__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-cockfighting-rules__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-cockfighting-rules__btn-primary {
  background-color: #FFD700; /* Auxiliary color */
  color: #4A00B7; /* Main color */
  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; /* Auxiliary color */
  border: 2px solid #FFD700;
  margin-top: 20px;
}

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

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

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

.page-cockfighting-rules__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting-rules__section-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting-rules__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit;
  position: relative;
  padding-bottom: 10px;
}

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

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__section-title::after {
  background-color: #FFD700;
}

.page-cockfighting-rules__light-bg .page-cockfighting-rules__section-title::after {
  background-color: #4A00B7;
}

.page-cockfighting-rules__paragraph {
  font-size: 1.1em;
  margin-bottom: 25px;
  line-height: 1.7;
  text-align: justify;
}

.page-cockfighting-rules__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-cockfighting-rules__rule-item,
.page-cockfighting-rules__betting-type,
.page-cockfighting-rules__tip-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-cockfighting-rules__light-bg .page-cockfighting-rules__rule-item,
.page-cockfighting-rules__light-bg .page-cockfighting-rules__betting-type,
.page-cockfighting-rules__light-bg .page-cockfighting-rules__tip-item {
  background-color: #f9f9f9; /* Light background for light section */
  color: #333333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-rules__rule-title,
.page-cockfighting-rules__betting-title,
.page-cockfighting-rules__tip-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-cockfighting-rules__light-bg .page-cockfighting-rules__rule-title,
.page-cockfighting-rules__light-bg .page-cockfighting-rules__betting-title,
.page-cockfighting-rules__light-bg .page-cockfighting-rules__tip-title {
  color: #4A00B7;
}

.page-cockfighting-rules__rule-description,
.page-cockfighting-rules__betting-description,
.page-cockfighting-rules__tip-description {
  font-size: 1.05em;
  line-height: 1.6;
  text-align: justify;
}

.page-cockfighting-rules__cta-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(90deg, #4A00B7, #7D00E2); /* Brand color gradient */
  color: #ffffff;
}

.page-cockfighting-rules__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
}

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

.page-cockfighting-rules__cta-button {
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

/* FAQ Section */
.page-cockfighting-rules__faq-section {
  padding: 60px 20px;
  background-color: #4A00B7;
  color: #ffffff;
}

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

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

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

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

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD700;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

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

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

.page-cockfighting-rules__faq-answer p {
  margin-bottom: 0;
  font-size: 1.05em;
  line-height: 1.6;
}

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

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

  .page-cockfighting-rules__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-cockfighting-rules__hero-section {
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }

  .page-cockfighting-rules__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-cockfighting-rules__paragraph {
    font-size: 0.95em;
  }

  .page-cockfighting-rules__rule-title,
  .page-cockfighting-rules__betting-title,
  .page-cockfighting-rules__tip-title {
    font-size: 1.5em;
  }

  .page-cockfighting-rules__rule-item,
  .page-cockfighting-rules__betting-type,
  .page-cockfighting-rules__tip-item {
    padding: 20px;
  }

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

  .page-cockfighting-rules__cta-description {
    font-size: 1em;
  }

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

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .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-image-wrapper,
  .page-cockfighting-rules__section-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

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

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

  .page-cockfighting-rules__faq-answer p {
    font-size: 0.95em;
  }

  .page-cockfighting-rules__hero-content,
  .page-cockfighting-rules__content-area,
  .page-cockfighting-rules__cta-section,
  .page-cockfighting-rules__faq-section {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-cockfighting-rules__hero-title {
    font-size: 1.8em;
  }

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

  .page-cockfighting-rules__cta-title {
    font-size: 1.8em;
  }

  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}