.page-cockfighting-rules-explained {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #FFF3E6); /* Default light text for dark body */
  background-color: var(--background-color, #0D0E12);
}

.page-cockfighting-rules-explained__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-cockfighting-rules-explained__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-cockfighting-rules-explained__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-cockfighting-rules-explained__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over image slightly for visual flow */
  background-color: rgba(13, 14, 18, 0.7); /* Semi-transparent dark background for text readability */
  border-radius: 8px;
  padding: 30px;
}

.page-cockfighting-rules-explained__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: #FFB04D;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting-rules-explained__intro-text {
  font-size: 1.1em;
  color: #FFF3E6;
  margin-bottom: 30px;
}

.page-cockfighting-rules-explained__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting-rules-explained__btn-primary,
.page-cockfighting-rules-explained__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-cockfighting-rules-explained__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-cockfighting-rules-explained__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
}

.page-cockfighting-rules-explained__btn-secondary {
  background: #17191F;
  color: #FF8C1A;
  border: 2px solid #A84F0C;
}

.page-cockfighting-rules-explained__btn-secondary:hover {
  background: #FF8C1A;
  color: #ffffff;
  border-color: #FF8C1A;
  transform: translateY(-2px);
}

.page-cockfighting-rules-explained__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  color: #FFB04D;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-cockfighting-rules-explained__text-block {
  font-size: 1.05em;
  color: #FFF3E6;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting-rules-explained__overview-section,
.page-cockfighting-rules-explained__betting-section,
.page-cockfighting-rules-explained__faq-section {
  background-color: var(--card-bg-color, #17191F);
  padding: 60px 0;
}

.page-cockfighting-rules-explained__rules-section,
.page-cockfighting-rules-explained__safety-section,
.page-cockfighting-rules-explained__conclusion-section {
  background-color: var(--background-color, #0D0E12);
  padding: 60px 0;
}

.page-cockfighting-rules-explained__feature-grid,
.page-cockfighting-rules-explained__rules-grid,
.page-cockfighting-rules-explained__betting-grid,
.page-cockfighting-rules-explained__safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-cockfighting-rules-explained__card {
  background: var(--card-bg-color, #17191F);
  color: var(--text-main-color, #FFF3E6);
  border: 1px solid var(--border-color, #A84F0C);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting-rules-explained__feature-title,
.page-cockfighting-rules-explained__rule-title,
.page-cockfighting-rules-explained__betting-title,
.page-cockfighting-rules-explained__safety-title {
  font-size: 1.4em;
  color: #FFB04D;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting-rules-explained__feature-item p,
.page-cockfighting-rules-explained__rule-item p,
.page-cockfighting-rules-explained__betting-item p,
.page-cockfighting-rules-explained__safety-item p,
.page-cockfighting-rules-explained__betting-item li {
  color: #FFF3E6;
  font-size: 1em;
  line-height: 1.5;
}

.page-cockfighting-rules-explained__betting-item ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-cockfighting-rules-explained__betting-item ul li {
  margin-bottom: 8px;
}

.page-cockfighting-rules-explained__image-content {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting-rules-explained__faq-list {
  margin-top: 40px;
}

.page-cockfighting-rules-explained__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color, #A84F0C);
  background: var(--card-bg-color, #17191F);
}

.page-cockfighting-rules-explained__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background: linear-gradient(90deg, #17191F 0%, #0D0E12 100%);
  color: #FFB04D;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-cockfighting-rules-explained__faq-question:hover {
  background: linear-gradient(90deg, #0D0E12 0%, #17191F 100%);
}

.page-cockfighting-rules-explained__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting-rules-explained__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  line-height: 1;
}

.page-cockfighting-rules-explained__faq-answer {
  padding: 0 30px 20px;
  color: #FFF3E6;
  font-size: 1em;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-cockfighting-rules-explained__faq-item[open] .page-cockfighting-rules-explained__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
}

.page-cockfighting-rules-explained__faq-item[open] .page-cockfighting-rules-explained__faq-question {
  background: linear-gradient(90deg, #0D0E12 0%, #17191F 100%);
}

.page-cockfighting-rules-explained__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* Ensure content area images are at least 200x200px */
.page-cockfighting-rules-explained__content-area img,
.page-cockfighting-rules-explained__rules-section img,
.page-cockfighting-rules-explained__betting-section img,
.page-cockfighting-rules-explained__safety-section img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules-explained__hero-content {
    margin-top: -80px;
    padding: 25px;
  }
  .page-cockfighting-rules-explained__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules-explained {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting-rules-explained__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-cockfighting-rules-explained__hero-content {
    margin-top: -60px;
    padding: 20px;
    max-width: 95%;
  }

  .page-cockfighting-rules-explained__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-cockfighting-rules-explained__intro-text {
    font-size: 1em;
  }

  .page-cockfighting-rules-explained__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting-rules-explained__btn-primary,
  .page-cockfighting-rules-explained__btn-secondary {
    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-explained__overview-section,
  .page-cockfighting-rules-explained__rules-section,
  .page-cockfighting-rules-explained__betting-section,
  .page-cockfighting-rules-explained__safety-section,
  .page-cockfighting-rules-explained__faq-section,
  .page-cockfighting-rules-explained__conclusion-section {
    padding: 40px 0;
  }

  .page-cockfighting-rules-explained__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting-rules-explained__feature-grid,
  .page-cockfighting-rules-explained__rules-grid,
  .page-cockfighting-rules-explained__betting-grid,
  .page-cockfighting-rules-explained__safety-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting-rules-explained__card {
    padding: 20px;
  }

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

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

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

  .page-cockfighting-rules-explained__faq-answer {
    padding: 0 20px 15px;
  }
}