.page-cockfighting-rules-detailed {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default text color for the page */
  background-color: var(--bg-color, #08160F); /* Default background for the page */
}

.page-cockfighting-rules-detailed__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-color, #08160F);
}

.page-cockfighting-rules-detailed__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-cockfighting-rules-detailed__hero-content {
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 0 20px;
  z-index: 1;
  color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting-rules-detailed__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.4);
}

.page-cockfighting-rules-detailed__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-cockfighting-rules-detailed__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-cockfighting-rules-detailed__btn-primary,
.page-cockfighting-rules-detailed__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting-rules-detailed__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main-color, #F2FFF6);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-cockfighting-rules-detailed__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  transform: translateY(-2px);
}

.page-cockfighting-rules-detailed__btn-secondary {
  background: transparent;
  color: var(--text-main-color, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-cockfighting-rules-detailed__btn-secondary:hover {
  background-color: var(--deep-green-color, #0A4B2C);
  border-color: var(--glow-color, #57E38D);
  color: var(--glow-color, #57E38D);
  transform: translateY(-2px);
}

.page-cockfighting-rules-detailed__section {
  padding: 60px 0;
  background-color: var(--bg-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting-rules-detailed__dark-section {
  background-color: var(--card-bg-color, #11271B);
}

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

.page-cockfighting-rules-detailed__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-color, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-cockfighting-rules-detailed__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-main-color, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-cockfighting-rules-detailed__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-cockfighting-rules-detailed__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 800px; /* Recommended size */
  object-fit: cover;
}

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

.page-cockfighting-rules-detailed__list--ordered {
  list-style-type: decimal;
  padding-left: 25px;
}

.page-cockfighting-rules-detailed__list-item {
  font-size: 1.05rem;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-cockfighting-rules-detailed__list-item::before {
  content: '✓';
  color: var(--glow-color, #57E38D);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-cockfighting-rules-detailed__list--ordered .page-cockfighting-rules-detailed__list-item::before {
  content: none; /* Remove checkmark for ordered lists */
}

.page-cockfighting-rules-detailed__list--ordered .page-cockfighting-rules-detailed__list-item {
  padding-left: 0;
}

.page-cockfighting-rules-detailed__sub-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.page-cockfighting-rules-detailed__sub-list .page-cockfighting-rules-detailed__list-item {
  padding-left: 0;
}

.page-cockfighting-rules-detailed__sub-list .page-cockfighting-rules-detailed__list-item::before {
  content: none;
}

.page-cockfighting-rules-detailed__cta-buttons--center {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-cockfighting-rules-detailed__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg-color, #11271B);
}

.page-cockfighting-rules-detailed__faq-list {
  margin-top: 30px;
}

.page-cockfighting-rules-detailed__faq-item {
  background-color: var(--deep-green-color, #0A4B2C);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting-rules-detailed__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--deep-green-color, #0A4B2C);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-cockfighting-rules-detailed__faq-question::-webkit-details-marker {
  display: none;
}

.page-cockfighting-rules-detailed__faq-question:hover {
  background-color: var(--divider-color, #1E3A2A);
}

.page-cockfighting-rules-detailed__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--glow-color, #57E38D);
  transition: transform 0.3s ease;
}

.page-cockfighting-rules-detailed__faq-item[open] .page-cockfighting-rules-detailed__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting-rules-detailed__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-cockfighting-rules-detailed__faq-item[open] .page-cockfighting-rules-detailed__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 10px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.page-cockfighting-rules-detailed__faq-answer p {
  margin: 0;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Ensure link color within text blocks for contrast */
.page-cockfighting-rules-detailed__text-block a,
.page-cockfighting-rules-detailed__faq-answer a {
  color: var(--glow-color, #57E38D); /* Use a high contrast color for links */
  text-decoration: underline;
}

.page-cockfighting-rules-detailed__text-block a:hover,
.page-cockfighting-rules-detailed__faq-answer a:hover {
  color: var(--gold-color, #F2C14E);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-cockfighting-rules-detailed__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-cockfighting-rules-detailed__hero-content {
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-cockfighting-rules-detailed__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-cockfighting-rules-detailed__hero-description {
    font-size: 1rem;
  }

  .page-cockfighting-rules-detailed__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

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

  .page-cockfighting-rules-detailed__section {
    padding: 40px 0;
  }

  .page-cockfighting-rules-detailed__container {
    padding: 0 15px;
  }

  .page-cockfighting-rules-detailed__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-cockfighting-rules-detailed__sub-title {
    font-size: 1.5rem;
  }

  .page-cockfighting-rules-detailed__text-block,
  .page-cockfighting-rules-detailed__list-item {
    font-size: 0.95rem;
  }

  .page-cockfighting-rules-detailed img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting-rules-detailed__image-content {
    margin: 20px auto;
  }

  .page-cockfighting-rules-detailed__cta-buttons--center {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

  .page-cockfighting-rules-detailed__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-cockfighting-rules-detailed__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9rem;
  }
  
  /* Ensure all containers with images/videos/buttons are constrained */
  .page-cockfighting-rules-detailed__section,
  .page-cockfighting-rules-detailed__container,
  .page-cockfighting-rules-detailed__hero-image-wrapper,
  .page-cockfighting-rules-detailed__cta-buttons,
  .page-cockfighting-rules-detailed__faq-section,
  .page-cockfighting-rules-detailed__faq-list,
  .page-cockfighting-rules-detailed__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Specific padding for content containers in mobile */
  .page-cockfighting-rules-detailed__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .page-cockfighting-rules-detailed__hero-section {
    padding-top: 10px !important; /* Small top padding for hero */
  }
}