.page-cockfighting-rules {
  background-color: #140C0C;
  color: #FFF1E8;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
}

.page-cockfighting-rules__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding: 0 15px;
  text-align: center;
}

.page-cockfighting-rules__hero-content {
  order: 2; /* Content below image */
  margin-top: 20px;
}

.page-cockfighting-rules__hero-figure {
  order: 1; /* Image above content */
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-cockfighting-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  filter: none; /* Ensure no CSS filter */
}

.page-cockfighting-rules__hero-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  color: #F3C54D;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-cockfighting-rules__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  color: #FFF1E8;
}

.page-cockfighting-rules__hero-cta {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-cockfighting-rules__introduction-section,
.page-cockfighting-rules__basic-rules-section,
.page-cockfighting-rules__bet-types-section,
.page-cockfighting-rules__gameplay-steps-section,
.page-cockfighting-rules__tips-section,
.page-cockfighting-rules__faq-section,
.page-cockfighting-rules__cta-section {
  max-width: 1000px;
  margin: 0 auto 50px auto;
  padding: 0 15px;
}

.page-cockfighting-rules__section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #E53030;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  position: relative;
  font-weight: 700;
}

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

.page-cockfighting-rules__section-paragraph {
  margin-bottom: 20px;
  color: #FFF1E8;
  font-size: 1rem;
}

.page-cockfighting-rules__section-paragraph a {
  color: #F3C54D;
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting-rules__section-paragraph a:hover {
  text-decoration: underline;
}

.page-cockfighting-rules__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.page-cockfighting-rules__content-wrapper--reversed {
  flex-direction: column-reverse;
}

.page-cockfighting-rules__text-content {
  flex: 1;
}

.page-cockfighting-rules__image-figure {
  flex: 1;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter */
}

.page-cockfighting-rules__rule-list,
.page-cockfighting-rules__bet-list,
.page-cockfighting-rules__step-list,
.page-cockfighting-rules__tip-list {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
}

.page-cockfighting-rules__rule-item,
.page-cockfighting-rules__bet-item,
.page-cockfighting-rules__step-item,
.page-cockfighting-rules__tip-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  color: #FFF1E8;
}

.page-cockfighting-rules__rule-item strong,
.page-cockfighting-rules__bet-item strong,
.page-cockfighting-rules__step-item strong,
.page-cockfighting-rules__tip-item strong {
  color: #F3C54D;
}

.page-cockfighting-rules__step-list {
  counter-reset: step-counter;
}

.page-cockfighting-rules__step-item {
  position: relative;
  padding-left: 40px;
}

.page-cockfighting-rules__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 10px;
  top: 15px;
  background-color: #E53030;
  color: #FFF1E8;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.page-cockfighting-rules__faq-container {
  margin-top: 30px;
}

.page-cockfighting-rules__faq-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__faq-question {
  margin: 0;
  padding: 18px 20px;
  font-size: 1.1rem;
  color: #F3C54D;
  cursor: pointer;
  background-color: #2A1212;
  position: relative;
  transition: background-color 0.3s ease;
}

.page-cockfighting-rules__faq-question:hover {
  background-color: #2A1212;
}

.page-cockfighting-rules__faq-answer {
  padding: 0 20px 18px 20px;
  font-size: 1rem;
  color: #FFF1E8;
  display: block; /* Always visible for simplicity, could be toggled with JS */
}

.page-cockfighting-rules__faq-answer a {
  color: #F3C54D;
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting-rules__faq-answer a:hover {
  text-decoration: underline;
}

.page-cockfighting-rules__cta-section--bottom {
  text-align: center;
  background-color: #2A1212;
  padding: 40px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  margin-bottom: 60px;
}

.page-cockfighting-rules__cta-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #F3C54D;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-cockfighting-rules__cta-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF1E8;
}

.page-cockfighting-rules__cta-button {
  display: inline-block;
  padding: 16px 35px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-cockfighting-rules__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .page-cockfighting-rules__hero-section {
    flex-direction: column-reverse; /* Image above content on desktop */
    margin-top: 20px;
  }

  .page-cockfighting-rules__hero-content {
    order: 1;
    margin-top: 0;
    margin-bottom: 40px;
  }

  .page-cockfighting-rules__hero-figure {
    order: 2;
  }

  .page-cockfighting-rules__content-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-cockfighting-rules__content-wrapper--reversed {
    flex-direction: row-reverse;
  }

  .page-cockfighting-rules__text-content {
    padding-right: 30px;
  }

  .page-cockfighting-rules__content-wrapper--reversed .page-cockfighting-rules__text-content {
    padding-right: 0;
    padding-left: 30px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules__hero-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .page-cockfighting-rules__hero-description {
    font-size: 0.95rem;
  }

  .page-cockfighting-rules__section-title {
    font-size: clamp(1.3rem, 5vw, 2rem);
  }

  .page-cockfighting-rules__section-paragraph,
  .page-cockfighting-rules__rule-item,
  .page-cockfighting-rules__bet-item,
  .page-cockfighting-rules__step-item,
  .page-cockfighting-rules__tip-item,
  .page-cockfighting-rules__faq-question,
  .page-cockfighting-rules__faq-answer {
    font-size: 0.95rem;
  }

  .page-cockfighting-rules__content-image {
    max-width: 100%;
    height: auto;
  }

  .page-cockfighting-rules__cta-title {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
  }

  .page-cockfighting-rules__cta-button {
    font-size: 1rem;
    padding: 12px 25px;
  }
}

@media (max-width: 549px) {
  .page-cockfighting-rules__hero-title {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }

  .page-cockfighting-rules__hero-description {
    font-size: 0.9rem;
  }

  .page-cockfighting-rules__hero-cta {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .page-cockfighting-rules__section-title {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }

  .page-cockfighting-rules__rule-item,
  .page-cockfighting-rules__bet-item,
  .page-cockfighting-rules__step-item,
  .page-cockfighting-rules__tip-item {
    padding: 12px 15px;
  }

  .page-cockfighting-rules__step-item::before {
    left: 5px;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
  }

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

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

  .page-cockfighting-rules__cta-section--bottom {
    padding: 30px 15px;
  }

  .page-cockfighting-rules__cta-title {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }

  .page-cockfighting-rules__cta-button {
    font-size: 0.95rem;
    padding: 10px 20px;
  }
}