.page-cockfighting-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css var(--bg-dark) */
}

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

.page-cockfighting-rules__section {
  padding: 40px 0;
  border-bottom: 1px solid #3A2A12; /* Border color */
}

.page-cockfighting-rules__section:last-of-type {
  border-bottom: none;
}

.page-cockfighting-rules__section-title {
  font-size: 2.5em;
  color: #FFD36B; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-cockfighting-rules__sub-title {
  font-size: 1.8em;
  color: #F2C14E; /* Main color for sub-titles */
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting-rules p {
  margin-bottom: 15px;
  color: #FFF6D6;
}

.page-cockfighting-rules ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #FFF6D6;
}

.page-cockfighting-rules li {
  margin-bottom: 8px;
  color: #FFF6D6;
}

.page-cockfighting-rules strong {
  color: #F2C14E;
}

/* Hero Section */
.page-cockfighting-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  padding-bottom: 50px;
  overflow: hidden;
  background-color: #0A0A0A; /* Background color */
}

.page-cockfighting-rules__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

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

.page-cockfighting-rules__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 30px;
  padding: 0 15px;
}

.page-cockfighting-rules__main-title {
  font-size: 3.2em;
  color: #FFD36B;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Glow */
}

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

/* Buttons */
.page-cockfighting-rules__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-cockfighting-rules__btn--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for light button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-cockfighting-rules__btn--secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow color */
  border: 2px solid #F2C14E; /* Main color as border */
}

.page-cockfighting-rules__btn--secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-3px);
}

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

/* FAQ Section */
details.page-cockfighting-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #111111; /* Card BG */
}
details.page-cockfighting-rules__faq-item summary.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFD36B; /* Glow color for question */
}
details.page-cockfighting-rules__faq-item summary.page-cockfighting-rules__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cockfighting-rules__faq-item summary.page-cockfighting-rules__faq-question:hover {
  background: rgba(242, 193, 78, 0.1); /* Slight hover effect with main color */
}
.page-cockfighting-rules__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6; /* Main text color for question */
}
.page-cockfighting-rules__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Main color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting-rules__faq-item .page-cockfighting-rules__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 17, 17, 0.8); /* Slightly transparent card BG */
  border-radius: 0 0 5px 5px;
  color: #FFF6D6; /* Main text color for answer */
}
.page-cockfighting-rules__faq-answer p {
    color: #FFF6D6;
}
.page-cockfighting-rules__faq-answer a {
    color: #F2C14E;
    text-decoration: underline;
}
.page-cockfighting-rules__faq-answer a:hover {
    color: #FFD36B;
}

/* Bottom CTA */
.page-cockfighting-rules__cta-bottom {
  text-align: center;
  background-color: #0A0A0A; /* Background color */
  padding: 60px 0;
}

.page-cockfighting-rules__cta-container {
  max-width: 800px;
}

/* 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.5em;
  }
  .page-cockfighting-rules__intro-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules {
    font-size: 15px;
    line-height: 1.5;
  }
  .page-cockfighting-rules__hero-section {
    padding-bottom: 30px;
  }
  .page-cockfighting-rules__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-cockfighting-rules__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-cockfighting-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-cockfighting-rules__sub-title {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .page-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-cockfighting-rules__btn {
    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;
  }
  
  /* Mobile image adaptation */
  .page-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting-rules__container,
  .page-cockfighting-rules__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  details.page-cockfighting-rules__faq-item summary.page-cockfighting-rules__faq-question { padding: 15px; }
  .page-cockfighting-rules__faq-qtext { font-size: 1em; }
  .page-cockfighting-rules__faq-answer { padding: 0 15px 15px; }
}

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