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

.page-cockfighting-rules__dark-bg {
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%); /* Brand primary to auxiliary gradient */
  color: #ffffff; /* White text for dark background */
}

.page-cockfighting-rules__light-bg {
  background-color: #ffffff; /* Card BG */
  color: #1F2D3D; /* Text Main */
}

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

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

.page-cockfighting-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-cockfighting-rules__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 800px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.page-cockfighting-rules__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff; /* White text for hero title */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-cockfighting-rules__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0; /* Light grey text for hero description */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-cockfighting-rules__section {
  padding: 60px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-cockfighting-rules__content-area {
  max-width: 1200px;
  margin: 0 auto;
}

.page-cockfighting-rules__section-title {
  font-size: 2.5em;
  color: #2F6BFF; /* Primary brand color */
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__section-title {
  color: #ffffff;
}

.page-cockfighting-rules__text-block {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #1F2D3D; /* Text Main */
}

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__text-block {
  color: #f0f0f0;
}

.page-cockfighting-rules__image-text-block {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-cockfighting-rules__image-text-block--reverse {
  flex-direction: row-reverse;
}

.page-cockfighting-rules__content-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-cockfighting-rules__text-content {
  flex: 1;
  max-width: 50%;
}

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary,
.page-cockfighting-rules__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.page-cockfighting-rules__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-cockfighting-rules__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.6);
}

.page-cockfighting-rules__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border-color: #2F6BFF; /* Primary brand color for border */
}

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

.page-cockfighting-rules__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-cockfighting-rules__faq-section {
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%); /* Brand primary to auxiliary gradient */
  color: #ffffff;
}

.page-cockfighting-rules__faq-section .page-cockfighting-rules__section-title {
  color: #ffffff;
}

.page-cockfighting-rules__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

.page-cockfighting-rules__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting-rules__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-cockfighting-rules__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-cockfighting-rules__conclusion-section {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-cockfighting-rules__image-text-block {
    flex-direction: column;
  }

  .page-cockfighting-rules__image-text-block--reverse {
    flex-direction: column;
  }

  .page-cockfighting-rules__content-image,
  .page-cockfighting-rules__text-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules__section {
    padding: 40px 15px;
  }

  .page-cockfighting-rules__section-title {
    font-size: 2em;
  }

  .page-cockfighting-rules__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-cockfighting-rules__hero-description {
    font-size: 1em;
  }

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

  .page-cockfighting-rules__hero-image-wrapper,
  .page-cockfighting-rules__image-text-block,
  .page-cockfighting-rules__content-area,
  .page-cockfighting-rules__section,
  .page-cockfighting-rules__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-cockfighting-rules__cta-button,
  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary,
  .page-cockfighting-rules a[class*="button"],
  .page-cockfighting-rules a[class*="btn"] {
    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__cta-group {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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