.page-cockfighting-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

.page-cockfighting-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Minimal top padding, more bottom padding */
  background-color: #f8f9fa;
  text-align: center;
  overflow: hidden;
}

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

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

.page-cockfighting-rules__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-cockfighting-rules__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-cockfighting-rules__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #333333;
}

.page-cockfighting-rules__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting-rules__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-cockfighting-rules__btn-primary:hover {
  background-color: #1a8ccb;
  border-color: #1a8ccb;
}

.page-cockfighting-rules__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-cockfighting-rules__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a8ccb;
  border-color: #1a8ccb;
}

.page-cockfighting-rules__section {
  padding: 60px 0;
}

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

.page-cockfighting-rules__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

.page-cockfighting-rules__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: #333333;
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting-rules__list,
.page-cockfighting-rules__numbered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  padding: 0;
  color: #333333;
}

.page-cockfighting-rules__numbered-list {
  list-style-type: decimal;
}

.page-cockfighting-rules__list-item {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-cockfighting-rules__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  margin-bottom: 30px;
  display: block;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Color contrast specific styles */
.page-cockfighting-rules__light-bg {
  background-color: #FFFFFF; /* Ensures a light background */
  color: #333333; /* Dark text for light background */
}

.page-cockfighting-rules__dark-bg {
  background-color: #26A9E0; /* Brand color as dark background */
  color: #FFFFFF; /* Light text for dark background */
}

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__section-title,
.page-cockfighting-rules__dark-bg .page-cockfighting-rules__sub-title {
  color: #FFFFFF;
}

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

.page-cockfighting-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFFFFF;
}

.page-cockfighting-rules__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  color: #FFFFFF;
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

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

.page-cockfighting-rules__faq-question::marker {
  display: none;
}

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  margin-left: 15px;
}

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

.page-cockfighting-rules__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1rem;
  color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-cockfighting-rules__hero-image-wrapper {
    max-height: 450px;
  }
}

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

  .page-cockfighting-rules__hero-section {
    padding-bottom: 40px;
  }

  .page-cockfighting-rules__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules__main-title {
    font-size: 2.2rem;
  }

  .page-cockfighting-rules__description {
    font-size: 1rem;
  }

  .page-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
  }

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

  .page-cockfighting-rules__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

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

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

  .page-cockfighting-rules__sub-title {
    font-size: 1.2rem;
  }
}