/* style/cockfighting-rules.css */
.page-cockfighting-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--bg-color, #08160F); /* Ensure body background is respected */
}

.page-cockfighting-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: 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-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-cockfighting-rules__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-cockfighting-rules__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--text-main, #F2FFF6);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting-rules__description {
  font-size: 1.1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-cockfighting-rules__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--bg-color, #08160F); /* Inherit body bg or default dark */
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting-rules__section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting-rules__heading {
  font-size: 2.5rem;
  color: var(--text-main, #F2FFF6);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 30px;
  text-align: center;
}

.page-cockfighting-rules__sub-heading {
  font-size: 1.8rem;
  color: var(--text-main, #F2FFF6);
  font-weight: 500;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-cockfighting-rules__paragraph {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 15px;
}

.page-cockfighting-rules__list {
  list-style: disc inside;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-cockfighting-rules__ordered-list {
  list-style: decimal inside;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-cockfighting-rules__list-item {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 8px;
}

.page-cockfighting-rules__image-inline {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__card {
  background: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting-rules__card-title {
  font-size: 1.4rem;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
}

.page-cockfighting-rules__card-text {
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting-rules__bet-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
}

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

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

.page-cockfighting-rules__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-cockfighting-rules__btn-secondary {
  background: transparent;
  color: var(--gold, #F2C14E);
  border: 2px solid var(--gold, #F2C14E);
}

.page-cockfighting-rules__btn-secondary:hover {
  background: var(--gold, #F2C14E);
  color: #000000;
  transform: translateY(-2px);
}

.page-cockfighting-rules__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-cockfighting-rules__cta-buttons .page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__cta-buttons .page-cockfighting-rules__btn-secondary {
  flex-grow: 1;
  text-align: center;
  max-width: 300px; /* Limit individual button width */
}

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

.page-cockfighting-rules__faq-item {
  background: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting-rules__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  font-weight: bold;
  font-size: 1.1rem;
  background-color: var(--deep-green, #0A4B2C);
}

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

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

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

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-toggle {
  content: '−';
}

.page-cockfighting-rules__faq-answer {
  padding: 15px 25px 20px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 0.95rem;
  border-top: 1px solid var(--divider, #1E3A2A);
}

.page-cockfighting-rules__faq-answer .page-cockfighting-rules__paragraph {
  margin-bottom: 0;
}

.page-cockfighting-rules__faq-answer .page-cockfighting-rules__btn-primary {
  margin-top: 15px;
}

.page-cockfighting-rules a {
  color: var(--glow, #57E38D);
  text-decoration: none;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting-rules__heading {
    font-size: 2.2rem;
  }
  .page-cockfighting-rules__sub-heading {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules__hero-section {
    padding: 10px 15px 40px;
  }
  .page-cockfighting-rules__hero-content {
    margin-top: 20px;
  }
  .page-cockfighting-rules__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-cockfighting-rules__description {
    font-size: 1rem;
  }
  .page-cockfighting-rules__content-area {
    padding: 40px 15px;
  }
  .page-cockfighting-rules__heading {
    font-size: 2rem;
  }
  .page-cockfighting-rules__sub-heading {
    font-size: 1.4rem;
  }
  .page-cockfighting-rules__paragraph,
  .page-cockfighting-rules__list-item,
  .page-cockfighting-rules__card-text {
    font-size: 0.9rem;
  }
  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin-bottom: 15px;
    padding: 12px 15px;
    box-sizing: border-box !important;
  }
  .page-cockfighting-rules__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    padding: 0 15px;
  }
  .page-cockfighting-rules__cta-buttons .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__cta-buttons .page-cockfighting-rules__btn-secondary {
    max-width: 100%;
  }
  .page-cockfighting-rules__bet-types {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-cockfighting-rules__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-cockfighting-rules__faq-answer {
    padding: 10px 20px 15px;
  }
  /* Mobile responsive images/videos/buttons - MUST HAVE !important */
  .page-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting-rules video,
  .page-cockfighting-rules__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting-rules__video-section,
  .page-cockfighting-rules__video-container,
  .page-cockfighting-rules__video-wrapper,
  .page-cockfighting-rules__section,
  .page-cockfighting-rules__card,
  .page-cockfighting-rules__container,
  .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;
  }
  .page-cockfighting-rules__video-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }
}