/* style/cockfighting-rules.css */
.page-cockfighting-rules {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

/* Base responsive image styles */
.page-cockfighting-rules img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Base responsive video styles */
.page-cockfighting-rules video,
.page-cockfighting-rules__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Base responsive video container styles */
.page-cockfighting-rules__video-section,
.page-cockfighting-rules__video-container,
.page-cockfighting-rules__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Base responsive button styles */
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Button container base styles */
.page-cockfighting-rules__cta-buttons,
.page-cockfighting-rules__button-group,
.page-cockfighting-rules__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content */
  box-sizing: border-box;
}

.page-cockfighting-rules__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

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

.page-cockfighting-rules__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cockfighting-rules__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: bold;
  line-height: 1.2;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-cockfighting-rules__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-cockfighting-rules__section {
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting-rules__dark-section {
  background-color: #11271B; /* Card BG */
}

.page-cockfighting-rules__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
}

.page-cockfighting-rules__section-title--light {
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting-rules__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #57E38D; /* Glow */
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-cockfighting-rules__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting-rules__text-block--light {
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting-rules__text-link {
  color: #57E38D; /* Glow */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-cockfighting-rules__text-link:hover {
  color: #2AD16F;
}

.page-cockfighting-rules__highlight {
  color: #F2C14E; /* Gold */
  font-weight: bold;
}

.page-cockfighting-rules__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting-rules__list-item {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 10px;
}

.page-cockfighting-rules__image {
  border-radius: 8px;
  margin: 30px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting-rules__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 200px;
  cursor: pointer;
}

.page-cockfighting-rules__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-cockfighting-rules__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-cockfighting-rules__btn-secondary {
  background-color: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-cockfighting-rules__btn-secondary:hover {
  background-color: #2E7A4E;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(46, 122, 78, 0.4);
}

/* FAQ Section */
.page-cockfighting-rules__faq-list {
  margin-top: 30px;
}

.page-cockfighting-rules__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  position: relative;
  list-style: none;
}

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

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-cockfighting-rules__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #A7D9B8; /* Text Secondary */
}

/* Details open state for toggle */
.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-toggle {
  content: '−';
}

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

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

  .page-cockfighting-rules__hero-content {
    padding: 0 15px;
  }

  .page-cockfighting-rules__main-title {
    font-size: 2em; /* Adjusted for mobile */
  }

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

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

  .page-cockfighting-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-cockfighting-rules__sub-title {
    font-size: 1.4em;
    padding: 0 15px;
  }

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

  .page-cockfighting-rules__text-block,
  .page-cockfighting-rules__list-item {
    font-size: 1em;
  }

  .page-cockfighting-rules__image {
    margin: 20px auto;
  }

  .page-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-cockfighting-rules__cta-button {
    width: 100%;
    min-width: unset;
    padding: 12px 20px;
  }

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

  .page-cockfighting-rules__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.95em;
  }

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

  /* Mobile video forced adaptation */
  .page-cockfighting-rules video,
  .page-cockfighting-rules__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile container forced adaptation */
  .page-cockfighting-rules__section,
  .page-cockfighting-rules__container,
  .page-cockfighting-rules__hero-image-wrapper,
  .page-cockfighting-rules__video-section,
  .page-cockfighting-rules__video-container,
  .page-cockfighting-rules__video-wrapper,
  .page-cockfighting-rules__cta-buttons,
  .page-cockfighting-rules__button-group,
  .page-cockfighting-rules__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Specific padding for sections */
  .page-cockfighting-rules__introduction .page-cockfighting-rules__container,
  .page-cockfighting-rules__rules-basic .page-cockfighting-rules__container,
  .page-cockfighting-rules__cockfighting-types .page-cockfighting-rules__container,
  .page-cockfighting-rules__betting-guide .page-cockfighting-rules__container,
  .page-cockfighting-rules__betting-tips .page-cockfighting-rules__container,
  .page-cockfighting-rules__faq .page-cockfighting-rules__container,
  .page-cockfighting-rules__call-to-action .page-cockfighting-rules__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting-rules__hero-section {
    padding-top: 10px !important;
  }

  .page-cockfighting-rules__video-section {
    padding-top: 10px !important;
  }

  .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"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-cockfighting-rules__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
  }
}